
MESC brain board
owhite/balancing-robot-notes
A control theory and software development repo for a balancing robot.

A control theory and software development repo for a balancing robot.
MESC brain board is an open-source printed circuit board by owhite, from the owhite/balancing-robot-notes repository on GitHub, published under the MIT licence. It is a 4-layer board of 84.5 × 64 mm with 53 parts on 94 nets, routed with 361 tracks and 32 vias.
It is built around the ESP32-WROOM-32D and TL3342F160QG. Its parts include 10 connectors, 5 capacitors, 5 ICs, 3 switches and 1 transistor. It belongs with the robots and motor control boards and the ESP32 and NXP (LPC, Kinetis, i.MX RT) boards of this library.
A PCB and software development project for a balancing robot.
The goal is to use a hobby Electronic Speed Controller (one open source example, and this circuit for a brain board, a teensy 4.0, and an ESP-32, in combination with MESC firmware.
A separation of concerns is divided across these architectures:
This project would never happen without:
Ever wanted to change all the names of kicad files at once?
use this:
python3 replace_kicad_names.py VESC_brain_board MESC_brain_board[LINK]
| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 100nF | Capacitor_SMD:C_0603_1608Metric | DC_1, DC_2, DC_3, DC_4, DC_6 |
| 5 | 10k | Resistor_SMD:R_0603_1608Metric | 1k_1, 10k_1, 10k_4, 10k_5, 10k_8 |
| 3 | 10uF | Capacitor_SMD:C_0805_2012Metric | C25, C27, DC_5 |
| 3 | 20k | Resistor_SMD:R_0603_1608Metric | 20k_1, 20k_21, R20k_4 |
| 3 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J12, J13, J15 |
| 2 | 1k | Resistor_SMD:R_0603_1608Metric | 1k_21, 1k_22 |
| 2 | Conn_01x01 | Connector_Wire:SolderWire-2sqmm_1x01_D2mm_OD3.9mm | J24, J25 |
| 2 | Conn_01x01 | Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_Vertical | J22, J23 |
| 2 | TL3342F160QG | Button_Switch_SMD:SW_Push_SPST_NO_Alps_SKRK | S11, S12 |
| 1 | 100nF | Capacitor_SMD:C_0805_2012Metric | C21 |
| 1 | 120 | Resistor_SMD:R_0603_1608Metric | R_120 |
| 1 | 12_DCDC_5 | MP2_DFN_Custom_parts:12_DCDC_5 | U24 |
| 1 | 5k | Resistor_SMD:R_0603_1608Metric | 5k_2 |
| 1 | BLUE | LED_SMD:LED_0603_1608Metric | D_BLU2 |
| 1 | C_Polarized_Small_US | Capacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-A | C23 |
| 1 | Conn_01x04 | Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical | CAN1 |
| 1 | Conn_01x06 | Connector_JST:JST_PH_B6B-PH-K_1x06_P2.00mm_Vertical | MESC1 |
| 1 | Conn_01x07 | Connector_JST:JST_PH_B7B-PH-K_1x07_P2.00mm_Vertical | J21 |
| 1 | Conn_01x18 | Connector_PinSocket_2.54mm:my_PinSocket_3x07_P2.54mm_Vertical | J1 |
| 1 | ESP32-WROOM-32D | RF_Module:ESP32-WROOM-32D | U11 |
| 1 | LD1117S18TR_SOT223 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U21 |
| 1 | LED BLU | LED_SMD:LED_0603_1608Metric | D_BLU21 |
| 1 | LED GRN | LED_SMD:LED_0603_1608Metric | D_GRN1 |
| 1 | LED RED | LED_SMD:LED_0603_1608Metric | D_RED1 |
| 1 | SERIAL1 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J14 |
| 1 | SolderJumper_3_Open | Jumper:SolderJumper-3_P1.3mm_Open_Pad1.0x1.5mm | JP1 |
| 1 | Speaker | CDS-13138-SMT-TR:SPKR_CDS-13138-SMT-TR | LS1 |
| 1 | TJA1050T/CM,118 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U1 |
| 1 | TL3342F160QG | Button_Switch_SMD:SW_SPST_B3SL-1022P | S1 |
| 1 | Teensy4.0 | teensy:Teensy40 | U2 |
| 1 | my_BC337 | Package_TO_SOT_SMD:SOT-23 | Q1 |
The 49 most common of 53 parts.

owhite/balancing-robot-notes
A control theory and software development repo for a balancing robot.

owhite/balancing-robot-notes
A control theory and software development repo for a balancing robot.

owhite/balancing-robot-notes
A control theory and software development repo for a balancing robot.

owhite/balancing-robot-notes
A control theory and software development repo for a balancing robot.

owhite/balancing-robot-notes
A control theory and software development repo for a balancing robot.

owhite/balancing-robot-notes
A control theory and software development repo for a balancing robot.

owhite/balancing-robot-notes
A control theory and software development repo for a balancing robot.



open3doled/open-3d-oled
If running windows 11 or 10 with DPI scaling be sure to disable it as follows. 1) Right click properties on 3dplayer.exe in the 3DPlayer folder 2) Click on "Compatability" tab then click on the button at the bottom…


greghulette/Wireless_Communication_Board-WCB
Repository for the Wireless Commuincation Board (WCB)

tschak909/frob-modern
The Frob, An Apple II Atari 2600 Development System, re-made as an RP2354 based device.

SpinWearables/SpinWheelHardware
The hardware design files for the SpinWheel.

It measures 84.5 × 64 mm and has 4 copper layers, 1.6 mm thick.
53 parts, built around the ESP32-WROOM-32D and TL3342F160QG. 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.
From the owhite/balancing-robot-notes repository on GitHub, at the commit this page was made from: the board is PCBs/brainboardV1.2/MESC_brain_board.kicad_pcb and its schematic PCBs/ESC_caddyV1.0/ESC_caddyV1.0.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).