Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Maxbotix Sonar Sensor (http://www.chiefdelphi.com/forums/showthread.php?t=46912)

DonRotolo 04-05-2006 22:28

Re: Maxbotix Sonar Sensor
 
Quote:

Originally Posted by Donut
I would suspect that since they're all running on the same frequency, the error could be terrible just depending on the luckiness of when their ultrasonic pulses hit your sensor (if you get really unlucky it hits you right after your ping, giving you a reading of 6 inches when they're 20 feet away).

This is part of the reason I'm still considering IR. A newer Sharp sensor has a range of 10' and has a significantly smaller beam (5 degrees), which can be both a plus or minus. The beam is small enough and and has a shorter range that I think interference would be very uncommon from other IR sensors (considering the same type of IR sensors are used on almost all mini-sumo bots without much, if any, interference, I think there won't be much problem on the FIRST fields). If FIRST were to introduce the IR beacon back into the game (from 2004), could this potentially disrupt the Sharp sensors?

I agree, the potential for interference is quite significant, and must be considered for competition. On the other hand, there are techniques that can be used to help decrease, but not eliminate, interference.

Only take readings when you need to
Don't act on data until you have n readings in a row that are similar
Use a device (like a tube) to focus your reading cone.
Like this year's game, Aim High: try to ping where the other bot doesn't.
I wonder if anyone can think of more

Regarding IR sensors, they can also be valuable, and are more resistant to both interference and jamming, particularly because they can use a wider range of carrier frequencies and even modulate their output to develop a 'signature' that can be decoded. If FIRST were to reinstate IR transmitters, it would be easy enough to avoid that interference source. (Imagine it was blue instead of IR. Look for Green instead...)

Don

nparikh 04-02-2007 07:33

Re: Sensor Test Findings
 
Quote:

Originally Posted by Don Rotolo (Post 496758)
Got the sensor last week, played over the weekend, have some initial findings: (I used a VEX controller for everything, but this is similar to what to expect with the FIRST RC)

I connected it to the controller easily - soldered in a male header and made up a custom cable for the analog input. Took +5v and ground from the RC, and fed the analog signal back. The 10 mV/inch scaling is very convenient, since 2.54 volts = 254 inches. In the RC, a count of 512 is 2.50 volts (not 2.54), so I just scaled the reading by 1/2 and used that as the distance in inches. (Yes, a small error is introduced, but not much). Leaving the RX pin open causes it to read continuously, about 20 times a second.

It detects a pencil out to 24 inches, a metal spray can out well past 10 feet, and larger objects out to the maximum 254 inches (over 21 feet). Accuracy is good, with about a 1/4" error at a foot and 3" error at 12 feet (Measured 144 inches, actual was 141 inches). After I left it on about 40 minutes, the accuracy changed a little, now reading 138 inches (actual 141).

The cone of detection is about 30 degrees, didn't find any dead spots or lumps. It detects the nearest object in that cone, but can miss an object that is particularly small. Near the limits of range, the cone gets a bit narrower, to maybe 20 degrees at 21 feet. Soft, poorly reflective objects (like a cloth-covered chair back) are not detected as accurately, but that's a characteristic of ultrasonics.

When the distance to an object changes rapidly, the output takes a moment to catch up the the reading. Shouldn't be a problem at 20 readings per second. I tested this by putting my hand a foot away while the sensor was reading something at 12 feet.

At 20 readings per second, sometimes the values jumped plus or minus one or two counts - remember, this was the analog signal - so I put in a loop to average 5 readings at a time, which resolved that. Generally readings were steady.

Overall, seems perfect for the kind of stuff FIRST is doing. It sure would have helped us in autonomous defense at Palmetto. I think teams would want to mount it on a servo and scan in seven steps to evaluate 180 degrees, and act on the data accordingly.

One really nice feature is that you can use the RX input with a digital output to turn the 'pings' on and off. If interference is likely, only ping when you need to, increasing the chance of hearing your own ping and ignoring others.

Of course, it has serial data (RS-232 format at TTL levels) and pulse width (read with interrupts) outputs, making it very versatile.

Let me know if there are any specific tests you want me to make. meanwhile I need to develop an algorithm to detect and avoid objects autonomously with my squarebot.

Don

Anyone know how you'd go about doing that? It seems quite interesting--the documentation with the Maxbotix Sensor seems kind of limited as per their website.

Phalanx 04-02-2007 12:27

Re: Maxbotix Sonar Sensor
 
Wire the +5V, GND, AN pins to one of the RC's analog inputs.

Wire the RX pin to one of the RC's digital I/O pins configured for output.
To command a reading raise that pin for at least 20 microseconds (one). To stop taking readings turn that pin off (zero).


All of this information is in the PDF datasheet for the sensor
See page 2, where it describes the pins as well as the timing descriptions.
http://www.maxbotix.com/uploads/LV-M...-Datasheet.pdf


All times are GMT -5. The time now is 22:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi