Close
0%
0%

Obstacle-avoiding robot by Milo (InstantIoT AI)

Describe it. Milo builds it. A WiFi obstacle-avoiding robot: AI-generated phone dashboard + Arduino code (ESP32, L298N, HC-SR04).

Similar projects worth following
0 followers
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.

Enjoy this project?

Share

Discussions

Kritish wrote 10/07/2026 at 07:00 • point

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.

  Are you sure? yes | no

Jean Loick DT wrote 10/07/2026 at 15:10 • point

Great catches, both fair points.

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.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates