

Bonsai C
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
5STM32F303CCT6
LQFP-48(7x7)-40℃~+85℃ 12bit 12bit 256KB 2V~3.6V 32 Bit 37 40KB 72MHz ARM Cortex-M4 Built-in FLASH LQFP-48(7x7) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)AAP2967-33VIR1
SOT-23-5-40℃~+85℃@(Ta) 1 140uA 200mV@(300mA) 3.3V 300mA 5.5V 50uVrms 65dB@(1kHz) Fixed Positive Short Circuit Protection、Thermal Shutdown SOT-23-5 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSEutech MicroelectronicsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsSN74LV1T34DCKR
SOT-353-40℃~+125℃ 1 1 1.6V~5.5V 1.6V~5.5V CMOS CMOS Level translator Power-off protection Unidirectional SOT-353 Translators, Level Shifters ROHSTECH PUBLICTranslators, Level ShiftersB5819W
SOD-123-55℃~+125℃ 1.5A 1mA@40V 25A 40V 600mV@1A Standalone SOD-123 Schottky Diodes ROHSMDDSchottky DiodesMUN5311DW1T1G(TP)
SOT-363SOT-363 Digital Transistors ROHSTECH PUBLICDigital Transistors
README
C3/README.mdBonsai C3
Contents
Images
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 PCB back
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).
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:

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| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | PAD_SQUARE_1MM | Bonsai_C:PAD_SQUARE_1MM | J8, J9, J10, J11, J12, J14, J15, J16 |
| 5 | cap_100nF_16v_0402 | Bonsai_C:C_0402_1005Metric | C1, C2, C3, C4, C7 |
| 2 | 2mm_mounting_hole | Bonsai_C:MountingHole_2mm | MH1, MH2 |
| 2 | HEADER-VERT_12P-2.54_ | Bonsai_C:PinHeader_1x12_P2.54mm_Vertical | J4, J5 |
| 2 | HEADER-VERT_6P-2.54_ | Bonsai_C:PinHeader_1x06_P2.54mm_Vertical | J6, J7 |
| 2 | cap_1uF_10v_0402 | Bonsai_C:C_0402_1005Metric | C10, C11 |
| 2 | cap_20pF_50v_0402 | Bonsai_C:C_0402_1005Metric | C8, C9 |
| 2 | r_0_0402_nopop | Bonsai_C:R_0402_1005Metric | R5, R6 |
| 2 | r_5.1k_0402_1p | Bonsai_C:R_0402_1005Metric | R2, R3 |
| 1 | 1N4148 | Bonsai_C:D_SOD-523 | D2 |
| 1 | AAP2967-33VIR1 | Bonsai_C:SOT-23-5 | U1 |
| 1 | B5819W | Bonsai_C:D_SOD-123 | D1 |
| 1 | Buzzer_Mallory | Bonsai_C:Buzzer_Mallory_AST1109MLTRQ | BZ1 |
| 1 | HEADER-VERT_1P-2.54_ | Bonsai_C:PinHeader_1x01_P2.54mm_Vertical | J2 |
| 1 | HEADER-VERT_3P-2.54_ | Bonsai_C:PinHeader_1x03_P2.54mm_Vertical | J1 |
| 1 | MUN5311DW1T1G | Bonsai_C:SOT-363_SC-70-6_SC-88 | Q1 |
| 1 | NUF2221W1T2G | Bonsai_C:SOT-363_SC-70-6_SC-88 | U2 |
| 1 | SMD-CRYSTAL-8MHZ-20PF-10PPM_2P-5.0X3.2MM_ | Bonsai_C:X2-SMD-5.0X3.2X1.3MM | Y1 |
| 1 | SMD-LED-WHITE_0402_ | Bonsai_C:LED_0402 | D3 |
| 1 | SMD-PPTC-500MA_0805_ | Bonsai_C:F0805 | F1 |
| 1 | SMD-SWITCH-TACTILE-SPST-NO_2P-2.5MMx3.0MM_ | Bonsai_C:SW2-SMD-2.5X3.0X1.6MM | K1 |
| 1 | SN74LV1T34DCKR | Bonsai_C:SOT-353_SC-70-5 | U4 |
| 1 | STM32F303CCT6 | Bonsai_C:LQFP-48_7x7mm_P0.5mm | U3 |
| 1 | TYPE-C-31-M12_13 | Bonsai_C:TYPE-C-31-M-12 | J3 |
| 1 | cap_10uF_6v_0402 | Bonsai_C:C_0402_1005Metric | C12 |
| 1 | cap_4.7uF_25v_0805 | Bonsai_C:C_0805 | C6 |
| 1 | fb_0402_26ohm | Bonsai_C:R_0402_1005Metric | FB1 |
| 1 | r_100k_0402_1p | Bonsai_C:R_0402_1005Metric | R1 |
| 1 | r_75_0402_1p | Bonsai_C:R_0402_1005Metric | R4 |
More from customMK/Bonsai-C
1- 4 layers17.8 × 51.6 mm

Similar boards
- 2 layers120 × 66 mm

Io daughterboard
kbob/MinimumViableSynth
A virtual analog synthesizer with lots of knobs and buttons.
136 parts28GPL-3.0 - 4 layers52.7 × 60.9 mm

- 2 layers51.5 × 92 mm

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 mm

- 8 layers28 × 125 mm

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 mm

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 mm

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 mm

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.