Skip to the content
2 layers82 × 82 mmBack, 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
150
Nets
88
Pads
454
Tracks, vias
604, 146
Pours
17
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
19 Oct 2023
Updated
15 Sep 2026

Overview

Back 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 150 parts on 88 nets, routed with 604 tracks and 146 vias.

It is built around the CH32V003F4U6. Its parts include 66 capacitors, 64 diodes, 7 resistors, 3 connectors and 1 IC. It belongs with the RISC-V boards of this library.

Main components

1

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

150
QtyValueFootprintReferences
66100nCapacitor_SMD:C_0402_1005MetricC1, C2, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23 +50
64RGB_1516fp:XL-1615_WS2812BD1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +48
3560kResistor_SMD:R_0603_1608MetricR5, R6, R7
3Toolingfp:ToolingHoleH1, H2, H3
25.1kResistor_SMD:R_0603_1608MetricR3, R4
110kResistor_SMD:R_0603_1608MetricR2
1750mAResistor_SMD:R_0805_2012MetricF1
1Buzzerfp:FUET-1325BZ1
1CAP_CONNConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4
1CH32V003F4U6Package_DFN_QFN:QFN-20-1EP_3x3mm_P0.4mm_EP1.65x1.65mmU1
1LOGOLOGOG***
1PC1TestPoint:TestPoint_Pad_D2.0mmTP3
1PC2TestPoint:TestPoint_Pad_D2.0mmTP2
1PC3TestPoint:TestPoint_Pad_D2.0mmTP1
1PWR_CONNConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1Photoresistorfp:GT36528R1
1TC2030Connector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_VerticalJ3

More from johanwheeler/ch32-fireplace

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

    Middle

    johanwheeler/ch32-fireplace

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

    7 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 layers45 × 25 mmEasy PD Sink, the printed circuit board in 3D

    Easy PD Sink

    openwch/ch32v003

    CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10

    41 parts599
  • 2 layers11.8 × 12.2 mmMicrolcd-3digit, the printed circuit board in 3D

    Microlcd-3digit

    cnlohr/ch32v003_3digit_lcd_usb

    ch32v003 USB Driver for 3-digit 7-segment TN LCDs with touch

    10 parts222MIT
  • 4 layers27.9 × 108 mmCheep3a, the printed circuit board in 3D

    Cheep3a

    emeb/cheep3a

    An inexpensive Eurorack audio generator

    85 parts9MIT
  • 2 layers29.3 × 73 mmGamepad pmod, the printed circuit board in 3D

    Gamepad pmod

    psychogenic/gamepad-pmod

    CH32V003-based 2xSNES controller interface PMOD

    93 parts7GPL-3.0
  • 2 layers38 × 8 mmMws2812, the printed circuit board in 3D

    Mws2812

    Vonger/V7B_WS2812B

    allow V7B or MPRO screen driver board control WS2812B by I2C interface + CH32V003

    15 parts5
  • 4 layers144 × 150 mmKepler x, the printed circuit board in 3D

    Kepler x

    kunichiko/X68k-KeplerX-PCB

    186 parts4MIT
  • 2 layers180 × 131.1 mmCCController, the printed circuit board in 3D

    CCController

    RainbowLabsDE/LightInstallationController

    PCB and Firmware of our first universal RGB light installation controller.

    92 parts4MIT
  • 2 layers90.4 × 114 mmHh2024, the printed circuit board in 3D

    Hh2024

    badgeteam/hackerhotel-2024-hardware

    Conference badge for Hackerhotel 2024

    119 parts3CERN-OHL-P-2.0

Questions

How big is the Back PCB?

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

What parts does the Back use?

150 parts, built around the CH32V003F4U6. 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 Back KiCad files?

From the johanwheeler/ch32-fireplace repository on GitHub, at the commit this page was made from: the board is PCBs/Back/Back.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 Back 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).