With the continuous expansion of the monitoring scope, the traditional wired monitoring alarm can no longer meet the needs of users. However, with the development of the GSM network, the hardware implementation of the remote network monitoring alarm system has become possible, and it is expected to replace the traditional monitoring alarm system controlled only by a single machine. This paper designs a remote wireless alarm monitoring system based on the GSM network in response to current needs. The basic idea is to connect the single-chip microcomputer and the SIM300 communication module through the serial port to realize the mutual communication between the single-chip microcomputer and the SIM300. The SIM300 module is equipped with a SIM card slot, which can realize the function of mutual communication with various users. The system is connected with vibration, infrared, sound and other types of sensors. When the car is in an alarm, the sensor transmits the alarm signal to the single-chip microcomputer. After the single-chip microcomputer judges and processes it, it sends an alarm text message to the user, or directly dials the alarm phone. If the situation is urgent, the user can directly send the SMS password, and the single-chip microcomputer controls the relay to cut off the line or oil circuit to stop the car from running, thereby realizing remote control and effectively ensuring the safety of the car.
1 Hardware Circuit Design of Remote Wireless Alarm Monitoring System
The hardware part of this design includes single-chip microcomputer main control module, LCD display, key circuit, power supply circuit, signal acquisition circuit and control circuit. The system structure block diagram is shown in Figure 1.
1.1 Single-chip microcomputer control circuit
The remote wireless alarm monitoring system uses the STC89C52 microcontroller, which is a low-power, high-performance CMOS 8-bit microcontroller with 8 KB system programmable Flash memory. This type of microcontroller has a high cost-effectiveness and is widely used in various fields such as industrial control, instrumentation, communication equipment, and household appliances [1].
1.2 GSM module circuit The
remote wireless alarm monitoring system uses the SIM300 module, where the 16th pin of the SIM300 is connected to the network indicator light (LED) to indicate the strength of the SIM300 signal, and the 17th pin is connected to the P3.3 of the microcontroller. When it is working, the microcontroller first sends a low-level signal to put the module into working state. 43, 41, and 49 are serial communication interfaces, which are connected to the P3.0, P3.1, and P3.2 of the microcontroller respectively. The 1, 3, 5, 7, and 9 pins are connected to the 4.2 V power supply. SIM300 and the microcontroller are connected via a serial port. The microcontroller control system can send AT commands to the SIM300 module to control its working state [2-3].
1.3 Keyboard, display and external storage circuit
This system uses a 4-row 3-column matrix keyboard, where the row lines are connected to P1.0~P1.3, and the column lines are connected to P1.4~P1.6. The column lines are connected to the +5 V power supply through a 10 k? resistor. There are 12 keys in total, which are set to 0~9, *, # and other key numbers.
This system uses an LCD12864 liquid crystal display module, which can display 4 lines of Chinese characters or characters per screen, used to display prompt information and mobile phone numbers.
This system requires the user's preset mobile phone number to be stored during use, so an external memory is required. In the case of small storage information, AT24C02 can be used.
1.4 Sensor and relay circuit
The remote wireless alarm monitoring system uses vibration sensors, infrared sensors, and sound sensors to work together to effectively avoid system false alarms and misreporting. The relay circuit is used to cut off the oil circuit or circuit and control the running state of the car. When the user sends a control command with a mobile phone, a certain port of the microcontroller outputs a high-level signal to control the relay. When the alarm is lifted, just send a release command to restore the normal operation of the car.
2 Software Design
The main program flow chart is shown in Figure 2.
3 Monitoring and alarm process
3.1 Setting process
When using the system for the first time, the user needs to set the mobile phone number and SMS center number. Turn on the power and follow the prompts on the LCD to preset the number through the keyboard. The local SMS center number and personal control number need to be set. The set numbers are stored in the external memory. After the preset program is completed, the microcontroller sends an AT command to SIM300 to control it to send a verification SMS "Setting successful" to the preset number. If it is not the first time to use, if the number is not reset within 10 seconds after the password prompt, the number setting stage will be automatically skipped and normal monitoring will begin. The setting process is shown in Figure 3 [4].
3.2 Monitoring process
When the SIM300 is in working state, if there is an abnormal situation in the car, such as the door is opened, the window is broken, and strong vibration or sound is generated, as long as one of the sensors is triggered, the level of the microcontroller pin connected to the sensor will change (from low level to high level). This change is used as a signal. After the microcontroller determines that it is an alarm signal, the microcontroller will control SIM300 to send a text message to the preset personal monitoring number, for example: "Your car is in an emergency, please check it in time." The monitoring process is shown in Figure 4.
3.3 Control process
When the SIM300 is in working state, if an emergency occurs, such as a car being stolen, the fuel tank valve needs to be closed urgently to stop the car. Edit the text message "Close" and send it to the SIM card connected to the SIM300. After receiving the text message, the SIM300 stores the information in the SIM card. The microcontroller sends a command to read the message just received, including the incoming signal code, the length of the text message, the content of the text message, etc. The microcontroller parses it into a PDU code to determine whether the incoming signal code is the preset user control number. If not, the subsequent work is stopped and the command is considered invalid. The microcontroller sends a command to SIM300 to delete the text message; if it is a preset number, check whether the text message meets the preset command. If not, stop the subsequent work and delete the text message; if it meets, execute the corresponding command, that is, the level of the microcontroller pin connected to the relay changes (from low level to high level), and deletes the text message at the same time (so that each received text message in the SIM card is stored in the first position, which is convenient for reading next time). The output signal is then amplified by the signal amplifier to reach a voltage that enables the relay to work normally, cut off the fuel tank supply switch, and stop the car. The control process is shown in Figure 5 [5].
After debugging the software and hardware, all functions of the remote wireless alarm monitoring system can be well implemented, effectively ensuring the safety of the car. The system combines the microcontroller with the SIM300 functional module, making full use of the mature GSM mobile communication network and overcoming many limitations of ordinary monitoring systems. This idea can also be used in the fields of household appliances, agricultural large-scale production, etc. This solution has many advantages such as saving wiring resources, wide control range, strong versatility, and high cost performance.
Previous article:Design and implementation of an inductive tracking car
Next article:Alcohol gas concentration detector based on single chip microcomputer design
Recommended ReadingLatest update time:2024-11-16 16:20
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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!
- 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
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- PCB News: Zhongjing Electronics plans to acquire 45% of Yuansheng Electronics for RMB 270 million to achieve horizontal integration of PCB
- How to use EPI general mode to communicate with FPGA in TM4c129 series microcontroller
- Before buying a cable fault tester, you must know about its manufacturer. How to find a good time...
- High-speed PCB design technology (Chinese)
- Buck-boost DCDC TPS63810 application in TWS earphones
- Purgatory Legend-IIC Battle
- CC3235S and CC3235SF SimpleLink Wi-Fi dual-band single-chip solutions
- Design of ESD protection structure for CMOS circuits
- 8 Common Uses of Diodes
- TMS320C6655 Fixed and Floating Point Digital Signal Processor