Personal tools
User menu

Difference between revisions of "ChristmasTree2012"

From Francois Louw

Jump to: navigation, search
(Schematic)
Line 11: Line 11:
 
[[File:tree-2012-schematic.jpg|500px]]
 
[[File:tree-2012-schematic.jpg|500px]]
  
The MCLR resistor is 4.7K and the LED resistors will depend on your LEDs. Remember that there is a limit on the amount of current that the PIC can supply. I limited my 2V LEDs to 0.8mA by using 3.8K Resistors. The total current usage is 20mA when all the LEDs are on. Assuming the 9V battery has a 400mAh life then this will give me at least 20 hours. Realistically I should get 30+ hours.
+
The MCLR resistor is 4.7K and the LED resistors will depend on your LEDs. Remember that there is a limit on the amount of current that the PIC can supply. I limited my 2V LEDs to 0.8mA by using 3.8K Resistors. The total current usage is 20mA when all the LEDs are on. Assuming the 9V battery has a 400mAh life then this will give me at least 20 hours. Realistically I should get 30+ hours. For timing I used a 10MHz crystal.
  
 
==Source Code==
 
==Source Code==

Revision as of 19:27, 16 December 2012