Ultrasound Sensor

Not rated 32,197

Circuit Image

The Ping is an ultrasonic range finder from Parallax. It detects the distance of the closest object in front of the sensor (from 2 cm up to 3 m). It works by sending out a burst of ultrasound and listening for the echo when it bounces off an object. The Arduino board sends a short pulse to trigger the detection, then listens for a pulse on the same pin using the pulseIn() function. The duration of this second pulse is equal to the time taken by the ultrasound to travel to the object and back to the sensor. Using the speed of sound, this time can be converted to distance. The 5V pin of the Ping is connected to the 5V pin on the Arduino, the GND pin is connected to the GND pin, and the SIG (signal) pin is connected to digital pin 7 on the Arduino.

The Ping ultrasonic range finder operates on the principle of echolocation, emitting ultrasonic sound waves and measuring the time it takes for the waves to reflect back from nearby objects. This device is particularly effective for measuring distances in the range of 2 cm to 3 m, making it suitable for applications such as obstacle detection and distance measurement in robotics and automation.

To integrate the Ping sensor with an Arduino board, the following connections must be established: the 5V power pin of the Ping sensor should be connected to the 5V output pin of the Arduino, providing the necessary power for the sensor's operation. The GND pin of the Ping must be connected to a ground pin on the Arduino to complete the electrical circuit. The SIG pin, which transmits the signal back to the Arduino, is connected to digital pin 7.

The operation begins when the Arduino sends a short pulse to the SIG pin, which triggers the Ping sensor to emit an ultrasonic pulse. The Arduino then uses the pulseIn() function to measure the duration of the pulse that returns to the SIG pin. This duration is critical, as it represents the time taken for the sound waves to travel to the object and back. The speed of sound in air is approximately 343 meters per second; thus, the distance can be calculated using the formula:

Distance = (Time * Speed of Sound) / 2

The division by 2 accounts for the round trip of the sound wave. This method allows for precise distance measurements, enabling various applications in robotics, automation, and other fields where proximity sensing is required. The simplicity of the setup, combined with the effectiveness of the Ping sensor, makes it a popular choice for hobbyists and professionals alike.The Ping) is an ultrasonic range finder from Parallax. It detects the distance of the closest object in front of the sensor (from 2 cm up to 3m). It works by sending out a burst of ultrasound and listening for the echo when it bounces off of an object. The Arduino board sends a short pulse to trigger the detection, then listens for a pulse on th e same pin using the pulseIn() function. The duration of this second pulse is equal to the time taken by the ultrasound to travel to the object and back to the sensor. Using the speed of sound, this time can be converted to distance. The 5V pin of the PING) is connected to the 5V pin on the Arduino, the GND pin is connected to the GND pin, and the SIG (signal) pin is connected to digital pin 7 on the Arduino.

🔗 External reference




Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713

Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713