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
work fine.

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

The results?
My left ear can hear 14,600 Hz, my right 13,200 Hz.


For more detail: Shrieker using PIC16F676 Microcontroller

Current Project / Post can also be found using:

  • audio microcontroller projects
  • pic16f676

Leave a Comment

= 3 + 4

Read previous post:
RGB REMOTE (pinguino+web+linksys) using PIC18F2550 microcontroller

RGB REMOTE (pinguino+web+linksys) This project has several uses, it is basically a way to control an RGB LED group (tricolor...

Scroll to top