Design and implementation of vehicle-mounted wireless anti-theft alarm device based on SIM300

Publisher:BlissfulBlissLatest update time:2014-11-13 Source: 21icKeywords:SIM300  GSM  STC89C52 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.
http://www.eefocus.com/include/picture/500/400/data/12-02/20755228120238/1330431365_139c012c.jpg

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.
http://www.eefocus.com/include/picture/500/400/data/12-02/20755228120238/1330431370_76148495.jpg



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].
http://www.eefocus.com/include/picture/500/400/data/12-02/20755228120238/1330431388_ea0a0db9.jpg

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.
http://www.eefocus.com/include/picture/500/400/data/12-02/20755228120238/1330431400_38126787.jpg

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].
http://www.eefocus.com/include/picture/500/400/data/12-02/20755228120238/1330431407_7e132a74.jpg
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.
Keywords:SIM300  GSM  STC89C52 Reference address:Design and implementation of vehicle-mounted wireless anti-theft alarm device based on SIM300

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

Design of multi-range capacitance and resistance tester based on pulse counting method
  Commonly used methods for measuring resistance and capacitance are pure analog circuit method and PLC method. Using pure analog circuit method to design resistance and capacitance tester can avoid the trouble of programming, but the circuit is complex, the flexibility is poor, and the measurement accuracy is low;
[Microcontroller]
Design of multi-range capacitance and resistance tester based on pulse counting method
Design and analysis of SD card reading and writing principle based on STC89C52 microcontroller
Design   There are two points to note when using AT89C52 to read and write SD cards. First, you need to find a solution to achieve communication between the AT89C52 microcontroller and the SD card. Second, the logic level that the SD card can accept does not match the logic level provided by the AT89C52, so the level
[Microcontroller]
Design and analysis of SD card reading and writing principle based on STC89C52 microcontroller
Design of temperature and humidity remote monitoring system based on STC89C52 single chip microcomputer
0 Introduction Unmanned aerial platforms play an increasingly important role in the testing of electronic information equipment. The temperature and humidity of the environment in which the mission equipment is located during the equipment testing process is an important technical parameter that affects whether the
[Microcontroller]
Design of temperature and humidity remote monitoring system based on STC89C52 single chip microcomputer
STC89C52 concept----- self-study notes
1. Chip Map Package type: DIP-40 package 8-bit CPU 4kbytes program memory (ROM) (52 is 8K) 128 bytes of data memory (RAM) (52 has 256 bytes of RAM) 32 I/O lines 111 instructions, most of which are single-byte instructions 21 special registers 2 programmable timer/counters 5 interrupt sources, 2 priority levels (52 h
[Microcontroller]
STC89C52 concept----- self-study notes
Analysis of SMS design based on TC35i GSM module
  Preface   GSM (global system for mobile communications) is the most widely covered mobile communication network. SMS short message service is an application service for GSM terminals to send and receive text messages through service centers. As a basic service of GSM network, SMS service has been paid more and more
[Microcontroller]
Analysis of SMS design based on TC35i GSM module
Technology and Application of Microcontroller Controlling GSM Mobile Phones
With the rapid development of science and technology and the continuous improvement of people's living standards, mobile phone penetration rates are getting higher and higher, updates are getting faster and faster, and prices are getting cheaper. Because the wireless network that mobile phones work in has a wide cover
[Microcontroller]
Solenoid valve control program using stc89c52 microcontroller
The following is a program that uses the stc89c52 microcontroller to perform some simple control on the solenoid valve.     #include reg52.h sbit a=P1^0;//down switch     sbit b=P1^1;//rising sbit c=P1^2;//falling sbit d=P1^3;//upper limit sbit e=P1^4;//lower limit void main() {  a=1;//upper switch normally open  b=1
[Microcontroller]
Design of current protection system based on GSM
Working Principle of Monitoring System As the front end of the system, the residual current action protector is installed in each low-voltage power grid control box to automatically monitor the status data of the power line (including load voltage/load current/leakage current, etc.). When the power line is overloaded
[Power Management]
Design of current protection system based on GSM
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号