irsyaddza/autonomous-vacuum ? reverse-engineered prompt
Reverse engineered prompt
Build me a web dashboard and firmware for an autonomous vacuum robot that runs on an ESP32.
I want a browser based control panel where I can see the robot status, battery level, voltage, and recent commands, then start and stop cleaning and switch suction between eco, normal, and strong. Also make a diagnostic page that shows all six IR sensors in real time, both the raw readings and the cleaned up values, plus a way to tweak timing settings without uploading new firmware every time.
For the robot itself, set it up to clean in an expanding spiral first, then move around with random bouncing when needed, while avoiding obstacles, detecting cliffs, and stopping right away if something is unsafe. It should also track battery level and stop when it gets too low. Include a simple setup flow for first time WiFi connection and make sure the ESP32 talks to the web app over HTTP.
If you need current docs or examples, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit