I am looking for a cheap depth sensor (something like one used in IPhones) to use with Arduino or Raspberry Pi.
Budget: ~$50
Range: more than 2 meters
I have already looked into sensors like intel realsense depth camera and lidars.
But as I want it to be low cost, I am searching for something like an 2-dimensional array of ToF sensors (with a small footprint) that could give me an estimate of depth as a square matrix.
If someone can provide any suggestions, I would really appreciate it.
Thank you.
You want to use a single camera to determine distance to an object from the camera lens?
I would use two cameras to achieve this, or better yet another sensor specifically meant for measuring distance.
But don't get it from the link. These are available at a stupidly low price at any "cash converters" or other second hand computer shops. Less than £10 in most cases.
I understand that a stereo setup and even a single RGB camera could be used for depth estimate, but it would be great if you have suggestions for some sensor that could directly measure depth.
Yes i said it was cheap. But it would have been nice to know about your size requirement from the outset.
Did you not read the getting the best out of this forum sticky post. It specifically mentions not altering your first post except for putting any code in code tags. This because it makes the following responses look stupid, which they were not.
I agree that nothing associated with iPhone is cheap.
But I came across ToF sensors that could measure small distances.
Link: https://tinyurl.com/2vjwca7p
Based on this, I have been looking for some product that has an array of such sensors on a single board.
But I could not find any such product in DIY community. I posted this question to see if someone has built such an array or if there already exists one that I have missed.
The best option for me otherwise would be to build it myself as an adhoc array using multiple ToF sensors (but it will become bulky very soon ).
Perhaps you not aware that the small TOF sensors generally have a large cone of vision, up to 30 degrees. It is hard to see how a planar array of those would be useful.
On the other hand, you could buy two ESP32-Cam modules for less than $20 and use OpenCV to make your own 3D depth camera.
The ultrasonic sensors have an even larger cone of vision, and of course interfere with each other, so they have to be fired sequentially, with plenty of wait time until the echos die away. Sound in air travels roughly 1 meter in 3 milliseconds.