Skip to the content
2 layers82 × 82 mmMiddle, the printed circuit board in 3D

Ch32 based christmas card with 8x8 screen, sound and capacitive buttons

Size
82 × 82 mm
Copper layers
2
Thickness
1.6 mm
Parts
7
Nets
7
Pads
19
Tracks, vias
26, 0
Pours
10
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
19 Oct 2023
Updated
15 Sep 2026

Overview

Middle 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 × 82 mm with 7 parts on 7 nets, routed with 26 tracks and 0 vias.

README

README.md

Merry Christmas!

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

Instructions

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 ;)

Technical details

For fellow nerds.

Major components laid out

Mechanical design

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.

Electrical design

The main electrical components are:

  • CH32V003 RISC-V microcontroller
  • WS2812B (neopixel) LED matrix with 64 pixels
  • Buzzer for music and sound effects
  • Capacitive touch buttons
  • Photoresistor

These are distributed on 3 PCBs for a 3D effect, KiCAD was used to design the PCBs:

  • Back PCB has most of the components including MCU, Buzzer, LEDs, and programming headers.
  • Middle PCB has a USB-C port and capacitive buttons. Exposed FR-4 is used as a diffuser for the LEDs.
  • Front PCB just looks nice.

Assembly

The project is assembled in several steps that need to be followed in the correct order.

  • Components on back PCB.
  • Upload code (on back PCB).
  • Attach USB-C jack and grid on middle PCB.
  • Solder middle PCB to back PCB headers.
  • Attach acrylic on middle PCB.
  • Solder female headers on front PCB.
  • Attach front PCB.
  • Plug in and enjoy!

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.

Headers soldered to back

Code

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.

Contributions

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:

  • Johan Wheeler (@johanwheeler): Electrical design, mechanical design, assembly.
  • Daniel Quach (@BasementCircuits): Project lead, electrical design, programming, animations, soldering.
  • Adam Anderson (@adaand00): Mechanical design, assembly, programming, animations.

See past years' cards!

Additional thanks to:

@CNLohr and contributors for the great resources in ch32v003fun.

CASE (Chalmers Autonomous Sytems and Electronics) for PCB shipping, tools, and workspace.

Parts

7
QtyValueFootprintReferences
1CAPTOUCHConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1LOGOLOGOG***
1PWRConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1TOUCH1cap_sock:cap_sockTP1
1TOUCH2cap_sock:cap_sockTP2
1TOUCH3cap_sock:cap_sockTP3
1USB_C_Receptacle_PowerOnly_6PLibrary:TYPE-C-31-D-08J1

More from johanwheeler/ch32-fireplace

2
  • 2 layers82 × 82 mmBack, the printed circuit board in 3D

    Back

    johanwheeler/ch32-fireplace

    Ch32 based christmas card with 8x8 screen, sound and capacitive buttons

    150 parts33MIT
  • 2 layers82 × 64 mmFront, the printed circuit board in 3D

    Front

    johanwheeler/ch32-fireplace

    Ch32 based christmas card with 8x8 screen, sound and capacitive buttons

    3 parts33MIT

Similar boards

  • 2 layersEncoder, the printed circuit board in 3D

    Encoder

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    7 parts4.3kMIT
  • 2 layers40 × 20 mmSensor smd, the printed circuit board in 3D

    Sensor smd

    scottbez1/splitflap

    DIY split-flap display

    7 parts4.2k
  • 2 layers19.8 × 30 mmZ limit, the printed circuit board in 3D

    Z limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    7 parts3.7k
  • 2 layers35.6 × 58.2 mmDisplay Carrier, the printed circuit board in 3D

    Display Carrier

    AxxAxx/AxxSolder

    STM32 Based soldering station for JBC cartridges, 9-24 VDC and USB-PD power

    7 parts1.7kGPL-3.0
  • 2 layers20.3 × 16.3 mmMap MPX, the printed circuit board in 3D

    Map MPX

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    7 parts1.2k
  • 2 layers26 × 44 mmCompact carrier board, the printed circuit board in 3D

    Compact carrier board

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    7 parts1.1k
  • 2 layers26.4 × 53.8 mmAtari pickup, the printed circuit board in 3D

    Atari pickup

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    7 parts1kGPL-3.0
  • 2 layersRj45 breakout, the printed circuit board in 3D

    Rj45 breakout

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    7 parts990GPL-3.0

Questions

How big is the Middle PCB?

It measures 82 × 82 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Middle use?

7 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.

Where can I download the Middle KiCad files?

From the johanwheeler/ch32-fireplace repository on GitHub, at the commit this page was made from: the board is PCBs/Middle/Middle.kicad_pcb and its schematic PCBs/Back/Back.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Middle design in my own project?

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).