A simple circuit that lets you keep tabs on anything that moves. Something's out there—on the porch, in the driveway, or behind the shed. Or maybe it's inside—in the garage, basement, or den. Whatever it is, human or beast, it is moving. Perhaps it's just your teenager sneaking in from a late night out. Possibly it is only the neighborhood cat. Or, more ominously, it could be a prowler bent on theft or physical harm. Whatever is going on, you know something is up because you just installed the Ultrasonic Motion Detector described in this article. Depending on what parts you have available, or if you buy the complete kit from the source mentioned in the Parts List, the Ultrasonic Motion Detector can be built for less than $30. It contains a complete ultrasonic (40-kHz) crystalcontrolled transmitter and a supersensitive receiver on a printed-circuit board that measures only 1-1/2 by 3 inches. The device detects motion from 4 to 7-meters away. Once that occurs, a red LED lights. But with additional circuitry attached to the output, the detector can turn on lights, sound buzzers, trip arecording device, or even call the police. Also, the circuit can be made to sound off with a message when anyone moves within its field of detection. Using various voice recording and playback circuits, you might even have the Ultrasonic Motion Detector provide a pleasant greeting or snarl with a barking dog sound when someone approaches the front door. As you can see, your Ultrasonic Motion Detector project can be put to work in a variety of ways. Let's now look at how it works.
Circuit Description
The schematic for the Ultrasonic Motion Detector is shown in Fig. 1. A 9-volt battery, B1, directly provides power for some sections of the circuit. The battery is also connected to a 78L05 regulator, IC3. which provides a 5-volt-DC power source for other sections of the circuit. The transmitter section of the Detector is basically a crystal-controlled relaxation oscillator built around a 4049 hex inverter, IC2. One of the 4049 sections, IC2-c, along with resistors R21 and R22, and capacitors C11 and C12, "pings" the 40-kHz crystal into sustained oscillation. The remaining 4049 sections act as linear buffers to drive a 40-kHz ultrasonic transmitting transducer, BZ2. The receiver section of the circuit is made up of four AC-coupled stages, each built around one of four sections of an LM324 op-amp IC1. In the first stage, the input voltage developed across R1 and R2 is modulated by a 40-kHz, ultrasonic receiving transducer, BZ1, and is then fed to IC1-a, where it is amplified. The receiving transducer detects any reflected sound produced by the transmitting transducer, BZ2. If there is no movement, the resulting envelope signal is just a straight line: diode D1 and resistor R8 operate as a negative peak detector to recover the envelope signal. In the second stage, which is built around IC1-b, the recovered signal is again amplified. The time constant of IC1-b is quite slow so that the envelope can be followed; the output of the second stage is a DC level that represents the strength of the envelope. If there is movement, the envelope will reflect it in the form of a positive or negative signal. At the input to the third stage—a differential amplifier built around IC1-c— there are two diodes, D2 and D3. They detect both positive and negative pulses. When there is no movement, the voltage at pin 7 of IC1-b is half the supply voltage and neither D2 or D3 can conduct. The voltage at pin 8 of IC1-c is then low. If the signal rises above +0.7 volt (a silicon diode's breakdown voltage), D3 conducts causing the output on pin 8 to go high. If the signal falls below –0.7 volt, D2 conducts, which also causes the output to go high. Thus we have a window detector. It detects voltages that move both below and above a given range.
The fourth stage, built around IC1-d, is set up as a monostable flip-flop. That stage converts any signal that gets through the filter into a pulse substantial enough to turn on transistor Q1. When Q1 conducts, LED1 turns on and an output signal is provided to drive a separate relay or any other device connected to the circuit (more on that later). The time constant of the monostable flip-flop is about half a second and is set by C8 and R18. Diode D4 is used to separate the charge and discharge time constants. It lets the circuit switch on immediately when movement is detected, but allows about a half-second delay for the reset.
Construction
The author built the Ultrasonic Motion Detector from a complete kit of parts, which includes a pre-etched and drilled PC board. That kit is available from the source mentioned in the Parts List. If you choose to round up your own components, it is still recommended that you use a PC board. You can use the foil pattern shown in Fig. 2 to make your own. Refer to the parts-placement diagram shown in Fig. 3 while assembling your circuit. Begin by soldering all resistors flush to the PC board. Then install the five diodes, making sure to orient them properly. Next, install the capacitors. Be sure to double check the polarity of C9. Go on to install crystal XTAL1. Bend the crystal's leads so that the part rests flat on the board. Note the two unused holes next to the two for the crystal. You can bend a resistor lead around the crystal in a "U" shape and solder the lead ends to the unused holes. That should hold the crystal in place. Install the potentiometer. Then continue by mounting the 78L05 voltage regulator and the BC639 transistor; those two parts look alike, so be careful not to confuse them. Also install LED1. Make sure all those parts are oriented as shown in the parts-placement diagram. Now solder IC sockets for IC1 and to the board, noting the proper placement of the notches indicated in Fig. 3. Insert the ICs into their respective sockets. Connect the leads of the 9-volt battery clip to the board next. Now is a good time to note that if you do plan on using a battery to power the project you have to replace the battery regularly. As the battery voltage decreases, the circuit's sensitivity will change; that is particularly true if the unit is triggered often. To avoid the extra expense of replacing batteries. you might want to replace the battery clip with two wires (red and black can be used to indicate polarity) so that you can hook up a 9-volt power supply. Now you can install the ultrasonic transducer pair. If you are not building the project from the kit, you should make sure you are using a matched pair of 40-kHz transducers or the project will not work. The transmitting transducer, BZ2, has a T suffix on the number stamped underneath it. The receiving transducer, BZ1, has an R suffix. Neither part is polarized. Tag-solder each transducer on its proper pads directly on the foil side of the PC board. The leads should rest flat on the pads and the fronts of the transducers should point away from the PC board. Finally, install two wires to provide a signal-out connection for attaching various output transducers and circuits. You might want to use one red and one black wire, as the signal is polarized.
Some Applications
Referring back to Fig. 1, note that transistor Q1 turns on and delivers a continuous unregulated 9 volts to a suitable load as long as something is moving within the Detector's range. If the load is a 9-volt relay, virtually any electronic device can be turned on in response to motion. That might be good enough for many applications˜lights can be made to flash, horns to blare, etc. (If you have trouble driving the coil of a 9-volt relay, you might need to reduce the value of R19 in Ql's base circuit.) However, there are times when you will want an output device to remain activated after motion has stopped. For example, if a prowler quickly crosses the field of "view," you wouldn't want a speaker to sound or a light to flash for just an instant. Continuous signaling, perhaps for many minutes, would be desirable. The alarm circuit shown in Fig. 4 will provide such a warning. It consists of three 555 timer ICs, IC1-IC3, where IC1 is operated in a monostable mode, and IC2 and IC3 are in astable configurations. The trigger input to IC1 (pin 2) is connected to the normally open contacts of a 9-volt relay. The coil of the relay should be connected to the signal output terminals on the PC board. When the Detector senses motion, even for a brief moment, the relay is energized, and pin 2 of IC1 (all part designations given from here on are found in Fig. 4) is brought to ground, thus triggering the monostable circuit, or timer. Pin 3 of IC1 then goes high. The length of time it remains high is determined by the values of R1 and C2. With the components shown, the output pulse is approximately 2 minutes. To increase that time, use a higher-value capacitor for C2; to decrease the time, use a lower-value capacitor. When the output of IC1 goes high, IC2 and IC3 are activated. The latter timer, IC3, is connected to produce a 500-Hz tone; IC2 is a l-Hz oscillator. Thus IC2 is used to trigger IC3 on and off once per second, generating a pulse-tone alarm. Note that the alarm circuit is run off a separate power supply from that used by the Detector.
Using an alarm circuit with your Motion Detector is only one application. Let your imagination fly; think of all the devices you can turn on (or off) when movement is sensed. Consider your project as the heart of a wide range of practical and fun applications.
Circuit Description
The schematic for the Ultrasonic Motion Detector is shown in Fig. 1. A 9-volt battery, B1, directly provides power for some sections of the circuit. The battery is also connected to a 78L05 regulator, IC3. which provides a 5-volt-DC power source for other sections of the circuit. The transmitter section of the Detector is basically a crystal-controlled relaxation oscillator built around a 4049 hex inverter, IC2. One of the 4049 sections, IC2-c, along with resistors R21 and R22, and capacitors C11 and C12, "pings" the 40-kHz crystal into sustained oscillation. The remaining 4049 sections act as linear buffers to drive a 40-kHz ultrasonic transmitting transducer, BZ2. The receiver section of the circuit is made up of four AC-coupled stages, each built around one of four sections of an LM324 op-amp IC1. In the first stage, the input voltage developed across R1 and R2 is modulated by a 40-kHz, ultrasonic receiving transducer, BZ1, and is then fed to IC1-a, where it is amplified. The receiving transducer detects any reflected sound produced by the transmitting transducer, BZ2. If there is no movement, the resulting envelope signal is just a straight line: diode D1 and resistor R8 operate as a negative peak detector to recover the envelope signal. In the second stage, which is built around IC1-b, the recovered signal is again amplified. The time constant of IC1-b is quite slow so that the envelope can be followed; the output of the second stage is a DC level that represents the strength of the envelope. If there is movement, the envelope will reflect it in the form of a positive or negative signal. At the input to the third stage—a differential amplifier built around IC1-c— there are two diodes, D2 and D3. They detect both positive and negative pulses. When there is no movement, the voltage at pin 7 of IC1-b is half the supply voltage and neither D2 or D3 can conduct. The voltage at pin 8 of IC1-c is then low. If the signal rises above +0.7 volt (a silicon diode's breakdown voltage), D3 conducts causing the output on pin 8 to go high. If the signal falls below –0.7 volt, D2 conducts, which also causes the output to go high. Thus we have a window detector. It detects voltages that move both below and above a given range.
The fourth stage, built around IC1-d, is set up as a monostable flip-flop. That stage converts any signal that gets through the filter into a pulse substantial enough to turn on transistor Q1. When Q1 conducts, LED1 turns on and an output signal is provided to drive a separate relay or any other device connected to the circuit (more on that later). The time constant of the monostable flip-flop is about half a second and is set by C8 and R18. Diode D4 is used to separate the charge and discharge time constants. It lets the circuit switch on immediately when movement is detected, but allows about a half-second delay for the reset.
Construction
The author built the Ultrasonic Motion Detector from a complete kit of parts, which includes a pre-etched and drilled PC board. That kit is available from the source mentioned in the Parts List. If you choose to round up your own components, it is still recommended that you use a PC board. You can use the foil pattern shown in Fig. 2 to make your own. Refer to the parts-placement diagram shown in Fig. 3 while assembling your circuit. Begin by soldering all resistors flush to the PC board. Then install the five diodes, making sure to orient them properly. Next, install the capacitors. Be sure to double check the polarity of C9. Go on to install crystal XTAL1. Bend the crystal's leads so that the part rests flat on the board. Note the two unused holes next to the two for the crystal. You can bend a resistor lead around the crystal in a "U" shape and solder the lead ends to the unused holes. That should hold the crystal in place. Install the potentiometer. Then continue by mounting the 78L05 voltage regulator and the BC639 transistor; those two parts look alike, so be careful not to confuse them. Also install LED1. Make sure all those parts are oriented as shown in the parts-placement diagram. Now solder IC sockets for IC1 and to the board, noting the proper placement of the notches indicated in Fig. 3. Insert the ICs into their respective sockets. Connect the leads of the 9-volt battery clip to the board next. Now is a good time to note that if you do plan on using a battery to power the project you have to replace the battery regularly. As the battery voltage decreases, the circuit's sensitivity will change; that is particularly true if the unit is triggered often. To avoid the extra expense of replacing batteries. you might want to replace the battery clip with two wires (red and black can be used to indicate polarity) so that you can hook up a 9-volt power supply. Now you can install the ultrasonic transducer pair. If you are not building the project from the kit, you should make sure you are using a matched pair of 40-kHz transducers or the project will not work. The transmitting transducer, BZ2, has a T suffix on the number stamped underneath it. The receiving transducer, BZ1, has an R suffix. Neither part is polarized. Tag-solder each transducer on its proper pads directly on the foil side of the PC board. The leads should rest flat on the pads and the fronts of the transducers should point away from the PC board. Finally, install two wires to provide a signal-out connection for attaching various output transducers and circuits. You might want to use one red and one black wire, as the signal is polarized.
Some Applications
Referring back to Fig. 1, note that transistor Q1 turns on and delivers a continuous unregulated 9 volts to a suitable load as long as something is moving within the Detector's range. If the load is a 9-volt relay, virtually any electronic device can be turned on in response to motion. That might be good enough for many applications˜lights can be made to flash, horns to blare, etc. (If you have trouble driving the coil of a 9-volt relay, you might need to reduce the value of R19 in Ql's base circuit.) However, there are times when you will want an output device to remain activated after motion has stopped. For example, if a prowler quickly crosses the field of "view," you wouldn't want a speaker to sound or a light to flash for just an instant. Continuous signaling, perhaps for many minutes, would be desirable. The alarm circuit shown in Fig. 4 will provide such a warning. It consists of three 555 timer ICs, IC1-IC3, where IC1 is operated in a monostable mode, and IC2 and IC3 are in astable configurations. The trigger input to IC1 (pin 2) is connected to the normally open contacts of a 9-volt relay. The coil of the relay should be connected to the signal output terminals on the PC board. When the Detector senses motion, even for a brief moment, the relay is energized, and pin 2 of IC1 (all part designations given from here on are found in Fig. 4) is brought to ground, thus triggering the monostable circuit, or timer. Pin 3 of IC1 then goes high. The length of time it remains high is determined by the values of R1 and C2. With the components shown, the output pulse is approximately 2 minutes. To increase that time, use a higher-value capacitor for C2; to decrease the time, use a lower-value capacitor. When the output of IC1 goes high, IC2 and IC3 are activated. The latter timer, IC3, is connected to produce a 500-Hz tone; IC2 is a l-Hz oscillator. Thus IC2 is used to trigger IC3 on and off once per second, generating a pulse-tone alarm. Note that the alarm circuit is run off a separate power supply from that used by the Detector.
Using an alarm circuit with your Motion Detector is only one application. Let your imagination fly; think of all the devices you can turn on (or off) when movement is sensed. Consider your project as the heart of a wide range of practical and fun applications.
Download this Project Report From :
Mediafire: Download
Password:be
0 comments:
Post a Comment
Thanks for your Valuable comment