Saturday, May 2, 2015

Arduino Day 1 - LEDs!

Arduino is a tool used for feed back and control systems.  Our first project with Arduino involves LEDs!

  1. Make sure the Arduino is functioning by plugging it in and run "Blink with Delay" program in examples.



  2. Remove delay.  This makes the light blink so fast, we do not see the change from on and off and it is as if it is on the entire time.





  3. Change blink pattern to on for 2 seconds and off for 1/2 second.





  4. Connect an LED to pin 13 and create a cool pattern with the LED and pin 12. Our first step was the visualize the pattern we desired.  Each light is on or off for 250 miliseconds. It starts with both pins on, then both off, then one on and the other off, then both off and then one one and the other off and then both off.








  5. Add more LEDS into the other pins and make cool patterns!





    Since we had time, we made another one!







  6. Blinking without delay command using current millis.




  7. Make a cool pattern without the delay command and with current millis.



     


     We did another one! 

Playing with the Arduino and LEDs was so much fun!




No comments:

Post a Comment