Seminar Topics & Project Ideas On Computer Science Electronics Electrical Mechanical Engineering Civil MBA Medicine Nursing Science Physics Mathematics Chemistry ppt pdf doc presentation downloads and Abstract

Full Version: Detect Distance with the Ping))) Ultrasonic Detector pdf
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Detect Distance with the Ping))) Ultrasonic Detector

[attachment=48091]

WHAT IS THE PING))) SENSOR?

The Ping))) sensor is a device you can use with the BASIC Stamp to measure how far
away an object is. With a range of 3 centimeters to 3.3 meters, it's a shoe-in for any
number of robotics and automation projects. It's also remarkably accurate, easily
detecting an object's distance down to the half centimeter.

HOW DOES THE PING))) SENSOR WORK?

Figure 2 shows how the Ping))) sensor sends a brief chirp with its ultrasonic speaker and
makes it possible for the BASIC Stamp to measure the time it takes the echo to return to
its ultrasonic microphone. The BASIC Stamp starts by sending the Ping))) sensor a pulse
to start the measurement. Then, the Ping))) sensor waits long enough for the BASIC
Stamp program to start a PULSIN command. At the same time the Ping))) sensor chirps
its 40 kHz tone, it sends a high signal to the BASIC Stamp. When the Ping))) sensor
detects the echo with its ultrasonic microphone, it changes that high signal back to low.
The BASIC Stamp's PULSIN command stores how long the high signal from the Ping)))
sensor lasted in a variable. The time measurement is how long it took sound to travel to
the object and back. With this measurement, you can then use the speed of sound in

Testing the Ping))) Sensor

As mentioned earlier, the Ping))) sensor needs a start pulse from the BASIC Stamp to
start its measurement. A pulse to P15 that lasts 10 μs (PULSOUT 15, 5) is easily
detected by the Ping))) sensor, and it only takes a small amount of time for the BASIC
Stamp to send. A PULSIN command that stores the duration of the Ping))) sensor's echo
pulse has to come immediately after the PULSOUT command. The result the PULSIN
command stores is the round trip time for the Ping))) sensor's chirp to get to the object,
reflect and return.