|
|
For this project I'll describe how to hook up 10 of our 20mm RGB modules and
control them any way you like using an Arduino Duemilanove. You can use any
Arduino or compatible board, but if you want to run a lot of LEDs you'll need
one with the 328 controller - it's twice as fast as the old ones and has 2k of
memory rather than 1k. Having said that, any Arduino will easily run a few hundred LEDs.
Connect the blue wire to GND and the red wire to 5V on the Arduino.
The LEDs need 5 Volts to run. We'll
take that straight off the Arduino since we're only using 10 LEDs here.
Each LED can pull a maximum of 60mA at full brightness white light, so don't go
running it over warp 9 for too long.
Connect the yellow wire to 11 (Data) and the green wire to 12 (Clock)
You can change which pins you'd like to use in the code.
The code uses the Arduino TimerOne library:
http://www.arduino.cc/playground/Code/Timer1
Download as per the instructions.
Now, start a new Arduino Sketch and paste in the example code below. Compile.
Upload.
Voila! You now can sit back and watch the blinkenlights.
|
|
|
|
|
|
About us
|
|