

Custom e-bike controller based on VESC4
- Size
- 77 × 30 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 149
- Nets
- 115
- Pads
- 557
- Tracks, vias
- 1,412, 200
- Pours
- 13
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 2 Jun 2023
- Updated
- 29 Mar 2025
Overview
BLDC 4 is an open-source printed circuit board by PetteriAimonen, from the PetteriAimonen/ebike-controller-pcb-compact repository on GitHub. It is a 4-layer board of 77 × 30 mm with 149 parts on 115 nets, routed with 1,412 tracks and 200 vias.
It is built around the DRV8302, LSM6DS3 and BSC030N08NS5, with the SMAJ48 among its other parts. Its parts include 60 capacitors, 55 resistors, 10 connectors, 6 diodes and 6 transistors. It belongs with the robots and motor control boards and the STM32 boards of this library.
Main components
4DRV8302
UncategorisedTexas InstrumentsLSM6DS3
LGA-14(2.5x3)-40℃~+85℃ 1.71V~3.6V 8KB Accelerometer Gyroscope SPI、I2C X,Y,Z X,Y,Z ±16g ±2000dps LGA-14(2.5x3) Accelerometers ROHSSTMicroelectronicsAccelerometersBSC030N08NS5
TDSON-8(5x6)-55℃~+150℃ 1 N-channel 100A 139W 3.8V 3mΩ@10V 5.6nF 56pF 76nC@10V 80V TDSON-8(5x6) MOSFETs ROHSInfineon TechnologiesMOSFETsSMAJ48
DO-214AC(SMA)-55℃~+150℃ 4.68A 400W 48V 53.3V 5uA 85.5V TVS DO-214AC(SMA) ESD and Surge Protection (TVS/ESD) ROHSMeritekESD And Surge Protection (TVS/ESD)
README
README.mdCustom E-bike controller based on VESC 4.10
Customized version of Benjamin Vedder's VESC for driving BLDC motors.
VESC Hardware is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
Can use either VESC firmware or my custom firmware.
Changes:
- Added screw terminals for power cables and 2.54 mm pin headers for signals.
- Most parts are on single-side, with parts available on JLCPCB.
- Added LSM6DS3 accelerometer on board for controlling assist power
- Designed for max. 20A 50V operation.

Designed to mount on an aluminum block for cooling the FETs. Alternatively a heatsink can be screwed on.
Assembly costs for 5 pcs at JLCPCB as of 2023:
PCB (with 1 oz inner layer copper and lead-free HASL): $28.00
Setup fee:$7.88
Stencil:$1.48
Components:$97.77
Extended components fee:$29.56
SMT Assembly:$3.43 Parts
149| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | 4.7uF | Capacitor_SMD:C_0603_1608Metric | C1, C3, C8, C16, C17, C18, C20, C23, C24, C26, C46, C47, C48, C52, C60, C61 |
| 14 | 100nF | Capacitor_SMD:C_0603_1608Metric | C2, C11, C12, C13, C22, C27, C28, C29, C30, C32, C41, C42, C45, C62 |
| 14 | 2k2 | Resistor_SMD:R_0603_1608Metric | R4, R7, R11, R12, R13, R14, R15, R16, R18, R22, R24, R27, R31, R33 |
| 13 | 1uF,100V | Capacitor_SMD:C_1206_3216Metric | C9, C37, C39, C40, C43, C44, C49, C50, C51, C53, C54, C55, C56 |
| 12 | 4k7 | Resistor_SMD:R_0603_1608Metric | R6, R8, R9, R10, R39, R40, R41, R401, R402, R403, R404, R405 |
| 10 | 4.7nF | Capacitor_SMD:C_0603_1608Metric | C4, C5, C6, C7, C21, C34, C36, C501, C502, C503 |
| 7 | 39k | Resistor_SMD:R_0603_1608Metric | R3, R23, R26, R30, R32, R36, R46 |
| 6 | 100R | Resistor_SMD:R_0603_1608Metric | R37, R38, R48, R49, R50, R51 |
| 6 | 4R7 | Resistor_SMD:R_0603_1608Metric | R28, R29, R34, R35, R42, R43 |
| 6 | BSC030N08NS5 | Package_TO_SOT_SMD:TDSON-8-1 | Q1, Q2, Q3, Q4, Q5, Q6 |
| 5 | M3 | MountingHole:MountingHole_3.2mm_M3_Pad | H1, H2, H3, H4, H5 |
| 4 | 10k | Resistor_SMD:R_0603_1608Metric | R2, R19, R20, R44 |
| 3 | 100uF,63V | Capacitor_SMD:CP_Elec_10x10.5 | C57, C58, C59 |
| 3 | 22pF | Capacitor_SMD:C_0603_1608Metric | C15, C19, C38 |
| 2 | 5m | Resistor_SMD:R_2512_6332Metric | R53, R54 |
| 1 | 12k | Resistor_SMD:R_0603_1608Metric | R17 |
| 1 | 220k | Resistor_SMD:R_0603_1608Metric | R21 |
| 1 | 22u | Inductor_SMD:L_7.3x7.3_H4.5 | L1 |
| 1 | 40V_IN | TerminalBlock:TerminalBlock_bornier-2_P5.08mm | J3 |
| 1 | 470µF | Capacitor_SMD:CP_Elec_10x10.5 | C33 |
| 1 | 5V_OUT | TerminalBlock:TerminalBlock_bornier-2_P5.08mm | J2 |
| 1 | 8MHz | Crystal:Crystal_SMD_5032-2Pin_5.0x3.2mm | Y1 |
| 1 | BRAKE | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | P12 |
| 1 | BUTTONS | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | P13 |
| 1 | DRV8302 | Package_SO:HTSSOP-56-1EP_6.1x14mm_P0.5mm_EP3.61x6.35mm | U3 |
| 1 | EXTENSION | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | P14 |
| 1 | GREEN | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | HALL/Encoder | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | P1 |
| 1 | LED | LED_SMD:LED_0603_1608Metric | D3 |
| 1 | LSM6DS3 | LSM6DS3:LSM6DS3 | U4 |
| 1 | MICROSD | Connector_Card:microSD_HC_Molex_104031-0811 | U5 |
| 1 | Motor | TerminalBlock:TerminalBlock_bornier-3_P5.08mm | J1 |
| 1 | N/A | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | NTC 10k | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | OLED | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | P11 |
| 1 | RED | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | SMAJ48 | Diode_SMD:D_SMA | D7 |
| 1 | SMAJ5 | Diode_SMD:D_SMA | D5 |
| 1 | STM32F40X_LQFP64 | Package_QFP:LQFP-64_10x10mm_P0.5mm | U1 |
| 1 | SWD | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | P2 |
| 1 | Schottky | Diode_SMD:D_SMA | D4 |
| 1 | USB_C_Receptacle_USB2.0 | Connector_USB:USB_C_Receptacle_XKB_U262-16XN-4BVC11 | J401 |
| 1 | XC6206PxxxMR | Package_TO_SOT_SMD:SOT-23-3 | U6 |
Similar boards
- 4 layers90 × 70 mm

- 6 layers46 × 46 mm

- 6 layers

- 4 layers99.5 × 69 mm

Pump controller reva
UWARG/pump-controller-hardware
Hardware for Competition 2026 Water Pump Controller on Project Valkyrie
244 parts - 4 layers56.3 × 39.7 mm

FOC PowerDRV8323
totaldesaster/SimpleFOC-Serial-Driver
Advanced dual BLDC driver based on the RP2350 and DRV8323S ICs, designed to be controlled from a trajectory controller over RS-485, RS-422 or TTL UART. Features a compact high power design with two stacked PCBs.
34 parts1GPL-3.0 - 6 layers56.6 × 33.7 mm

Battery
86kkd/millionBoard
Amazing 500million sensor enetric skateboard use body center of gravity to control !!!
143 parts - 2 layers81.4 × 63.5 mm

Bbesc kiCad
jakeread/tesc
in-progress motor controller, towards accessible closed-loop control
82 parts16 - 4 layers186.9 × 129.8 mm

BLDC 4
ansh1113/e-bike-conversion-kit
A 4-layer PCB-based e-bike conversion kit featuring an STM32-based VESC ESC, power management circuits, wireless throttle, GSM, GPS, and more.
179 parts1
Questions
How big is the BLDC 4 PCB?
It measures 77 × 30 mm and has 4 copper layers, 1.6 mm thick.
What parts does the BLDC 4 use?
149 parts, built around the DRV8302, LSM6DS3, BSC030N08NS5 and SMAJ48. 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 BLDC 4 KiCad files?
From the PetteriAimonen/ebike-controller-pcb-compact repository on GitHub, at the commit this page was made from: the board is design/BLDC_4.kicad_pcb and its schematic design/BLDC_4.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the BLDC 4 design in my own project?
Its repository states no licence, so its author keeps all rights: ask PetteriAimonen before reusing the design.