science tinker

Ultrasonic sensor, 3-pin (PING)))

Measures distance with sound echoes using a single signal pin for both trigger and echo.

Sensors · Elements inside: PbZrTiOAlCuSi

Function: what an Ultrasonic sensor, 3-pin does in a circuit

Measures distance with sound echoes using a single signal pin for both trigger and echo.

  • Measures the distance to an object without touching it
  • Sends and receives ultrasound through one signal pin
  • Detects obstacles for robots and alarms

Ultrasonic sensor, 3-pin key facts

Supply5 V, about 30 mA
Range2 cm to 3 m
PinsGND, 5V, SIG
Signalone pin sends the trigger and then receives the echo
Echo58 microseconds per centimetre

Pinout

The legs from left to right, as the part is drawn in the simulator:

No.Name
1GND
25V
3SIG (trigger and echo)

How to connect an Ultrasonic sensor, 3-pin to an Arduino

Connect GND to GND, 5V to 5V and SIG to one digital pin.

How it works

Make SIG an OUTPUT and send a short HIGH pulse (about 5 µs): the sensor sends a burst of 40 kHz ultrasound. Then make SIG an INPUT: it goes HIGH until the echo returns. pulseIn(pin, HIGH) gives the time in microseconds; distance in cm ≈ time ÷ 58 (sound travels about 343 m/s, there and back).

What it is made of

  • Transducers: Piezoelectric ceramic (lead zirconate titanate) behind aluminium mesh PbZrTiOAl
  • Board: Circuit board with a microcontroller CuSi

Where the materials come from: Lead from galena; zirconium from zircon sand (Australia, South Africa); titanium from ilmenite and rutile.

The chemistry

Piezoelectric crystals change shape when a voltage is applied and make a voltage when squeezed, so the same ceramic can both send and hear ultrasound.

Biology connection

Bats and dolphins use echolocation exactly like this: they time their echoes to find prey and obstacles. How the ear hears →

Safety and the environment

Soft or angled surfaces may not reflect enough sound to measure.

Did you know? It saves a pin compared with the 4-pin HC-SR04 because one wire does both jobs.

Try it in the simulator

Add it from the parts bin in Free build: it works with a battery and no code at all.

Questions students ask

What does an Ultrasonic sensor, 3-pin do?

Measures distance with sound echoes using a single signal pin for both trigger and echo. Main functions: measures the distance to an object without touching it; sends and receives ultrasound through one signal pin; detects obstacles for robots and alarms.

How is the 3-pin ultrasonic sensor different from the HC-SR04?

It uses one signal pin for both jobs. The sketch sets the pin to OUTPUT and sends a short HIGH pulse, then switches the same pin to INPUT and measures the echo with pulseIn().

What are the connections of an Ultrasonic sensor, 3-pin?

In order: GND, 5V, SIG (trigger and echo).

How do I connect an Ultrasonic sensor, 3-pin to an Arduino?

Connect GND to GND, 5V to 5V and SIG to one digital pin.

How does an Ultrasonic sensor, 3-pin work?

Make SIG an OUTPUT and send a short HIGH pulse (about 5 µs): the sensor sends a burst of 40 kHz ultrasound. Then make SIG an INPUT: it goes HIGH until the echo returns. pulseIn(pin, HIGH) gives the time in microseconds; distance in cm ≈ time ÷ 58 (sound travels about 343 m/s, there and back).

What is an Ultrasonic sensor, 3-pin made of?

Transducers: Piezoelectric ceramic (lead zirconate titanate) behind aluminium mesh. Board: Circuit board with a microcontroller.

Is an Ultrasonic sensor, 3-pin safe? How should it be recycled?

Soft or angled surfaces may not reflect enough sound to measure.

More sensors

Know someone who would use this?

It’s free for every learner. Send it to your class, team or club.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.