• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Hire Me | Contact | Calculators-online
You are here: Home / Pets and Pests / How to Make Dog Barking Preventer Circuit using High Frequency Deterrence

How to Make Dog Barking Preventer Circuit using High Frequency Deterrence

Last Updated on June 30, 2025 by Swagatam 404 Comments

The discussed circuits are designed to discourage dogs from barking in the selected zone by the generation of a synchronized ultrasonic sound waves in response to a few initial barking of a particular dog.

Table of Contents
  • Manual High Power Push-Pull Dog Repellent Circuit (Tested)
    • Circuit Diagram
  • How the Circuit Works
    • Parts List
    • Tweeters used in the above prototype
  • Using Arduino
    • Full Arduino Code
    • Code working Details:
  • Automatic Dog Bark Terminator Circuit
    • Making the Circuit more Sensitive
    • Increasing the Range over 50 Meters
    • PCB Design
      • UPDATE: A Much Simplified Design
    • How it Works
      • Improving Further
  • Dog Deterrent Circuit

The circuits explained below when correctly optimized will produce a high pitched ultra sonic sound each time it senses a dog bark. Since the sound is in the ultrasonic range will be inaudible to humans, and audible to only dogs present in the vicinity.

Manual High Power Push-Pull Dog Repellent Circuit (Tested)

The ultrasonic dog repellent circuit shown below is a highly effective design due to its H-bridge configuration, which generates a powerful push-pull action on the attached ultrasonic transducer.

The push-pull mode creates a pumping action on the transducer causing massive thrusts on the generated ultrasonic pulses.

This circuit was practically tried on dogs and cats with positive results. The testing procedure required a lot of hard work and dedicated effort, which was thoroughly implemented by Mr. Emad, who is an avid reader of this blog and great electronic enthusiast.

Circuit Diagram

powerful dog  repellent using IC 555 h-bridge circuit with strong push pull transducer action

How the Circuit Works

The IC1 is configured as a normal IC 555 astable circuit which generates square wave pulses at its output pin#3.

The resistor R1 along with the R2 pot value determine the frequency of IC1 output.

This output from IC1 is applied to T1, T3 driver transistors of the H-Bridge configuration.

This frequency at pin#3 of IC1 is also fed to the pin2 and pin6 of another IC2 555 stage.

This 555 IC2 is configured as a set-reset circuit, which works efficiently to enable the correct functioning of the H-bridge transistor driver.

The output pin#3 of IC2 is connected with T2, T4 which forms the other set of driver transistors of the H-bridge circuit.

The IC2 ensures that during the ON periods of IC1 pin#3, the IC2 pin#3 is OFF, and vice versa.

This ensures a safe operation of the H-bridge transistors which always operate diagonally, causing an alternate push-pull or reverse forward conduction of the load, which is a transducer in this circuit.

The push pull action of the transducer diaphragm causes powerful thrusts on the generated pulses which ultimately helps to create a strong repelling action on animals like dogs and cats.

Parts List

  • R1 = 1k 1/4 watt = 1
  • R3 = 4.7k 1/4 watt = 1
  • R4-----R7 = 1k 1 watt = 4
  • R2 = 20k pot = 1
  • Capacitor C1 = 3300 pF Ceramic Disc = 1
  • Transistors, T1, T2 = TIP142 = 2
  • Transistors, T3, T4 = TIP147 = 2
  • IC1, IC2, IC555 = 2
  • Push Button 5 amp = 1
  • Speaker1 is a 8 ohm High Power Tweeter, as shown below = 1

Tweeters used in the above prototype

high power tweeter used for dog barking prevention

Using Arduino

The above concept can be made even more effective and customizable when built using an Arduino. The complete wiring and circuit diagram is given below:

Below is a simple Arduino code that will generate a square wave with adjustable frequency (1kHz to 25kHz) and output staying ON for adjustable time between 1 to 5 seconds.

Full Arduino Code

const int outputPin = 9;

const int potFreqPin = A0;   // Pot for frequency
const int potTimePin = A1;   // Pot for ON-time duration

unsigned long halfPeriod;    // Half of square wave period in microseconds
unsigned long onTimeMs;      // How long to output the square wave
unsigned long offTimeMs = 1000; // OFF time fixed to 1 second (can also be made variable)

void setup() {
  pinMode(outputPin, OUTPUT);
  pinMode(potFreqPin, INPUT);
  pinMode(potTimePin, INPUT);
  digitalWrite(outputPin, LOW);
}

void loop() {
  // Read and map potentiometers
  int freqRaw = analogRead(potFreqPin); // 0 to 1023
  int timeRaw = analogRead(potTimePin); // 0 to 1023

  int freq = map(freqRaw, 0, 1023, 1000, 25000);         // Frequency: 1kHz to 25kHz
  onTimeMs = map(timeRaw, 0, 1023, 1000, 5000);          // ON-time: 1s to 5s
  halfPeriod = 1000000UL / (2 * freq);                   // Half-period in microseconds

  // Generate square wave for ON duration
  unsigned long startTime = millis();
  while (millis() - startTime < onTimeMs) {
    digitalWrite(outputPin, HIGH);
    delayMicroseconds(halfPeriod);
    digitalWrite(outputPin, LOW);
    delayMicroseconds(halfPeriod);
  }

  // Output OFF period (fixed 1 second or customizable)
  digitalWrite(outputPin, LOW);
  delay(offTimeMs);
}

Code working Details:

  • Only one output pin#9 will generate the square wave pulses.
  • Frequency adjustable from 1kHz to 25kHz using one potentiometer.
  • Pulses will turn ON and OFF intermittently with ON-time adjustable from 1 to 5 seconds using another potentiometer.
  • During OFF time, the output pin will remain LOW.

Automatic Dog Bark Terminator Circuit


Note: Please use 1uF capacitor for C2 to ensure a foolproof triggering of the IC1 stage...


Parts List

  • Resistors all 1/4 watt 5%
  • R1, R3 = 10K
  • R2, R4, R5, R7 = 100K
  • R6 = 33K
  • R7 = 1K
  • Capacitors
  • C1 = 0.1uF, disc ceramic
  • C2 = 1uF/25V
  • C3 = 10uF/25v
  • C4, C6 = 0.01uF ceramic
  • C5 = 680pF ceramic
  • Transistors
  • Q1 = 2N3904 or BC547
  • Q2 = TIP122

Referring to the above shown dog bark inhibitor circuit, we can see three distinct stages involved, the sound sensor and preamplifier circuit using the Q1 and the electret MIC stage, the monostable stage using IC1 and the associated parts and the ultrasonic sound generator stage using the IC2 and the speaker driver stage.

Whenever a dog barks, the Mic detects it causing a sequential low and high pulse at the base of T1. T1 responds to this and produces an equivalent amplified signal across C2, which in turn triggers the pin#2 of the monostable IC1.

The above action forces IC1 to produce a high at its pin#3 for a period determined by the values of  R5/C3.

This high at pin#3 of IC1 enables the reset pin#4 of IC2 to become active thereby allowing the astable IC2 to supply the ultrasonic pulse at its pin#3, which is appropriately amplified by the associated TIP122 transistor, driving the connected speaker.

The speaker vibrates at the specified amplified level throwing the ultrasonic sound in the direction where the dogs need to be driven away.

The above sound waves is supposed to fluster the dogs and cause a lot of disturbance in their ears due to its high pitched sound, and also due to its synchronized effect with the dog's own barking sequence.

Actually the above dog barking stopping device might respond to all types of high dB sound levels, however since it won't be audible to a human ear this will never be an issue, and may be ignored.

Making the Circuit more Sensitive

If you find the above dog barking prohibitor circuit not responding to barking signals or any sound distant signals correctly, then you must try upgrading the MIC stage with an IC based MIC amplifier stage as shown in the following image:

Once you build the above circuit, you can eliminate or remove R1, R2, C1 from the first circuit, and replace it with the mentioned op amp based MIC amplifier circuit and configure the C3 output from the op amp with the base of Q1.

This upgrade will ensure that the circuit responds appropriately even to weak sound signals, specifically dog barking sound during night time, and trigger the IC 555 stages for the intended results.

Increasing the Range over 50 Meters

To make the above design respond to dog barks at distances over 50 meters, the following modified idea could be tried.

However this circuit being extremely sensitive could get triggered by other forms of sounds in the vicinity.

PCB Design

UPDATE: A Much Simplified Design

A simple transistorized circuit presented below can be used as effectively as the above designs for repelling dogs or any other animal away, from a distance.

The parts list for the above design is shown below:

  • R1 = 5k6
  • R2 = 47k
  • R3 = 3M3
  • R4 = 33K
  • R5 = 330 OHMS
  • R6 = 2K2
  • C1 = 0.1uF
  • C2 = 1uF/25V
  • T1, T2 = BC547
  • T3 = TIP127
  • D1 = 1N4007
  • Mic = electret condenser MIC.

If you wish to use some other form of deterrent instead of the indicated high power alarm, you can replace the speaker with a relay and connect the desired load with the relay contacts. The relay based design is demonstrated in the following diagram:

The parts list will be the same as above, except the T3, which can be replaced with BC557 transistor.

How it Works

As soon as a relatively loud noise such as a dog barking sound is detected by the MIC, the signals are amplified by the subsequent BJT stages, which activates the relay momentarily. This momentary delay of the relay activation is determined by the value of C2, which can be adjusted to best suit the application.

The relay contacts can be hooked up with a suitable high frequency circuit, such as an electronic dog whistle.

Improving Further

In the above design, the relay can be eliminated, and the T3 collector output can be directly used to activate the IC 555 frequency generator circuit, as shown in the following figure:

Dog Deterrent Circuit

Are dogs from the neighborhood constantly digging up your front lawn? The following high-pitched screamer can effectively deter them!

The IC1 (Integrated Circuit 1) is configured as a high-frequency oscillator, producing narrow pulses. You have the flexibility to adjust the frequency using RV1 and fine-tune the mark-to-space ratio with RV2.

IC1's output is channeled to the base of Q1 through R5 and D1-D2. The pulses at the collector of Q1 drive SPKR1, which is a piezo horn tweeter.

These sounds operate at frequencies well above our hearing range and are exceptionally loud, making them audible to dogs and other garden pests with four legs.

The inclusion of diodes D1 and D2 serves to enhance the turn-on voltage for Q1 because IC1's output doesn't reach all the way down to zero volts.

To achieve the best results, some trial and error with RV1 and RV2 settings may be necessary to optimize the device's performance.

You'll also like:

  • crop field insect protector solar circuit diagramInsect Light Trap Circuit for Protecting Crops
  • Natural Mosquito Repellent Using High Watt Resistor
  • mos rep3 Useful Electronic Mosquito Repellent Circuits Explored
  • mosquito swatter bat trafo details2 Mosquito Swatter Bat Circuit Diagrams Explained

Filed Under: Pets and Pests Tagged With: Barking, Deterrence, Frequency, High, Preventer

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!



Previous Post: « PWM Motor Soft Start Circuit to Prevent High Consumption during Power Switch ON
Next Post: How Mosquito Traps Work »

Reader Interactions

Questions & Answers

Total Posts: 404
Newest Oldest
Marcelo Ribeiro
June 6, 2026 • 2 months ago #208011

Hello Swagatam,

Is the tested 1st circuit be able to reach dogs at a distance of 20 mts or 30 mts? If not, how can I improve its reach?

Reply
SwagatamAdmin
June 7, 2026 • 2 months ago #208033

Hello Marcello, first diagram was tested by Mr. Emad.
For 20 meters I would suggest you to reduce the frequency to maybe 9kHz, so that it becomes like a sharp hissing sound (sharp white noise), which may be slightly audible to human being…and this can be reduced by using a cone type radiator around the speaker. Instead of tweeter, try a standard 8 ohm 5 watt speaker….
Remember this must be turned on, only when the dogs bark, and not continuously…

Reply
Marcelo Ribeiro
June 8, 2026 • 2 months ago #208068

Hello Swagatam, thanks for your quick reply!

Pls did you receive any feedback from Mr. Emad if the dogs just stop barking or they run away desperately or both?

Reply
SwagatamAdmin
June 9, 2026 • 2 months ago #208096

Hi Marcelo, since the testing was done successfully once, so maybe Mr.Emad did not not find it necessary to update further results.
The 1st circuit should work above 20 meters if the frequency is reduced to audible range of maybe 12kHz, and directed through a conical radiator…

Reply
Marcelo Ribeiro
June 10, 2026 • 2 months ago #208126

Hello Swagatam,

Thanks for your prompt feedback!

Before I starting to build the circuit, I was just wondering for a final confirmation from someone else who really tested it against the dogs and what was their behaviour in such distance (20 ~ 30 mts).

Reply
SwagatamAdmin
June 10, 2026 • 2 months ago #208141

Marcelo, if you build it correctly, as explained by me in the previous comment, then it should work as per the expectations…

Reply
Marcelo Ribeiro
June 10, 2026 • 2 months ago #208162

Perfect! Will do.

Thanks, Swagatam!

Reply
SwagatamAdmin
June 11, 2026 • 2 months ago #208193

You are welcome, let me know if you face any further issues…

Reply
Alex Bueno
March 13, 2026 • 5 months ago #202659

Hi. my neighbors have dogs that barks most of the time — early mornings, mid morning, noon time , afternoon and evening when I am watching some movies–less frequent. I am considering to build one of your electronics designs but I want to know if this circuit will also scare other animals that visit my property for foods like monkey, lizards, skank, possums, etc. , which I welcome and feed them and I want to keep them around. So, I just want to stop the dog from barking. Recommend a circuit?

Reply
SwagatamAdmin
March 14, 2026 • 5 months ago #202708

Yes, most likely this circuit will scare most of the other animals also…
You can try a manual dog whistle in front of monkeys and check whether or not they are scared, that will prove if the above circuit can affect other animals or not…

Reply
Alex Bueno
May 11, 2026 • 3 months ago #206762

Hi. I just built the circuit as described at the beginning of this article. I noticed that the transistors get hot after a few seconds so I will mount them on a heatsink — T2 get overheated much faster than the others transistors. Somewhere in your comments, you advise someone to use a 10mf capacitor with a tweeter so I need to confirm if this capacitor is to be mounted in parallel or in series with the tweeter? I do not have any instrument to check its frequency so I am using my iphone app to check its frequency. As I move the pot from one end to the other , its frequency output change erratically from low 300 to 18500hz but it does not stay fixed at its peak of 18500 hz approximately and also it does not reach 20000 or higher. What can cause that? Also, its propagation frequency does not goes beyond 4 – meters unless I place the tweeter inside of a 2 1/2″ tube — I would like to extend its frequency range to 20 to 30 meters. I really appreciate your help on those things that I am having some concerns. Thank you

Reply
Marcelo Ribeiro
June 6, 2026 • 2 months ago #208007

Hello Alex. Pls I’m interested to see the results of your efforts. Let’s get in touch.

Reply
Marcelo Ribeiro
June 6, 2026 • 2 months ago #208006

Hello Alex,
I’m facing the same nightmare with dogs in my region…I really need a powerfull and effective circuit that really disturbs the dogs at 20 to 30 mt range. Please, have you made the circuit yet? Any success? I’m from Brazil.

Reply
SwagatamAdmin
May 12, 2026 • 3 months ago #206796

Hi, the 10uF capacitor, it has to go in series with tweeter, the capacitor mainly blocks the lower frequencies and lets the higher frequencies pass.

About the transistor heating especially T2, it usually happens from too much current or maybe some wiring mistake somewhere, so check the transistor pin connections once again carefully because even one wrong pin can make transistor heat very badly.

Also check whether R4/R5 and R6/R7 values are exactly correct or not.

Use only 8 ohm tweeter here, lower impedance ones may pull extra current and then transistors become hot very quickly.

Small heatsinks on all transistors will help too.

That unstable frequency reading is not very surprising actually, phone apps above 18kHz are usually not very trustworthy, moreover ordinary tweeters also start becoming weak near ultrasonic range, so around 20kHz the reading may keep jumping a little instead of staying fixed.

That 4 meter range also looks kind of normal with ordinary tweeter setup.

If longer range is needed then better try piezo ultrasonic tweeter or transmitter type unit.

A horn or tube in front may help focus the sound more forward.

Keeping frequency somewhere around 17kHz to 19kHz usually works better for propagation instead of pushing too near 20kHz and above.

Power can be increased carefully, but then heatsinks become more important otherwise transistors may overheat again after some time.

For reaching maybe 20 to 30 meters powerful directional ultrasonic transmitter setup is needed, normal tweeter based circuits may not work…

Reply
Alex Bueno
April 10, 2026 • 4 months ago #204664

Thank you for your kindly reply.

Reply
Yogesh
February 17, 2026 • 6 months ago #201219

Hello Swagatam,
I came to this post very late after buying XY-LPWM Signal Generator PWM & Multicomp Pro 16mm 40kHz Ultrasonic Transceiver Black -74dB with 2N3904 & 1k registor however i failed to generate the audiable sound out of that circuit. I placed 5V and tried with 12v too but no luck.I set PWM to generate 1k, 10K also tried 100 hz etc but no audiable signals on the Ultrasonic Transceiver.

would you suggest the how I could generate at least 20Khz or 40Khz from above componants.

Reply
SwagatamAdmin
February 17, 2026 • 6 months ago #201225

Hi Yogesh,
How did to wire the 2N3904 base, collector, emitter with the module and the transducer? And what duty cycle (PWM) did you fix in that module? Please let me know about all these, I will try to figure it out for you…
Initially you can try replacing the transducer with a headphone and check the response at lower frequencies below 10kHz, and PWM at around 50%…if you hear the tone, that will prove the module is working correctly….

Reply
Yogesh
February 17, 2026 • 6 months ago #201235

The VIN+ and GND pins of the XY-LPWM module to your power supply (e.g., 5V).
Connected the PWM output pin of the module to the base of the NPN transistor via a 1 kΩ resistor.
Connected the emitter of the NPN transistor directly to GND of the power supply.
Connected one terminal of the piezo speaker to the positive power supply line (e.g., 5V).
Connected the other terminal of the piezo speaker to the collector of the NPN transistor.

I tried 100 khz then 1khz and 20, 40 khz but no sound from passive piezo speaker ( which supports 40khz at 98db)

Reply
SwagatamAdmin
February 18, 2026 • 6 months ago #201275

Your connections look good…
However, a transducer will not generate an audible sound like a normal speaker…
So, to confirm you can connect a headphone or a small 8 ohm speaker in place of the transducer, and check the results…make sure to connect a 100 ohm resistor in series with the 8 ohm speaker so that the transistor does not heat up…

Reply
Yogesh
February 27, 2026 • 6 months ago #201857

Possible to get circuit from you directly? I need to generate 40khz to 100khz frequency by changing the Potentiometer. Possible? I will be using 12V battery

Reply
SwagatamAdmin
February 28, 2026 • 6 months ago #201904

Sorry, nowadays I do not sell components or kits, so it might not be possible to get them directly from me.

Reply
Jack
July 17, 2025 • 1 year ago #184530

Hi, dear.
I made this circuit: manual dog repeller circuit

The problem is that the 10R 1W resistor and TIP122 gets very hot after a few seconds of operation, I use a single 10W 4ohms speaker or 2 speaker 10W 4ohms in series (10W 8ohms).

Reply
SwagatamAdmin
July 17, 2025 • 1 year ago #184534

Hi, Thanks for your kind feedback….Please try replacing the transistor with a TIP35, and resistor with 10 ohms 5 watt wire-wound, and check the response…

Reply
suat kaleli
July 11, 2025 • 1 year ago #184366

Hi Swagatam;
Re. to above high power push-pull dog repellent circuit, sorry but i have a doubt for the transistors connection. For instant, tip142 is NPN type transistor, so if the base is + then either the emitter or the collector should be connected to the negative side in general usage. Then this is the exceptional usage or there is any mistake on the circuit diagram?

Reply
SwagatamAdmin
July 11, 2025 • 1 year ago #184371

Suat, the NPN transistor in this H-bridge network is working like an emitter-follower, and the speaker becomes its emitter load, then the other side PNP BJT keeps the other wire of the speaker grounded, so the conduction completes, so the H-bridge design is correct.

Reply
suat kaleli
July 11, 2025 • 1 year ago #184373

i am so sorry Swagatam but i have not mentioned neither the emitter follower or the collector follower matter, i have meant that the location of the T3 and T4 would be changed with the T1 and T2 in accorance with their PNP or NPN type specification, thanks again.

Reply
SwagatamAdmin
July 11, 2025 • 1 year ago #184374

Suat, Do you mean, swap the NPN with PNP and vice versa? Yes definitely that is also possible, and can be tried.

Reply
suat kaleli
July 11, 2025 • 1 year ago #184358

Hi Swagatam;
Re. to above high power push-pull dog repellent circuit, i need your confirmaton for the followings;
1- if the emitters and collectors connections of the transistors are OK? or can we connect them as the reverse connected?(changing the emitter and collector side reverse)
2- if it is necessary to use a capacitor with the speaker or not?

Reply
SwagatamAdmin
July 11, 2025 • 1 year ago #184362

Hi Suat,
It is possible to modify the H-bridge pinouts of the BJTs but i won’t recommend that because the given configuration is a tested design, so it is better to stick with this design, moreover the present configuration is good and reliable.
Yes you can add a series capacitor with the speaker, maybe a 10uF non-polar capacitor for adding extra safety for the speaker and the transistors…

Reply
suat kaleli
July 10, 2025 • 1 year ago #184320

Hi Swagatam;
i made a programme that produces 26 KH, 22 KH and 20 KH frequencies or PWM signals. Their duty cycle rates are 50%, 60%, 80% and each session lasts 3,5 seconds. For instant 20 KH frequency with the duty cycle 60% runs 3,5 seconds then the other runs in the same period. My Oscilloscope displays and confirms that all output signals are OK. For the test purpuse use 2,2 mF capacitor and the 8 Ohm 0,5W speaker. The distance between the dogs and the circuit is about 1 meter. But the dogs do not show any reflection. Even they do not move. Could i have your opinion on the matter?

Reply
SwagatamAdmin
July 10, 2025 • 1 year ago #184323

Hi Suat,
Then I think it is better to make the 555 version first and test it practically, because it was tested by Mr. Emad successfully.
If it works then you can replicate it with an Arduino…but then the H bridge must be correctly bult and should be compatible with Arduino outputs.

Reply
suat kaleli
July 10, 2025 • 1 year ago #184330

thanks for the support, is it possible to use bd135, bd136 or tip31, tip32 instead of the tip142 and the tip147?

Reply
SwagatamAdmin
July 11, 2025 • 1 year ago #184350

Yes, that’s possible. In that case you can reduce the base resistor values to maybe 200 ohms.

Reply
suat kaleli
June 28, 2025 • 1 year ago #183130

Hi Swagatam;
Re. to above 555 or ardunio circuits, is it possible to use HBridge with the irfz44n instead of the bd139/140 and / or tip142/147 type transistors?

Reply
SwagatamAdmin
June 28, 2025 • 1 year ago #183139

Hi Suat, a BJT will drop only around 1V at its emitter terminals, while a MOSFET might drop upto 5V, so that is the difference between the two types of devices according to me, when they are configured as emitter followers or source followers..

Reply
Jim Meechan
June 24, 2025 • 1 year ago #182573

Hi Swagatam,
Looking at the push pull dog deterrent circuit, I see you are using TIP35 & TIP 36. According to your diagram they are darlington pairs,is this correct as TIP 35&36 are NPN and PNP transistors?
Can you please clarify.
Jim

Reply
SwagatamAdmin
June 25, 2025 • 1 year ago #182644

Thanks Jim, Actually TIP35 and TIP36 are not Darlington, I have corrected the parts list now, and replaced them with TIP142 and TIP147, please use these BJTs for optimal performance…

Reply
Jim Meechan
June 23, 2025 • 1 year ago #182385

Hi Swagatam,

Thank you for great circuits.
I would like to add a mic to the manual push pull circuit, is that possible?
Kind regards
Jim

Reply
SwagatamAdmin
June 23, 2025 • 1 year ago #182395

Hi Jim,
here’s the automatic version of the 555 H-bridge design you are looking for…let me know if you have any further doubts or questions:
mic sound activated dog deterrent circuit with H bridge push pull

Reply
suat kaleli
June 23, 2025 • 1 year ago #182369

Hi Swagatam;
i have produced some low level pwm signals for the test purposes and published short video in the youtube(https://www.youtube.com/shorts/s0ttnyUXQsg) and i used 8 ohm 0.250A speaker to check the output signals. As it can be seen that there is no H-Bridge system but only one 220 uF capacitor between the pwm output pin and the speaker.
Now i will try the frequencies between the 5K and 25K.
i can apply 5V or 9V to the audio / speker side so could you please help me on the matter that should i prefer the polarized or non polarized capactor before the speaker and its ideal uF value? Or please advice if HBridge system is must since the frequency is high?? Or this is the relevant with the dog and the circuit distance.

Reply
SwagatamAdmin
June 23, 2025 • 1 year ago #182389

Hi Suat, the H-bridge configuration is a must, and it plays key role to make the design so effective.
Without H-bridge the circuit might be just 50% effective and the range could be highly compromised.
So yes, H-bridge stage is a must…and I would advise you to first try the 555 version and check its performance in a real life situation, possibly in an ethical way.

Reply
suat kaleli
June 24, 2025 • 1 year ago #182509

Many thanks Swagatam, I see the advantage of the H-Bridge but I really did not understand about the ethical way could you please explain?

Reply
SwagatamAdmin
June 24, 2025 • 1 year ago #182532

You are welcome Suat! By ethical treatment, I mean, to consider the animal situation also, if it is sick or sleeping then please do not test on them, if it is in normal situation then you can test the unit, maybe for a few seconds from a distance.

Reply
suat kaleli
June 24, 2025 • 1 year ago #182576

be sure i love them too much and i really think the same also every morning i try to fed them it may be necessary just for the children.

Reply
SwagatamAdmin
June 25, 2025 • 1 year ago #182643

Same here Suat! I also love them a lot. So glad to know you feed them every morning, that is really heart-touching. And yes I agree, it also teaches the kids something really good.

Reply
suat kaleli
June 25, 2025 • 1 year ago #182697

some kids were killed here by the dog flock attacks since there are too many unleash/vacant dogs here and some times they are too dangerous esp. at the deserted streets in the early morning or late at nights.

Reply
SwagatamAdmin
June 25, 2025 • 1 year ago #182702

For street dogs the above circuit can be used freely, since the dog has the freedom to run away, but it is not advisable for dogs who are confined inside a fenced area or house…

Reply
suat kaleli
June 20, 2025 • 1 year ago #181953

Hi Swagatam;
Re. ardunio circuit, i exclude the ardunio side loop but just test the H Brigde side i mean there is no pwm no voltage at the base of BC547, the source voltage is 12V and the current is about 1,3A whle the circuit is off. Meanwhile i have used bd135 bd136 Could you please share your opinion if the current ratio is natural although there is no trigger voltage of the BC547?

Reply
SwagatamAdmin
June 20, 2025 • 1 year ago #181968

Hi Suat,
If you keep the input of BC547 open, then the H-bridge will start behaving abnormally and might cause a short circuit across the transistors.
So if you want to test the H-bridge without the Arduino, then you must add either a +5V or 0V logic at the base of the BC547, and then test it.

Reply
suat kaleli
June 19, 2025 • 1 year ago #181858

Hi Sawagatam;
After sending my previous message I have realised that I made a mistake BD140 is PNP and BC547 is NPN sorry since I am confused. Please do not consider it.

Reply
SwagatamAdmin
June 19, 2025 • 1 year ago #181870

No Problem Suat, actually, because of your last comment, I realized the potential issue with the H-bridge, and added a series capacitor with the speaker.

Reply
suat kaleli
June 19, 2025 • 1 year ago #181851

Hi Swagatam;
Re. to above ardunio dog repellent circuit. There are PNP type of 3 pieces transistors. 2 of them are BD140 and a single BC547. However the collector pin of the BC547 goes to the 5V line whereas the emitter pins of the BD140 go to the 5V line.
So could you please confirm if these reverse type connections are correct?

Reply
SwagatamAdmin
June 19, 2025 • 1 year ago #181856

…I think the issue is still there, now with the other diagonal side of the H-bridge remaining conductive during the 3….5 seconds pause.
So now I have yet again corrected the Arduino diagram, putting a capacitor in series with the speaker, now it will be 100% safe from all circumstances.

Reply
SwagatamAdmin
June 19, 2025 • 1 year ago #181855

Hi Suat,
The BC547 is for inverting the Arduino signal so that the respective diagonal MOSFETs are able to conduct separately.
But there’s one issue, because we have 3 to 5 seconds pause after each bursts of high frequency signals, during this pause period one of the diagonal MOSFETs may remain ON for 3 to 5 seconds causing destruction of the speaker.
Keeping this in mind I have now modified the H-bridge so that the MOSFETs remain completely switched OFF during these pause periods….let me know if you find anything wrong in the design..

Reply
suat kaleli
June 17, 2025 • 1 year ago #181485

Hi Swagatam;
Ref. to above ardunio circuit; I think there is a buzzer there instead of the speaker and as far as I know the buzzers do not run like a motor(forward and reverse) so could you please explain why we need the H-bridge driver in the circuit?

Reply
SwagatamAdmin
June 17, 2025 • 1 year ago #181519

Hi Suat, It is not a buzzer, it is a speaker or a tweeter, which have diaphragms inside. so the alternate conduction of the H-bridge will cause the diaphragm to push-pull in forward and backward directions, generating extreme pulsing effect, which cam enhance the power and the range of the waves drastically using an h-bridge..

Reply
suat kaleli
June 17, 2025 • 1 year ago #181579

Thanks Swagatam so then, can i try the 8 ohm 0.250A ordinary speaker?

Reply
SwagatamAdmin
June 18, 2025 • 1 year ago #181660

Suat, no, 8 ohm 0.250A would be too weak to create any ultrasonic effects in the atmosphere. If you want to use speaker, then try using at least a 10 watt or 25 watts speaker…

Reply
suat kaleli
June 18, 2025 • 1 year ago #181681

ok Swagatam, there is a set which had been dismantled from the tv. But there are 2 pieces of the 15w 8 ohms as the serial connected, so should i use both of them in serial or one is enough? an what woul be the current ratio of the circuit? could you please share your opinion?

Reply
SwagatamAdmin
June 18, 2025 • 1 year ago #181684

Suat, One speaker should be enough initially.
However a standard 8 ohm speaker may not work well with frequencies above 20kHz, so you can consider using a frequencies lower than 20kHz.
Current will be = 15/Supply Voltage.

Reply
suat kaleli
June 12, 2025 • 1 year ago #180825

Hi Dear Swagatam;
Regarding the first dog repellent circuit. I would like to make my own circuit since the input voltage 12V is not good for me. Whereas 9V battery is fine for me to carry the circuit with me. I am thinking to use any PIC ic to produce the PWM frequency. So please advise is it possible to mention about the constant values of the frequency and duty cycles in the circuit?

Reply
SwagatamAdmin
June 12, 2025 • 1 year ago #180861

Hi Suat, it is actually a matter of experimentation, which frequency and at what duty cycle will be the most effective.
According to me bursts of pulses having 20kHz frequency at every 3 second ON, 2 second OFF interval can be very effective.
Do you want to have the full Arduino code with circuit diagram?

Reply
suat kaleli
June 13, 2025 • 1 year ago #181042

Thanks Swagatam, please give the ardunio code then i can convert to the ccs c

Reply
SwagatamAdmin
June 13, 2025 • 1 year ago #181048

Hi Suat, I have updated the code and the diagram in the above article, at the top section, please check it…

Reply
Ronald Goderis
May 17, 2025 • 1 year ago #177381

We have a group of 5 German sheppards barking all day in the backyard of our neighbor who couldn’t care less.
The problem is: the dogs are about 250 feet away from our property. So I am thinking of building something that is aimable and has a really long range. Would that be possible?

Reply
SwagatamAdmin
May 18, 2025 • 1 year ago #177439

I think the first circuit should be able to solve the issue.
You can try attaching a conical reflector behind the tweeter device for maximizing the effects.
Please do not keep it switched ON permanently, that would be hugely unethical…either use it through a manual push-to-ON switch or use the automated MIC system with it.

Reply
Bill
April 29, 2025 • 1 year ago #174963

Someone complained to the police about the dog deterrent I set up. The policeman proceeded to stomp around the curtilage of my home while stomping on my 4th amendment rights looking for the origin of the sound. Be careful. Dog owners seem to have more influence with authorities than non dog owners. Despite noise ordinances city officials will not enforce them

Reply
Jerry
March 13, 2025 • 1 year ago #169354

Swagatam sir; with reference to Keith says Feb 3, 2025 and Sam says Jan. 30, 2025 … Have used AMAZON’s Dog Silencer MAX. Tried
setting control, tried redirect, weather shelter and highest
direct aiming. Barking
at all hours. Dog neighbors couldn’t care less. Law enforcement is way too busy to respond to
Complaints. We, wife
and I… 83 and 85 also
used AIR BLASTERS
with minimal results.
How might we find a
skilled engineer,such as yourself, to build us a device that works.

dev

Reply
SwagatamAdmin
March 13, 2025 • 1 year ago #169363

Hello Jerry,
I completely understand your problem, I wish I could do it for you, but testing it might be difficult for me, since I stay in an apartment and the dogs around my area bark only at the middle of the night when I am deep asleep.
I would welcome anyone here who may be willing to do this for all the needy users.
By the way have you tried a manual dog whistle device?
Please try it and let us know how dog respond to it?
https://en.wikipedia.org/wiki/Dog_whistle

Reply
JERRY SERWAS
March 17, 2025 • 1 year ago #169611

Swagatam,
Sir, thank you so much for your expedient reply and significant help efforts.
Have limited knowledge with schematics and soldering skill.
… If ? I am able to build or find a skilled individual .. will let you know if or
when I have a functional unit. ;D
We are so pleased to find you available, online, for folks like us.
Much appreciation and Thanks again, sir .
Jerry

Reply
SwagatamAdmin
March 17, 2025 • 1 year ago #169640

Sounds great Jerry,
I surely believe you will be able to succeed with this project, sooner rather than later.
If you ever have any circuit related doubts, I am always here to help you out.
All the best to you.

Reply
Jerry
March 16, 2025 • 1 year ago #169552

Yes sir, we tried the manuel
whistle. It’s been quite some time since. I/we
don’t recall exactly but
think/believe it probably invoked a pause ( time ?)
then barking resumed.
Thanks your reply.
Jerry

Reply
SwagatamAdmin
March 16, 2025 • 1 year ago #169560

Thank you Jerry, for updating the information,
In that case, chances are the above concepts will work effectively if optimized correctly.
The first one is a tested one and can be definitely tried.
I really hope you find someone who can build a working design for you soon.

Reply
Erkan Hacısalihoğlu
February 5, 2025 • 2 years ago #168299

Hello Sir. Thank you for your valuable share. I need to cat repeller. I’ll try to make this circuit. Did you test effective distance of this circuit. I need to 20-50 mt. effective diastance. Is this solve myneed ?

Reply
SwagatamAdmin
February 6, 2025 • 2 years ago #168302

Hello Erkan,
the above circuit can work with a maximum distance of 10 meters, that too if the driver stage is powerful enough. So 20 meters and above is not possible with the above design.

Reply
Keith
February 3, 2025 • 2 years ago #168273

Is there quality long range dog deterrents you can buy besides the Amazon junk?

Reply
Sam
January 30, 2025 • 2 years ago #168195

Good afternoon,
Would anyone like to sell one of these device, I need one badly, my neighbors dog will not stop barking and when I talked to the owner, his reply was – dogs will be dogs.
Thank you.

Reply
sanman
November 9, 2024 • 2 years ago #165051

Hi Swagatam,
First, my apologies, I have asked some questions which, upon reading the 300 odd comments have already been answered. And even answered questions I forgot to ask.
such as adding an LED into the cct to check for operation. And using a pot to adjust the frequency.
I didnt realise your circuit operated around 13khz. I was under the impression dogs hated above 25khz. Will they still take heed at sounds around 13khz?
In your posts, you recommend the ‘last diagram ” as the proven dog deterrent over the initial diagram. Is the one you refer to as the best, the one under the paragraph heading “Improving Further, or Mr Emads Push Pull dog deterrent?
Thankyou for your excellent website.

Reply
SwagatamAdmin
November 10, 2024 • 2 years ago #165096

No problem Sanman,
The frequency is actually a matter of experimentation. Dogs can get rattled at any loud sound, even a 2 to 4kHz loud sound can make a dog very angry. You can try different frequencies and check which one works the best!
I recommend the last diagram since it has been practically verified by Mr.Emad, although it is a manually operated version.
If you want to make it an automatic device, you can try coupling it with the following circuit:
sound2Bactivated2Brelay2Bcircuit

Reply
sanman
November 9, 2024 • 2 years ago #165043

Hi Swagatam, a question about your dog bark terminator, in your original diagram it shows a 0.1 uf capacitor as C2 but your list of components and your Note, says use a 1uf cap.
Is this discrepancy because it’s just the old diagram?
And is it important to use a particular type of cap in the position of C2 and C1? i.e. greencap, or disc ceramic? My local couldn’t supply what was listed unfortunately.
The other query I have is the second 555 timer legs 2 and 6, I am assuming that both these are the non numbered wires that do not line up with outputs 2 and 6 of the second 555 and join between R6 and c5?
thanks in advance for your help

sanman

Reply
SwagatamAdmin
November 9, 2024 • 2 years ago #165050

Thank you Sanman,
The 0.1uF for C2 should also work, but using a higher value could make the IC1 triggering 100% foolproof.
Any type of capacitor should work, preferably a non-polar type.
The pin#6 and #2 do line up and are joined at the junction of R6 and C5.
Please let me know if you have any further questions…

Reply
Terry
October 26, 2024 • 2 years ago #164417

Hi Swagatam,
Thanks for your reply to my previous questions.
I am using an electret condenser mic and I can confirm that the polarity is correct. To confirm the mic works I set it up using a simple 5v amplifier circuit (that used the BC547) connected to my oscilloscope and yes it responded correctly to any sound.
I was wondering if the supply voltage was the problem with your circuit, I’m using a 12dc supply as I only had a relay with a 12v coil because your circuit said the supply could be from 5v to 15v.
Should I buy a 5vdc relay to try and see if it solves the problem?

Reply
SwagatamAdmin
October 27, 2024 • 2 years ago #164464

Hi Terry,
I used 12V supply in my experiment and it had no problems at all.
So 12V is perfectly fine for the suggested sound detector circuit.
sound2Bactivated2Brelay2Bcircuit
If the supply is 12V, then the relay should be also 12V only.

Reply
Terry
October 24, 2024 • 2 years ago #164244

Hi Swagatam,
I’ve just tried your suggestions with the following results:
1. Removing C2 didn’t help.
2. I put C2 back in circuit and changed R1 to 10k. By clapping VERY loud next to the mic caused the relay to momentarily close (for about 0.25 second) – so, getting there (exciting!)
How do I make it very more sensitive to sound and also make the relay close for about 2 seconds?
Thanks again for all your help on this.

Reply
SwagatamAdmin
October 24, 2024 • 2 years ago #164256

Thank you Terry,
From the information you have provided it clearly looks like the MIC is the culprit and it could be faulty. I hope you are using an electret type MIC.
You can see the video test proof in this article, you can see that the circuit responds even to finger snap sounds from 2 meters distance.
https://www.homemade-circuits.com/simplest-sound-activated-relay-switch/
The relay hold time is decided by the C2 capacitor which we can restore back once the MIC response is corrected.
You can check the MIC polarity in the following image:
electret MIC polarity
The positive must go to the C1, R1 junction, and the negative to the ground line…

Reply
Terry
October 24, 2024 • 2 years ago #164226

Hi Swagatam,
Thank you for producing a very useful website.
Perhaps you can help me? I assembled the circuit board with the relay output driven by the BC557 to switch on a 100w 28khz ultrasonic transducer with a metal dome attached to keep foxes/badgers etc from my garden. The transducer is also activated by PIRs and a wifi switch for manual remote control.
I wanted the dog bark circuit to also quiet down neighbours dogs. However, I have a problem with the assembled dog bark circuit in that it doesn’t seem to work. I used PTH components on a vero board and happened to have ceramic caps instead of electrolytic which I used (I didn’t think it would make a difference as they were the same values just higher voltage rating). When I powered it on, nothing happened. I wondered if the condenser mic was installed wrong but on checking I did have the polarity right. Just in case, I changed the polarity of the mic and this time the relay operated but only when I touched the metal case of the mic – it wouldn’t work with any loud noise. I changed the mic three times but had the same result each time so I don’t think it was a faulty mic. I would be very grateful if you could offer any suggestions on where I might be going wrong.

Reply
Terry
October 24, 2024 • 2 years ago #164241

Hi Swagatam,
Thank you for your fast reply to my query.
Yes, the circuit .png you quoted was the circuit I have assembled and it was good to hear that it is a well tested design and should work.
No, the relay does not operate to clapping or any loud sounds or even tapping the mic itself. The relay does operate if the mic is incorrectly wired in (polarity wrong) and when the mic metal case is touched. The relay then drops out when the mic is untouched but the relay still does not operate to clapping or any other loud sounds.
I will try your suggestions next – removing C2 and changing the resistor values. I’ll let you know how I get on.
Many thanks

Reply
SwagatamAdmin
October 24, 2024 • 2 years ago #164238

Thanks Terry,
Are you referring to the following circuit?
sound2Bactivated2Brelay2Bcircuit
This is a well tested design so it should work.
Is the relay operating to your clap sounds?
To make it more sensitive, you can remove C2 and increase the value of R1 to maybe 4.7k or 10k.
Please first confirm whether the relay operates or not with slightest bit of sound around it.
Let me know how it goes.

Reply
Tom Davis
October 19, 2024 • 2 years ago #163760

Thanks for your information. I may try the piezo transducer, but would really like to find an electromechanical tweeter with more power at 25 KHz. Tweeter manufacturers do not publish much about upper frequency rolloffs.

The neighbor’s barking dog will require a lot of power to shut him up. He just sniffed through the fence at a high pitched commercial no-bark device. (However, a dog that was visiting him took off running for the far corners.)

Reply
SwagatamAdmin
October 20, 2024 • 2 years ago #163800

I understand your problem, however I do not seem to have any specific details about a 25kHz tweeter, I tried searching it online and could find a few brands. You can probably try searching for a “high power 25kHz tweeter” and see if that helps or not.

Reply
Tom Davis
October 19, 2024 • 2 years ago #163692

What tweeters can you recommend with frequency ranges above 20 KHz? I really need some with high power to discourage local dogs.

Reply
SwagatamAdmin
October 19, 2024 • 2 years ago #163699

Hi, did you try searching for a 25kHZ tweeter?
If you cannot find one, you can simply use a 27mm piezo transducer, such as this one:
piezo transducer
Please use an inductor parallel to the above piezo for a highly boosted output.

Reply
jay
October 3, 2024 • 2 years ago #162391

hi
I notice in some circuit diagrams you have a ‘u’ shaped conductor wire crossing over a straight line conductor wire, indicating that these crossed paths are not connected….however, you also use ‘dots’ at conductor wire intersections….my question is, where you have neither used a ‘dot’ nor a ‘u’ shape (at the intersection of conductor wires) ie. where two conductor simply cross paths ( + ) are these conductors meant to be ‘connected’ or not ?

In some circuit diagrams you have both ‘dot’ intersections & ( + ) simply wires crossing over each other, are only the ‘dotted’ intersections meant to be connected in these circuits ? (such as in the > ‘UPDATE: A Much Simplified Design’ diagram above.

thnkyou

Reply
SwagatamAdmin
October 3, 2024 • 2 years ago #162401

Hi, the curved U shaped or C shapes emphasize that those intersections are NOT connected and have no contact with each other.
The dot marks emphasize that the intersections are connected with each other.

Reply
jay
October 4, 2024 • 2 years ago #162491

hi, yes I mentioned that the U shaped are not connected & obviously the ‘dots’ are…my question was …where you have two wires crossing over each other ( + ) are these connected or not ?

if they are not connected, why don’t you use the U ?
if they are, why don’t you use the ‘dot’ ?

point being, in some of your diagrams you have Both, the ‘dot’ & the two wire crossing over each other (without a dot) this is the contradicting part.

just clarifying
thankyou

Reply
jay
October 7, 2024 • 2 years ago #162750

hi
i sent you emails with attachment image
pls check your emails.

thanks

Reply
SwagatamAdmin
October 7, 2024 • 2 years ago #162786

Can you please provide the name in the email, I could not find any email with your current email ID or your name?

Reply
SwagatamAdmin
October 4, 2024 • 2 years ago #162504

Please specify me the diagram which has not dots and no curves on intersections, I will check it.

Reply
SwagatamAdmin
October 4, 2024 • 2 years ago #162507

When the dots are there it indicates that only those dots are connected and rest of the wires are not connected. The curved U or C at the intersections are then not required, but I have included both in some cases just to make it more clear that the intersections are specifically not touching each other.

It is not contradicting but yes it can be confusing for the newcomers, who can always ask me here for clarification.

Reply
jay
October 7, 2024 • 2 years ago #162798

i assumed that was the case, but wanted confirmation….as opposed to it being an oversight.

thanks

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (104)
  • Battery Charger Circuits (90)
  • Datasheets and Components (109)
  • Electronics Theory (150)
  • Energy from Magnets and Earth (41)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (100)
  • Lamps and Lights (163)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (30)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (46)
  • Solar Controller Circuits (62)
  • Temperature Controllers (44)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)



Circuit Simulator

circuit simulator image



Subscribe to get New Circuits in your Email



Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |



Recent Comments

  • Swagatam on EGS002 Datasheet, Circuit Diagram Explained
  • Swagatam on 2 Cool 50 Watt Inverter Circuits for Students and Hobbyists
  • way on 2 Cool 50 Watt Inverter Circuits for Students and Hobbyists
  • Tasiruls hekh on EGS002 Datasheet, Circuit Diagram Explained
  • Swagatam on Simple Walkie Talkie Circuit

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin

© 2026 · Swagatam Innovations