Making Arduino perform asynchronous tasks is not an easy job and such Project requires you to practice implementation of clean and optimized programs. It is very useful to know how to program AVR in C and how to read the datasheets in order to implement timers.
This project will shed some light on the how to build an asynchronous set of blinking LEDs using the Arduino Uno board.
A while ago, one of my friends built a pinball machine from scratch and he asked that I help him create a program with the Arduino that will make LEDs blinks completely asynchronously. And this was the perfect project for his pinball machine. Hope you will the project useful. Let’s dive into it.
Blinking LEDs with the Arduino board
Here is the list of the parts we will need for this project. You can use less than 6 LEDs if you need to.
This project uses the most basic hardware component one can imagine while working with the Arduino. The most important part of this project is the program, not the hardware part. Use the image below to connect the parts together.
Remember that the longer leg of the LED goes to the positive pin and the shorter goes to the negative one, so you have to plug the longer leg to the resistors, and shorter to the negative bar on the breadboard.
Now we can upload a program to the Arduino, I made a six LED version and this number is supported by this program (you can also use less without changing the code, or more but you will have to add few lines of code).