Skip to the content
4 layers17.8 × 51.6 mmBonsai C, 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
47
Nets
57
Pads
188
Tracks, vias
1,056, 117
Pours
13
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
26 Feb 2021
Updated
4 Apr 2025

Overview

Bonsai C 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 47 parts on 57 nets, routed with 1,056 tracks and 117 vias.

It is built around the STM32F303CCT6, AAP2967-33VIR1 and SN74LV1T34DCKR, with the B5819W and MUN5311DW1T1G(TP) among its other parts. Its parts include 15 connectors, 11 capacitors, 6 resistors, 4 ICs and 3 diodes. It belongs with the STM32 boards of this library.

Main components

5

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

47
QtyValueFootprintReferences
8PAD_SQUARE_1MMBonsai_C:PAD_SQUARE_1MMJ8, J9, J10, J11, J12, J14, J15, J16
5cap_100nF_16v_0402Bonsai_C:C_0402_1005MetricC1, C2, C3, C4, C7
22mm_mounting_holeBonsai_C:MountingHole_2mmMH1, MH2
2HEADER-VERT_12P-2.54_Bonsai_C:PinHeader_1x12_P2.54mm_VerticalJ4, J5
2HEADER-VERT_6P-2.54_Bonsai_C:PinHeader_1x06_P2.54mm_VerticalJ6, J7
2cap_1uF_10v_0402Bonsai_C:C_0402_1005MetricC10, C11
2cap_20pF_50v_0402Bonsai_C:C_0402_1005MetricC8, C9
2r_0_0402_nopopBonsai_C:R_0402_1005MetricR5, R6
2r_5.1k_0402_1pBonsai_C:R_0402_1005MetricR2, R3
11N4148Bonsai_C:D_SOD-523D2
1AAP2967-33VIR1Bonsai_C:SOT-23-5U1
1B5819WBonsai_C:D_SOD-123D1
1Buzzer_MalloryBonsai_C:Buzzer_Mallory_AST1109MLTRQBZ1
1HEADER-VERT_1P-2.54_Bonsai_C:PinHeader_1x01_P2.54mm_VerticalJ2
1HEADER-VERT_3P-2.54_Bonsai_C:PinHeader_1x03_P2.54mm_VerticalJ1
1MUN5311DW1T1GBonsai_C:SOT-363_SC-70-6_SC-88Q1
1NUF2221W1T2GBonsai_C:SOT-363_SC-70-6_SC-88U2
1SMD-CRYSTAL-8MHZ-20PF-10PPM_2P-5.0X3.2MM_Bonsai_C:X2-SMD-5.0X3.2X1.3MMY1
1SMD-LED-WHITE_0402_Bonsai_C:LED_0402D3
1SMD-PPTC-500MA_0805_Bonsai_C:F0805F1
1SMD-SWITCH-TACTILE-SPST-NO_2P-2.5MMx3.0MM_Bonsai_C:SW2-SMD-2.5X3.0X1.6MMK1
1SN74LV1T34DCKRBonsai_C:SOT-353_SC-70-5U4
1STM32F303CCT6Bonsai_C:LQFP-48_7x7mm_P0.5mmU3
1TYPE-C-31-M12_13Bonsai_C:TYPE-C-31-M-12J3
1cap_10uF_6v_0402Bonsai_C:C_0402_1005MetricC12
1cap_4.7uF_25v_0805Bonsai_C:C_0805C6
1fb_0402_26ohmBonsai_C:R_0402_1005MetricFB1
1r_100k_0402_1pBonsai_C:R_0402_1005MetricR1
1r_75_0402_1pBonsai_C:R_0402_1005MetricR4

More from customMK/Bonsai-C

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

    Bonsai C4

    customMK/Bonsai-C

    An open-source ARM-based microcontroller board

    59 parts71

Similar boards

  • 2 layers120 × 66 mmIo daughterboard, the printed circuit board in 3D

    Io daughterboard

    kbob/MinimumViableSynth

    A virtual analog synthesizer with lots of knobs and buttons.

    136 parts28GPL-3.0
  • 4 layers52.7 × 60.9 mmCartGen4, the printed circuit board in 3D

    CartGen4

    elialm/ecgc-hardware

    Hardware documentation of the ECGC cartridge

    86 parts2CERN-OHL-P-2.0
  • 2 layers51.5 × 92 mmEcoport bridge v1, the printed circuit board in 3D

    Ecoport bridge v1

    jrowe88/ecoport-bridge

    CTA-2045 (EcoPort) bridge for a Rinnai REHP65 heat pump water heater

    74 parts1AGPL-3.0
  • 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
  • 8 layers28 × 125 mmCompact tablet, the printed circuit board in 3D

    Compact tablet

    CopperPilot/tablet

    An 8.4-inch tablet around a chip-down RK3566 + LPDDR4X: 8-layer 0.8 mm mainboard, USB-C daughter board, 1600x2560 dual-DSI display, CNC aluminium shell. Designed end to end by CopperPilot, open for review.

    431 partsCERN-OHL-S-2.0
  • 4 layers140 × 80 mmWaypoint, the printed circuit board in 3D

    Waypoint

    M-Mrk/waypoint

    Ever wanted to get somewhere from anywhere? Waypoint uses GNSS to guide you towards your destination by showing the direction, distance, and elevation difference.

    187 parts
  • 2 layers17.6 × 83.6 mmGliss led, the printed circuit board in 3D

    Gliss led

    BelaPlatform/gliss-hardware

    You can find the source KiCad files for the Gliss module in this repository. This project is open hardware and under the Creative Commons Share Alike license 4.0.

    57 parts18
  • 4 layers100 × 100 mmAmod c, the printed circuit board in 3D

    Amod c

    gallicchio/AMOD-and-RFMOD

    The tutorial's 2x12 adapter (/mudd/133electronics/icepi-zero-dac-adc/adapterboard/) with a 2 x 6 right-angle Pmod socket on a 15 mm extension of its right-hand end, so an Icepi Zero can drive AMOD-A's and RF-MOD's Pmod…

    211 parts

Questions

How big is the Bonsai C PCB?

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

What parts does the Bonsai C use?

47 parts, built around the STM32F303CCT6, AAP2967-33VIR1, SN74LV1T34DCKR and B5819W. 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 C KiCad files?

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

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

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