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.

Step 1: Parts

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.
What's the battery life likely to be?
why did you use a crystal?<br />
Quoth the raven NEVER MORE!!!
and my soal from the shadow that lies floating on the floor shall be lifted, NEVERMORE!!!
Poe lived between 1809 to 1849 for that time period he was old.
Yep, but he wrote dam well!
Could someone make a circuit without out an AVR?
You might be able to use a 555 timer chip... I'm not sure.
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.
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.
if you used 2 555 timers you could beep at high pitch
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...
can i use an Attiny 13?
Yes, but you will need to modify the code as, to my knowledge, the Attiny 13 only has 1 hardware timer (where the Attiny 25 has 2).
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!
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.
<a rel="nofollow" href="http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=50106&sid=83445c28e71861c4c6307d68bd4a42c7">&gt;Here&lt;</a> is a very comprehensive guide to AVR timers that I found extremely helpful.<br/>
Would it be possible to use an oscillator instead of a crystal?
Yes, tough you would need to use different settings for the fuse bits, and if the frequency was different you might need to modify the source code a bit. Depending on what your doing, you might not need either. I used a crystal because I wanted really precise timing over long periods of time.
OK thanks
is it possible to make one without the AVR?
Maby, but that would require an entirely different instructable with a very different circuit (assuming you didn't use a microcontroller).
well I should probably learn how to use a crystal first.Any help?
The crystal basically just sets the speed of the microcontroller. In this case I have a 4.194304 MHz crystal, so the AVR will have a clock rate of 4.194304 MHz.
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?
The important bit here isn't really the crystal, it's the AVR. The AVR does everything, the crystal basically just sets the speed at which it runs.
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.
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.
could I just hook this up without the integrated circuit and use the oscillator to determine the frequency
the Annoy-a-Tron?
whats this mosquitoe thing?
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.
A public place is for everyone, not just those you don't like the look of.
but they shouldnt have the right to be in a public place if they are terrorizing the people/animals/property in the public place.
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).
well, kinda got a point...... damn... hate it when i lose.....
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. <off topic> 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.
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?
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.
I will add that when they look in MY windows with binoculars they are likely to see me looking back at them with my spotting scope. ha ha!
oh... yeah, mosquitoe those guys up... defenitly....
It isn't OK to deny an area of public space to all teenagers because some of them (even a majority of them) behave badly. Get one and put it up in your garden (private space); you certainly have the right to do that. When the device was first introduced, one of the places it was installed was in front of an apartment building. OK, right? Except if you happen to be a teenager who LIVES in that apartment building and a) has to walk past the painfully shrieking device twice a day and b) has a perfect right to stand in front of it (waiting for a ride, for example). And yes, there were teens who lived there; they interviewed one for the article. You can deny use of a private area to any class of people you choose to. Public areas are for the public, and teenagers have a right to enjoy them. If they misbehave, they should be subject to appropriate penalties.
There is a HUGE misconception about what is public property and what is private. The easy way to determine if an area is public property is to determine if this area is paid for with tax dollars – if it isn’t then it is private property! An apartment complex absolutely has the right to enforce restrictions in common areas – including hallways, foyers, and parking lots. This is their property. Just think of it from a personal perspective: If you owned a house do you think the public should have free access to your front and back yard? What about your driveway? No – of course not! Only you can determine who is allowed in those areas. The same is true for apartment buildings, malls, shopping centers – any privately owned property! Even if you are paying rent or shopping at that location you still have to abide by the rules of the owner of that property.
Well, UK and US law may differ, but in the US if an area is a public accommodation, even if privately owned, laws on discrimination apply. So you could exclude people of Irish descent from your home, but not your restaurant. &quot;NINA&quot; signs are pretty well banned at this point.<br/><br/>So you might be right about apartment buildings, but not malls or shopping centers. But you still wouldn't be able to discriminate among the tenants of your apartment building.<br/><br/>But of course the law on teenagers is somewhat different, and IANAL so I can't say exactly. I'm saying that it's <em>unjust</em>, not that it's illegal.<br/>
Interesting debate. I'd say it's a rocky road, attempting to justify the right to potentially harm others...<br/>You couldn't legally harm a child (or teenager, who is still a child after all) on your private property without government or state intervention. Also, how could you measure that the range of the device didn't go beyond your property?!<br/><br/>Here's a link to a UK article on the related Mosquito device. One of the UK's children's commissioner's believes 'the devices break young people's rights to assemble, which are embodied in the UN Convention on the Rights of the Child.'<br/><br/>The UN Convention also says 'children must be treated without discrimination of any kind' (article 2). The UN Convention applies to children up to 18 years, after that I would imagine human rights law applies - certainly here the European Convention on human rights would probably apply in both cases.<br/><br/><a rel="nofollow" href="http://www.manchestereveningnews.co.uk/news/s/1036127_call_to_ban_mosquito_device">mosquito article</a><br/>
Point taken. I was being a bit flippant earlier but the liberal in me has taken a severe kicking over the last 5 years of living in a crummy area. We have 11 year olds and younger who break into houses, smash stuff up and are often out till 12 at night. The police have been called, nothing has been done. In fact you are more likely to have accusations leveled at you. If I could press a button and see them scamper off home I can't say I wouldn't be very tempted! It's better than the alternative: Some of my neighbours get so wound up they have nearly beaten up an 11 year old and a 6 year old. Not good. I think the mosquito has it's place. Yes it shouldn't be installed outside someones house but used at certain times of the day, in certain areas I think it's an effective tool to disperse groups of young people take the pressure off the police.
I'm with Criostoir here - the Mosquito is a pretty dodgy idea, and has caused less of an uproar than it should because it affects teenagers rather than adults. incidentally, the signal is also extremely distressing for younger children.
THANK YOU. I was beginning to think I was entirely alone. Crying in the wilderness, yadda yadda. :-) Seriously, thank you for this.

About This Instructable


206 favorites


More by Hungry_Myst: The Raven, high-pitched torture Control your iRobot Create with a Palm Pilot [Idea] Air Mouse
Add instructable to: