Skip to the content
4 layers175.2 × 64.7 mmMini sumo, the printed circuit board in 3D

Open source Mini sumo pcb

Size
175.2 × 64.7 mm
Copper layers
4
Thickness
1.6 mm
Parts
96
Nets
75
Pads
323
Tracks, vias
492, 330
Pours
127
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
20 Aug 2026
Updated
23 Aug 2026

Overview

Mini sumo is an open-source printed circuit board by Dunbarin-O, from the Dunbarin-O/Esp-Sumo repository on GitHub. It is a 4-layer board of 175.2 × 64.7 mm with 96 parts on 75 nets, routed with 492 tracks and 330 vias.

It is built around the ESP32-S3-WROOM-1-N8, DRV8870DDA and TPS54202HDDCR, with the AP2112K-3.3, USBLC6-2SC6 and AO3401A among its other parts. Its parts include 23 resistors, 22 capacitors, 14 connectors, 8 ICs and 8 diodes. It belongs with the ESP32 boards of this library.

Main components

7

README

README.md

Esp-Sumo

  • PCB/ – Native KiCad design files:
    • Mini_sumo.kicad_sch – Schematic capture files.
    • Mini_sumo.kicad_pcb – PCB trace routing and board layout.
  • Hardware/ – Assembly and manufacturing outputs:
    • Mini_sumo.zip – Production Gerber & drill files for board fabrication.
    • combined_bom.csv – Bill of Materials listing all active and passive components.
    • positions.csv – Pick-and-Place (CPL / Centroid) file for automated SMT assembly. Project is in its early stages

High-performance motor boards are usually expensive or made for just one job. This project is a low-cost, all-in-one board that lets you build precise small robots without needing extra shields or breakout boards.

Applications:

Mini Sumo Robots: Integrated motor control and gyro feedback.

Inverted Pendulum / Self-Balancing: Direct IMU integration for low-latency loop control and pitch stabilization.

Heading-Corrected Rovers: Closed-loop yaw monitoring for straight-line differential driving and precise turn angles.

V1 Key Features

  • Dual High-Current Motor Drivers: Two TI DRV8870 ICs providing independent PWM speed and direction control, supporting up to 3.6 A peak output per channel.
  • Onboard Motion Sensing: MPU-6050 6-axis gyroscope and accelerometer connected via I2C for pitch, roll, and yaw feedback.
  • Integrated Diagnostic Display Header: Dedicated 4-pin I2C header positioned for direct SSD1306 OLED screens (128x64 or 128x32).
  • User Input Controls: 3 onboard tactical pushbuttons mapped to ESP32 GPIOs for mode selection, calibration, and menu navigation.
  • Built-in Servo Mount & Header: Dedicated 3-pin PWM servo header (VCC, GND, Signal) with mounting holes integrated directly into the PCB outline (ideal for mini sumo flippers or sensor sweepers).
  • Optimized Power Architecture: Designed for 2S (7.4V) LiPo input with onboard voltage regulation to safely power the ESP32, OLED, and logic components.
  • Expansion I/O: Exposed GPIO headers for IR edge sensors, line detectors, or custom sensors.
  • 100% Open-Source Hardware: Full KiCad project files, schematics, PCB layouts, BOM, and manufacturing outputs (Gerbers/CPL) included.
Top+null+SMT026081362981
ESP32-S3 GPIOSchematic netActually connected to
GPIO0I00Boot button SW3 + 10k pull-up
GPIO1D1Right IR sensor J5
GPIO2D2Left IR sensor J6
GPIO3D3SW4 button
GPIO4D4Left edge sensor J8
GPIO5D5Right edge sensor J10
GPIO6D6SW5 button
GPIO7D7SW6 button
GPIO8D8Left motor driver IN2
GPIO9D9Left motor driver IN1
GPIO10D10J17 breakout pin 1
GPIO11D11Gyro SCL
GPIO12D12Gyro SDA
GPIO13D14Right motor driver IN2
GPIO14D13Right motor driver IN1
GPIO15D15J15 / right motor?
GPIO16D16J11 servo?
GPIO17D17J17 software uvlo
GPIO18D18Servo signal
GPIO19USB_D−USB D−
GPIO20USB_D+USB D+
GPIO21—Unused

Engineering Design Process & Iterations

Power Design Choice: Dual Buck Converters vs. Buck + LDO

First Attempt: Two-Stage Buck Regulation

My initial plan was to use two buck converters in series to drop the 7.4V (2S LiPo) battery voltage down to 5V, and then down to 3.3V for the system ICs to maximize energy efficiency. Screenshot 2026-07-03 165300

The Problem: Each buck converter requires its own dedicated supporting passives (inductors, filter capacitors, and feedback resistors). Running two switching stages took up too much PCB footprint, added significant routing complexity, and increased the overall Bill of Materials (BOM) cost.


Final Solution: Single Buck + 3.3V LDO Regulator

I simplified the power tree by keeping a single buck converter for the 5V rail and replacing the second buck stage with a straightforward 3.3V Low-Dropout (LDO) linear regulator. image image

Peer Design Review: Power & Protection Enhancements

Following the V1 layout release, a community hardware review identified several critical power delivery and protection improvements to increase reliability:

1. Battery Input & System Protection

  • Circuit Protection: The design was solid, but it lacked input safety. Adding an in-line fuse and a reverse-polarity protection circuit (e.g., a P-channel MOSFET or ideal diode) on the 2S LiPo rail is essential to prevent permanent board failure from accidental battery misplugs during quick pit stops.
  • Input Bulk Decoupling: The 10 µF input capacitor ($C_{\text{IN}1}$) on the buck regulator followed basic bench-supply reference designs. However, long battery wire harnesses introduce parasitic inductance. Upgrading $C_{\text{IN}1}$ to a 47 µF ceramic + 10 µF ceramic paired with a 100 µF electrolytic lowers High-Frequency ESR and prevents sudden motor current draw from sagging the shared battery rail and browning out the ESP32.

2. Switching Regulator Duty Cycle & Stability

  • At 7.4 V nominal input, the 5 V buck converter operates near a 0.67 duty cycle (higher as the LiPo drains). Because the regulator uses peak current mode with fixed internal compensation, switch-node signal integrity must be verified under full load with an oscilloscope to ensure stable loop performance across the entire discharge curve.

3. ESD & Port Safety

  • Added dedicated ESD protection IC (USBLC6-2SC6) on the USB-C $V_{\text{BUS}}$ and $D+/D-$ lines to guard the ESP32 against static discharge during flashing
  • image

Power Isolation: OR-ing Diode Selection

To prevent backfeeding power between the USB-C 5V supply and the onboard 5V buck converter when both are plugged in simultaneously, I implemented a simple diode OR-ing power path combining the 2 into 5V Safe and feeding it into ldo.

  • Why Schottky over Silicon Diodes: Standard silicon rectifiers cause a ~0.7V drop, which would reduce the 5.0V USB rail down to 4.3V—dangerously close to the ESP32's minimum operating threshold and brownout limit.
  • Low Forward Voltage ($V_F$): Using Schottky diodes keeps the voltage drop under ~0.3V, maintaining a stable supply rail (~4.7V+) for logic components and sensors while safely preventing reverse current flow into your computer's USB port or the buck regulator since a lipo battery is used trying to charge over usb withour any charging circuits could be dangerous. image

Front-End Power Protection Circuit

  • P-Channel Reverse Polarity Protection (AO3401A): Uses a low-$R_{DS(on)}$ P-FET (Q1) to block reverse voltage if the battery is plugged in backward, with a 10V Zener diode (D1) protecting $V_{GS}$ against voltage transients.
  • Overcurrent Safety (F1): In-line fuse provides hard fault protection against high-current shorts.
  • Active Under-Voltage Monitoring (TPS3702): Samples battery rail via resistor divider (R21/R22) and outputs a low-battery alert signal (D17) to the ESP32 to prevent over-discharging 2S LiPo cells.
  • image

Picking a driver IC : DRV8220 vs. DRV8870

When designing the motor stage, I needed driver chips capable of handling high startup currents and heavy mechanical loads without overheating or shutting down mid-operation.

First Attempt: Dual DRV8220 (Compact, but Limited)

image

My initial plan was to use two compact DRV8220 drivers in the DRL package, but bench analysis revealed major bottlenecks:

  • Thermal Overheating: High internal resistance ($R_{DS(on)} \approx 1,\Omega$) and the lack of a thermal pad ($152,^{\circ}\text{C/W}$ thermal resistance) caused severe heat buildup, limiting continuous current to $< 0.9\text{A}$.
  • Hard Shutdowns: The $1.76\text{A}$ overcurrent protection (OCP) cuts power entirely during high loads or stalls, stopping the robot mid-operation instead of sustaining torque.
  • Difficult Hand-Soldering: The tiny leadless DRL package has contacts tucked under the chip, making it extremely difficult to solder, inspect, or rework with a standard soldering iron without bridging.
  • No Built-in Current Sensing: Lacks a dedicated ISEN pin, preventing the use of external sense resistors to measure or actively control motor current.
  • Startup Voltage Glitches & Efficiency Loss: Logic inputs easily float during microcontroller boot, causing motor twitches. High internal resistance also wastes battery voltage as heat before it reaches the motors.

Final Solution: Dual DRV8870 (High Power & Current Chopping)

image

I upgraded to two DRV8870 drivers featuring an exposed PowerPAD package and external sense resistors:

  • Hand-Soldering Friendly: The larger HSOP-8 package with exposed leads very important for reliable hand soldering(ended up having it assembled by jcl).

  • Superior Thermals: Lower internal resistance ($450,\text{m}\Omega$) paired with a copper thermal pad handles up to $3.6\text{A}$ peak current safely.

  • image
  • Smart Current Chopping ($I_{\text{TRIP}}$): Instead of shutting down completely during a stall, the driver uses parallel sense resistors ($R17 - R20$) totaling $0.2,\Omega$ to limit current automatically: $$I_{\text{TRIP}} = \frac{V_{\text{REF}}}{10 \times R_{\text{ISEN}}} = \frac{3.3\text{V}}{10 \times 0.2,\Omega} = 1.65\text{A}$$ When pushing heavy loads, the chip acts like an automatic safety valve "chopping" current to maintain pushing force without tripping power failures or browning out the battery rail.

  • Brush Noise Suppression: Added $0.1,\mu\text{F}$ ceramic capacitors ($C2, C5$) directly across the motor terminals to absorb high-frequency electrical noise before it can interfere with the I2C gyroscope or IR floor sensors.


ESP32-S3 Core

i chose the s3 because of its native usb to uart and it simplicity to set up and get working keeping parts cost low image

This section covers the core ESP32-S3 microcontroller, its power filtering, boot/reset logic, user UI, and external expansion headers.

Core Microcontroller (ESP32-S3-WROOM-1)

  • Brain of the Robot: Handles sensor polling, motor control loops, and peripheral interfaces.
  • Power Decoupling ($C14, C15$): Placed $0.1,\mu\text{F}$ and $22,\mu\text{F}$ capacitors close to the $+3.3\text{V}$ power pin (Pin 2) to filter out high-frequency noise and prevent voltage dips when the chip spikes in power draw during wireless tasks or bootup.

Boot Logic & System Buttons

  • Reset Circuit (SW2, EN): Pressing SW2 pulls the EN pin to ground to manually restart the microcontroller.
    • Debouncing & RC Delay ($R9, C9, C13, R13$): An RC circuit ($10,\text{k}\Omega$ pull-up + $1,\mu\text{F}$ cap) keeps EN stable at $+3.3\text{V}$ and prevents electrical noise from causing random micro-resets.
  • Boot Button (SW3, IO0): Pressing SW3 grounds IO0 on startup to force the ESP32 into USB flashing/bootloader mode. A $10,\text{k}\Omega$ pull-up resistor ($R14$) ensures IO0 stays pulled HIGH during normal operation so the chip boots standard code.

User UI & Peripherals

  • User Pushbuttons (SW4, SW5, SW6): Standard tactile buttons tied to D3, D6, and D7. When pressed, they ground the input line, giving the user programmable controls (e.g., selecting robot fight modes or starting a match).
  • Status LED (D6, $R15$): A debug LED connected to $+3.3\text{V}$ via a $1,\text{k}\Omega$ current-limiting resistor ($R15$) for visual feedback.

Breakout & Expansion Headers

  • Power Breakouts (J7, J9): 4-pin headers giving easy access to GND and $+3.3\text{V}$ rails for external modules, logic analyzers, or multimeters during bench testing.
  • OLED / Sensor Connector (J17): 4-pin connector routing $+3.3\text{V}$, GND, D10, and D17 for plugging in external displays or additional sensor modules.
  • Servo Connector (J11): Dedicated 3-pin header routing $+5\text{V}$, GND, and signal line D18 to drive a servo motor directly.

Final Schematic

Mini_sumo (7)

Board in Hand: Lessons & Physical Hardware Issues

Testing the physical V1 board revealed several layout footprint mismatches and routing constraints that required manual rework:

  • Header Pin Size Mismatches: The physical pin header footprints for GND, 3.3V, breakout points, and the OLED screen connector were sized incorrectly compared to the actual component pitch/pin sizes.
  • OLED Screen Rework: Because of the pin size mismatch at header J17, the display could not be mounted directly to the PCB. As a temporary workaround, jumper wires had to be manually soldered to interface the screen with the board.
  • Large Board Footprint: Things HUGE!
  • Next Version Improvements: V2 will utilize double-sided SMT component placement to shrink the board footprint significantly, alongside corrected pin header footprints to eliminate wire jumpers. ##Testing & Peripheral Hardware Validation

For the buttons i use micropython and thonny the arduiono ide would work just fine Thonny.

Interactive Reflex Game

An interactive MicroPython script that measures reaction times in milliseconds using time.ticks_ms() to stress-test button responsiveness under dynamic polling loop conditions.

python
#MADE FOR MICROPYTHON 
Python
import time
import random
from machine import Pin

# Initialize switches with internal pull-ups (Active LOW)
switches = {
    "SW4 (IO3)": Pin(3, Pin.IN, Pin.PULL_UP),
    "SW5 (IO6)": Pin(6, Pin.IN, Pin.PULL_UP),
    "SW6 (IO7)": Pin(7, Pin.IN, Pin.PULL_UP),
}

print("=" * 40)
print("   MINI-SUMO BUTTON REFLEX CHALLENGE")
print("=" * 40)
print("Instructions: Press the requested button as fast as possible when prompted!\n")

time.sleep(2)

score = 0
total_rounds = 5

for r in range(1, total_rounds + 1):

Servo Test Script

This script verifies manual servo position control using pushbuttons connected to GPIO 3 (SW4), GPIO 6 (SW5), and GPIO 7 (SW6). It controls the servo signal line on GPIO 18.

  • Note: i Had to bypass a tight spot on the board by jumping signals directly with jumper wires during testing.
python
import time
from machine import PWM, Pin

# Servo setup on GPIO 18 (D18)
servo_pin = Pin(18, Pin.OUT)
servo_pwm = PWM(servo_pin)
servo_pwm.freq(50)

# Switches configured with internal pull-ups (Active LOW)
sw4 = Pin(3, Pin.IN, Pin.PULL_UP)  # SW4 -> 0 deg
sw5 = Pin(6, Pin.IN, Pin.PULL_UP)  # SW5 -> 90 deg
sw6 = Pin(7, Pin.IN, Pin.PULL_UP)  # SW6 -> 180 deg


def set_angle(angle):
    angle = max(0, min(180, angle))
    # Map 0-180 deg to 16-bit PWM duty (1638 = 0.5ms, 8192 = 2.5ms at 50Hz)
    duty = int(1638 + (angle / 180.0) * (8192 - 1638))
    servo_pwm.duty_u16(duty)


# Move to center position on boot
set_angle(90)

Parts

96
QtyValueFootprintReferences
70.1 uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC2, C5, C9, C14, C18, C20, C23
6Conn_01x01_PinConnector_Wire:SolderWirePad_1x01_SMD_5x10mmJ1, J2, J13, J14, J15, J16
6TestPointTestPoint:TestPoint_Pad_1.5x1.5mmGND, TP1, TP3, TP4, TP5, TP6
51kResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR4, R10, R11, R15, R16
5LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4, D5, D6, D7, ON1
40.4Resistor_SMD:R_1206_3216MetricR17, R18, R19, R20
4SW_PushButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKSW3, SW4, SW5, SW6
30.1uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC6, C16, C17
310kResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR13, R14, R21
322uFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC8, C11, C15
21 uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC12, C13
2100 uFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC3, C22
247 uFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC21, C24
2470Resistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR9, R12
25.1KResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR2, R3
2DRV8870DDAPackage_SO:Texas_HTSOP-8-1EP_3.9x4.9mm_P1.27mm_EP2.95x4.9mm_Mask2.4x3.1mm_ThermalViasU7, U8
2D_SchottkyDiode_SMD:D_SMA-SMB_Universal_HandsolderingD2, D3
110 uFCapacitor_SMD:C_1206_3216MetricC4
1100KOhmsResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR7
1100kResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR1
110KResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR23
113.7KOhmsResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR8
11uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC10
1250kResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR5
130kResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR22
133uHInductor_SMD:L_Bourns_SRP7028A_7.3x6.6mmL1
13V3 breakoutConnector_PinHeader_1.27mm:PinHeader_1x03_P1.27mm_VerticalJ9
156KResistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR6
168pFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC7
1AO3401APackage_TO_SOT_SMD:SOT-23Q1
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U5
1BZX84C10Package_TO_SOT_SMD:SOT-23-3D1
1Conn_01x04_SocketConnector_PinHeader_1.27mm:PinHeader_1x04_P1.27mm_VerticalJ17
1ENButton_Switch_SMD:SW_Push_SPST_NO_Alps_SKRKSW2
1ESP32-S3-WROOM-1RF_Module:ESP32-S3-WROOM-1U6
1Edge LConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ8
1Edge RConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ10
1FuseFuse:Fuse_1812_4532Metric_Pad1.30x3.40mm_HandSolderF1
1LOGOLOGOG***
1OC09600mini sumo:MODULE_OC09600U4
1TPS3702Package_TO_SOT_SMD:SOT-23-6U3
1TPS54202HDDCRmini sumo:IC1IC1
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U2
1USB_C_Receptacle_USB2.0_14PConnector_USB:USB_C_Receptacle_HCTL_HC-TYPE-C-16P-01AJ3
1gnd break outConnector_PinHeader_1.27mm:PinHeader_1x03_P1.27mm_VerticalJ7
1l irConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ6
1on/offButton_Switch_THT:SW_Slide_SPDT_Angled_CK_OS102011MA1QSW1
1r irConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ5
1servoConnector_PinHeader_1.27mm:PinHeader_1x03_P1.27mm_VerticalSERVO

The 92 most common of 96 parts.

Similar boards

  • 4 layers50 × 50 mmGrow light, the printed circuit board in 3D

    Grow light

    GeoffreyKassis/led_grow_light

    USB-C PD grow light in two assemblies: an FR-4 controller (MAINBOARD/) and a one-layer aluminum LED panel (LEDBOARD/), joined by an 8-wire 2×4 IDC harness.

    73 parts
  • 4 layers62.5 × 44.5 mmEsp32s3-plant monitor, the printed circuit board in 3D

    Esp32s3-plant monitor

    MuffinByteLabs/esp32s3-plant-monitor

    Portfolio PCB: ESP32-S3 Wi-Fi plant monitor. 4-layer KiCad 10 design, fabricated and assembled at JLCPCB — schematic, reviews and the frozen manufacturing package all readable in-browser.

    70 parts3CERN-OHL-P-2.0
  • 4 layers63 × 80 mmCopperpilot retro handheld, the printed circuit board in 3D

    Copperpilot retro handheld

    CopperPilot/retro-handheld-copperpilot

    An ESP32-S3 game console on one 63 × 80 mm board. 2.4" TFT, 14 buttons, USB-C charging that keeps you playing, and a snap-fit case to print.

    74 parts1
  • 4 layers203.5 × 90 mmBDCMotorController, the printed circuit board in 3D

    BDCMotorController

    nunosousa/TelescopeMirrorTester

    This is an application intended to provide useful tools to perform Foucault or Wire testing on reflective telescope mirrors

    323 partsMIT
  • 4 layers80 × 72 mmConvertisseur DC DC, the printed circuit board in 3D

    Convertisseur DC DC

    SurquinMathieu/buck-boost-converter

    4-switch buck-boost DC/DC converter

    88 parts
  • 6 layers47.6 × 41.5 mmOLL.E fpv pcb, the printed circuit board in 3D

    OLL.E fpv pcb

    Tamim101/ardupilot-drone-pcb

    141 parts
  • 4 layers55.5 × 68.5 mmRov usb, the printed circuit board in 3D

    Rov usb

    samnadol/ROV_PCIe_USB_HUB

    up-to-16 port USB hub + PCIe host controller "hat" for Pi 5

    142 parts
  • 2 layers60.8 × 31 mmES3ink, the printed circuit board in 3D

    ES3ink

    dronecz/ES3ink

    This repo holds HW and SW (to be done) information for this board.

    84 parts3MIT

Questions

How big is the Mini sumo PCB?

It measures 175.2 × 64.7 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Mini sumo use?

96 parts, built around the ESP32-S3-WROOM-1-N8, DRV8870DDA, TPS54202HDDCR and AP2112K-3.3. 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 Mini sumo KiCad files?

From the Dunbarin-O/Esp-Sumo repository on GitHub, at the commit this page was made from: the board is PCB/Mini_sumo.kicad_pcb and its schematic PCB/Mini_sumo.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Mini sumo design in my own project?

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