Skip to the content
4 layers17.8 × 51.6 mmBonsai C4, the printed circuit board in 3D

An open-source ARM-based microcontroller board

Size
17.8 × 51.6 mm
Copper layers
4
Thickness
1.6 mm
Parts
59
Nets
69
Pads
269
Tracks, vias
1,229, 163
Pours
10
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
26 Feb 2021
Updated
4 Apr 2025

Overview

Bonsai C4 is an open-source printed circuit board by customMK, from the customMK/Bonsai-C repository on GitHub. It is a 4-layer board of 17.8 × 51.6 mm with 59 parts on 69 nets, routed with 1,229 tracks and 163 vias.

It is built around the STM32F411CEU6, W25Q128JVSIQ and SN74LV1T34DCKR, with the AAP2967-33VIR1, MB85RS64PNF-G-JNERE1 and SRV05-4 among its other parts. Its parts include 14 capacitors, 11 connectors, 9 resistors, 7 ICs and 5 diodes. It belongs with the STM32 boards of this library.

Main components

9

README

C3/README.md

Bonsai C3

Contents

Images

Bonsai C3 schematic

Bonsai C3 schematic

Bonsai C3 fabricated by JLCPCB (disregard the extra width, 20mm minimum width used to be JLCPCB requirement)

Bonsai C3 PCB front

Bonsai C3 front

Bonsai C3 PCB back

Bonsai C3 back

Bonsai C3 layers

Bonsai C3 layers

Background

Bonsai C3 is a general-purpose ARM-based microcontroller board. It was designed to help with the protoype and development of mechanical keyboards, but is versatile enough to be used in a variety of other applications. Mechanical keyboards can use Bonsai C3 as a "plug in" microcontroller board to their own designs sans-microcontroller, or they can incorporate the Bonsai C schmatic and layout directly into a complete keyboard PCB design.

Comparison to Proton C

Bonsai C3 is designed to be a drop-in-replacement to Proton C, and as such, they are functionally equivalent. However, there are several subtle design differences in contrast to Proton C:

  • Bonsai C3 uses only parts in the JLCPCB SMT library (including the USB C connector)
  • Bonsai C3’s USB data traces are shorter and more direct
  • Bonsai C3's USB data traces are designed for the correct impedance, using a 4 layer board design with power and ground planes.
  • Bonsai C3’s crystal clock lines are shorter and more direct
  • Bonsai C3 adds a ferrite between USB shield and ground, improving EMI (radiated susceptibility and radiated emissions)
  • Bonsai C3 connects USB VBUS to the ESD chip instead of the +5V (+5V is polyfuse-limited and reverse-diode-protected)
  • Bonsai C3 has correct labeling of the C14 and C15 pads (they are currently swapped in Proton C documentation and PCB silkscreen labeling)
  • Bonsai C3 uses ceramic bulk decoupling capacitors instead of tantalum capacitors
  • Bonsai C3 avoids via-in-pad (note: via-in-pad without non-conductive epoxy fill can cause solder joints to become starved of solder during assembly)

Build information

Bonsai C3 is a four layer PCB design.

If you plan to fabricate the Bonsai C3 design "as-is" without modificiation, within the "build" folder are two different zip files to make it easier to achieve this:

  • Bonsai_C3_Gerbers_Only.zip contains the Gerber files only. If you plan to solder parts on your own, you can simply take the zip file, send it to the PCB fab of your choice, and get boards made.
  • Bonsai_C3_PCBA.zip has the set of files needed to make fully-assembled PCBs; this includes the Gerber files above as well as a BOM and position file for assembly. These files can be provided to most of PCB assembly shops when ordering fully assembled boards. Depending on the assembly shop, it may be necessary to use alternative parts for some of the passive components (depending on where components are sourced from).
Included are also JLCPCB-ready BOM and position files, so uploading the design can be done by simply uploading the Gerber zip, BOM file, and CPL file to JLCPCB. However, from time to time, parts may go in and out of stock without suitable replacements in the JLCPCB library, necessitating some tailoring and/or hand soldering of components.

To use the lower cost STM32F303CB microcontroller instead of STM32F303CC, simply edit the BOM file; the footprint is identical between the CC and CB variants.

If you are unable to source the microcontroller directly, keep in mind that with the right equipment (hot air rework station) it is possible to transplant microcontroller from other boards you may have. If you plan to program (and let end users reflash) the microcontroller over USB by using QMK Toolbox, you will want you select a microcontroller that includes an embedded USB bootloader, of which there are relatively few options to choose from:

STM USB DFU

See here for more information, particularly yiancar's comment on Oct 22, 2018.

If you are willing to forego programming over the USB connector, and instead find it acceptable to use a low-cost SWD programmer (like ST-LINK) to flash new firmware onto the microcontroller, then there are many many more microcontroller options to choose from.

License

Open sourced under the CERN 2.0 permissive license.

Parts

59
QtyValueFootprintReferences
7cap_100nF_16v_0402Bonsai_C4:C_0402_1005MetricC1, C2, C3, C4, C5, C7, C13
4PAD_SQUARE_1MMBonsai_C4:PAD_SQUARE_1MMJ8, J14, J15, J16
4SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP1, JP2, JP3, JP4
22mm_mounting_holeBonsai_C4:MountingHole_2mmMH1, MH2
2HEADER-VERT_12P-2.54_Bonsai_C4:PinHeader_1x12_P2.54mm_VerticalJ4, J5
2HEADER-VERT_6P-2.54_Bonsai_C4:PinHeader_1x06_P2.54mm_VerticalJ6, J7
2MUN5311DW1T1GBonsai_C4:SOT-363_SC-70-6_SC-88Q1, Q2
2PMEG2010AEBBonsai_C4:D_SOD-523D1, D5
2SN74LV1T34DCKRBonsai_C4:SOT-353_SC-70-5U4, U5
2cap_1uF_10v_0402Bonsai_C4:C_0402_1005MetricC10, C11
2cap_20pF_50v_0402Bonsai_C4:C_0402_1005MetricC8, C9
2cap_4.7uF_10v_0402Bonsai_C4:C_0402_1005MetricC6, C14
2r_100k_0402_1pBonsai_C4:R_0402_1005MetricR1, R8
2r_5.1k_0402_1pBonsai_C4:R_0402_1005MetricR2, R3
2r_75_0402_1pBonsai_C4:R_0402_1005MetricR4, R7
11N4148Bonsai_C4:D_SOD-523D2
1AAP2967-33VIR1Bonsai_C4:SOT-23-5U1
1HEADER-VERT_1P-2.54_Bonsai_C4:PinHeader_1x01_P2.54mm_VerticalJ2
1HEADER-VERT_3P-2.54_Bonsai_C4:PinHeader_1x03_P2.54mm_VerticalJ1
1LOGOCustomMKLibrary:logo_higherres_vs_cu_0.5x0.15in_silkG4
1MB85RS64PNF-G-JNERE1Bonsai_C4:SOP-8_3.9x4.9mm_P1.27mmU7
1SMD-CRYSTAL-8MHZ-20PF-10PPM_2P-5.0X3.2MM_Bonsai_C4:X2-SMD-5.0X3.2X1.3MMY1
1SMD-LED-WHITE_0402_Bonsai_C4:LED_0402D3
1SMD-PPTC-500MA_0805_Bonsai_C4:F0805F1
1SMD-SWITCH-TACTILE-SPST-NO_4P-3.0MMx2.6MM_Bonsai_C4:SW4-SMD-3.0X2.6X0.7MMK1
1SMF5.0ABonsai_C4:D_SOD-123FLD4
1SRV05-4Bonsai_C4:SOT-23-6U2
1STM32F411CEU6Bonsai_C4:QFN-48-1EP_7x7mm_P0.5mm_EP5.6x5.6mm_ThermalViasU3
1TYPE-C-31-M12_13Bonsai_C4:TYPE-C-31-M-12J3
1W25Q128JVSIQBonsai_C4:SOIC-8_5.23x5.23mm_P1.27mmU6
1cap_10uF_10v_0402Bonsai_C4:C_0402_1005MetricC12
1fb_0402_26ohmBonsai_C4:R_0402_1005MetricFB1
1r_10k_0402_1pBonsai_C4:R_0402_1005MetricR6
1r_4.7k_0402_1pBonsai_C4:R_0402_1005MetricR5
1r_470_0402_1pBonsai_C4:R_0402_1005MetricR9

More from customMK/Bonsai-C

1
  • 4 layers17.8 × 51.6 mmBonsai C, the printed circuit board in 3D

    Bonsai C

    customMK/Bonsai-C

    An open-source ARM-based microcontroller board

    47 parts71

Similar boards

  • 4 layers180.4 × 157.2 mmMx track, the printed circuit board in 3D

    Mx track

    freznel10/Zerf9

    Draft repo or Chunky v13 aka Zert9 MX_track

    300 parts20GPL-3.0
  • 8 layers100 × 65 mmMatrixDrive RevB, the printed circuit board in 3D

    MatrixDrive RevB

    Matrixite/MatrixDrive

    MatrixDrive is a USB-loadable Mega Drive/Genesis cartridge

    143 parts
  • 4 layers80 × 108 mmBmcv, the printed circuit board in 3D

    Bmcv

    Bemeier/bmcv

    Macro CV controller for eurorack inspired by the Emblematic Systems Catalyst

    373 parts7CC-BY-SA-4.0
  • 2 layers228.6 × 79.4 mmTzarc keyboards ghoul, the printed circuit board in 3D

    Tzarc keyboards ghoul

    punkfab/pcb-corpus

    235 real KiCad boards from open-source hardware repositories, prepared as a placement and routing benchmark

    191 parts1
  • 4 layers40.8 × 40.8 mmACwing FC A, the printed circuit board in 3D

    ACwing FC A

    ACwing-UAV/ACwing_HW

    ACwing is a modular set of PCBs for small multirotors.

    111 parts
  • 2 layers149.9 × 122.2 mmCantaloupe, the printed circuit board in 3D

    Cantaloupe

    kitspace-test-repos/kicad6-file-collection

    118 partsMIT
  • 2 layers130 × 115 mmFate, the printed circuit board in 3D

    Fate

    hasenbanck/fate

    An adapter to connect a high voltage electrostatic amplifier to an ADC for audio measurement

    33 parts1
  • 2 layers20 × 110 mmDual ears, the printed circuit board in 3D

    Dual ears

    Cs4System/Eurorack

    Blattwerk Eurorack modules. Designed by Lorenz Neumann

    125 parts83

Questions

How big is the Bonsai C4 PCB?

It measures 17.8 × 51.6 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Bonsai C4 use?

59 parts, built around the STM32F411CEU6, W25Q128JVSIQ, SN74LV1T34DCKR and AAP2967-33VIR1. 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 Bonsai C4 KiCad files?

From the customMK/Bonsai-C repository on GitHub, at the commit this page was made from: the board is C4 extended/Bonsai_C4.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bonsai C4 design in my own project?

Its repository states no licence, so its author keeps all rights: ask customMK before reusing the design.