Arduino Workshop-LED Chase Effect
Required Component for Arduino LED Chase Effect
2. 5mm LED
3. Resistors
Figure :LED Chase Effect[/caption]
First, make sure your Arduino is powered off by unplugging it from the USB cable. Now take your breadboard, LEDs, resistors, and wires, and connect everything up as in Figure :LED Chase Effect . Check your circuit thoroughly before connecting the power back up to the Arduino.
Code
Now press the Verify button at the top of the IDE to make sure there are no errors in your code. If
this is successful, you can now click the Upload button to upload the code to your Arduino. If you
have done everything correctly, you should now see the LEDs appear to move along the line, then
bounce back to the start. We have not introduced any different hardware in this project, so there is no
need to take a look at that. However, we have introduced a new concept in the code of this project in
the form of arrays. Let us take a look at the code for Project 5 and see how it works.
This book will help you to gain more knowledge about Arduino
Beginning Arduino
Circuit diagram
[caption id="attachment_375" align="alignnone" width="300"]
Previous Tutorial
No comments