• 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 / Sensors and Detectors / Ultrasonic Motion Detector Circuit

Ultrasonic Motion Detector Circuit

Last Updated on May 3, 2023 by Swagatam 20 Comments

This ultrasonic motion detector circuit project picks up movement of any object including human beings from a distance of 4 to 7 meters away. As soon as the motion is detected, the output of the circuit illuminates a red LED indicating the presence of an obstacle or an intruder.

Table of Contents
  • The Transmitter
  • The Receiver
  • Differential Amplifier (Window Detector)
  • The Monostable Flip-Flop
  • About 40 kHz Ultrasonic Transducers
  • How to Set Up
  • Using Ultrasonic Motion Detector as a Burglar Alarm
  • Simple Ultrasonic Proximity Detector using IC 555
  • How the Circuit Works

ultrasonic prototype

However, using supplemental circuit stages connected to the output of the detector circuit, the device can be designed to switch on lamps, alarms, trigger a recording device, or maybe contact law enforcement. Furthermore, the circuit could be designed to play a message whenever a person or an intruder is detected moving across its range of detection.

The circuit diagram for the Ultrasonic Motion Detector can be witnessed in the following figure.

ultrasonic motion detector circuit compressed

A 9 V PP3 battery, B1, instantly supplies electrical power for a few stages of the circuit. The battery can be also seen attached with a 78L05 regulator, IC3, that supplies a 5 V DC supply to various other stages of the circuit.

9 V to 5 V power supply circuit compressed

The Transmitter

The transmitter stage is essentially a crystal controlled relaxation oscillator developed using a 4049 CMOS HEX inverter, IC2. One of the IC 4049 portions, IC2c, together with resistors R21 and R22, and capacitors C11 and C12, "strikes" the 40 kHz crystal to force it into a continuous oscillating state.

The rest of the IC 4049 sections behave like linear buffers to operate a 40 kHz, ultrasonic transducer device, BZ2.

The Receiver

The receiver stage consists of 4 AC coupled sections, each one constructed using one of the four op amps from the IC LM324. In the 1st stage, the input voltage created around R1 and R2 is modulated through a 40 kHz, ultrasonic receiver transducer, BZ1, and the modulated signal is subsequently sent to the IC1a, where the frequency is amplified.

The receiver transducer picks up any kind of reflected frequency generated by the transmitter transducer, BZ2.

In case there isn't any motion, the resulting envelope signal waveform is simply produced in the form of a straight line.

Diode D1 and resistor R8 work like a negative peak detector to extract the envelope signal.

The second stage is configured around the IC1b, which amplifies the extracted signal again. The IC1b time constant is pretty sluggish which ensures that the envelope signal can be easily tracked.

The output generated from the second stage is a voltage level which determines the strength of the envelope. In the presence of a movement in front of the transducers, the envelope reflects the signal through a positive or negative beams.

Differential Amplifier (Window Detector)

At the third stage input we can find a differential amplifier configured around the IC1c and using a couple of diodes, D2 and D3. This stage picks up each of those positive and negative pulses.

In the absence of a motion in front of the ultrasonic sensors, the pin 7 potential of IC1b is 50 percent of the supply voltage which prevents both the diodes D2 or D3 from conducting.

The pin 8 potential of IC1c is as a result remains low. In case the signal strength increases over +0.7 volt (breakdown voltage of a silicon diode), causes the diode D3 become forward biased and conduct, enabling pin 8 of ICc to go high.

If the reflected motion signal drops under -0.7 volt, D2 gets forward biased and begins conducting, which in turn results in the output going high. Thus, the configuration works like a window detector. It detects voltage levels of the reflected signals moving either below or over a specified range.

The Monostable Flip-Flop

The 4rth stage of this ultrasonic motion detector circuit is structured around IC1d. This stage is configured like a monostable flip-flop. This section of the circuit converts any signal which enters via the filter into a pulse, which is big enough to trigger ON transistor Q1.

As soon as the BJT Q1 activates, LED1 illuminates, and it also generates an output voltage which can be used to operate an attached relay stage or some other alarm device hooked up with the collector of Q1.

The time delay provided by this IC1d monostable flip-flop is approximately half a second which is determined by the capacitor C8 and the resistor R18. The role of the diode D4 is to separate the charge/discharge time constants. This allows the circuit to activate instantly as soon as a movement is detected in front of the ultrasonic transducers, and additionally ensures around a 1/2 second delay for the resetting action.

About 40 kHz Ultrasonic Transducers

In the first diagram for the ultrasonic motion detector, we can see two transducers with the symbols BZ1 and BZ2. Both are 40 kHz type ultrasonic transducers.

BZ1 is the receiver transducer, while the BZ2 is the transmitter transducer.

You must make sure that the two transducers are correctly matched, and therefore buy them only as a paired units. A matched transmitter/receiver 40 kHz transducer pair will have the respective initials printed on the back of their bodies, as shown in the following image.

The transmitter device will have the suffix T printed at the backside, while the receiver unit will have the suffix R printed on the pinout side of the body.

T and R 40 kHz ultrasonic transducer pair compressed

How to Set Up

Switch on ultrasonic motion detector circuit prferably through a fixed DC regulated power supply adapter. Install the circuit inside a noiseless room with nothing moving around in front of the sensors BZ1/BZ2.

Even warm air shuffling or, wind blowing, or amazingly, somebody chatting loudly could activate the motion detector, if the sensitivity adjustment is fixed to its maximum limit. After powering the circuit, allow the device to settle down for a minimum of 20 seconds to ensure the whole circuit will "calm down" electrically.

Adjust the 1M trimmer potentiometer to approximately 4 k ohms through your vision (put simply, assume the potentiometer is made up of settings starting from zero through ten, so now imagine setting it at the mark four).

At the downward adjustment of around 3 k ohms, the circuit will be most probably rendered too sensitive and might self-trigger. You may have to go through some experimentation to achieve the most appropriate setting for your specific motion detection requirements.

Once the ultrasonic motion is correctly set as described above, it is ready to detect motion in front of the transducers BZ1/BZ2 within a distance of 5 to 7 meters. You can test it by moving around the transducers within 7 meters and you will be surprised to see how well the unit detects the motion and triggers on the connected load which can be an alarm a relay or any desired load.

Using Ultrasonic Motion Detector as a Burglar Alarm

The best application of the above explained ultrasonic motion detector is probably in the form of a burglar alarm.

You just need to install the circuit in some corner of the area where an intrusion by a burglar is suspected.

Any burglar intruding or crossing the restricted area monitored by the ultrasonic motion detector will be instantly caught and the connected alarm will be sounded.

Simple Ultrasonic Proximity Detector using IC 555

The initial idea was to create the simplest possible ultrasonic detector. Therefore, systems with microprocessors or sequential logic were eliminated. The idea of emitting continuously and measuring the amplitude of the received signal was also discarded. As a result, it became impossible to measure distances, only detection in an all-or-nothing manner.

This means that if an object is at a distance below an adjustable threshold, it is detected. But once detected, it remains locked even if the object moves back slightly. There is a small hysteresis generated by the main idea of the circuit.

The chosen idea is to use the principle of the Larsen effect, well known in the musical field. The Larsen effect, or acoustic feedback, occurs when the sound emitted by the speaker returns to the microphone.

When a reflecting object is close enough to the ultrasonic receiver, it receives a weak ultrasonic signal generated by the transmitter.

This signal is immediately amplified and sent to the loudspeaker. The signal is sustained by the feedback and then shaped to be exploitable as an input compatible with logic circuits or other microprocessors.

This acoustic feedback is optimal at the frequency of ultrasonic waves, due to the presence of two elements: the transmitter and the receiver optimized for these frequencies.

This simplistic principle has some obvious drawbacks, the most important being the nature of the object to be detected, and another more insidious one is its sensitivity to excessively loud sounds.

How the Circuit Works

ultrasonic proximity detector circuit

The diagram shows two parts: one is the amplification of ultrasonic signals, and the other is the signal shaping to obtain compatibility with other systems.

The ultrasonic receiver (US1) is amplified by a first bipolar transistor stage with adjustable gain via RV. This adjustable resistor allows the capture distance of obstacles to be adjusted.

The link between the two stages is made by a capacitive coupling. The alternating component of the signal is transmitted to the second stage by the capacitor C1.

This point is essential because the second stage is designed so that the voltage on the collector of T2 is just above the trigger threshold of the 555 monostable.

When the Larsen effect occurs, the voltage on the collector of T2 drops below 1/3 of Vcc and triggers the monostable circuit built around the classic 555.

The output of this circuit, which is in the low state at rest, switches to the high state for about 1 second. This duration is obtained by the choice of the two components R4 and C2.

The duration is equal to the product: 1.1 x R4 x C2.

To verify the proper functioning of the detector, a green LED has been added to the circuit. Let's not forget the big capacitor C4, essential in the presence of inductive loads such as the motors of a robot.

You'll also like:

  • 1.  Clap Operated Toy Car Circuit
  • 2.  Motion Detector Circuit using Doppler Effect
  • 3.  Home Electromagnetic Radiation Detector Circuit
  • 4.  Arduino Barometric Pressure Sensor Circuit – Working and Interfacing Details
  • 5.  Simple Digital Clock using LM8650 IC Circuit
  • 6.  Atmospheric Pressure Indicator Circuit [LED Barometer Circuit]

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « Battery Deep Discharge Protection Circuit
Next Post: Electronic Acupuncture Circuit [Bio-Stimulation Circuit] »

Reader Interactions

Comments

  1. F. GARCIA says

    February 1, 2023 at 12:56 am

    OLA. NÃO VEM AO CASO MAS ESTÁ PERTO. PREGUNTA: ONDE POSSO COMPRAR CAPSULAS DETECTORAS QUE POSSAM VIR PARA BAIXO DE 1 HZ OU LÁ PERTO. NA CHINA ELES DIZEM QUE SIM, MAS É MENTIRA. MUITO OBRIGADO

    Reply
  2. Liam says

    December 19, 2022 at 7:22 am

    Hello,we try to build this circuit by ourself but when we finish the circuit it didn’t work ,we has already checked all the list you give and tested all the possible problem but it still can not work ,we found the lm324 pin 7 potential can’t be stable ,even we adjusted the 1M trimmer potentiometer the the most sensitive it still can’t work, please give as some suggest thanks you!!!

    Reply
    • Swagatam says

      December 19, 2022 at 9:36 am

      Hello, as you can see there are so many parts and stages in the circuit so it is difficult to judge which connection or part in your circuit my be faulty or malfunctioning. You will have to read the article and try to troubleshoot the circuit yourself.

      Reply
      • Liam says

        December 19, 2022 at 10:54 am

        Thanks for your reply . We have another hope sir .Do you have the testing video ? could you sent it to my email please!
        ([email protected])Apologize for disturbed you so much

        Reply
        • Swagatam says

          December 19, 2022 at 12:07 pm

          Hi Liam, Unfortunately I do not have any videos for this project. Actually the above circuit was not designed by me, it was contributed by another author. It seems the author has taken this circuit from some old electronic magazine, because from the print of the schematic we can make out that it is not hand drawn rather taken from a magazine.

          Did you measure the frequency across BZ2? Are you getting 40 kHz there?
          Please remember that the transducers BZ1 and BZ2 have different specifications, one is meant for transmitter and the other one for the receiver.

          Reply
      • Liam says

        December 19, 2022 at 12:30 pm

        Thanks for your reply. We had checked the point which you remind and every points are ok but still can’t work.
        The last question hope you can help us ! Does this circuit have any check points?( ex: lm324 pin 14 need how much voltage for this circuit ),because in our testing ,the result is LED wasn’t work but when we checked the lm324 pin 7 and 8 the results are fit the article says.
        Thanks for your helping it’s very helpful for us

        Reply
        • Swagatam says

          December 19, 2022 at 5:18 pm

          Did you check whether BZ1 is generating 40 kHz frequency or not, with a frequency meter?
          BZ1 is supposed to generate 40 kHz frequency and BZ2 is supposed to receive this frequency and activate the op amps.
          Did you buy BZ1 and BZ2 as pairs?
          You can touch pin#3 of IC1a and check whether the LED lights up or not.
          How did you build this circuit, did you build it over a breadboard? If yes then it is never going to work….you must build this project by soldering the components over a strip board or a PCB.
          If you are having difficulty building this project you can try other easier ones as given below:
          https://www.homemade-circuits.com/ultrasonic-burglar-alarm-circuit/
          https://www.homemade-circuits.com/best-ultrasonic-transmitter-receiver-circuits-for-all-hobbyists/

          Reply
          • Swagatam says

            December 19, 2022 at 5:20 pm

            The circuit does not have check points but it is built using different op amp stages, so each stage must be checked separately as per the function of the specific stage, as explained in the article.

            Reply
  3. amazed dave says

    August 25, 2022 at 5:10 pm

    hello i purchased a few hc-sr04 being a newbie and trying to learn i thought i could supply power to the circuit along with an led and it would light the led in the presence of movement. can you design a circuit to help me finish this pre-built sensor please?

    Reply
    • Swagatam says

      August 25, 2022 at 7:35 pm

      Hi, as far as I know, the hc-sr04 can be used only with an Arduino or a microcontroller circuit. It cannot be used with a discretely built circuit or an analogue circuit.

      Reply
  4. Satyadeo says

    July 29, 2021 at 2:22 pm

    Ver good project. It will be nice, if you provide the source of the components Sir, like 40KHz ultrasonic detectors. I made few of your projects and they are all working fine. LPG Gas detector, intruder alarm with proximity sensor.

    Reply
    • Swagatam says

      July 29, 2021 at 4:28 pm

      Thank you Satyadeo, you can get the parts from any online spare part dealer, you can even get it through amazon, ebay etc. You just have to search for “electronic components online”

      Reply
  5. ulises aguilar says

    July 24, 2021 at 10:07 pm

    grate information Sir

    Reply
    • Swagatam says

      July 25, 2021 at 12:38 pm

      Thank you Sir!

      Reply
  6. BETO says

    July 24, 2021 at 8:14 pm

    Hola Swagatam! ¿El oscilador funciona conectando el positivo(+) solamente al pin 1 del IC 4049? Saludos de Buenos Aires, Argentina.

    Reply
    • Swagatam says

      July 25, 2021 at 6:00 pm

      Hello Beto, that’s right, the 4049 section requires the supply only across pin 1(+) and pin 8(-)

      Reply
  7. Mark Radcliff says

    July 24, 2021 at 7:08 pm

    Once again, a very detailed design. You are my favorite teacher. Precise and detailed. One question for you Sir. Do you do anything with Arduino type circuits? I am trying to learn about that particular tupe of thing. Hardware and programming. I think you could definitely be the man to teach that subject as well. Keep up the great work. And thank you.

    Reply
    • Swagatam says

      July 25, 2021 at 12:43 pm

      Thank you Mark, Glad you liked the post. My Arduino knowledge is just as good as yours, so it is me actually who is trying to learn coding at the moment. However, I have an artcile that can be a good starting point for all newcomers who are try to master Arduino. Here’s the link where you can find the basic programming examples:

      Learning Basic Arduino Programming – Tutorial for the Newcomers

      Reply
      • Kitt says

        March 5, 2023 at 4:12 am

        Dear Swagatam! I really do appreciate you and for sure a lot of people! You are the epitome or the TRUE meaning of the word HELP. You are awesome! You wil surely have and are having a good life! More power to your Spirit! 🙂

        Reply
        • Swagatam says

          March 5, 2023 at 9:04 am

          Thank you so much Kitt, for your kind words. I am always happy to help!

          Reply

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

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

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 2 Compact 12V 2 Amp SMPS Circuit for LED Driver
  • Alan Bishop on AC Motor Speed Controller Circuits using Back EMF
  • Swagatam on Real MPPT Solar Charger Circuit Using Arduino, LCD, and Manual/Auto Switch
  • Swagatam on AC Motor Speed Controller Circuits using Back EMF
  • Swagatam on DC to DC Converter Circuits using SG3524 [Buck, Boost Designs]

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations