Shrieker using PIC16F676 Microcontroller
Recently a cell phone ring tone was in the news – it’s 17,000 Hertz and meant to be heard by teenagers, but
inaudible to adults. Really got some people upset for some reason. It got me wondering – what frequencies can I
hear? I made the shrieker. It can generate tones from 10,000 Hz to 22,000 Hz.
It’s a simple project. The program doesn’t do much.
The button actual provides power to the PIC, so
pressing it starts the boot up. Six pins read the inputs of
six switches. This determines the frequency. After that,
the PIC just generates a square wave of that frequency
on one of its pins that goes right to the speaker with a
capacitor to round the edges some.
The speaker was only rated to 7000 Hz, but seems to
With all switches in the off position, the frequency is
10,000 Hz. The switches function as binary inputs, most
significant digit on the right: 32, 16, 8, 4, 2, 1, so the
input can vary from 0 to 63.
frequency = 10,000 Hz + input*200 Hz
So the frequency range is 10kHz – 22.6kHz
My left ear can hear 14,600 Hz, my right 13,200 Hz.
For more detail: Shrieker using PIC16F676 Microcontroller
EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access
Free Circuit Design: Schematic – Simulation – PCB Layout – Gerber Viewer
JLCPCB Prototype: Only $2 for 10pcs 10×10cm, 24 hours Quick Turn, DHL Delivery in 3 days
Current Project / Post can also be found using:
- audio microcontroller projects
- pic16f676 i2c programming