Sounds and ultrasound can be generated with the circuit shown in figure 1, which is based on a 4093 with counterphase output.

What we have is an oscillator / amplifier that with a counterphase output feeds a common high impedance piezoelectric transducer. Some of these transducers, such as those used in tweeters, have a frequency response good enough to reach the ultrasound range up to about 25 kHz.
Thus, we have two possibilities of use for the device: using common piezoelectric capsules with lower frequency response, we generate sounds. The potentiometer or trimpot P1 is then adjusted to obtain the highest yield.
On the other hand, using a piezoelectric tweeter, from which the internal transformer has been removed and the transducer connected directly, we reduce the value of C1 and generate ultrasound. The applications for the two cases are interesting:
a) Sounds
• Warning or alarm systems
• Scaring mosquitoes
• Audio generator
b) Ultrasound
• Scared animals (puppies, etc.)
• Dog calls
• Generator for physics experiments
In figure 2 we show a printed circuit board for implementation of this circuit.

To generate ultrasound, turn the power on and set P1 until the sound becomes sharp until it disappears, that is, out of ear range. If you have an oscilloscope or frequency meter, you can use it to determine the frequency of oscillations.
Material list
CI-1 - 4093 - CMOS integrated circuit
Resistors: (1/8 W, 5%)
R1 - 22 k ohm - red, red, red
P1 - 1 M ohm - trimpot
Capacitors:
C1-1,200 pF (ultrasound); 10 nF - sounds
C2 - 100 uF x 12 V - electrolytic
Others:
S1 – On/Off switch
X1 - Transducer - see text
B1 - 6 to 12 V - batteries, battery or power supply
Printed circuit board, mounting box, battery holder or battery connector, wires, solder, etc.



