Sound generating circuit
This circuit is live in Circuit Canvas. Open it to explore every part and wire, or make your own copy to change values, swap parts and build your own version. Free, right in your browser.
A very simple circuit that makes sound. One gate of a CD40106 chip, one resistor and one capacitor switch a buzzer on and off about a thousand times per second, and you hear that as a beep.
It's the same idea as the classic CD40106 LED blinker, only much faster and with a buzzer in place of the LED.
Parts
- CD40106 (hex Schmitt trigger inverter). A 74C14 also works.
- R1: 10 kΩ resistor
- C1: 100 nF (0.1 µF) capacitor, marked 104
- Passive buzzer rated for 9 V
- 9 V battery with a battery clip
- Breadboard and a few jumper wires
Sound generating circuit Schematic
How it works
- The capacitor C1 charges through R1 from the output of the gate.
- When the voltage on C1 gets high enough, the gate flips its output to low. Now C1 discharges through R1 instead.
- When the voltage gets low enough, the gate flips back to high, and it all starts over.
- The buzzer sits on the output, so it is switched on and off at the same speed. That's the sound you hear.
Why 10 kΩ and 100 nF?
A rule of thumb for this circuit is that one on/off cycle takes roughly R × C seconds. 10 kΩ × 100 nF = 0.001 seconds, so the output flips about 1,000 times per second. That gives a clearly audible beep.
Want a different pitch? A bigger resistor gives a lower tone, and a smaller one gives a higher tone. Don't go too low, though: with a very small resistor, the gate has to deliver more current than it's made for.
The exact pitch varies from chip to chip, so treat the calculation as a ballpark.
Power
The power pins of the chip aren't drawn in the schematic. Pin 14 connects to the plus of the battery and pin 7 to the minus. The line at the bottom of the schematic is the minus of the battery.
Sound generating circuit Parts List
How to Build the Sound generating circuit
Building it on a breadboard
- Place the chip across the gap in the middle of the breadboard, with pin 1 (next to the notch) in row 9.
- Pin 14 (top right) goes to the plus rail with the red wire. Pin 7 (bottom left) goes to the minus rail with the black wire.
- The capacitor goes between row 9 (pin 1) and row 7. A black wire connects row 7 to the minus rail.
- The buzzer goes between row 10 (pin 2) and row 7. If your buzzer has a plus marking, that leg goes in row 10.
- The resistor connects row 9 (pin 1) to row 10 (pin 2). Those two rows are right next to each other, so one leg goes in row 9 and the other leg is extended with a wire that goes back up to row 10. The lower leg is not plugged into row 14, even if it looks close in the picture.
- Connect the battery last.
No sound?
Check that the chip is the right way around, and that both power wires and the wire from row 7 to the minus rail are in place.
Make it your own
Every circuit here is a live project in Circuit Canvas, not just a picture. Copy this one and change a value, swap a part or move it to a stripboard: the schematic and the breadboard layout are linked, so a part added to one appears in the other.
Or start from a blank canvas and draw your own circuit, with thousands of ready-made parts.