Skip to the content
4 layers22 × 42 mmMES4-MCU, the printed circuit board in 3D

A small STM32G0B1 microcontroller module with CAN, built as an M.2 2242 (B-key) card.

Size
22 × 42 mm
Copper layers
4
Thickness
0.8 mm
Parts
46
Nets
50
Pads
206
Tracks, vias
396, 109
Pours
6
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
14 Oct 2026
Updated
29 Oct 2026

Overview

MES4-MCU is an open-source printed circuit board by aaronraj11, from the aaronraj11/MES4-MCU repository on GitHub. It is a 4-layer board of 22 × 42 mm with 46 parts on 50 nets, routed with 396 tracks and 109 vias.

It is built around the STM32G0B1KBT6, SN65HVD230DR and TLV76733DRVR, with the MMBT3904, 1N4148WS and AO3400A among its other parts. Its parts include 14 resistors, 10 capacitors, 7 diodes, 4 transistors and 3 ICs. It belongs with the STM32 boards of this library.

Main components

9

README

README.md

MES4-MCU

A small STM32G0B1 microcontroller module with CAN, built as an M.2 2242 (B-key) card.

MES4-MCU, top side     MES4-MCU, bottom side

Note: the edge connector uses a custom pinout. This is not an M.2 SSD or Wi-Fi card. Do not plug it into a laptop or PC M.2 slot.

Specifications

MCUSTM32G0B1KBT6 (Cortex-M0+, 64 MHz, 128 KB flash, 144 KB RAM), LQFP-32
Clock8 MHz oscillator into HSE bypass, PLL to 64 MHz
CANFDCAN2 + SN65HVD230 transceiver, 500 kbit/s, NUP2105L ESD protection, optional 120 Ω termination (JP1)
Power input5 V (4.75–5.25 V) on fingers 20/22, about 40 mA typical, 240 mA worst case
3.3 V railTLV76733 LDO (1 A), up to 50 mA available on finger 4
ProtectionSMF6.0A TVS on the 5 V input
I/O on the edge14 GPIO (8 of them ADC-capable), I²C, UART, SWD, NRST
On board4 LEDs (5V red, 3V3 green, CAN white, USR yellow), passive buzzer, 5 V input sense on PB2
PCBM.2 2242 B-key, 22 × 42 mm, 4 layers, 0.8 mm, ENIG, bevelled gold fingers
Operating range−20 to +70 °C (design target)

Edge connector

Odd fingers are on the top side, even fingers on the bottom side. All signals are 3.3 V logic.

FingerSignalNotes
1 / 3CANH / CANLto the SN65HVD230 through the ESD diode
4+3V3output from the on-board LDO, max 50 mA; never drive it
6 / 8UART TX / RXUSART1 (PA9 / PA10), e.g. ST-Link virtual COM port
7 / 9SWDIO / SWCLKPA13 / PA14
11NRSTpull low only (open-drain)
20, 22+5Vpower input
23 / 25USB D+ / D−wired to PA12 / PA11, not used in Rev A
29, 31PC6, PA8GPIO (PA8 can read low during reset)
35 – 49PA7 … PA0GPIO / ADC IN7 … IN0 (PA4, PA5: 3.6 V max)
51PC15GPIO, sink only (no LEDs)
53 / 55I²C1 SDA / SCLPB9 / PB8, pull-ups go on the host board
59, 61, 63PB6, PB3, PA15GPIO
all othersGND

Using the module

  • Power: supply 5 V on fingers 20/22 only. The module makes its own 3.3 V. Power down before inserting or removing it.
  • Programming / debug: SWD (fingers 7/9/11) with finger 4 as the target voltage reference. The UART on fingers 6/8 is handy as a debug console.
  • CAN termination: a CAN bus needs exactly two 120 Ω terminators, one at each end of the cable. Bridge solder jumper JP1 only if this module sits at an end. With everything powered off, CANH to CANL should measure about 60 Ω.
  • CAN wiring: never run CANH/CANL in a connector or cable that also carries more than 12 V. The SN65HVD230 bus pins are rated −4 to +16 V, so a short to a 24 V supply destroys the transceiver (and R7 if JP1 is bridged). Rev A accepts this and relies on the harness.
  • Test points: GND, 3V3 and 5V pads on the top side.

Firmware notes

  • HSE is an 8 MHz oscillator on PC14 (bypass mode). PLL: M = 2, N = 32, R = 2, Q = 2 → 64 MHz system and FDCAN clock.
  • CAN at 500 kbit/s: prescaler 8, 16 time quanta (TSEG1 13, TSEG2 2, SJW 2), sample point 87.5 %.
  • Set the UCPD1/UCPD2 strobe bits in SYSCFG early in start-up so PA8 is released.
  • The buzzer is passive: drive PB7 with PWM (TIM4_CH2, about 4 kHz) and keep it low when idle, never high.
  • Status LEDs: CAN on PB4, USR on PB5. Input voltage sense on PB2 (ADC IN10, divider ×3).

Repository contents

File
MES4-MCU.kicad_proKiCad 9 project
*.kicad_schschematic (overview, power, MCU, CAN / M.2, datasheet links)
MES4-MCU.kicad_pcbPCB layout
MES4-MCU.pdfschematic as PDF
MES4-MCU-BOM.csvbill of materials with LCSC part numbers
MES4-MCU.kicad_drucustom design rules (JLCPCB 4-layer)
MES4-MCU.pretty, MES4-MCU.3dshapes, MES4-MCU.kicad_symproject footprints, 3D models and symbols
sim/LTspice benches for the power, MCU and CAN sheets (python3 run_sims.py, then python3 make_report.py → report.html)

Manufacturing

Designed for JLCPCB:

  • 4 layers, 0.8 mm, stackup JLC04081H-3313 (top signal / GND / 3V3 / bottom signal)
  • ENIG surface finish, gold fingers with a 20° / 0.3 mm bevel
  • Ordered as a single board, panelised by JLC on the order. JLC only bevels gold fingers on boards or panels of at least 50 × 50 mm, so ask for a panel with the fingers on an outer edge, mouse-bite tabs and no V-cut along the fingers.
  • Parts are mostly JLC Basic. The BOM lists LCSC numbers for every part.

Status

Rev A. The design is complete but has not been fabricated or tested yet.

Author

Aaron Raj Bhatti, Monkey Robotics. LinkedIn

Parts

46
QtyValueFootprintReferences
7100nFCapacitor_SMD:C_0402_1005MetricC3, C4, C6, C7, C8, C9, C10
510kResistor_SMD:R_0402_1005MetricR5, R6, R9, R13, R15
41kResistor_SMD:R_0402_1005MetricR1, R2, R3, R4
310uF 25VCapacitor_SMD:C_0805_2012MetricC1, C2, C5
3MMBT3904Package_TO_SOT_SMD:SOT-23Q1, Q2, Q4
10Resistor_SMD:R_0402_1005MetricR16
1120Resistor_SMD:R_0603_1608MetricR7
11N4148WSDiode_SMD:D_SOD-323D3
120kResistor_SMD:R_0402_1005MetricR8
122Resistor_SMD:R_0402_1005MetricR14
13V3TestPoint:TestPoint_Pad_D1.0mmTP2
14.7kResistor_SMD:R_0402_1005MetricR12
15VTestPoint:TestPoint_Pad_D1.0mmTP1
18MHz SX2M8.000M20F30TNNMES4-MCU:Oscillator_SCTF_SX2M_2.5x2.0mmX1
1AO3400APackage_TO_SOT_SMD:SOT-23Q3
1GNDTestPoint:TestPoint_Pad_D1.0mmTP3
1GreenLED_SMD:LED_0805_2012MetricLED2
1KLJ-5018-5040MES4-MCU:Buzzer_KLJ-5018-5040BZ1
1KiCad-Logo2_8mm_SilkScreenSymbol:KiCad-Logo2_8mm_SilkScreenLOGO2
1M.2_B-Key_CardMES4-MCU:M.2_2242_B-Key_CardJ1
1NUP2105LT1GPackage_TO_SOT_SMD:SOT-23D1
1RedLED_SMD:LED_0805_2012MetricLED1
1SMF6.0ADiode_SMD:D_SMFD2
1SN65HVD230DRPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1STM32G0B1KBT6Package_QFP:LQFP-32_7x7mm_P0.8mmU1
1TLV76733DRVRPackage_SON:WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mmU2
1TermJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1
1WhiteLED_SMD:LED_0805_2012MetricLED3
1YellowLED_SMD:LED_0805_2012MetricLED4

Similar boards

  • 2 layers144 × 121.4 mmPando left, the printed circuit board in 3D

    Pando left

    jyap808/pando

    58 key split keyboard. Integrated STM32G0B1KBT6, USB-C interconnect, PCA9555 IO Expander design

    89 parts13
  • 4 layers90 × 66 mmIron node, the printed circuit board in 3D

    Iron node

    enkhbold470/iron-node

    ESP32-S3 industrial gateway: W5500 Ethernet, isolated RS-485 (ADM2587E), CAN, 9-36 V input. 4-layer KiCad 10 board.

    83 partsCERN-OHL-S-2.0
  • 4 layers90 × 56.1 mmK2-cm5-traeger, the printed circuit board in 3D

    K2-cm5-traeger

    Gamecard/k2-plus-cm5

    K2 Plus CM5 – Creality K2 Plus mit Upstream-Klipper auf einem Raspberry Pi CM5

    137 partsGPL-3.0
  • 2 layers40 × 70 mmKinetiCoreDC, the printed circuit board in 3D

    KinetiCoreDC

    axpaul/KinetiCoreDC

    Compact STM32G0-based DC motor controller board featuring TI DRV8874 H-bridge drivers, RS485 communication, optoisolated I/O, and hardware power protection.

    183 parts1CERN-OHL-S-2.0
  • 4 layers150 × 100 mmCm4-robo controller, the printed circuit board in 3D

    Cm4-robo controller

    jrseti/roboclaw-cm4-dc-dish-controller

    Satellite dish controller using a ROBOCLAW-2X15A-OEM controlled by a Raspberry Pi CM4 module. Powered by DC battery.

    292 partsMIT
  • 2 layers226.7 × 75 mmR12-AW, the printed circuit board in 3D

    R12-AW

    my-fi-25073/MF40

    MF40 is my-fi's mini 40% custom keyboard PCB family. The variants share the same general design direction, but differ by horizontal width, column configuration, and bottom-row style.

    126 partsMIT
  • 2 layers66 × 44 mmFgl g1, the printed circuit board in 3D

    Fgl g1

    roblim/fused_glass_lighting

    46 parts
  • 2 layers50.8 × 26.7 mmMistMakerV1-4, the printed circuit board in 3D

    MistMakerV1-4

    Dav1dyang/Programmable-Mist-Maker

    An open-source, low-cost ultrasonic mist maker designed to share commercial humidifier circuits and empower creators with accessible, well-documented hardware.

    54 parts26MIT

Questions

How big is the MES4-MCU PCB?

It measures 22 × 42 mm and has 4 copper layers, 0.8 mm thick.

What parts does the MES4-MCU use?

46 parts, built around the STM32G0B1KBT6, SN65HVD230DR, TLV76733DRVR and MMBT3904. 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 MES4-MCU KiCad files?

From the aaronraj11/MES4-MCU repository on GitHub, at the commit this page was made from: the board is MES4-MCU.kicad_pcb and its schematic CAN_M2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the MES4-MCU design in my own project?

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