My final project for the Arduno microcontroller class is this 3D room mapping thing. It still needs some work but here’s basically what it looks like. An ultrasonic distance sensor is mounted on a servo (which is mounted on another servo), and records the distance of objects located at various angles. Two angles and a distance from the center make up a spherical coordinate system, and those coordinates can be plotted.
The second video features a plot with a resolution of 4 degrees for each servo. It takes a really long time to scan a whole half-sphere at that resolution. In the program, I made it so that there’s a threshold distance between points that determines whether or not a surface is drawn between those points; it can be changed in the program, as can be seen in the video. I’ll probably post the source code and all that after the project is completely finished.
Anyway, I looked it up yesterday and apparently there have been similar projects, although it doesn’t seem to be plotting as large of a surface (which makes sense considering the range of an IR sensor, though those are much more precise, I’d imagine). I think the main issue with this is that my room has lots of sharp corners and things blocking the way, so the sonar might be less accurate than it would be otherwise.