
Main project
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

Building a beater-bar BattleBot
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.
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
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)| # | Component | Part | Qty | Specs | Link |
|---|---|---|---|---|---|
| 1 | MCU | ESP32 dev board | 1 | Dual-core 32-bit, 240 MHz, 3.3V, WiFi + BT | Amazon |
| 2 | Motor driver | DRV8833 | 3 | 1.5 A continuous, 2 A peak | Amazon |
| 3 | Buck regulator | LM2596 | 1 | 3–40V in, 1.5–35V adj out | Amazon |
| 4 | Battery | 2S LiPo | 1 | 7.4V, 2000mAh, T-plug | Amazon |
| 5 | RC transmitter + receiver | — | 1 set | PWM out, 2-channel minimum | Amazon |
| 6 | Drive motors | 390 brushed | 2 | 6–12V, 6,300 RPM @ 12V, 1A no-load, 2.3mm shaft | Amazon |
| 7 | Weapon motor | 550 brushed, 55T | 1 | 7.4V (2S), 36mm dia, 3.17mm shaft | Amazon |
| 8 | Weapon belt drive | GT2 pulley + belt | 1 set | 20T / 60T, 8mm bore, 200mm belt | Amazon |
| 9 | Connectors | JST-XH 3-pin | 10 pairs | 2.54mm pitch, 26AWG, 200mm | Amazon |
| 10 | Print filament | PLA-CF 1.75mm | 1 spool | 1kg, carbon-fiber reinforced | Amazon |
Tool: Fusion 360 → FDM (PLA-CF)
All parts: cad/ — available as both .stl and .3mf
| File | Description |
|---|---|
chassis.stl / .3mf | Unitary chassis: electronics bay, drive motor mounts, weapon mount |
drive_wheel.stl / .3mf | Drive wheels (print ×2) |
weapon_impactor.stl / .3mf | Beater-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 render — chassis | Mark 1 assembled — PCB and drive motor installed |
Tool: KiCad 7
Fabrication output: pcb/gerbers/battlebot_gerbers_v1.zip — ready to send to any fab house
| File | Purpose |
|---|---|
pcb/BattleBot.kicad_sch | Full schematic |
pcb/BattleBot.kicad_pcb | Board layout |
pcb/BattleBot-parts.kicad_sym | Custom KiCad symbol library |
pcb/BattleBot.pretty/ | Custom footprint library (6 footprints) |
pcb/gerbers/ | Gerber + drill files |
LiPo ──→ LM2596 (buck) ──→ 5V ──→ ESP32-WROVER-E
LiPo ──→ DRV8833 (×3) ──→ Drive motors + weapon motor (direct VBAT)| Signal | ESP32 GPIO |
|---|---|
| RC Steering (PWM in) | 35 |
| RC Throttle (PWM in) | 34 |
| RC Weapon toggle (PWM in) | 18 |
| Left motor IN1 | 25 |
| Left motor IN2 | 26 |
| Right motor IN1 | 27 |
| Right motor IN2 | 14 |
| Weapon motor IN1 | 2 |
| Weapon motor IN2 | 15 |
| UART0 debug | 115200 baud |
All footprints in pcb/BattleBot.pretty/ were drawn from datasheets:
| Footprint | File |
|---|---|
| ESP32-WROVER-E | ESP32-WROVER-E.kicad_mod |
| DRV8833 | DRV8833.kicad_mod |
| LM2596 | LM2596.kicad_mod |
| RC Receiver | Receiver.kicad_mod |
| 3-pin connector | 3Pin-Connector.kicad_mod |
| Test point pad | Testpoint-Pad.kicad_mod |
Schematic — BattleBot.kicad_sch
![]() | ![]() |
Layout — BattleBot.kicad_pcb | KiCad 3D render |
Fabricated and populated board
Toolchain: Arduino IDE + ESP32 board support package
Board target: ESP32 Wrover Module
Sketch: firmware/signal_driver/signal_driver.ino
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 µsFailsafe:
pulseInreturns 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.
left = right = throttlethrottle × (TURN_MIX_RATIO / 100)left = +steering, right = −steering| Constant | V1 Value | Purpose |
|---|---|---|
STEERING_MIN | 965 µs | Min receiver pulse |
STEERING_MAX | 1882 µs | Max receiver pulse |
THROTTLE_MIN | 1055 µs | Min throttle pulse |
THROTTLE_IDLE | 1565 µs | Neutral position |
THROTTLE_MAX | 2000 µs | Max throttle pulse |
DEADBAND | 5 | Noise rejection around neutral |
TURN_MIX_RATIO | 50 | Inner-wheel scaling (0–100) |
PWM_FREQ | 20,000 Hz | LEDC motor PWM frequency |
PWM_RES | 8-bit | Duty cycle range (0–255) |
These constants are radio-specific. Re-measure pulse widths for your transmitter before first drive.
firmware/signal_driver/signal_driver.inoThe bot was driven under full battery power with all systems operating independently:
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.| Version | Status | Focus |
|---|---|---|
| V1 | Complete | Cost-optimized, full-stack process established |
| V2 | Planned | Weight/performance, hardened materials, active fault handling |
| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | Motor Driver Test Point 1 | BattleBot:Testpoint-Pad | MD_TP1, MD_TP2, MD_TP3, MD_TP4, MD_TP5, MD_TP6, MD_TP7, MD_TP8 |
| 3 | ~ | BattleBot:DRV8833 | MotorDriver1, MotorDriver2, WeaponDriver1 |
| 1 | LOGO | LOGO | G*** |
| 1 | Motor1 | BattleBot:3Pin-Connector | J2 |
| 1 | Motor2 | BattleBot:3Pin-Connector | J3 |
| 1 | Vcc | BattleBot:3Pin-Connector | B2 |
| 1 | WeaponMotor | BattleBot:3Pin-Connector | J1 |
| 1 | ~ | BattleBot:ESP32-WROVER-E | MicroController1 |
| 1 | ~ | BattleBot:LM2596 | Buck1 |
| 1 | ~ | BattleBot:3Pin-Connector | B1 |
| 1 | ~ | BattleBot:Receiver | Receiver1 |

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

JanM321/esphome-lg-controller
Wired controller for LG HVAC units using ESPHome and ESP32


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

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

lukasloetkolben/OpenpilotHardware
Welcome to the Openpilot Hardware Collection!

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

It measures 109.5 × 58.5 mm and has 4 copper layers, 1.6 mm thick.
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.
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.
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).