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 i2c programming
READ  Low cost ICSP PIC-programmer using PIC16F648A

Leave a Comment

= 4 + 3

Read previous post:
Temperature Indicator using PIC microcontroller Schematic
Temperature Indicator using PIC microcontroller

Hi friends, today we will see how to make temperature indicator using PIC microcontroller. The basic aim of this project...

Scroll to top