• 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 | Contact | Calculators-online
You are here: Home / Pets and Pests / Ultrasonic Pest Repellent Circuit

Ultrasonic Pest Repellent Circuit

Last Updated on January 8, 2024 by Swagatam 69 Comments

The explained Ultrasonic Pest repeller is a device that generates ultrasound or a very high frequency noise in the range of over 20 kHz which becomes useful for repelling or scaring away animals like stray dogs, cats, mice bats, etc. This becomes possible since these animals are able to easily detect the frequencies at this range and find it disturbing in their ears, while humans remain unaffected due to lower hearing range.

What is Ultrasound or Ultrasonic Frequency

Animals like dogs, mice, bats have the ability to pick up sound frequencies up to 40 kHz. There are various types of bugs and pests which are also able to hear or respond o sound frequencies at this level.

Sound frequency at this level are classified as ultrasounds and could be used in a number of trial and error and functional applications. The unit explained here can be best applied to discourage stray dogs and other undesired animals, in scientific studies, and several other intriguing purposes.

The proposed circuit here generates a non stop sound frequency which may be quite above the capacity of human ear to perceive, that is over a range between 18,000 and 40 kHz.

How the Circuit Works

A single IC 4093 which has quad Schmidt NAND gates is used here for the generation of the required frequency.

Only one gate out of the 4 is used as an oscillator via the RC network, P1, R1 and C1. All these 3 components determine the frequency of the output and can be adjusted for optimizing the output response. The remaining 3 gates are rigged as buffers for providing sufficient driving current for the transistor.

The indicated piezoelectric transducer includes its optimum output power between 700 and 3,000 Hz, although it may also work at greater frequencies but generating a lesser amount of power. The recommended power supply is a 9-volt battery.

This project generates ultrasonic frequencies approximately between 18,000 and 40,000 Hz, although it is possible to easily adjust this range by altering C1, within the values of 470 pF and 0.001 uF. Frequency could be fixed through P1 in the range as determined by C1.

Please note that the maximum range of frequency that can be generated by the IC 4093 is 500 kHz. The complete circuit diagram of the Ultrasonic Generator can e seen in the below shown figure

simple ultrasound pest repellent circuit

Parts List

  • lC1 - 4093 IC
  • Q1 - BD135 medium-power NPN silicon transistor
  • BZ - Piezoelectric transducer
  • T1 - Transformer: primary 110 VAC; secondary 6Vx100 mA
  • R1 - 10K, 1/4W, 5% resistor
  • R2 - 1K, 1/4W, 5% resistor
  • P1 - 100K trimmer potentiometer
  • C1 - 4.7nF ceramic or metal film capacitor
  • C2 - 100 uF/16V
  • S1 - SPST toggle or slide switch
  • B1 - 6V or 9V - AA cells or battery - see text

IC 4093 Pinout Image

Piezo Transducer Image

PIEZO TRANSDUCER

Components overlay and the PCB track layout can be seen in the following image.


The entire circuit could be encased inside a compact plastic material container. The transducer or the piezo element may be installed on the front board.

Be careful with the placement of the parts that carry polarity, for example the transistor, electrolytic capacitor and power supply input. If the unit is intended to be operated continuously, make sure Q1 is mounted on a proper heatsink.

The transformer specs is not an important factor. Any transformer having a secondary coil ranging from 100 to 500 mA could be used in this ultrasonic pest repeller project.

Ideas you can Tweak Further

To find out more regarding the circuit or to improve its effectiveness:

  • You could try replacing the piezoelectric transducer with a tweeter and check the response, whether it improves or not.
  • Remove T1 and BZ and place the tweeter between positive line and the transistor collector. You might also try measuring the level of the generated ultrasound power?
  • The circuit can also be tweaked to generate sound within the human listening range.
  • This can be done simply by replacing C1 with any other capacitor having value in between 0.02 and 0.1 uF.

Insect Repeller using IC 555

Using an uninterrupted sound frequency to repel or attract insects may actually be possible in real life.

The range of frequency or depth may depend on the implementation and the type of pest, which can be perhaps determined through some trials.

The circuit displayed below produces a nonstop noise frequency you can use to push away (or draw in) several types of insects.

The circuit could be driven by 9V battery packs which may run for a long period of time due to its minimal current consumption. The center of the circuit is the 7555 lC, a CMOS timer configured as an sound oscillator which operates a piezoelectric transducer.

The parts positioning on a do-it-yourself PCB is revealed in the below given Figure.

Precise location may not be too critical. Each of the parts and the power supply could be enclosed in a compact plastic-type container. Transducer BZ can be a crystal earpiece or a piezoelectric transducer.

Location of the polarized items, like c2 and the power supply, should be cautiously wired.

Applying the insect repellent can be quite simple. You have to fine-tune he trimmer potentiometer P1 to generate a noise having the identical throw, matching the insect's range you would like to repel.

Trial and error has to be done before you uncover the ideal frequency to repel a certain insect.

Parts List

Pest Repellent Circuits which were Tested and Found Working

This image has an empty alt attribute; its file name is pest-repellent-circuit-1200x451.jpg
Figure#1

The circuit of the pest repeller we investigated is shown in Figure 1 above. We were startled to see that the circuit had only a single 555 timer IC wired in the manner of a squarewave generator. According to the parameters of R1, R2, and C1, its frequency was about 45 kHz.

A modified trapezoidal voltage waveform applied to pin 5 of the 555 timer modulates the 45-kHz carrier. A combination of C2, R3, and R4 linked across one endpoint of the bridge rectifier generates the modulating voltage. An oscilloscope examination revealed a sweep of roughly 20kHz on each side of the base frequency.

A 2 inch piezoelectric tweeter serves as the speaker.

The circuit shown in Figure 2 below is a pest repellent reported in one of the French electronics publications. The author says in the study that frequencies ranging from 20 to 40 kHz induce very painful cavities to develop in the brain fluids and blood arteries of mice and insects, leading them to flee. Radiated power could be as little as one-third of a watt.

This image has an empty alt attribute; its file name is pest-repellent-circuit-using-IC-4011.jpg
Figure#2

A quad two input NAND gate is wired as a multivibrator in the circuit, which operates at roughly 40 kHz. A residual 120 Hz sawtooth on the power supply line regulates the ultrasonic frequency with the least amount of filtering in the power supply.

A couple of  Darlington-connected NPN transistors enable power amplification for driving the speaker optimally.

The circuit in Fig. 3 below is perfect for experimenting with the effects of continuous or pulsed high-frequency signals since it may provide either a continuous or pulsed output.

The idea was developed by Signetics.

This image has an empty alt attribute; its file name is pulsed-pest-repeller-circuit-1200x489.jpg
Figure#3

Referring to the circuit, one 555 timer, IC2, creates an ultrasonic squarewave at a desired frequency of 20 kHz. An additional 555, IC1, can provide that signal constantly or like an on and off switched signal.

It is simple to experiment with frequency and duty cycle. The duty cycle is the percentage of time spent "on" in comparison to the overall period, and it may be regulated from little more than 50% to nearly 100%. The duty cycle of the astable multvibrator circuit is determined by the timing resistors RT1 and RT2, and is equal to RT1 + (RT2 / RT1) + 2RT2.

The ON time could be expected to be 100% if RT1 is extremely small in value and while restricting the current via the discharge transistor to the maximum, as per the data sheet, the on time is near to 100 percent.

The 555's discharge transistor is an open-collector NPN device with the collector connected to pin 7 and the emitter connected to ground at pin 1. Because the maximum current through it varies depending on the manufacturer, you should double-check the manufacturer's data sheet to be safe.

You'll also like:

  • ldrcircuitSolar Insect Killer Circuit for Protecting Crops in Farms
  • dogbarkcircuitHow to Make Dog Barking Preventer Circuit using High Frequency Deterrence
  • rat repellent continuousRat Repellent Circuit Diagram
  • mos rep3 Useful Electronic Mosquito Repellent Circuits Explored

Filed Under: Pets and Pests Tagged With: Pest, Repellent, Ultrasonic

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: « Easy Two Transistor Circuit Projects for School Students
Next Post: Voltage Regulator Circuits and Projects »

Reader Interactions

Comments

Carlos says:
July 9, 2025 at 1:38 am

The circuit is really good and I know it really works, but this time I have to cover a longer distance…

Reply
Carlos says:
July 9, 2025 at 1:34 am

Hello, good afternoon, Mr. Swagatam. I would like to ask you a favor. How can I increase the power of this rat repellent circuit with Lm555? I am attaching the circuit diagram. Thank you very much.

Reply
Swagatam says:
July 9, 2025 at 9:31 am

Hello Carlos,
You can try modifying the circuit in the following way, to convert it into a high power version. Let me know how it goes…
https://www.homemade-circuits.com/wp-content/uploads/2025/07/high-power-pest-repellent-circuit.jpg

Reply
Carlos says:
March 28, 2025 at 5:11 pm

Hello good afternoon Mr. Swagatam, with respect to the rat repellent circuit, I want to tell you that the circuit of figure 1 with 555 which takes part of the signal alters to pin 5. That circuit has mounted a friend of mine from Argentina and it really works very well, the problem here in Italy is that I can not find a transformer. Only switching power supplies… The question is that how can I replace the transformer but being able to take that alternating signal? Thank you very much

Reply
Swagatam says:
March 28, 2025 at 5:40 pm

Thank you Carlos, for this valuable information and update.
However, in the referred circuit design, a transformer is a must for getting the perfect half sine waves at pin#5 of the 555 IC and the intended modulations. Unfortunately, without transformer this might not be possible at all:
https://www.homemade-circuits.com/wp-content/uploads/2022/03/pest-repellent-circuit-1200×451.jpg

Reply
Carlos says:
March 26, 2025 at 2:35 pm

Hello Mr. Swagatam good morning, in this opportunity I want to ask you if you have a somewhat powerful circuit not (too much) since the area to be covered is not so large. Ultrasonic as I am having problems with rodents (rats) and I want to eliminate but it would have to be a circuit that is changing frequency so that they do not get used to the same frequency and return …. Thank you very much Mr. Swagatam.

Reply
Swagatam says:
March 26, 2025 at 6:56 pm

Hello Mr. Carlos,
yes the last design by Signetics can be modified for an increased power output, by eliminating the op-amp completely and the connecting the speaker with pin#3 of the IC2 through a 10uF capacitor.
Since the sound output is intermittent, changing the frequency might not be required here.

Reply
Wahab sahnoune says:
October 4, 2024 at 11:36 am

pls Can you give me program in C or basic language to generate alarm signal and description of the wave form of this signal, because i want to build a siren with a microcontroller.

Reply
Swagatam says:
October 4, 2024 at 3:09 pm

Sorry, my microcontroller knowledge is not good, so it won’t be possible for me…

Reply
Carlos says:
March 26, 2025 at 9:16 pm

Thank you very much for your quick response I will build it. On the other hand I want to ask you 2 questions, first tell you that I never had oscilloscope and I want to buy one, now the first question is…. Is it really necessary to have an oscilloscope for electronics repair? And the second one is that you have a lot of experience, could you do a good tutorial on how to use an oscilloscope, how to make averages, etc etc etc.

Reply
Swagatam says:
March 27, 2025 at 11:46 am

You are welcome Carlos,
Regarding your 1st question, an oscilloscope may be actually necessary only when critical waveform analysis is required in a circuit, otherwise a simple DMM is enough to verify the circuit working.
I have used the following oscilloscope with outstanding results, which is very effective and cheap for basic waveform analysis of any circuit. I think you should really try this device and have fun understanding the waveform patterns of relevant circuits:
https://www.homemade-circuits.com/dso138-best-small-oscilloscope-for-electronic-hobbyists/

Reply
Audu says:
July 27, 2024 at 2:44 am

hi sir
I’m given an assignment to build an ultrasonic pest reppeller. please which working circuit should I try?

Reply
Swagatam says:
July 27, 2024 at 10:18 am

Hi Audu,
I think you should try the following design:
https://www.homemade-circuits.com/wp-content/uploads/2022/03/pulsed-pest-repeller-circuit-1200×489.jpg
Keep the switch in the pulsed mode.

Reply
Audu says:
August 7, 2024 at 8:02 pm

I have built the circuit sir but the buzzer is making a pulse noisy sound .

Reply
Swagatam says:
August 8, 2024 at 8:21 am

What value have you used for the capacitor CT? Please try 0.001uF for Ct and check again.

Reply
Jiří says:
February 12, 2024 at 1:55 pm

Good day. Mr Swagatam can I use this 4093 circuit ultrasonic generator with 40kHz piezo transducer to clean various items. I have a stainless steel tub with a piezo transducer glued on. A power of 50W would be enough for me.

Reply
Swagatam says:
February 12, 2024 at 3:36 pm

Hi jiri, the 4093 circuit will not be able to generate 50 watt power, however if you remove the transformer and use a TIP122 transistor directly with the ic output through a 10k base resistor then its collector can be used to drive a 50 watt transducer

Reply
Jiří says:
February 16, 2024 at 2:55 pm

Mr. Swagatam modified connection as you wrote me does not work for me. When connecting the circuit, I calculated the following values: Un is 12V, frequency 40kHz, duty 90%, Ub is 1.15V and Uc is 0.47V. The piezo transducer has a capacitance of about 7nF. After connecting the piezo transducer, the frequency behind the resistor drops to almost 0. Could the piezo transducer be defective? Thank you.

Reply
Swagatam says:
February 16, 2024 at 3:33 pm

Hi Jiri,
Did you use the transistor TIP122 as suggested previously?

Reply
Jiří says:
February 16, 2024 at 8:46 pm

Yes, I used a TIP 122 transistor.

Reply
Swagatam says:
February 17, 2024 at 8:30 am

If you connect the transducer at the collector of the TIP122, the frequency output of the IC cannot become 0. If the Transducer is short circuit then the transistor will heat up.

Reply
Sergei Boldyrev says:
January 28, 2024 at 8:01 pm

Hello, sir! In your opinion will the circuit work from 12V DC in figure #2?

Reply
Swagatam says:
January 28, 2024 at 10:36 pm

Hi Sergei, yes figure#2 will work with 12 DC, use a piezo tweeter for the speaker.

Reply
Heather says:
September 17, 2023 at 11:48 am

Large flocks of birds descend on my fruit trees each summer. They are now too large for me to net, although pruned every year. I would like to have an ultra sonic bird scarer to place underneath the trees with the sound spreading up through the branches. …. in a shape spreading outwards from the base unit to cover the shape of the tree. A motion sensor is of no use due to the windy environment. The trees are placed in three different locations around my backyard. The scare units would need to be battery/solar operated. They would only be in use during summer fruit season. The commercially available ones do not suit my backyard situation. A successful invention would be a winner here in Adelaide as our environment is mostly fruit fly free and everyone I know with fruit trees has the yearly struggle to cover and net their trees. I grew up in and orchard area where gas guns were the norm – Not advisable in the suburbs! Any inventors up for the challenge? Thank you.

Reply
Swagatam says:
September 17, 2023 at 12:52 pm

I understand your problem, but the question is, can ultrasound frequency make any impact on birds? If yes then I think the following circuit can be effective. However, to make the sound louder the speaker would need to be driven through a power transistor coupled to the output of IC3

https://www.homemade-circuits.com/wp-content/uploads/2022/03/pulsed-pest-repeller-circuit-1200×489.jpg

Reply
Shahid says:
July 20, 2023 at 9:42 am

Very great and useful

Reply
J K says:
October 28, 2022 at 3:09 am

Do you have a youtube video to show this will actually stop dogs barking ?

Reply
Samuel Konger says:
August 30, 2022 at 10:28 am

Can we Replace those NE555 wit a Single NE556?

Reply
Swagatam says:
August 30, 2022 at 12:10 pm

Yes that’s possible.

Reply
Abhishek says:
July 13, 2022 at 12:12 pm

I have to produce from 18k- 45khz continuosly varying frequency ,which vary from 18k-45khz within 10 min automatically and should continue until we stop the power….
How can I do this

Reply
Swagatam says:
July 13, 2022 at 1:08 pm

You can probably try the concept explained in the following article:

https://www.homemade-circuits.com/home-emf-radiation-protector/

You can change the INDUCTOR with a piezo transducer

Reply
an Igor from rustsia state says:
May 19, 2022 at 2:27 am

With my respect to Mr.Swagatam all pests are wery soon&fast adopted to these ultrasonic noice
(permanent beeeeeeeeee at fig.1 or permanent be–be–be–be–be– at fig.3) – in a few hours or faster. Only self-ascnoleged risc – to don’t hear a raptor through the ultrasonic noice – is force these mice-rat-pests to go fare of the noice. For mosquito-buttrefly-fly pests real defence radius is 1-1.5 meters or less – depends on wind and on relative humidity of air. For all bugs-werm-termitos-pests all sounds are inert. It mean – the kind of devices is almost useless.
The ultrasonic noice make cats and dogs too nervouse=agressive. For humans the ultrasonic repellents is made both: waste of money for device with in did not-defenced property.
Apologues for my English and for broken hopes.

Reply
Swagatam says:
May 19, 2022 at 9:33 am

Igor, the last three circuits have been tested by engineers and found to be working, so although in some case it may not work but it is not useless, it definitely works in many of the cases.

Reply
Swagatam says:
May 20, 2022 at 9:09 am

Thank you Igor, for your valuable feedback!

Reply
Anonymous says:
February 11, 2022 at 8:49 pm

What is the max frequency that can be emitted by a piezo transducer?

Reply
Swagatam says:
February 11, 2022 at 9:24 pm

It can be in MHz

Reply
Anonymous says:
February 11, 2022 at 11:58 pm

So, if I wanted smthing in kHz, what output device should I replace?

Reply
Swagatam says:
February 12, 2022 at 8:02 am

If it’s below 15 kHz, you can use a speaker or tweeter, otherwise you can use a piezo.

Reply
Anonymous says:
February 13, 2022 at 10:32 pm

I used a speaker but it just made it louder…I’m yet to try a tweeter.

Reply
Swagatam says:
February 14, 2022 at 9:02 am

Anything above 15 kHz should be inaudible to human ears.

Reply
Anonymous says:
February 11, 2022 at 7:30 pm

I need the frequency to be even higher…(out of the hearing range of humans)…How can i do this with the implementation of a speaker instead of a piezo?

Reply
Swagatam says:
February 11, 2022 at 7:36 pm

You won’t get good results with a speaker for frequencies above 20 kHz. You will have to use a piezo transducer

Reply
Anonymous says:
February 10, 2022 at 9:46 pm

I’m a student and i’m trying to make a frequency which deters mosquitos, I need to achieve a frequency which is >38kHz but <44kHz. Should i just replace the piezo transducer with a tweeter?

Reply
Swagatam says:
February 11, 2022 at 9:28 am

Tweeter can be used, however a piezo looks more suitable.

Reply
Anonymous says:
February 11, 2022 at 3:44 pm

I tried using a piezo transducer however the frequency wasn’t high enough.

Reply
Swagatam says:
February 11, 2022 at 4:20 pm

the piezo must be enclosed inside a suitable enclosure as shown below. And above 15 kHz the audio will be impossible to hear.

https://www.homemade-circuits.com/wp-content/uploads/2020/02/piezo-transducer.jpg

Reply
Jijesh says:
January 9, 2022 at 11:03 pm

What about using pure sinewave oscillator instead of rectangular waves?
Will it be efficient to use ferrite core transformer at this frequency
can make custome made ferrite transformer?
Please give core/bobbin size , primary and secondary turns ratio.
Or
Can we use flourescent emergency light circuit board after its frequency ?

Reply
Swagatam says:
January 10, 2022 at 8:06 am

For sine wave output you will need a sine wave oscillator circuit.
I don’t think the transformer is required, instead you can use a simple buzzer coil at the collector of the transistor, and connect the piezo parallel to the coil:

https://www.homemade-circuits.com/wp-content/uploads/2011/12/buzzer-coil.png

https://www.homemade-circuits.com/simplest-piezo-driver-circuit-explained/

Reply
Jijesh says:
January 9, 2022 at 10:54 pm

Hai
What about using Ultrasonic transducer used in Ultrasonic distance measuring ?

Reply
Swagatam says:
January 10, 2022 at 7:34 am

It can be also used!

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

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (92)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (84)
  • Datasheets and Components (109)
  • Electronics Theory (148)
  • Free Energy (39)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (16)
  • Inverter Circuits (94)
  • Lamps and Lights (158)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (66)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (90)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (105)
  • SMPS and Converters (32)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (38)
  • Water Controller (36)
  • Wireless Circuits (30)





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 |

Social Profiles

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



Recent Comments

  • Swagatam on 100 Watt Amplifier Circuit Diagram using LM12 IC
  • Swagatam on IC SG3525, SG3524 Calculator
  • Swagatam on Making an EGS002 Equivalent Board using Arduino
  • Swagatam on Making an EGS002 Equivalent Board using Arduino
  • Swagatam on Ion Detector Circuit [Static Discharge Detector]

© 2025 · Swagatam Innovations