
Back
johanwheeler/ch32-fireplace
Ch32 based christmas card with 8x8 screen, sound and capacitive buttons

Ch32 based christmas card with 8x8 screen, sound and capacitive buttons
Front is an open-source printed circuit board by johanwheeler, from the johanwheeler/ch32-fireplace repository on GitHub, published under the MIT licence. It is a 2-layer board of 82 × 64 mm with 3 parts on 8 nets.
And a happy new year! Here you will find some instructions for the christmas card, as well as some technical details.
https://github.com/johanwheeler/ch32-fireplace/assets/45564940/a2e65534-c451-412c-9a83-9337bf3cca4e
Longer demo here, Short Hackaday article
If your card has white plastic in front of the screen, remove the front plate and peel the film, then connect to any USB-C power source. The stockings above the fire are actually touch buttons! Press firmly to interact.
Sound: Toggle sound on or off.
Next: Go to next animation.
Present: Call for santa. Remember that santa will only deliver presents at night ;)
For fellow nerds.

The initial shape was made in Fusion360, together with the grid and acrylic piece. The outlines were then imported into Inkscape, where the graphics were designed. To save ourselves a lot of work during the assembly process, we put an effort into minimizing part count as much as possible. We did this by combining multiple functions into one part, for example the middle PCB serves as decoration, diffuser for the LEDs, and also has buttons integrated. This way we managed to get all the looks and functionality with only 5 major mechanical components, saving us a lot of work when we eventually assembled all 50 of these.
The main electrical components are:
These are distributed on 3 PCBs for a 3D effect, KiCAD was used to design the PCBs:
The project is assembled in several steps that need to be followed in the correct order.
We got all of the back PCB smd components assembled by JLCPCB. We then set up a mini production line over the weekend and made 50 of these to give away to friends and family. The final cost came out to around 6$ per fireplace, manageable even with our student budgets.

All code was written in plain C using the ch32v003fun dev environment and can be compiled using PlatformIO. The main code can be found in src/main.c, and several peripheral drivers and functions can be found in the lib folder. The fire is procedurally generated, and the christmas tree has some math for the fading lights, otherwise the animations are stored frame by frame on the device. We really managed to squeeze a lot of functionality onto the 10 cent chip, with the code, animations and music filling up more than 90 percent of the 16k flash.
This was a really fun project to do, and we learned a lot about small-scale production with limited budget and a tight deadline.
The people who made this:
Additional thanks to:
@CNLohr and contributors for the great resources in ch32v003fun.
CASE (Chalmers Autonomous Sytems and Electronics) for PCB shipping, tools, and workspace.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | CAP_TOUCH | fp:PinHeader_1x04_P2.54mm_Vertical_SMD_Both | J2 |
| 1 | LOGO | LOGO | G*** |
| 1 | PWR | fp:PinHeader_1x04_P2.54mm_Vertical_SMD_Both | J1 |


hzeller/rpi-rgb-led-matrix
Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO


atopile/atopile
Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️




hackclub/sprig
🍃 Learn to code by making games in a JavaScript web-based game editor.
It measures 82 × 64 mm and has 2 copper layers, 1.6 mm thick.
3 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the johanwheeler/ch32-fireplace repository on GitHub, at the commit this page was made from: the board is PCBs/Front/Front.kicad_pcb and its schematic PCBs/Back/Back.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).