Skip to content

4. Embedded programming

In week 4 of my embedded programming course at FabLab, I learned how to use Arduino to create a code for blinking light. I first set up the Arduino by installing the software and connecting the board to my computer. Then, I wrote a simple program that made an LED blink on and off in intervals. This involved understanding the basic Arduino programming structure, including the setup() and loop() functions. In the setup() function, I configured the LED pin as an output, preparing it to be controlled by my program. The actual blinking logic was implemented within the loop() function. Here, I wrote code that would turn the LED on, wait for a specific duration, turn the LED off, and then wait again before repeating the cycle. This created the desired blinking effect, with the LED alternating between illuminated and dark states at a set frequency.


Last update: July 16, 2024