|
While I had dabbled from time to time with
solar panels and low voltage eletronics this was to be my first
time messing around with microcontrollers. I had played around a
bit programming them and switching LEDs but I needed something a
little more advanced than my ability fast and found the program I
needed at http://www.r4nd0m.com/Candle.html
|
||
|
The program was written in C for a PIC12F675.
It switched 5 LEDs randomly to simulate a candle flame this did not
produce enough light for what I wanted to do so I set my circuit up
to switch 15 LEDs. I soldered together 5 sets of three 5mm LEDs in
parallel and connected them to the 5 pin outs of the
PIC12F675.
|
||
|
Since this was intended to run all night, I
powered it with a 7.5V power supply I had in my junk box. I used an
LM317 to drop the voltage down to 3.5V. I used the highest MCD
rated LEDs I could find locally and by arranging them so that they
threw light into each other I gained a bit more brightness. Here is
a a short .avi of how the LEDs looked when set up on a
breadboard.
|
||