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.

The Raven, high-pitched torture

The Raven, high-pitched torture
This is a little device that I designed for the simple purpose of being discreetly annoying. It waits for a predetermined amount of time, and then it starts emitting high-pitched beeps. I have programmed mine to take advantage of an interesting property of sound. That is, in general most people above the age of 25-30 can't hear very high-pitched tones (say, 17 KHz for instance). This means if you were to (hypothetically of course) place it in a classroom, it would start bugging the heck out of the students while the teacher/professor will (most likely) be completely unaware of the source of the disturbance.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts

Not all of the parts I used here are necessarily required. For example, you could use a resonator instead of a crystal, or hypothetically neither. But I won't be going into detail about alterations, if you change something I'll assume you know what your doing. If you don't know what you are doing, you might want to stick to what I've outlined here until you are a little more comfortable with AVR's.

In this project I used an ATtiny25 microcontroller, a handy little chip. I picked this one for this project because it's small and has 2 timers, which will make the programming easy. In order to complete this project you'll need a programmer, there are lots of methods on the internet for programming AVR's (look up "AVR programming" on instructables or google). I personally use the USBtinyISP that Ladyada sells.

Except for the AVR you can proabaly scalvange most of this stuff from old electronics. I needed to make an order to Digi-Key anyway, so I just got this stuff there.

What you need:
*I used a 3.6 V lithium battery, you can use something else, just as long as the voltage is between 3 and 5.5 volts (the weaker the battery, the more quiet the speaker will be).
**You don't need the IC socket, but it will make it very difficult to reprogram the AVR afterwards if you don't use one.
« Previous StepDownload PDFView All StepsNext Step »
143 comments
1-40 of 143next »
Sep 27, 2010. 12:33 PMvitell says:
What's the battery life likely to be?
May 7, 2010. 3:32 AMcodongolev says:
why did you use a crystal?
Jul 26, 2009. 10:50 AMJ-Five says:
Quoth the raven NEVER MORE!!!
Sep 4, 2009. 12:45 AMmuttyfutty says:
and my soal from the shadow that lies floating on the floor shall be lifted, NEVERMORE!!!
Sep 4, 2009. 5:55 AMJ-Five says:
Poe lived between 1809 to 1849 for that time period he was old.
Sep 4, 2009. 8:34 PMmuttyfutty says:
Yep, but he wrote dam well!
May 22, 2009. 9:38 AManimaster says:
can i use an Attiny 13?
Apr 1, 2009. 9:20 PMbman22 says:
i tried this using a tiny2313 i had lying around, besides the fact that the code was a bit to complicated for what i was trying to, i found the tiny2313's internal oscillator didn't seem right or something. Instead of doing the 17khz i jumped straight to telling it to do 20khz, having read that that is the upper bound of the human ear, and that the average adult couldn't hear it. Well, either the oscillator was off, or the 20khz was the upper bound of the adult ear. i had to set it to about 35khz to get it high enough. I actually put mine in a remote control, and used a uni-directional whistle chip instead of the usual piezo speaker. Now i can point it at people and drive them nuts!
Oct 23, 2008. 3:48 PMgeeklord says:
Could someone make a circuit without out an AVR?
Mar 11, 2009. 8:18 PMraykholo says:
a totally far stretched idea that might work would be to use a chain of relays with some sort of delay in between them, and resistors to route different voltages into the speaker... this would actually be more useful in creating a melody player... and its probably gonna be kind of big...
Jan 6, 2009. 6:45 PMawang8 says:
You might be able to use a 555 timer chip... I'm not sure.
Apr 1, 2009. 9:16 PMbman22 says:
there was annother device similar to this on instructables, i think the author called it the annoy-a-thing. it uses a 555 cmos timer.
Apr 7, 2009. 2:32 AMawang8 says:
Yes, it is called the Annoy-a-Thing, but that emits a regular beep while this one emits a high-pitched kids-and-dog's-only beep.
Sep 4, 2009. 12:46 AMmuttyfutty says:
if you used 2 555 timers you could beep at high pitch
Mar 8, 2009. 3:32 PMsotsirh194 says:
What would be an example of code just to make a 38Khz square signal and nothing else with a 1Mhz internal timer. I don't quite understand the code above.
Jan 27, 2009. 8:53 AMWesley666 says:
Would it be possible to use an oscillator instead of a crystal?
Jan 27, 2009. 7:53 PMWesley666 says:
OK thanks
Oct 15, 2008. 8:36 AMgeeklord says:
is it possible to make one without the AVR?
Oct 15, 2008. 3:49 PMgeeklord says:
well I should probably learn how to use a crystal first.Any help?
Oct 16, 2008. 7:37 PMgeeklord says:
that means nothing to me.....does the crystal have a delay of some sort causing the speaker to vibrate at the right pitch or what?
Oct 17, 2008. 4:54 PMgeeklord says:
uuummmmmm........nvrmnd
Oct 17, 2008. 5:51 PMSaint_Awesome says:
It has to do with frequency. When excited the crystal has a frequency it likes to resonate at and this value is used to set the speed of the microcontroller.
Oct 8, 2008. 6:38 PMswirlycurly says:
haha, i made one but it is more expensive than this. I will probably just crank out about 5 of these and sell them to all of my friends. They will love this.
Sep 12, 2008. 3:14 PMjunits15 says:
could I just hook this up without the integrated circuit and use the oscillator to determine the frequency
Sep 2, 2008. 3:14 PMPumpkin$ says:
the Annoy-a-Tron?
Jul 24, 2008. 12:44 PMDaNerd11 says:
whats this mosquitoe thing?
Jul 24, 2008. 1:18 PMjoechump says:
Mosquito is a device that can be installed in public spaces where young people hang out and generally harass/irritate residents. It might be on top of a lamppost for example. Only kids can hear the noise (as explained below) so they generally disperse. Personally I think it's brrrrilliant! Have to disagree with Croistoir as no-one is forcing anyone - kids can freely move away, and it causes no damage so I think torture is a strong word. I would love one of these as the kids in my street are always damaging property and climbing on my shed! I know not all kids are bad but let them hang out in the park or in their own gardens, not mine.
Sep 1, 2008. 1:15 AMhcold says:
A public place is for everyone, not just those you don't like the look of.
Sep 1, 2008. 7:16 AMDaNerd11 says:
but they shouldnt have the right to be in a public place if they are terrorizing the people/animals/property in the public place.
Sep 1, 2008. 10:58 PMhcold says:
Terrorising is a strong word, but, this is, as is common, as case of a few bad eggs among the many okay eggs. Punishing everyone for what the few do. It's also discriminatory towards age groups, which is a human right (that is, not to be discriminated on via age).
Sep 2, 2008. 2:19 PMDaNerd11 says:
well, kinda got a point...... damn... hate it when i lose.....
Aug 6, 2008. 10:58 PMRaNDoMLeiGH says:
Oh, now that's a great idea. We have some.. youth... who have started hanging out on the corner. They're not from this neighborhood, we think they're casing it for the chance to rob someone. Make it a little harder for them to stay. I'd like to build a thingum that has an EMP triggered by high decibel levels. Use the magnetron from a microwave, aim it at the corner, and when the punks come driving through at 2am with their crappy music blaring, ZAP!! muhahaha I'm not used to working with high voltage so I'm a bit chicken to put one together, but the basics (not including the decibel meter alteration) are in one of the Evil Genius Electronics books. Anyone out there do it, please shoot me an email so I can add you to my "god" list. Make sure you get some video.
Aug 7, 2008. 12:25 AMDaNerd11 says:
im not saying stuff that you could possibly might be able to geusstimate about, if theyre tearing up ur lawn, thats a good time to use it, not if u SUSPECT that they MIGHT rob a house because they are STANDING on the street, who knows, maybe they all just moved here?
Aug 30, 2008. 10:31 AMRaNDoMLeiGH says:
Well we have seen them using binoculars to look in people's windows, I think that's a good enough reason to distrust them and want them to go away. They're not dressed as if they live in this neighborhood, but rather they are walking/biking from several blocks away. And I have seen them lounging around with their homies at those houses, so... my suspicions are pretty reasonable, really.
1-40 of 143next »

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!
6
Followers
4
Author:Hungry_Myst