Design and Implementation of Automobile Anti-theft Alarm System Based on Single Chip Microcomputer

Abstract: In view of the increasing demand for anti-theft and positioning of automobiles, based on the technology of single-chip microprocessor, GPS, GPRS, etc., the car anti-theft alarm system is designed with modular design scheme, realizing the function of real-time positioning and SMS alarm, namely system acquisition. After the vehicle is stolen, the GPS positioning module is activated to receive the vehicle location information (latitude, longitude, etc.), and the single-chip computer analyzes and processes the positioning data, and then sends the message to the owner's mobile phone through the GPRS network. Through software and hardware debugging, the system operation data shows that the system has strong real-time performance and high accuracy. The vehicle alarm response time is second-order delay, and the positioning error is within 0.6 degrees of latitude and longitude.

This article refers to the address: http://

With the rapid development of the economy, cars have begun to enter thousands of households. At the same time, car theft is also increasing day by day. The theft of a car is a huge loss for the owner. Therefore, car anti-theft systems and car positioning systems have a huge market demand.

Some vehicle anti-theft systems on the market currently have the disadvantages of single function, large volume and high energy consumption, which makes the vehicle still have certain safety hazards. Therefore, how to improve the existing car anti-theft alarm device, so that it can better achieve the alarm function, protect the private property of the people, has attracted the attention of many scholars and electronics manufacturers. Therefore, based on single-chip microcomputer, the vehicle anti-theft alarm system is designed by GPS/GPRS technology, which realizes the reliability of the vehicle positioning function and the real-time performance of the alarm function.

1 overall design

The car anti-theft alarm system has complex functions and adopts a modular design scheme, which is mainly composed of four parts, as shown in Figure 1. When the anti-theft information acquisition module collects the alarm signal, the GPS positioning module will start immediately and start receiving the positioning signal (latitude, longitude, altitude, etc.). At the same time, the core microprocessor connects the modules through various communication methods to control the coordination. Work, and carry out data analysis and processing, start the GPRS anti-theft alarm module to send the positioning data to the owner's mobile phone as a short message.

A.jpg

2 module design

2.1 Anti-theft information collection module

In this system, the infrared pair tube sensor circuit is used to collect anti-theft information, which is used to monitor whether someone illegally invades when the car is parked unattended. The sensor circuit is composed of an infrared transmitting and receiving pair tube, and can send an accurate monitoring signal to the microprocessor in time, which is simple to use, easy to observe, and high in sensitivity. The anti-theft information collection module is not the core function module of the system, and is only used to simulate whether the car is stolen or not during the system implementation process.

2.2 core processor module

The car burglar alarm system using GPS/GPRS technology has complex functions. In order to ensure the practicability and scalability of the system, it is necessary to select a high-performance core processor to coordinate the work of each module, in order to achieve a small system, high integration and reliability. Good performance and other performance, the design will use a cost-effective 8-bit 51 series microcontroller as the core processor.

2.3 GPS positioning module

1) Hardware part

As the best navigation and positioning system to date, GPS global positioning system is widely used in real life and is an important part of the development of information age. The GPS system consists of three parts: space satellite, ground support system and user equipment. The basic principles of positioning are referenced. The user only needs to design the user equipment part when using the GPS to implement the positioning function, that is, the GPS positioning module in FIG. 1 , which is used for receiving the GPS satellite transmission signal.

The car is positioned using the GT-2525 GPS chip. The GT-2525 GPS has 12 independent receiving channels using asynchronous serial communication. It can provide longitude, latitude, speed, altitude, world coordination time, frequency and GPS satellite orbit information. It has low voltage power supply, high sensitivity and high precision. High reliability, easy to use and so on. In addition, in order to improve the scalability of the system function, the core processor pin resources should be minimized in the system design. Therefore, the design of this module is: GT-2525 GPS receives the vehicle position information and uses the 8250 chip for serial Conversion, and through the 8255 parallel interface chip to achieve the connection with the microcontroller, the microcontroller analyzes and processes the data and displays it on the OCMJ2X8 (128X32) LCD. The LCD display is not a system function module, mainly used for GPS positioning module debugging. The structure of the GPS positioning module is shown in Figure 1.

2) Software part

The design process of the GPS positioning module software is shown in Figure 2. The detailed design of each part is as follows.

B.jpg

18250 chip initialization: Set the 8250 transmission line control register to implement the addressing divisor latch; set the divisor latch value according to the 8250 external clock frequency 1.843 2 MHz, baud rate 4800 BPS; set the transmission line control register to achieve the character data format: 8 bits Data bit, 2 stop bits, no parity.

28255 chip initialization: select the control word by writing mode, set the PA port as the output, realize the PA port to write the data to the LCD module: DB0~DB7, and set the PC port as the high 4-bit input and the low 4-bit output to realize the LCD module. Control of the BUSY port and REQ port.

3 set the GPS output format:

The GT-2525 GPS uses the NMEA-0183 protocol, which has strict format requirements. The basic NMEA command directive is an ASCII string. Start with the '$' character and end with a sequence. According to the literature, the default output of the GPS is: $PFST, NMEA, E003, 4800, and the system uses the $GPGGA output format, the GPS output format commands are: $PFST, NMEA, 2000. In addition, the default parameters of the GPS serial port are: 4800BPS, 1 start bit, no parity bit, 8 data bits, 1 stop bit, which is consistent with the serial port communication parameters set by the 8250, so no need to reset. The software design flow of this part is shown in Figure 3. The single-chip microcomputer converts the ASCII string command into 8250 and then serially sends it to the GPS to realize the GPS output format setting.

C.jpg

4 receiving GPS module positioning data stored in off-chip RAM

After the MCU sends the output format setting command to the GPS module, the MCU will first receive the echo of the command, that is, the MCU first receives the characters of $PFST, NMEA, 2000, and then receives the positioning data sent by the GPS module.

The NMEA standard message begins with "GP" followed by a 3-character message identification code. The message header and message content are separated by a comma, and the message ends with the check code (the check code consists of a '*' and two 16-bit check codes. The check code is calculated as follows: after the "$" character , before the "*" character, the result of the XOR of the first word and the second word, and then XOR with the third word, the result obtained after the loop).

The GPS output of the $GPGGA format is $GPGGA, hhmmss.dd, xxmm.dddd, yyymm.dddd,, v, ss, dd, hh, M, gg, M, aa, xxxx*hh, and the meaning of each part is shown in Table 1. Shown.

Solar Motion Sensor Light

High Quality Solar Motion Sensor Light,Solar Motion Sensor Light Details,Motion Sensor Integrated Solar Light ,Solar Garden Light

jiangmen jieken lighting appliance co.,ltd , https://www.jekenlighting.com

Posted on