I built a robot with 2 motors on each side and a spinning wheel on the front, so it can go forward/backward and turn right/left easily. Then I attached a mop on the bottom of it so when it drives around, it drags the mop around and “cleans” the space. (photo attached).
I created one single mode: random (go ahead, if hit something, turn right a random amount and try to go ahead again…). It works fine and randomly cleans the floor. Given enough time, it will clean every single spot on my pretty small apartment.
Then I thought that maybe someone already created a “vaccum robot cleaning” algorithm to try to “map” a space and go through all the available space. Of course, using just a single switch in front of the robot, will not make it map the space, but if with that switch it could at least try to go at the most space available it would be awesome. I was thinking about using MPU6050 with PDI to make the robot goes straight and turn right/left in a precise amount, trying to drive at least in a “predictable” way, would be nice.
So after googling a lot, I didnt find anything closer to this simple task that I told you. So I ask you: does any of you know of any project like that so I can use the code?