

Bonsai C4
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
9STM32F411CEU6
UFQFPN-48(7x7)-40℃~+85℃ 1.7V~3.6V 100MHz 128KB 12bit 32 Bit 36 512KB ARM Cortex-M4 Built-in FLASH UFQFPN-48(7x7) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)W25Q128JVSIQ
SOIC-8-208mil-40℃~+85℃ 100,000 cycles 120ms@(32KB) 128Mbit 133MHz 1uA 2.7V~3.6V 20 Years 3ms Power-on reset、Hardware write protection、Software write protection、Write enable latch、Absolute write protection SPI SOIC-8-208mil NOR FLASH ROHSWinbondNOR FLASHSN74LV1T34DCKR
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 ShiftersAAP2967-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) RegulatorsMB85RS64PNF-G-JNERE1
SOP-8SOP-8 FRAM ROHSRAMXEED/FUJITSUFRAMSRV05-4
SOT-23-6L-55℃~+150℃ 15V 1pF 4A 5V 5uA 6V 80W ESD Four channels IEC 61000-4-2、IEC 61000-4-5 Unidirectional SOT-23-6L ESD and Surge Protection (TVS/ESD) ROHShongjiachengESD And Surge Protection (TVS/ESD)MUN5311DW1T1G(TP)
SOT-363SOT-363 Digital Transistors ROHSTECH PUBLICDigital TransistorsPMEG2010AEB
SOD-5231 Independent 1.5mA@20V 1A 20V 620mV@1A 6A SOD-523 Schottky Diodes ROHSNexperiaSchottky DiodesSMF5.0A
SOD-123FLESD And Surge Protection (TVS/ESD)hongjiacheng
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
59| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | cap_100nF_16v_0402 | Bonsai_C4:C_0402_1005Metric | C1, C2, C3, C4, C5, C7, C13 |
| 4 | PAD_SQUARE_1MM | Bonsai_C4:PAD_SQUARE_1MM | J8, J14, J15, J16 |
| 4 | SolderJumper_3_Bridged12 | Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm | JP1, JP2, JP3, JP4 |
| 2 | 2mm_mounting_hole | Bonsai_C4:MountingHole_2mm | MH1, MH2 |
| 2 | HEADER-VERT_12P-2.54_ | Bonsai_C4:PinHeader_1x12_P2.54mm_Vertical | J4, J5 |
| 2 | HEADER-VERT_6P-2.54_ | Bonsai_C4:PinHeader_1x06_P2.54mm_Vertical | J6, J7 |
| 2 | MUN5311DW1T1G | Bonsai_C4:SOT-363_SC-70-6_SC-88 | Q1, Q2 |
| 2 | PMEG2010AEB | Bonsai_C4:D_SOD-523 | D1, D5 |
| 2 | SN74LV1T34DCKR | Bonsai_C4:SOT-353_SC-70-5 | U4, U5 |
| 2 | cap_1uF_10v_0402 | Bonsai_C4:C_0402_1005Metric | C10, C11 |
| 2 | cap_20pF_50v_0402 | Bonsai_C4:C_0402_1005Metric | C8, C9 |
| 2 | cap_4.7uF_10v_0402 | Bonsai_C4:C_0402_1005Metric | C6, C14 |
| 2 | r_100k_0402_1p | Bonsai_C4:R_0402_1005Metric | R1, R8 |
| 2 | r_5.1k_0402_1p | Bonsai_C4:R_0402_1005Metric | R2, R3 |
| 2 | r_75_0402_1p | Bonsai_C4:R_0402_1005Metric | R4, R7 |
| 1 | 1N4148 | Bonsai_C4:D_SOD-523 | D2 |
| 1 | AAP2967-33VIR1 | Bonsai_C4:SOT-23-5 | U1 |
| 1 | HEADER-VERT_1P-2.54_ | Bonsai_C4:PinHeader_1x01_P2.54mm_Vertical | J2 |
| 1 | HEADER-VERT_3P-2.54_ | Bonsai_C4:PinHeader_1x03_P2.54mm_Vertical | J1 |
| 1 | LOGO | CustomMKLibrary:logo_higherres_vs_cu_0.5x0.15in_silk | G4 |
| 1 | MB85RS64PNF-G-JNERE1 | Bonsai_C4:SOP-8_3.9x4.9mm_P1.27mm | U7 |
| 1 | SMD-CRYSTAL-8MHZ-20PF-10PPM_2P-5.0X3.2MM_ | Bonsai_C4:X2-SMD-5.0X3.2X1.3MM | Y1 |
| 1 | SMD-LED-WHITE_0402_ | Bonsai_C4:LED_0402 | D3 |
| 1 | SMD-PPTC-500MA_0805_ | Bonsai_C4:F0805 | F1 |
| 1 | SMD-SWITCH-TACTILE-SPST-NO_4P-3.0MMx2.6MM_ | Bonsai_C4:SW4-SMD-3.0X2.6X0.7MM | K1 |
| 1 | SMF5.0A | Bonsai_C4:D_SOD-123FL | D4 |
| 1 | SRV05-4 | Bonsai_C4:SOT-23-6 | U2 |
| 1 | STM32F411CEU6 | Bonsai_C4:QFN-48-1EP_7x7mm_P0.5mm_EP5.6x5.6mm_ThermalVias | U3 |
| 1 | TYPE-C-31-M12_13 | Bonsai_C4:TYPE-C-31-M-12 | J3 |
| 1 | W25Q128JVSIQ | Bonsai_C4:SOIC-8_5.23x5.23mm_P1.27mm | U6 |
| 1 | cap_10uF_10v_0402 | Bonsai_C4:C_0402_1005Metric | C12 |
| 1 | fb_0402_26ohm | Bonsai_C4:R_0402_1005Metric | FB1 |
| 1 | r_10k_0402_1p | Bonsai_C4:R_0402_1005Metric | R6 |
| 1 | r_4.7k_0402_1p | Bonsai_C4:R_0402_1005Metric | R5 |
| 1 | r_470_0402_1p | Bonsai_C4:R_0402_1005Metric | R9 |
More from customMK/Bonsai-C
1- 4 layers17.8 × 51.6 mm

Similar boards
- 4 layers180.4 × 157.2 mm

- 8 layers100 × 65 mm

MatrixDrive RevB
Matrixite/MatrixDrive
MatrixDrive is a USB-loadable Mega Drive/Genesis cartridge
143 parts - 4 layers80 × 108 mm

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 mm

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 mm

- 2 layers149.9 × 122.2 mm

- 2 layers130 × 115 mm

Fate
hasenbanck/fate
An adapter to connect a high voltage electrostatic amplifier to an ADC for audio measurement
33 parts1 - 2 layers20 × 110 mm

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.