Skip to the content
4 layers109.5 × 58.5 mmBattleBot, the printed circuit board in 3D

Building a beater-bar BattleBot

Size
109.5 × 58.5 mm
Copper layers
4
Thickness
1.6 mm
Parts
20
Nets
70
Pads
124
Tracks, vias
240, 49
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
11 Jun 2026
Updated
29 Jun 2026

Overview

BattleBot is an open-source printed circuit board by CBStonesifer, from the CBStonesifer/beaterbar_battlebot repository on GitHub, published under the MIT licence. It is a 4-layer board of 109.5 × 58.5 mm with 20 parts on 70 nets, routed with 240 tracks and 49 vias.

README

README.md

Beater-Bar BattleBot

A 3-pound (beetleweight) combat robot designed and built across the full hardware stack: mechanical CAD, PCB layout, and embedded firmware. The goal was a reproducible end-to-end build process — from CAD model to fabricated board to driving firmware — rather than peak performance. V2 will optimize for weight and combat performance.

A full reflection on the build is on Substack: Earning Three Minutes in the Ring

Skills demonstrated: Fusion 360 / FDM prototyping · KiCad schematic + layout · custom footprint creation · Gerber fabrication output · ESP32 embedded C · RC PWM decode · LEDC motor PWM · skid-steer mixing


Repo Structure

text
cad/          — 3D-printable chassis, wheels, and weapon (STL + 3MF)
pcb/          — KiCad schematic, layout, custom footprints, and gerbers
firmware/     — Arduino sketch for ESP32 (RC decode + motor mixing)

Design Decisions

  • Beater bar weapon — a relatively simple and proven design with high impact potential in the arena. The main weakness is being flipped; a lower profile in V2 addresses this directly.
  • Unified motor driver (DRV8833) — the same driver module is used for all three motors (left drive, right drive, weapon). Simplifies the BOM and firmware; the weapon motor runs off its own dedicated DRV8833 instance.
  • Skid-steer drivetrain — keeps mechanical complexity low while maintaining full mobility. No steering linkage, no Ackermann geometry, just two independently driven wheels.
  • Belt-driven weapon — the GT2 20T/60T pulley ratio amplifies the motor's output speed to spin the beater bar faster than a direct-drive setup would allow.
  • Unitary printed body — a single-piece chassis provides structural strength without mechanical interlocks between parts. Drive and weapon geometry were validated as separate prints first, then merged once the layout was confirmed.

Bill of Materials

#ComponentPartQtySpecsLink
1MCUESP32 dev board1Dual-core 32-bit, 240 MHz, 3.3V, WiFi + BTAmazon
2Motor driverDRV883331.5 A continuous, 2 A peakAmazon
3Buck regulatorLM259613–40V in, 1.5–35V adj outAmazon
4Battery2S LiPo17.4V, 2000mAh, T-plugAmazon
5RC transmitter + receiver—1 setPWM out, 2-channel minimumAmazon
6Drive motors390 brushed26–12V, 6,300 RPM @ 12V, 1A no-load, 2.3mm shaftAmazon
7Weapon motor550 brushed, 55T17.4V (2S), 36mm dia, 3.17mm shaftAmazon
8Weapon belt driveGT2 pulley + belt1 set20T / 60T, 8mm bore, 200mm beltAmazon
9ConnectorsJST-XH 3-pin10 pairs2.54mm pitch, 26AWG, 200mmAmazon
10Print filamentPLA-CF 1.75mm1 spool1kg, carbon-fiber reinforcedAmazon

CAD

Tool: Fusion 360 → FDM (PLA-CF)
All parts: cad/ — available as both .stl and .3mf

FileDescription
chassis.stl / .3mfUnitary chassis: electronics bay, drive motor mounts, weapon mount
drive_wheel.stl / .3mfDrive wheels (print ×2)
weapon_impactor.stl / .3mfBeater-bar weapon impactor

Drive and weapon subsystems were first validated as separate prints, then consolidated into a single chassis once geometry was confirmed. Total bot target: ≤ 3 lb; drive motors are the dominant mass — body is designed to be as light as possible.

Fusion 360 chassis renderAssembled Mark 1
Fusion 360 render — chassisMark 1 assembled — PCB and drive motor installed

ECAD

Tool: KiCad 7
Fabrication output: pcb/gerbers/battlebot_gerbers_v1.zip — ready to send to any fab house

Files

FilePurpose
pcb/BattleBot.kicad_schFull schematic
pcb/BattleBot.kicad_pcbBoard layout
pcb/BattleBot-parts.kicad_symCustom KiCad symbol library
pcb/BattleBot.pretty/Custom footprint library (6 footprints)
pcb/gerbers/Gerber + drill files

Power Architecture

text
LiPo ──→ LM2596 (buck) ──→ 5V ──→ ESP32-WROVER-E
LiPo ──→ DRV8833 (×3) ──→ Drive motors + weapon motor (direct VBAT)

GPIO Pin Assignments

SignalESP32 GPIO
RC Steering (PWM in)35
RC Throttle (PWM in)34
RC Weapon toggle (PWM in)18
Left motor IN125
Left motor IN226
Right motor IN127
Right motor IN214
Weapon motor IN12
Weapon motor IN215
UART0 debug115200 baud

Custom Footprints

All footprints in pcb/BattleBot.pretty/ were drawn from datasheets:

FootprintFile
ESP32-WROVER-EESP32-WROVER-E.kicad_mod
DRV8833DRV8833.kicad_mod
LM2596LM2596.kicad_mod
RC ReceiverReceiver.kicad_mod
3-pin connector3Pin-Connector.kicad_mod
Test point padTestpoint-Pad.kicad_mod

KiCad schematic Schematic — BattleBot.kicad_sch

KiCad PCB layoutPCB 3D render
Layout — BattleBot.kicad_pcbKiCad 3D render

Populated PCB Fabricated and populated board


Firmware

Toolchain: Arduino IDE + ESP32 board support package
Board target: ESP32 Wrover Module
Sketch: firmware/signal_driver/signal_driver.ino

Control Loop

text
loop()
  ├── pulseIn GPIO 35/34/18  — read steering, throttle, weapon (25ms timeout each)
  ├── failsafe check         — any invalid/missing pulse → stopAll() and skip frame
  ├── steeringFromPulse()    — map to [-100, 100] → deadband
  ├── throttleFromPulse()    — map to [-100, 100] → deadband
  ├── mixAndDrive()          — skid-steer mix → setMotor() → LEDC PWM duty
  └── setWeapon()            — full speed on WEAPON_IN1 when pulse > 1500 µs

Failsafe: pulseIn returns 0 on timeout, and a valid RC frame sits ~1000–2000 µs. Any pulse outside the 900–2100 µs band is treated as link loss — all drive and weapon output is cut for that loop. Without this guard a lost signal maps to full reverse, so the bot drives off on its own when the transmitter drops.

Motor Mixing

  • Straight: left = right = throttle
  • Driving turn: inner wheel = throttle × (TURN_MIX_RATIO / 100)
  • Spin-in-place: left = +steering, right = −steering

Calibration Constants

ConstantV1 ValuePurpose
STEERING_MIN965 µsMin receiver pulse
STEERING_MAX1882 µsMax receiver pulse
THROTTLE_MIN1055 µsMin throttle pulse
THROTTLE_IDLE1565 µsNeutral position
THROTTLE_MAX2000 µsMax throttle pulse
DEADBAND5Noise rejection around neutral
TURN_MIX_RATIO50Inner-wheel scaling (0–100)
PWM_FREQ20,000 HzLEDC motor PWM frequency
PWM_RES8-bitDuty cycle range (0–255)

These constants are radio-specific. Re-measure pulse widths for your transmitter before first drive.

Flash Instructions

  1. Install ESP32 board support in Arduino IDE
  2. Open firmware/signal_driver/signal_driver.ino
  3. Select ESP32 Wrover Module, set the correct COM port
  4. Update calibration constants for your RC radio
  5. Upload

Testing & Validation

The bot was driven under full battery power with all systems operating independently:

  • Drive — successfully accelerated, turned, and reversed at varying speeds under RC control.
  • Weapon — spun up to full speed and was toggled on and off from the transmitter.
  • Carpet performance — struggled on carpet. The wheels lacked grip, and the design relies on the body sliding along the ground to stay low against opponents — which doesn't work well on high-friction surfaces.
  • Battery connector — the 3-pin plugs do not physically prevent reverse polarity insertion. Connecting the battery backwards is easy to do and will damage the board.
Fried ESP32 from reverse polarity
ESP32 after a flipping power contacts

Known Issues & Further Improvements (V2)

  • Chassis Side Overhangs — the overhangs on the side were quickly added to thicken the width of the walls to strengthen the bot, and for style. They provide a grip for another bot to easily flip the vehicle. The next design should minimize the gap between the side edges and the ground.
  • Hard Power Cut-Off — as per NHRL rules, the bot requires a quick physical power disconnect to disable movement and weapon systems, not just a code deactivation.
  • Reverse-polarity protection — V1 fried a board because the 3-pin power plug can be inserted backwards. V2 should add a series Schottky / P-channel MOSFET ideal-diode at the battery input and a keyed/slotted connector so the battery physically can't seat the wrong way. The board itself is cheap and easily reproducible from the gerbers, so losing one to this wasn't costly — but it's a trivial thing to design out.
  • Undersized motor drivers — the DRV8833 is rated 1.5 A continuous / 2 A peak, but the 390 drive motors stall around 5–7 A and the 550 weapon motor well above that. Under real load the part is pushed past its peak, where it current-limits or fails. V2 should size the H-bridge to stall current, not no-load current, and add a firmware soft-start ramp so the weapon spins up gradually instead of slamming to full duty and drawing a large inrush spike. The broader lesson: parts that work together aren't necessarily matched on performance — each one needs headroom for the worst case the system will actually see.
  • Hardened weapon impactor — machine or print in PETG/nylon/polycarbonate; evaluate a metal impactor for the beater bar.
  • Weight optimization — the current design is 2.76 lbs, which leaves room to upgrade/add additional parts (i.e. the weapon material should be metal).
  • Optimize print settings — a final print with more granular layer heights and higher infill will strengthen the hull.
  • A Roof — the top of the bot needs a solid roof that could also act as a battery retainer. Batteries are currently loose within the chassis.
  • Sweet Paint Job — the bot needs some decals and a layer of spray paint to make it look more threatening.
  • Wheel Grips and Covers — the wheels are exposed and use electrical tape for grip. They must be better protected, as immobility is an immediate loss in the arena. A set of proper tires would help with mobility, and the front shovel can catch on uneven surfaces.
  • Beater Bar orientation is reversed — the edge of the beater bar faces inward, counter to the direction the bar spins. Opposing robots are hit with the blunt edge of the weapon rather than the sharp, scraping side that should brush close to the ground.
  • Blocking RC read (pulseIn) — the firmware reads each RC channel sequentially using pulseIn(), which blocks for up to ~25ms per channel, so a full loop can take ~75ms. Signal loss is now handled (an invalid/missing pulse disarms all motors), but the read is still blocking. V2 should use hardware interrupts or RTOS tasks to read channels concurrently.

Tools Required

  • 3D printer — Bambu A1 (or equivalent FDM printer capable of PLA-CF)
  • Soldering iron — flux is mandatory; makes the joints significantly cleaner and easier
  • Wire stripper
  • Extra header pins
  • Assorted screws and a screwdriver

Status

VersionStatusFocus
V1CompleteCost-optimized, full-stack process established
V2PlannedWeight/performance, hardened materials, active fault handling

Parts

20
QtyValueFootprintReferences
8Motor Driver Test Point 1BattleBot:Testpoint-PadMD_TP1, MD_TP2, MD_TP3, MD_TP4, MD_TP5, MD_TP6, MD_TP7, MD_TP8
3~BattleBot:DRV8833MotorDriver1, MotorDriver2, WeaponDriver1
1LOGOLOGOG***
1Motor1BattleBot:3Pin-ConnectorJ2
1Motor2BattleBot:3Pin-ConnectorJ3
1VccBattleBot:3Pin-ConnectorB2
1WeaponMotorBattleBot:3Pin-ConnectorJ1
1~BattleBot:ESP32-WROVER-EMicroController1
1~BattleBot:LM2596Buck1
1~BattleBot:3Pin-ConnectorB1
1~BattleBot:ReceiverReceiver1

Similar boards

  • 4 layers44.8 × 55.9 mmMain project, the printed circuit board in 3D

    Main project

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    20 parts915
  • 4 layers22.9 × 50.8 mmLg hvac esp32, the printed circuit board in 3D

    Lg hvac esp32

    JanM321/esphome-lg-controller

    Wired controller for LG HVAC units using ESPHome and ESP32

    20 parts2920BSD
  • 4 layers23.3 × 21.6 mmSiw, the printed circuit board in 3D

    Siw

    loxodes/vna

    Under development open hardware microwave vector network analyzer

    20 parts205
  • 4 layers21.5 × 42 mmIndicator board, the printed circuit board in 3D

    Indicator board

    RespiraWorks/Ventilator

    Fully-featured ICU ventilator design, optimized for manufacture using commonly available components and free to license.

    20 parts169Apache-2.0
  • 4 layers71.8 × 56.5 mmArduino 387SX V2, the printed circuit board in 3D

    Arduino 387SX V2

    dbalsom/arduinoX86

    An interface between an Arduino Due or Arduino GIGA and 8088, 8086, V20, V30, 186 or 286 CPUs

    20 parts114
  • 4 layers58.3 × 54 mmPSA Harness, the printed circuit board in 3D

    PSA Harness

    lukasloetkolben/OpenpilotHardware

    Welcome to the Openpilot Hardware Collection!

    20 parts95MIT
  • 4 layers20.5 × 10.5 mmADC B v1, the printed circuit board in 3D

    ADC B v1

    macaba/TheManhattanToolkit

    Input R - RNCF0603DTE10R0 (10 ohm) Input CM C - CGA3E1C0G2A472J080AC (4.7nF) Input DM C - DNP

    20 parts94MIT

Questions

How big is the BattleBot PCB?

It measures 109.5 × 58.5 mm and has 4 copper layers, 1.6 mm thick.

What parts does the BattleBot use?

20 parts. 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 BattleBot KiCad files?

From the CBStonesifer/beaterbar_battlebot repository on GitHub, at the commit this page was made from: the board is pcb/BattleBot.kicad_pcb and its schematic pcb/BattleBot.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the BattleBot design in my own project?

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).