Personal tools
User menu

Difference between revisions of "ChristmasTree2012"

From Francois Louw

Jump to: navigation, search
Line 4: Line 4:
  
 
==Schematic==
 
==Schematic==
 +
 
[[File:tree-2012-schematic.jpg|300px]]
 
[[File:tree-2012-schematic.jpg|300px]]
 +
 
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.
  
 
==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.6 and the HiTech C Compiler.
  
 
Here's the source code
 
Here's the source code
 +
 
<source lang="c">
 
<source lang="c">
 
#include <htc.h>
 
#include <htc.h>
Line 332: Line 336:
  
 
==Result==
 
==Result==
 +
 
Here are pictures of the final result (ignore the quality of the makeshift wire tree)
 
Here are pictures of the final result (ignore the quality of the makeshift wire tree)
 +
 
[[File:tree-2012-1.jpg|300px]]
 
[[File:tree-2012-1.jpg|300px]]
  
Line 338: Line 344:
  
 
And of course YouTube video of my tree :D
 
And of course YouTube video of my tree :D
 +
 +
[http://youtu.be/ShFkCYE7gvw Christmas Tree]
 +
 +
==Copyright==
 +
 +
Everything here is under GPL3
 +
 +
If you use this to make your own project email me and link to my site :)
 +
my email is francois.louw@(this-domain)

Revision as of 18:22, 16 December 2012