Arduino 002: Multi-Mode Flashing Lights
This will help you:
Use loops and interrupts to control many LEDs which can be changed with button
In this activity, you'll make 5 (or more) LED's flash in different orders to produce cool effects. You'll learn about for loops to reduce the amount of code, and interrupts to change modes when a button is pressed.
Time: 1-3 hours / Level: B3
You should already:
Know how to use a breadboard
Complete the Arduino Startup activity
You Will Need:
A computer
An Arduino
An A-to-B USB cable
A half-size breadboard
Pushbutton switch
10k ohm potentiometer (optional for speed adjustment)
2x 10k Ohm resistors
5-10 LEDs
5-10x 100-220 Ohm resistors (see this guide on resistors for LEDs)