3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Annoying Beeper

Annoying Beeper
Play a prank on your friends (enemies?) by hiding a high-pitched beeper which sounds off at random time intervals. This instructable uses minimal parts. All that is required is:
  • battery
  • microcontroller
  • speaker

Why don't I just use a 555 timer chip? You certainly could. I like this method because:
1. The ability to beep at random intervals
2. Minimal parts needed (simplicity/elegance of design)
3. I wanted to use a microcontroller (because I recently started the journey of learning about microcontrollers)

This project was inspired by an article in MAKE magazine about making a similar device with a 555 timer chip.

After making my prototype, I searched instructables.com and found the Raven, which is a similar beeping thing using a microcontroller. I decided to add my instructable because it uses less parts and has random intervals.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts Required

Parts Required
«
  • IMG_4668.JPG
  • IMG_4665.JPG
  • IMG_4664.JPG
Besides the 3 basic components, I used a couple of other parts to help assembly. Here is a full parts list required for my final version:
  • ATtiny13 microcontroller (Sparkfun.com)
  • AA batteries (3)
  • Battery Holder with switch (Digikey part # SBH-331AS-ND)
  • 8-pin socket for microcontroller
  • Speaker (small 8 Ohm or piezoelectric buzzer)
  • Silicon adhesive (RTV)

You can make this project with almost any battery, microcontroller, speaker combination. The pictures for this step show parts I had around the house.

I made this entire project from parts I had in the house. You can use almost any battery(s) that has a voltage within the microcontroller's range (1.8-5.5 Volts for the ATtiny13). The higher the voltage, the louder the beep.

Almost any small speaker will work. You may want to experiment with different small speakers. I chose the speaker with the plastic membrane because it didn't make a click noise at the end of the beep like some other small speakers.

You can adapt the source code for other microcontrollers. It would potentially only require a change to the timer register settings.

Skills Required:
« Previous StepDownload PDFView All StepsNext Step »
28 comments
Nov 15, 2011. 3:20 PMdarkforest says:
Is there a way to make the frequency higher so humans can't hear? Either to stop dogs from barking, or giving someone a head ache from the waves... that they can't hear, haha. Let me know, thanks!
Mar 27, 2011. 8:31 PMgodofal says:
i was thinking...
wouldnt adding a simple NPN transistor in between the attiny, the batteries and the speaker make the volume *much* higher??
Mar 29, 2011. 3:16 PMgodofal says:
well, i dont think louder will make it easyer to locate
or at least, it might
my watch for instance has a pretty loud beep for its alarm, but you can't hear where its coming from

i *think* (no expert, so not sure) that thats becouse normally a sound is a wave form and a beep is more monotonous
we hear where a sound is coming from by the slight delay from when it reaches the ears, and a beep might be monotonous enough so that the delay doesnt work
or something like that, and im amazed if anyone would figure out my crappy explanation xD

im still learning too, but thats what sites like this are here for ^^
Jan 27, 2011. 12:24 PMDrasa says:
I have a great idea for this.
Maybe if we set the time between the beeps to 1 second, duration to 5 milisecond, we could get something like the C4 from Counter-Strike, right?
Nov 28, 2010. 8:59 PMastrong0 says:
Is that what the socket thingie is for?
Nov 29, 2010. 7:21 PMastrong0 says:
You're awesome.
Nov 28, 2010. 8:57 PMastrong0 says:
HOW IN THE GOOD LIGHT AND GRACE OF GOD DO YOU PROGRAM THE MICRO CONTROLLER ?????????????/
Nov 28, 2010. 1:23 PMbclamore says:
Funny and spooky. I made one of these beepers from a 555 back in 1989 or so. I found that placing it under their chair was the best place -- they could not figure out where the noise was coming from! It's interesting to see how different people react. One guy just sat and stewed in misery. Another - my boss (yes, I was that dumb) - also wrote down all the times on a Post-It note! In fact he (experimentally and statistically) found the beep period to a greater accuracy then I had calculated it! He had removed ceiling tiles in his office looking for it. Oh, was he pissed at me! Fortunately, I was not fired.
Nov 21, 2010. 1:14 PMVerticalX says:
Thanks! That did the trick. I was using AVRStudio initially and it was trying to run the whole file. Going linux, in a terminal session built the .hex with no problems, calling out "make program-beep". Now it looks like I have to reset the fuses on my ATTiny13. I breadboard tested yesterday and got nothing - but I had the fuse settings incorrect from a previous project. Thanks again for the help.
Nov 19, 2010. 2:28 PMVerticalX says:
Any idea, why I would receive the followng error?

"make: *** No rule to make target `minipov.hex', needed by `all'. Stop.
Build failed with 1 errors and 0 warnings..."

I modified the Beep.c file to increase the max wait to 15 minutes (from the original 10 minutes).

Usining the original "makefile" file I receive the above error when building in AVR Studio 4.18.

Thanks!
Oct 11, 2010. 11:12 AMrvolk169 says:
Hi--

How do I control the limits of the timer -- that is, can I make it beep randomly between, say, 3 and 9 seconds?
Oct 6, 2009. 6:23 AMLamppis says:
How shall I make the sound go up and down?
Sep 5, 2008. 12:49 PMbenjgvps says:
Now if you put one of these into a random object (Keyboard, stapler, vase, picture frame, ect), this could make people insane.
Apr 5, 2009. 10:12 AMraykholo says:
think its also possible to wire a normal tact switch into the microcontroller to turn it on/off, but not a locking push switch between the battery and the microcontroller?
Mar 19, 2009. 4:08 PMraykholo says:
i like how u combined the battery case and power switch along with mounting the entire circuit right on top of it.... all together
Oct 2, 2008. 8:54 PMmrjubjub says:
LOL how much do usb micro controllers cost? i suck at programming -__-
Sep 7, 2008. 7:41 PMtwenglish1 says:
awesome im going to have some fun with this
Sep 2, 2008. 11:34 AMAndyGadget says:
I made one of these many years back and you can really drive people mad with them {evil grin}. The noise mine made was a short ascending frequency burst so it sounded a bit like a cicada. My design used a PAL (Programmed Array Logic) which was a predecessor to the microcontrollers in use today.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
2
Author:samirsky