57. MRH14-11-Nov2014-P - page 205

47. Building lighting demo board.
47
DC adapter here, rated 400 milliamps or more. Place your LEDs in
building rooms or where ever you want them, connecting all LED
anodes (Plus or positive sides) together and to the positive side of
your power source, in my case the 5 volt wall wart.
For each LED connect a 1/8-1/4 watt resistor of somewhere
between 330 and 2000 ohms depending on your LED and the LED
brightness you desire (experiment a little here) to the LED cathode
(Negative side). The other side of the resistor connects to one of
the Arduino pins labeled 2-13 and A0-A3 on the Pro Mini Board.
These are referred to as Arduino Digital Pins 2-17.
The assembly pictured below is my demo of this very project. The
LEDs will come on randomly, and, on the average, stay on for 60%
of the time. On the next page is a video demoing the final result.
1...,195,196,197,198,199,200,201,202,203,204 206,207,208,209,210,211,212,213,214,215,...335
Powered by FlippingBook