I’m using Distance sensor to detect the opponent in a Sumo fight, i wrote a program using Robotc (v 4.27), but the sensor doesn’t detect objects further than 607 mm, i tried to use setDistanceMaxRange but no difference, for the firmware i updated it using the software from VexIq website, and when trying to connect the robot to Robotc to download the program the software asks me to update the firmware from within Robotc itself , please any ideas, (i want the robot to detect opponents in a circle of 1500 mm diameter), (the Distance sensor is accurate in the range of 0-607 mm, but blind above that values)
note: the used program is attached with the post
new.txt (2.52 KB)
I too have found that my classroom distance sensors do not work above 600mm. I now tell students to use it for distances below 500 mm to be safe. If they set it for 700mm the code will not work.
Hi Hasiman,
We’re sorry that you have encountered this issue. We’re currently investigating this issue further here to help determine what might be causing this behavior.
Regards,
- Art
Update: after setting maximum range to 1225 (using setDistanceMaxRange ) the robot could see objects in a range of 0-1200 cm , raising the range above 1225 gives us a wrong readings (fixed numbers)
Any Update from Admin ?
Hi Hasiman,
The ultrasonic sound waves emitted by the Distance Sensor come out in an ever-expanding cone shape. Based upon the height that the Distance Sensor is mounted on your robot away from the floor, at specific distances the Distance Sensor will begin seeing the floor as an object.
While the advanced algorithms in the Distance Sensor contain software to filter out erroneous results (such as sensor noise and small objects), there will be a set distance for every sensor (based upon its mounting elevation) where the floor becomes the largest object the sensor sees and thus cannot be filtered out. The simplest method to get a longer effective range for the Distance Sensor is to move it higher on your robot (if this is possible in your robot design).
Regards,
- Art
Hey Hasimam,
You should take a look at this post regarding using the Distance Sensor + ROBOTC that I authored a few months ago. Hopefully it’ll shed some light on the issues you’re running into: