Woof Off! – A Device to Control an Out-of-Control Barking Dog

A friend came to me a few months ago asking for help building something to stop his neighbor’s barking dog. I’ve been having the same problem for a few years now, so I was definitely interested.

I’m fortunate enough to have good neighbors, but they are not dog people. In fact, they never really wanted this dog. How they ended up with two dogs is a story not worth going into. But, the upshot is one dog barks, they really have no control over it, and see something like a bark collar as being cruel.

So I have to put up with a dog barking under my office window on a regular basis.

I had looked at some commercial products but just never felt they were going to work for me. So I did nothing. Now that someone else wanted something I had a little more incentive to figure out if ultrasonic sound might really be effective.

There are various circuits on the web that produce an ultrasonic (40kHz) signal. Mine is just a variation of these. I use a 555 timer to produce the signal, then an LM-386 to amplify it.

Some circuits just drive the speaker directly from the 555. I feel like a get a somewhat stronger signal from the LM-386, but not so much that I would say it is an absolute must.

Here is my schematic:

Schematic notes:

I use terminals to connect power and speakers which show up a little confusingly on the schematic. A diode protects the circuit from reversed polarity. I have found I can drive 2 speakers from the LM386 which effectively nearly doubles the output power so there are terminals for 2 speakers.

This circuit was tested using 12V. It will run on 9V, but the output volume will not be quite as high.

During initial testing of the circuit, I setup the 555 to emit a frequency I could hear, around 12KHz. Once I was ready for real testing, I needed speakers that would actually work at 40KHz. Regular speakers don’t.

I found this ultrasonic speaker on ebay which also has the advantage of being water proof:

I purchased mine from:


The speaker was installed and the 555 set to produce 40kHz, I could no longer hear the signal. Was it really working? My dogs are not a good test subject as they are both deaf.

I ended up purchasing a set ultrasonic transmitter / receivers like this from Amazon:

I simply clipped my oscilloscope probes to one of the ultrasonic receiver to see how strong the signal was. This allowed me to do comparative testing to see if my output was stronger or weaker.

Once I had what I thought was a functioning unit, I needed to do a field test to see if dogs would really pay any attention to it. I produced a nice clean breadboard unit I could carry around.

This unit doesn’t match the final schematic exactly. To provide 12V, I used 2X 4LR44 6V batteries which fit perfectly in a single AA battery holder.

I tested this on a handful of dogs. Some hear it, some don’t (or at least pay no attention). The barker most definitely heard it. That gave me the green light to produce a final unit.

Using VeeCad, I converted the schematic into a strip board layout:

See How to use VeeCAD Stripboard Editor with CadSoft Eagle for more information.

I had forgotten how slow it is to build a circuit using stripoard. But it is still cheaper than PCB and way faster than waiting for the PCB to be created and mailed to me.

The final stripboard looked pretty nice:

I decided I could mount the unit inside my house and mount the speakers to the window. The ‘barker’ stands about 6′ from this window when she barks. By keeping the electronics inside the house, that solves weather proofing and power issues.

To control this, I wanted a remote control key fob that would work from my office. I purchased a cheap Chinese unit:


The key fob batteries died IMMEDIATELY (I got around 10 key presses on either fob before it was dead). Irritating, but the vendor credited me the cost of new batteries.

Once the remote was working it was just a matter of cramming it all into a plastic project box and setting up some external jacks and a power LED.

Red Green says duct tape is the handy man’s secret weapon. I say it is Velcro tape and hot glue. Seems like every project ends up using one or both.

The last step was to slap a cheap graphic on the project!

Once the final unit was set up, I watched the dog when I turned the unit on. She would immediately perk up her ears and look directly at it. Even 1/2 way across the neighbor’s yard she could clearly hear it.

Using Woof Off!

One would be tempted to just turn this on and subject the barker continuously to the sound. However good that might feel to you (and I did consider it myself), it is the wrong way to go about getting effective results. Remember: it isn’t the dog’s fault it barks. It is the owner’s fault.

To effectively use Woof Off, you want to use it as a training tool. That’s going to take some time on your part, but you have a better chance of getting good results if you train the dog properly.

During the training period, I kept my key fob with me at all times. The dog is allowed to bark for about 5 seconds (you have to be realistic here – dogs are going to bark, you can’t expect zero tolerance).

If the dog continues to bark after about 5 seconds, I turn Woof Off! on for 10 seconds and switch it back off. And I repeat until the dog finally quits.

Within 3 days of training, the barks became tentative. You could just hear in the tone she wasn’t sure she really wanted to bark.

I’m now about 2 weeks into ‘training’. She still barks some, particularly when people walk by, but having her sit under my window ‘woofing’ every 5 seconds for an hour or more no longer occurs. The situation is back to being reasonable again.

Aug 2019 Update:

Göran Cronström has created PCB CAD files for the Woof Off! project. Please see:


As a follow up to the original project, I successfully trained the barker to the extent that she stayed on the other side of her house and still barked constantly there. Not perfect, but way better than her barking for multiple hours a day under my window. Of course the guy living on that side of the barker’s yard probably wouldn’t agree!

When I tried Woof Off recently after a lapse of probably more than 6 months, the barker didn’t seem to notice it. I suspect that, like humans, has she is getting older she can’t hear high frequencies as well.

This entry was posted in c-electronics and tagged , . Bookmark the permalink.

12 Responses to Woof Off! – A Device to Control an Out-of-Control Barking Dog

  1. fred flinstone says:

    pretty cool

  2. goran cronstrom says:

    Hi there!
    Just made the files to send to fabrication, if anyone wants them just contact me.
    Brgds Göran

  3. Pingback: Woof Off! PCB Files | Big Dan the Blogging Man

  4. offtherails2010 says:

    i used to have this problem but its calmed down thankfully, but i wholeheartedly know the annoyance !

    Thanks for sharing and letting us mere mortals access to the open source files and well written documentation !

    Keep up the inspiring work !

  5. tylersuard says:

    Hello! How would you recommend adapting this project to Arduino, or to Raspberry Pi? Could I just set up a pwm, duty 50%, at 25khz and that would work?

    • Dan TheMan says:

      I originally did this with a Raspberry Pi and from what I can recall, I did as you suggest. I believe I ran the TTL signal into the same 386 audio amp. I don’t think I ever got as far testing the RPI with the same ultra sonic speakers and transducers so I never knew for a fact it really worked at that frequency though it seems it should.

  6. Pingback: 自制超声波驱狗器 | 2lxm新闻网

  7. Pingback: 自制超声波驱狗器 – Python量化投资

  8. Saitama says:

    hi, do you has schematic proteus?

  9. 6X6WWT says:

    Hey Dan, I love your project.
    I am in a planning stage of a similar project and I wish for your opinion as well as your expertise.
    As a dog owner of a few Malinois (Belgian Shepperd), I have now 3 at home. The mother and two of her offspring (one male and the other female). However, Eris (the female pup) is a pain in the ass to the poor mother, biting and generally being out of boundaries regarding dog conduct. So, to correct this bad behaviour early on and to prevent any future calamities I am thinking of modifying two cheap Chinese anti-barking collars and to add an NFC reader and tag in each one. Thus, when they get too close to each other the collars activate. After a first warning (beep), a second (vibration), a shock would put off any intentions of either pestering or biting each other, particularly when I am not around.
    Thanks for your time and attention.
    Kind regards, Pablo

    • Dan TheMan says:

      Very interesting idea. I’ve not used NFC – I thought you had to get really really close for them to work. Good luck!

      My last two dogs were the same way. The little one bullied the big one regularly. For the first few years I thought the big one would realize he was a lot bigger and could put the little in his place, but it never happened.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.