Personal tools
User menu

Difference between revisions of "ChristmasTree2012"

From Francois Louw

Jump to: navigation, search
Line 1: Line 1:
 
__TOC__
 
__TOC__
  
So for 2012 I dont want just any boring tree, I want to make one myself with a bunch of LEDs and a PIC that I have lying around!
+
So for 2012 I didn't want just any boring tree, I wanted to make one myself with a bunch of LEDs and a PIC that I had lying around!
  
Here are the build steps with pictures, schematics and code!
+
Here are the results with video, pictures, schematics and code!
  
 
{{#ev:youtube|ShFkCYE7gvw}}
 
{{#ev:youtube|ShFkCYE7gvw}}
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 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.
  
 
==Source Code==
 
==Source Code==
  
The code was written in C using MPLAB 8.6 and the HiTech C Compiler.
+
The code was written in C using MPLAB 8.60 and the HiTech C Compiler.
  
 
Here's the source code
 
Here's the source code
Line 349: Line 349:
 
==Copyright==
 
==Copyright==
  
Everything here is under GPL3
+
Everything here is under [[Gplv3|GPL 3.0]].
  
If you use this to make your own project email me and link to my site :)
+
If you use this to make your own project email me and link to my site.
 
my email is francois.louw@(this-domain)
 
my email is francois.louw@(this-domain)

Revision as of 19:26, 16 December 2012