|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Questionable Results from Ultrasonic
There are issues when more than robot is using the same type of ultrasonic sensor on the field. They can interfere with each other if they use the same frequencies.
Also, you should implement a circular buffer that takes median readings to filter out noisy/bad reads: http://www.maxbotix.com/articles/129.htm We used to use these ultrasonics on our robot with some success, but don't expect really great precision. Often you just aren't sure which surface you are measuring distance to, as the detection cone can be pretty wide. To use this year's field as an example, are you detecting the wall of the tower? back of a goal? lip on the batter? batter divider? hanging bar? any of those surfaces will give you slightly different distance reads. |
|
#2
|
||||
|
||||
|
Re: Questionable Results from Ultrasonic
You may wish to consider this:
https://acroname.com/products/SHARP-...16-GP2Y0A710YK We've had some good results using IR sensors for distance measurement. This sensor has a pretty decent range though we've not used them yet. Ours have been much shorter in range for detecting objects on the robot itself. If you decide to try it let us know how it worked out for you. |
|
#3
|
||||
|
||||
|
Re: Questionable Results from Ultrasonic
These IR distance sensors look like quite the feasible alternative. Does anyone have some info on how to implement them? Wiring and programming wise? The ultra sonics are easy as you just read the milivolts back and do the conversion with the multiplication values offered by maxbotix. Is it possible that anyone could give me a code snippit that would give me back a readable distance from one of these sensors?
|
|
#4
|
||||
|
||||
|
Re: Questionable Results from Ultrasonic
Quote:
|
|
#5
|
|||||
|
|||||
|
Re: Questionable Results from Ultrasonic
To sort of tie a bunch of things together - the ranges and clutter threshold at which ultrasonic works well does not have a lot of overlap with FRC conditions. IR or visual rangefinders usually work better than ultrasonic at shorter ranges (up to about 2 meters/6 feet), and vision processing is better than ultrasonic at longer ranges, especially if there is retroreflective tape on the target. Use green light; FRC fields usually abound in red and blue LEDs (2016 is no exception). Use the color info from your camera: at simplest, just use the blue channel; even better may be a calculation which considers red and blue light as being of a negative value.
Last edited by GeeTwo : 01-03-2016 at 23:10. |
|
#6
|
||||
|
||||
|
Re: Questionable Results from Ultrasonic
To be honest, we use them to sense the presence of an object on the robot. We just look for a certain threshold voltage to sense this. While they can be used to measure distances the response curve is non-linear so some kind of table look-up function might be needed to convert a measured voltage to the distance measured.
|
|
#7
|
||||
|
||||
|
Re: Questionable Results from Ultrasonic
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|