TankBot ESP32 - Web-Controlled Tracked Robot

A web-controlled tank robot built with ESP32 and L298N motor driver, featuring a responsive web interface with speed control.
The bot broadcasts its own wifi, connect with any device and it will automatically open the control page.
Assemble the electrical components to the 3d printed parts, then attach to the chassis.
Hardware Components
- Microcontroller: ESP32 DevKit (38-pin, CP2102, USB-C)
- Motor Driver: L298N H-Bridge
- Motors: 2x 33GB-520-18.7F DC motors (included with chassis)
- Chassis: TP101 Tank-style chassis (widely available)
- Power: 2x 18650 lithium batteries (7.4V nominal) (holder included with chassis)
- Fasteners: 12x M3x6 Screws
Software Setup
Software available at GitHub.
Features
- WiFi Access Point: Robot creates its own WiFi network
- Captive Portal: Auto-popup control interface when connecting
- Responsive Web UI: Works on phones, tablets, and computers
- Dual Control Modes: Toggle between button controls and joystick
- Button mode: Discrete directional controls (Forward, Backward, Left, Right)
- Joystick mode: Analog control with simultaneous forward/back and turning
- Speed Control: 3 speed levels (Slow: 160, Medium: 220, Fast: 255)
- Steering Trim: Compensate for uneven track tension (-20 to +20 adjustment)
- Trim value is saved to flash memory and persists between power cycles
- Automatically loaded on startup
- Works in both button and joystick modes
- Real-time Feedback: Status updates on web interface
- Touch Support: Works with touch screens for mobile control
- mDNS Support: Access via http://tank.local
JohnsonFarms.us