View Single Post
  #8   Spotlight this post!  
Unread 18-02-2008, 10:51
ScottW of MaxBo ScottW of MaxBo is offline
Registered User
no team
 
Join Date: Feb 2008
Location: Brainerd, MN
Posts: 17
ScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of lightScottW of MaxBo is a glorious beacon of light
Re: Maxbotix Ultrasonic Sensor Help...

Dear Manderson5192,

My name is Scott and I work in Technical Support and Sales for MaxBotix Inc. Bob Gross (CEO of MaBotix Inc.) found your web blog posted on Chief Delphi and wanted me to address the problem you are having with the MaxSonar.

After reviewing your web blog, it appears that you are running multiple sensors at the same time. This is because the sensor "noise" you are describing is actually interference from other sensors, not actual noise. The sensors are just behaving the way they were designed to behave. This describes the general results that you are getting (as verified by a voltmeter), “the signal voltage will hold constant for a given distance and proceed to drop some and slowly walk back up to the stable voltage or vice versa (Figures 1 & 2). This issue becomes more apparent at longer distances, to the point that the sensor readings are very rarely reliable.”


Figure 1. Slowly decreasing in range.

Figure 2. Slowly increasing in range.

The reason the action is happening is because the sensors are not operating in sync with each other or at the same speed. i.e. one sensor is operating slightly fast than the other. Sensor 1 operates at 49.0mS and sensor 2 is operating at 49.2mS. When the sensors become out of sync, one sensor is transmitting mode while the other sensor is in receiving mode. Because this action is happening, the sensor is receiving the pulses from the sender and not its own pulse bounce back. The closer the sensors are in sync, the longer the stable period. The farther out of sync, the sensors may not even appear to function properly because the stable period is extremely short or there is none.

Test this by testing each sensor separately. To do this, place a piece of tape over all the sensors but the sensor that is being tested. Verify the correct output via analog (as verified by a voltmeter). Do this to each sensor. If all sensors operate properly, you have interference from the sensors.

The way to correct this is by daisy chaining the sensors together correctly. There are multiple ways to use the sensors without interference. Three are described below.

Daisy Chaining using a Commanded Loop
To chain the sensors, and have them to operate in sequential daisy-chained fashion, you do so by linking the TX of unit 1 to Rx of unit 2 and so on. The BW pin is tied high on all of the parts. Then just strobe the first sensor's RX pin and all of the sensors will read the range in sequence. The analog values can then be read.

Daisy Chaining with Constantly Looping
If you want them to keep running and constantly loop and always provide the latest range reading you will have to do two things.

First, add a resistor between the last sensor's TX back to the Rx of the first unit through a 10K resistor (any value from 1K to 10K will work).

Second, then you will have to "kick start" them, (at least 250mS or more after power is applied to the sensors to give the sensors this time to boot-up). To do this, pull the RX pin high on the first sensor for at least 20uS. Then controller will have to return it's pin to a high impedance state so that the next time around the TX output from the last sensor will make it's way to the RX of the first sensor. Then all of the sensors in the chain will run in sequence. This "ring of sensors" will cycle around and around, constantly maintaining the validity of their analog values. You can then read the latest range reading (i.e. the analog value) at any time. This is the easiest way to use them.

Simultaneous Operation
You can also ran them all at the same time (and for some uses this is preferred as the measurement speed is maximum, but it is only for selected applications). Just tie all of the RX pins together and command them with a pin from your microcontroller. Hold the pin high for more than 20uS. Do not continuously leave this pin high, as then all of the sensors will free run as described above. Command the sensors every 50mS or whenever a new range reading is desired.

MaxBotix Inc., encourages users of the MaxSonar to visit our FAQ page http://www.maxbotix.com/MaxSonar-EZ1__FAQ.html for help on any questions they my have. If your question is not addressed on our FAQ page, we welcome emails from users of questions they have because this in turn helps us decide what information to update the FAQ page with. Please send emails to info@maxbotix.com.

If you have any questions, please feel free to contact me and I will be glad to assist you.

Scott Wielenberg
Technical Support & Sales
of MaxBotix Inc.
Phone: (218) 764-2489 Ext. 2
Fax: (218) 764-2194
Email: scott@maxbotix.com
Web: www.maxbotix.com