Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Yr0gErG on September 30, 2010, 02:28:43 AM

Title: PING))) Ultrasonic Sensor
Post by: Yr0gErG on September 30, 2010, 02:28:43 AM
Hi I would like to know certain applications for this particular sensor. I'm currently thinking of using this sensor in conjunction with a p18f4520 PIC microcontroller to detect a white block of dimensions 100mmX100mmX40mm at distances of 150mm, 350mm and 550mm. Will this sensor be able to perform such a task and to what accuracy? Is there anything to take note of when installing/mounting this sensor? Can i put this sensor close to a surface, like placing it a few cm over a robot base?
Title: Re: PING))) Ultrasonic Sensor
Post by: garrettg84 on October 01, 2010, 02:07:43 PM
Sounds like it should work, atleast up to the 350mm. The 550 mm you may experience a bit of jitter though. I just mocked up that setup with my ultrasonic sensor (and AVR micro) and a chunk of wood approx 100mm cubed at home. It was good for the 150mm distance, the 350mm distance and the 550mm distance it started some jitter.
Title: Re: PING))) Ultrasonic Sensor
Post by: knossos on October 01, 2010, 04:22:26 PM
Can i put this sensor close to a surface, like placing it a few cm over a robot base?


Remember the signal spreads out in a cone shape (like this < ).  If you are too close to a surface you can get inaccurate readings.  A simple solution is to tilt the sensor upwards so that the bottom of the cone is approx parrallel to the surface.  (Like this /_  ).  You shouldn't have to tilt it much ( No  more than about 1/2 the beamwidth).
Title: Re: PING))) Ultrasonic Sensor
Post by: MtnbikerET on October 02, 2010, 11:14:45 PM
Just make sure its on the front of your robot, and facing perfectly parallel to the object. Perhaps an IR rangefinder would be better for your needs.
p.s: don't try to make your own ultrasonic sensor. I tried it, and utterly failed.