ESP32-C3 reference robot — unbuilt design

This is an original wiring/mechanical proposal for a differential-drive robot. No PCB has been fabricated, motors energized, radio range measured or mechanical envelope physically validated. Do not treat the SVG as a fabrication netlist. Complete schematic/layout/ERC, part sourcing, thermal and assembly review before manufacturing.

Envelope and packaging budget

The parametric case has a 70 × 70 mm shell footprint and a nominal 65 mm assembly height. With a 65 mm wheel track and 7 mm tire width, the tire envelope is 72 mm. This corrects the earlier oversimplified 66 mm width estimate: the complete robot, including hubs and shaft ends, still needs measurement against the 75 mm bare envelope. A thin uniform must stay inside 80 mm. Nominal 26 × 12 × 10 mm motor bodies have a proposed 4 mm back-to-back clearance; verify terminal bends and shaft/hub engagement using the actual selected parts. Wheel diameter is 32 mm. The default simulation uses a 75 mm box and 6 mm tires; this mechanical proposal is a separate, unbuilt design budget.

Allocate a lower motor deck, a protected battery bay of at most 45 × 25 × 18 mm, and an upper 45 × 40 mm custom carrier with the ESP32-C3-MINI-1 antenna facing a non-metallic edge. A 10 mm wiring/connector allowance and antenna keepout are required. This is a stacking budget, not a validated CAD assembly. A full development board is a bench substitute; use the MINI-1 module/carrier for the size proposal.

Electrical reference

See wiring.svg, bom.csv, and pinmap.csv. All signal grounds and power returns join at the protected supply star point. Motors connect only to the TB6612FNG outputs. GPIO drives logic inputs, never motors. STBY has an external 10 kΩ pulldown so reset/boot leaves the bridge disabled.

Use a protected 2S LiPo supply (6.4–8.4 V operating target), an accessible mechanical power switch, a 1 A fuse, reverse-polarity protection, a 5 V motor buck and a separate 3.3 V logic buck. The driver VCC is 3.3 V and VM is 5 V. The motor choice is 6 V low-power Pololu micro metal gearmotors, operated below nominal voltage. Their specified stall current is 0.36 A at 6 V; two motors are within the proposed 1 A motor-regulator budget at 5 V in the ideal electrical estimate, but thermal derating, stall duration and peak current require bench verification. Do not substitute high-power N20 motors based only on dimensions.

The TB6612FNG's 1.2 A average/3.2 A peak absolute ratings are not continuous design targets; use its operating/thermal curves. A suitable carrier must tie all corresponding power/ground/output pins correctly. Add 100 nF close to driver VCC, 100 nF + 470 µF on VM, 100 nF across each motor, local module decoupling per Espressif, and regulator input decoupling per Pololu. Keep motor loops short and away from the antenna.

The battery, protection/cutoff board, switch and connector are selection gates in the BOM: source a real part with dimensions and chemistry-compatible cell protection before building. The 45 × 25 × 18 mm battery bay is a design constraint, not a claimed measured battery SKU. Set a separate hardware low-voltage cutoff around 6.4 V with suitable hysteresis and follow the selected cell manufacturer's limits; firmware currently does not measure battery voltage. Use an external balance charger with the pack removed. There is no charging circuit in this design. Do not power the 3.3 V module from the raw battery or backfeed USB/programming power.

GPIO assignment: AIN1=0, AIN2=1, PWMA=3, BIN1=4, BIN2=5, PWMB=6, STBY=7. These are chip GPIO numbers, not arbitrary board labels. Keep boot-strapping pins 2/8/9 out of the drive interface. GPIO 4–7 share alternate debug functions; debug configuration and board routing must preserve the driver disable state. Add EN pullup/reset, boot GPIO9 pullup/button, and programming/debug connections per the official module hardware-design guidance. The compact custom carrier is not yet laid out.

Firmware and radio

python3 -m venv .tools-venv
.tools-venv/bin/pip install platformio==6.2.0
PLATFORMIO_CORE_DIR="$PWD/.pio-core" .tools-venv/bin/pio run -d firmware
npm run test:firmware

The build is pinned to PlatformIO Espressif32 6.12.0 / Arduino ESP32 2.0.17 using the ESP32-C3-DevKitM-1 target. This validates compilation for the same MCU/module family; it does not certify a custom carrier. Default configuration compiles in safe mode because the radio key is empty. Copy firmware/include/secrets.example.h to ignored secrets.h, set WLAN credentials and a different 64-character hex key per robot, and set ROBOT_ID=0, 1 or 2 in build flags. Do not commit these settings.

A valid authenticated packet enables the driver. A command deadline of at most 250 ms, WLAN loss, reset, or an unconfigured key leaves/disables STBY. Speeds are converted to PWM duty by an uncalibrated open-loop map (600 mm/s → 255); this is not measured velocity control. Encoders, PID and odometry are not implemented. The signed-command radio/bridge format is specified in PROTOCOL.md. No real hardware was contacted during development.

Primary component references checked

Detailed electronic drawing

See the connection-level schematic and connection schedule. Module pads and driver pins were checked against current primary Espressif/Toshiba references. Functional power-protection blocks remain selection gates. This original drawing includes split regulated rails, local decoupling, all duplicated driver output/power pins, external STBY pulldown, EN delay/reset, boot straps and a manual 3.3 V UART header. It does not replace schematic capture, PCB layout, ERC, thermal/transient measurements or physical validation.

Parametric case

The case source and notes, dimensions, drawing and four STL files define the Rev A concept. The website loads the generated STL parts directly, with exploded and see-through views. Closed-mesh and nominal keepout checks are software geometry checks only.

Robot code on the website

The complete ESP32 main.cpp, bounded protocol.h, pinned platformio.ini and empty secrets.example.h are displayed at /hardware/firmware and downloadable individually. Only the example template is published; real secrets.h remains ignored. Competition-room keys do not authenticate physical robot radio packets.