Pages: [1]   Go Down
Author Topic: Wide ping sensor?  (Read 485 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 106
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to detect objects in front of my robot.  Is there a wide ping sensor?  The normal sensor covers only 15 degrees.  I want about 120 degrees.  I can mount the sensor on a scanner servo but it would have to be sweeping constantly and probably wear out the mechanical servo quickly.   I could use an array of sensors but I only have 3 spare pins on my Uno.   Has anyone tried using an array of ping sensors wired kind of in parallel on one or two pins and just measuring the first echo to arrive (nearest object) (all sensors are triggered together and we just measure the leading edge of all the echos)?  
« Last Edit: October 10, 2013, 09:36:40 am by warren631 » Logged

Oregon, USA
Offline Offline
Edison Member
*
Karma: 68
Posts: 2258
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Putting digital-output sensors in parallel could be done with a little external logic circuitry, but you would likely want to know which sensor responded first. That is not so simple.
« Last Edit: October 10, 2013, 11:10:17 am by jremington » Logged

"It seems to run on some form of electricity"

Offline Offline
Full Member
***
Karma: 1
Posts: 106
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't care which is first, just that there is an obstruction and the robot should stop, backup, turn about 90 degrees and then continue forward.  Its a mower robot with a random pattern (eventually cuts all the grass).
Logged

Oregon, USA
Offline Offline
Edison Member
*
Karma: 68
Posts: 2258
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Then use digital-output ping sensors and connect all the outputs to the inputs of an OR gate. The gate details will naturally depend on the type and number of sensors, but with a CMOS 4071 two-input OR gate, the output will go high as soon as either input goes high.

This sounds like a potentially very dangerous project. If the mower is gasoline powered, keep in mind that the spark circuitry radiates interference that is extremely hard on electronics, to the point of component destruction. Other sorts of interference can easily confuse or disable ultrasonic ranging sensors. I hope there won't be any kids or animals playing around the area to be mowed.
« Last Edit: October 10, 2013, 09:50:07 pm by jremington » Logged

"It seems to run on some form of electricity"

0
Offline Offline
Sr. Member
****
Karma: 8
Posts: 394
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I can mount the sensor on a scanner servo but it would have to be sweeping constantly and probably wear out the mechanical servo quickly.

A Chinese menu of approaches.  Take you pick  smiley

(1)You can always use a decent metal gear servo rather than plastic.  The torque requirement is very low so lifespan should be OK.

(2)When using multiple sensors determining which one is easy.  You can only fire one sensor at a time to avoid cross talk.  As a result you know the source of the return signal even if the returns are OR'ed.

(3) Consider using a shift register to 'recover' other IO pins, thus making more available for Ultrasound.

Logged

USA Washington state coast
Offline Offline
Full Member
***
Karma: 6
Posts: 183
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How about just removing or shortening the little barrels that are there to focus the sound into a 15 degree beam?
Logged

I'm not a complete idiot. Some parts are missing.

Pages: [1]   Go Up
Jump to: