Based on this:
http://www.r4nd0m.com/Candle.html
I made a printed circuit board for mine.
Author's original circuit diagram here:
http://imageshack.us/photo/my-images/10/candlel.png/
He has made a mistake with the diagram, there's an LED connected to pin 4. Connect it to pin 2, not pin 4.
I have re-drawn the circuit with the correction, and added a PCB mount on/off switch:
http://imageshack.us/photo/my-images/850/5ledcandlev1a.png/
HEX code for the PIC micro:
:100000000428FF3FFF3FFF3F013003138312A0008E
:100010000030A1000130A2000030A300850183164A
:100020009F01850103138316A401A50180302506D5
:10003000D000803021065002031D20282008240211
:1000400003184828A601A70180302706D000803079
:100050005002031D2D28FF30260203184428A80152
:10006000A90180302906D00080305002031D3A28B3
:100070000230280203184028A80A0319A90A3128C7
:10008000A60A0319A70A2428A40A0319A50A1628F0
:1000900020082204831285002008D0002108D10006
:1000A000D00DD10D50100F305005D5005108D6009D
:1000B0000030D6050330D0002008D3002108D4003A
:1000C000500803196A28D40CD30CD413541BD4172A
:1000D000FF3F61282008D0002108D100D10CD00CAE
:1000E000D113511BD117D10CD00CD113511BD117E7
:1000F0000130D0050030D1055308D0065408D10690
:1001000050085507A00056080318013F5107A100E9
:100110002208D0002308D100D00DD10D50103F305F
:100120005005D5005108D6000030D6050530D00066
:100130002208D3002308D40050080319A628D40CA1
:10014000D30CD413541BD417FF3F9D280430D20086
:100150002208D0002308D10052080319B628D10C78
:10016000D00CD113511BD117FF3FAD280130D00562
:100170000030D1055308D0065408D1065008550761
:10018000A20056080318013F5107A3001228C728F0
:02400E00843FED
:00000001FF
yeah just imagine you bring your date home, and go " let me set the mood" you bet she wont storm out the door when u light those things up.
m2nna5 1 year ago
@m2nna5
If she's "in the mood" she won't care for fake or real candles. :-)
tehscience 3 months ago
i did the same project but the led from the mclr/gp3 pin is not working so i wired the led on pin 2 from the mcu and now is working.
yo9hnhradio 3 years ago
I spotted that myself and emailed the author about it. He said he'd update the circuit diagram on his site.
tehscience 3 years ago
After uploading that video, I realised that sitting the circuit board on top of the battery pack causes a short circuit - thus preventing that one LED from lighting. When I worked out why, I used some self-adhesive velcro to prevent that from happening. Nobody else has noticed. :-)
tehscience 3 years ago