Loading 3D model… large boards can take a moment.
This project is a simple PCB based Christmas ornament with blinky LEDs and rechargeable supercaps.
Project was done in Kicad (yay for open-source !). Project files are here: Hardware\Kicad\, including the custom footprint library Hardware\Kicad\christmas_tree.pretty.
Schematic : Hardware\schematic.pdf
Bill of Materials : Hardware\BOM.csv
Components were chosen based on my current stock.
To keep this project cheap, the goal was to fit the whole layout on a 10x10cm 2 layer board, which JLCPCB famously offers at 2$ for 5pcs. Decision was made to split the tree in 2 halves that would then be soldered back together, to get a bit extra height.
The PCB comes with the 2 halves attached with mousebites. Once separated the remaining burs can be filed off.For the 1st time I experimented with using the different layers (bare FR4 material, bare copper, copper+soldermask, bare soldermask and silkscreen) to make a somewhat artistic result. For more info on the colors you can get when playing with PCBs I would recommend visiting this page.
Zipped gerbers are available (Hardware\Kicad\gerbers.zip)to be directly dropped on manufacturers websites like JLCPCB. I used their excellent prototype service for my boards, both cheap and quick.
Feel free to use these files as is or modify and improve the project. Don't forget to share our version as well!
Final dimensions are 88.7mm*98mm.
Ordering settings: 2 layers, 1.6mm board thickness, white silkscreen, HASL(with lead) surface finish, 1oz copper weight, Specify a location for Remove Order Number,
In the Remarks field: "Please note: Some parts use Solder Mask Defined Pads. Do not compensate/modify the solder mask for them. No edge plating required. Center cutout to be routed and discarded."
Minimum components to be assembled are: C1&C2 supercaps, SW1 power switch, U3 microcontroller, R1 & R10 charging resistors, the 4 220Ω resistors and the LEDs.
To avoid making a custom TagConnect to ICSP adapter, the µC can be programmed in a socket before being soldered on the board.
Precompiled version of the firmware: Software\main.hex
To upload using avrdude, run the following commands : avrdude -u -c usbtiny -p t85 -B 5 -F -U flash:w:main.hex:a -U lfuse:w:0xE2:m -U hfuse:w:0xDF:m -U efuse:w:0xFF:m
Software uses Timer1 to cycle between each LED and light it using a 3 bit intensity scale. Pin change interrupt is used for touch button sensing. This allows the CPU to be put to sleep most of the time, reducing power consumption( ~0.75mA instead of 5.5mA !) Several blinking modes can be cycled through with the touch button: scroll (default, up and down animation), all (all on with sligth twinkle), and pixies (one LED at a time with low duty cycle).
Depending on the animation mode used, runtime per charge can vary between 1.3 and 5.5 hours.
Program: 922 bytes (11.3% Full) & Data: 36 bytes (7.0% Full)
| Average consumption (mA) | 5 | F total capacitance | |||
|---|---|---|---|---|---|
| All on mode | Economy mode | E(J) | |||
| V full charge | 5 | 4.2 | 0.9 | 62.5 | Energy when at max voltage |
| V min working | 2.5 | 1.1 | 0.34 | 15.625 | Energy left when at min voltage |
| V average | 3.75 | 2.65 | 0.62 | 46.875 | Usable energy |
| 3.472 | mAh usable capacity | ||||
| 01h18min | 05h36min | Expected runtime |
No comments yet. Be the first to ask about this board.