1 Overall design
The system consists of multiple detectors and a host. As shown in Figure 1. The detector consists of a pyroelectric infrared detection module and a coded wireless transmission module. The detector detects intruders through the pyroelectric infrared detection module, and sends the position code to the host through the wireless module after detecting the intruder. The host includes a single-chip controller, a wireless receiving module, a voice module, a telephone module, an LCD display and buttons, and can be installed in a fixed position. The host receives the position code signal emitted by the detector through the wireless receiving module to identify the theft area. After receiving the theft information, the host calls the preset phone through the telephone network. After the call is connected, it plays the pre-recorded alarm voice information such as the resident's address, the theft area, etc. to complete the alarm. The user can preset the alarm phone number and record the alarm voice through the host's human-machine interface, and can also perform disarming and arming control.
2 System Hardware Design
2.1 Detector and Wireless Receiver Module
The circuit of the detector and wireless receiver module is shown in Figure 2. The pyroelectric infrared sensor D203S absorbs the infrared rays emitted by the intruder's body and converts them into electrical signals, which are output from pin 2 to the infrared sensor signal processor BISS0001. BISS0001 contains a 2-stage operational amplifier, a bidirectional amplitude detector, a delay timer and a state controller. The infrared sensor signal is first amplified by the 2-stage operational amplifier, and then the bidirectional amplitude detector generates a trigger pulse to trigger the delay timer to work. The state controller makes the output Vo (pin 2) output a high level within the delay time. When Vo is high, Q1 is turned on, and current flows between pins 1 and 10 of the relay module ATQ209, so that pins 7 and 8 are attracted and turned on. Pin 7 obtains the 9 V battery voltage and supplies the power supply terminal 5 of the wireless transmitter module, so that it can be powered on. Pins 1-4 of the wireless transmitter module are data input terminals. The input data is configured through jumpers JP1-JP4 as the bit code of the detector. The wireless transmitter module contains the coding modulation chip PT2262 and the 315 MHz high-frequency transmission circuit. When it is powered on, it modulates the position code into a high-frequency signal and then transmits it. The wireless receiver module contains the superheterodyne receiving circuit and the decoding chip PT2272, which can receive the high-frequency signal transmitted by the wireless transmitter module and demodulate the position code, and output it from pins 4-7.
2.2 Central Controller The 89C51
system uses the 89C51 microcontroller as the host central controller. The circuit is shown in Figure 3. Port P0 is connected to the data bus, which is used to transmit data between the microcontroller and the LCD, telephone module, and keyboard. Data transmission is carried out in time-sharing. P1.0-P1.3 are connected to the keyboard (Figure 4) to generate keyboard scanning signals. P1.4-P1.7 are connected to the data end of the wireless receiving module (Figure 2) to read the detector position code. P2.0-P2.2 are connected to the read-write control pins of the LCD (Figure 4), and P2.3-P2.6 are connected to the read-write control pins of the DTMF transceiver chip MT8880 (Figure 6) in the telephone module. P2.7 is connected to the telephone interface module PH8810 (Figure 7) to realize the control of picking up and hanging up the phone. P3.4 is connected to the IRQ/CP pin of MT8880 to detect the signal tone during the telephone call. P3.5-P3.7 are connected to the serial interface of the voice chip ISD4002 (Figure 5) to realize the operation of the voice chip by the microcontroller.
2.3 LCD and key module
The LCD interface and key circuit are shown in Figure 4. The system uses the SMC1602A standard character LCD display module, which can display 2 lines of 16 characters. The keys are in the form of a 4x4 matrix. The microcontroller inputs key scan signals from KEY-DB0 to KEY-DB4 and reads key scan values from DB4-DB7. When no key scan is performed, KEY-DB0 to KEY-DB4 can be pulled to a high level by the pull-up resistors inside P1.0-P1.3. At this time, even if a key is pressed, it does not affect the data on the bus DB4-DB7.
2.4 Voice module
The voice module circuit is shown in Figure 5. The ISD4002 voice chip is selected to realize the recording and playback of alarm voice. The chip has a microcontroller serial interface and can record and play multiple voices. The voice information can be saved in the FLASH inside the chip when the power is off. In the figure, ISD-SS, ISD-SCLK, and ISD-MOSI are serial interface signals connected to the single-chip microcomputer. The single-chip microcomputer sends instructions through the serial interface to control the voice chip to work. When the voice chip works in recording mode, the voice is collected through the microphone and the internal circuit completes the recording and storage. When the voice chip works in playback mode, the voice is output from AUDOUT (pin 13), amplified by LM386M, and then output to the speaker and telephone interface module PH8810 (through signal AUDIO). The speaker is used to audition the recorded voice, and PH8810 can output the voice to the telephone network to realize voice alarm.
2.5 Telephone module
The telephone module includes a DTMF transceiver circuit and a telephone interface circuit, as shown in Figures 6 and 7. MT8880 is a DTMF transceiver chip used to generate dual audio signals and detect telephone signal tones. MT8880 has a single-chip microcomputer interface, and its operation is controlled by the single-chip microcomputer. In Figure 6, pins 14-17 are data pins, and pins 9-12 are read-write control pins. When MT8880 works in dual audio mode, it receives the telephone number transmitted by the single-chip microcomputer and generates a dual audio signal of the number, which is output from DTMFOUT to the telephone interface module PH8810 to achieve dialing. When MT8880 works in call processing mode, it shapes the telephone signal tone input from DTMFIN into a square wave and outputs it from IRQ/CP (pin 13) to the single-chip microcomputer. The single-chip microcomputer counts the square wave to determine the dial tone, ringback tone, and busy tone to achieve the detection of telephone signal tones.
The telephone interface circuit is implemented using the telephone interface module PH8810. In Figure 7, pins 2 and 3 are used to connect the telephone line, and pin 4 is connected to the microcontroller for on-hook and off-hook control. The dual audio signal and alarm voice signal of the dialed number are input to PH8810 from pins 29 and 28. PH8810 automatically amplifies the signal and outputs it to the telephone line. The signal tone on the telephone line is extracted by PH8810 and output to MT8880 from pin 10.
3 System software design
3.1 Main program flow
The main program flow of the microcontroller is shown in Figure 8. The main program first displays the three main menu options of alarm voice recording and playback, telephone number setting, and arming and disarming control on the LCD, and then performs key scanning. If a selection key is pressed, the corresponding function code is executed according to the selection, and the main menu is redisplayed after the execution is completed. If no selection key is pressed, it is determined whether to arm. If it is armed, the anti-theft alarm program is executed.
3.2 Anti-theft alarm program flow
The anti-theft alarm program flow is shown in Figure 9. The program first queries the wireless receiving module for the detector position code data. If the data is zero, it means that no theft has occurred. Otherwise, it means that a detector has detected theft. If there is a theft, record the theft position code, set the theft occurrence flag, and then control PH8810 to perform the off-hook operation. After picking up the phone, set MT8880 to call processing mode to detect the dial tone. If a 450Hz continuous square wave signal is detected within 1s, it is judged that there is a dial tone. If there is a dial tone, set MT8880 to dual audio mode and send it a phone number for dialing. After dialing is completed, reset MT8880 to call processing mode to detect the ringback tone. If a 450Hz square wave signal is detected for 4s without and 1s with, it means there is a ringback tone. After detecting the ringback tone, if no signal tone is detected, it means that the other party has successfully picked up the phone, and the voice chip is controlled to play the alarm voice. After the playback is completed, clear the theft flag to avoid repeated alarms. If there is no dial tone or the other party fails to pick up the phone, the PH8810 will be controlled to perform the on-hook operation. Because the theft flag is not cleared, the program will still try to alarm the next time it is executed until it succeeds.
4 Conclusion
The multi-channel wireless anti-theft alarm system includes multiple wireless probes, which can flexibly record the required alarm voice, set multiple alarm phone numbers, control the arming and disarming functions, and has a liquid crystal display interface. It can identify the theft area and automatically call the preset phone number to alarm. The system has been applied to the actual home and factory warehouse anti-theft. The actual application shows that the system has the characteristics of easy installation, flexible and practical functions, stability and reliability, and meets the design requirements.
Previous article:Multisim simulation test of RC circuit time constant in university physics experiment
Next article:Design and implementation of electronic signage voice system based on Wifi
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- After the stm32 timer is set to input capture, can the level of TI1 be changed by software?
- DSP library expands TI's embedded vision engine for driver assistance systems
- STM32 Cube study notes (16 articles)
- STM32 HAL library UART interrupt reception issue
- 3 RTC configuration and timed wake-up
- Altium Designer 18 official tutorial Chinese and English version
- Selection requirements for electromagnet freewheeling diodes
- How to measure and solve voltage sag problems?
- PSpice simulation integral circuit output problem
- EEWORLD University Hall----TIDA-01040 High Current Battery Test Equipment Reference Solution