Object Detection for a Blind Cane

Hi, I have some basic Arduino knowledge and am no expert so I would really appreciate any help. For a school project I am making a blind cane with object detection, the idea is that I have a sensor and if an object is closer to the left side of the cane than the right then the DC motor would spin to the right to lead the user away. How would I go about this? I can get the sensor to read distances and the motor to spin without the sensor. I am all okay with the wiring it is just the code. Currently I am using an Arduino Nano, VL53L1X sensor, L298N motor driver. How do I get the code to determine if an object is closer on one side than the other, would it be easier using two sensors? I also have a TFMini Lidar available and if easier I can purchase another VL53L1X. Any help would be amazing as I have been struggling with this for a while, thank you.

Please read and use this link: How to get the best out of this forum - Projects / General Guidance - Arduino Forum

1 Like

Welcome to the forum. If the sensor is mounted in a fixed position on the cane, I don't think a single sensor will work. The sensor measures distance to objects that are perpendicular to it.

You might need up to 3 sensors, one for the left, one for the right, and one straight ahead to determine which direction to turn to avoid collision with the object.

You could also mount a single sensor on a servo and move the sensor to the left, right and center, get a reading for direction and then make a determination.

1 Like

What course is this for? Did the professor/teacher give you more information or is this a project you conceived. It will be a difficult project for somebody with experience. I suggest doing something that is not as complicated.

Either with one or two, it will be difficult since the unit has a 27 degree cone of coverage. Please make a drawing of your device with two lines coming from the device that have a 27degree angle between the two lines. Any thing that will reflect the laser light in that cone will be reported. Nothing will tell you if the object is left, right or center.

If using two sensors, how far apart will you mount them? You will have to test this option to see if it will let you determine left or right closeness.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.