How to Make a Proximity Sensor Using Piezoelectric Ultrasonic Transmitters and Receivers

Material:

PUI Audio Ultrasonic Transmitter

LM555 Timer

LM324 Op-Amp

Diode

Transistor

1 X 0.1 μF Capacitor

1 x 0.01 μF Capacitor

2 x 0.001 μF Capacitors

1 X 3.3 nF Capacitor

2 x 1kΩ Resistors

1 x 2kΩ Resistor

1 x 5kΩ Resistor

1 x 12kΩ Resistor

1 x 390kΩ Resistor

5 x 1MΩ Resistors

2 x 4.7MΩ Resistors

Introduction:

Proximity sensors are common thing used in electronics. You can find infrared sensors in most kits. They work by powering an infrared LED and sensing the reflection with a phototransistor. Another way to do it is with ultrasonic sound. This can be achieved with piezoelectrics.

Piezoelectric:

Piezoelectrics work by producing an electrical charge by being introduced to a mechanical stress. The specific piezoelectric benders in the sensors react to a 40 kHz signal. So when the piezo bender is driven by a 40 kHz electrical signal it will vibrate and produce an ultrasonic sound. When it is vibrated at a frequency of 40 kHz it will produce an electrical signal.

Piezos are used for various things in the electrical world. The ones from PUI Audio are simple transmitter and receivers. They can be used in various ways. Here we have made a simple proximity sensor.

Circuit:

Transmitter:

The circuit is split into two parts. We have a transmitter circuit and a receiver circuit. The transmitter circuit centers around a 555 timer. The timer is used to produce the 40 kHz signal. It is setup in astable mode which means that it does not take an outside trigger, but instead uses feedback for a trigger. To figure out the frequency of the output in astable configuration you use the equation f = 1.44/((R2 + 2*R1)*C2). Using 1k for R2, 5k for R1 and 3.3nF for C2, we get 39.669 kHz. This is close enough to the desired 40kHz to still work. The signal is then used to drive a transistor circuit, with a resistor pulling up on the collector.