Personal tools
User menu

Difference between revisions of "ChristmasTree2012"

From Francois Louw

Jump to: navigation, search
(Schematic)
m (Schematic)
Line 10: Line 10:
  
 
[[File:tree-2012-schematic.jpg|500px]]
 
[[File:tree-2012-schematic.jpg|500px]]
 +
 +
''FIX: The MCLR resistor should pull up the MCLR pin, and the MCLR pin should be connected straight to the ICSP header''
  
 
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.
 
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.

Revision as of 19:29, 16 December 2012