ES-87AdvancedPremium
ESP32 Robot Vacuum Cleaner: Turns at Obstacles and Maps the Room (2 NEMA 17 + 2 A4988 + HC-SR04 + 2 Bumpers + OLED)
A two-wheeled robot vacuum cleaner that moves like the real thing. Two NEMA 17 steppers turn the wheels: it draws a spiral, drives straight, slows down and turns when the HC-SR04 sees an obstacle, backs off and turns away when a bumper hits, and does an edge lap along the walls. It works out its position from the wheel steps and shows a map of the room on the OLED with the cleaned percentage and time, then drives back to its start.
0.0(0)

You find out how a robot vacuum finds its way around a room and keeps track of where it has cleaned by building your own. It spirals, turns when it sees an obstacle, backs off when a bumper hits and runs along the walls, while a small screen fills up with a map of the cleaned area and the percentage climbs. Two stepper motors, a distance sensor and three buttons are all it takes to build the navigation from scratch.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
