Describe it. Milo builds it.
An ESP32 robot you drive from your phone over WiFi (Access Point mode, no internet needed), with autonomous obstacle avoidance: HC-SR04 ultrasonic sensor, stop → back up → turn state machine, L298N motor driver.
The twist: I described this project in one sentence to Milo — the AI assistant in InstantIoT — and it generated the phone dashboard AND the complete Arduino sketch. Everything it generates stays fully editable by hand. Here is the exact prompt I gave Milo:
Build me a WiFi obstacle-avoiding robot: ESP32 in Wi-Fi Direct mode (the robot is its own access point), L298N driver with two DC motors, HC-SR04 ultrasonic sensor.
Dashboard, two clean pages with distinct colors per widget function:
- Drive page: joystick for manual driving + live distance gauge in cm
- Settings page: auto-avoidance toggle + obstacle threshold slider (default 20 cm)
This page tracks the project from generation to road test.
Worth checking the generated wiring: the HC-SR04 echo pin outputs 5V and the ESP32 isn't 5V tolerant, so it needs a divider (1k/2k works). The L298N also drops about 2V, so the motors see a lot less than the battery voltage. That's often why "slow robot" happens.
The divider is already in the build notes — the generated sketch header calls out ECHO -GPIO18 through a 5V- 3.3V divider, since ESP32 pins aren't 5V tolerant. I'll make it more prominent in the wiring section of the next build log.
And you're right on the L298N: ~2V of Darlington drop is just the price of that board. Acceptable for a small indoor robot, but a TB6612FNG would be the obvious upgrade if speed becomes the bottleneck. Thanks for flagging both.
Worth checking the generated wiring: the HC-SR04 echo pin outputs 5V and the ESP32 isn't 5V tolerant, so it needs a divider (1k/2k works). The L298N also drops about 2V, so the motors see a lot less than the battery voltage. That's often why "slow robot" happens.