A brief analysis of the realization of car wireless black box based on MG2455 microprocessor Zigbee

Publisher:电子创新者Latest update time:2014-12-03 Source: 21icKeywords:MG2455 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
0 Preface

The car black box is also called the car driving status recording system, which is mainly composed of a car driving status recorder, a handheld code reader and a management computer. The recorder is installed on the car to monitor and record the vehicle's driving data in real time; the handheld code reader consists of a handheld computer and application software, which is used to control and operate the recorder and read the data from the recorder through the RS232 serial port; the management computer is used to count, report, store and query the original recorded data.

1 System Principle and Structure

1.1 System Introduction

This system uses the MG2455 microprocessor as the core and designs a car wireless black box based on Zigbee wireless radio frequency technology. The detection of tire pressure and temperature communicates with the host through Zigbee technology. The system includes a wireless monitoring transmission device installed on the tire rim and a digital receiving and display device that can be installed in the driver's seat of the vehicle body. When the tire pressure and temperature exceed the standard, the system will sound an alarm.

The system also has a fatigue driving warning and recording function, which can effectively curb driver fatigue driving and ensure the safety of long-distance transportation driving.

1.2 Functions and indicators

(1) The vehicle operation and status information (such as temperature, tire pressure, etc.) at different times during driving are stored and displayed on the LCD screen. The storage frequency is 30 times/hour.

(2) The reference value can be set arbitrarily, and an alarm will be triggered if the indicator exceeds the normal range.

(3) When driving data is needed, the data can be directly read to a personal terminal such as a PC or PDA through the USB interface. The USB interface is a universal USB2.0 interface.

1.3 Implementation Principle

In the control system with the microcontroller as the core, all the processing of automobile signals and LCD display are completed by the MG2455 microcontroller. After the tire pressure, acceleration and other sensor signals are converted by A/D, they are transmitted to the microcontroller through Zigbee wireless communication. The wireless monitoring and transmission device includes: a pressure sensor, a temperature sensor, a differential amplifier connected to the pressure sensor, an attenuator connected to the temperature sensor, a microcontroller that receives the pressure signal from the differential amplifier and the temperature signal from the attenuator for calculation and processing, and transmits the signal to the digital receiving display through a transmitter and a filter through a resonant antenna, so that the driver can grasp the tire pressure and temperature status at any time. The microcontroller stores the clock signal and temperature signal received by the I/O port together with the tire pressure and acceleration signals received wirelessly in the flashROM and displays them on the LCD module LCD6029. When the signal exceeds the standard, the system can actively alarm. The USB interface is connected to the serial port of the microcontroller through the conversion chip, and the information stored in the system can be exported to personal terminals such as PCs or PDAs.

1.4 Hardware Block Diagram

The system can be functionally divided into data acquisition part, data processing part, data storage part, communication part (USB communication), display part, tire pressure module, temperature module, and clock module. The hardware block diagram is shown in Figure 1.


Hardware Block Diagram


1.5 Software Process

After receiving the data from the tire pressure monitoring module, temperature module, and clock module, the main microcontroller MG2455 transmits it to the controller via the SPI port. While receiving the data, the controller also needs to verify and process the data with complex algorithms, and judge the processed results. If the data exceeds the pre-determined range (such as overpressure, timeout, overtemperature, etc.), the alarm is immediately activated, and the driver is prompted by the buzzer that there is an abnormality; otherwise, the car is prompted to operate normally. In addition, the serial port is used to realize communication with the computer, which is convenient for querying and analyzing the recorded data, providing a basis for optimizing the control algorithm and analyzing traffic accidents.

The system software mainly performs two functions: 1) Realizes real-time detection and recording of vehicle driving status and alarms when a fault is detected. 2) Uploads recorded data to the host computer through the RS232 port for daily management and accident diagnosis.

The program mainly includes: main program, digital quantity acquisition program, switch quantity acquisition program, pulse quantity acquisition program, data storage program, clock processing program, fault processing program, fault alarm program and serial communication program.

The main program flow chart is shown in Figure 2.


Main program flow chart


2 System Testing

2.1 Test Data

Data analysis shows that tire wear increases by 2% for every 1°C increase in tire temperature. Generally, the temperature should not exceed 80°C. When the temperature reaches 95°C, the tire is in very dangerous condition. Moreover, if the air pressure is too high, the tire cord will be overstretched, the tire body elasticity will be reduced, the rigidity will increase, the unit pressure will increase, the contact area of ​​the crown will be reduced, and the wear will increase. The tread pattern is prone to cracks. Once it is hit by an obstacle during driving, it will cause internal cracks or explosions. At the same time, this system has fatigue driving (time monitoring), so when the tire pressure temperature exceeds the preset value and the driving time exceeds 4 hours, the system will sound an alarm. In terms of errors during transmission, the tire pressure measurement accuracy is ±0.5kpa, and the tire temperature is ±1°C.

2.2 Implementation of functions

(1) It has the functions of collecting, recording and storing time, date and driving time. It can record continuous driving time. Since the traffic safety law stipulates that drivers must rest for at least 20 minutes every 4 hours of driving, it can monitor the driver's fatigue state. Once a violation is found, an alarm will sound and the information will be transmitted to the monitoring center. (2) The temperature and tire pressure measurement, recording and storage functions of the vehicle while driving: a. The temperature measurement system detects the engine temperature of the vehicle and displays it in real time. It can alarm for abnormal high temperature conditions, thereby improving driving safety. b. The main function of the tire pressure and temperature detection system is to monitor the pressure and temperature data inside the tire and display it in real time. It can alarm for abnormal high pressure, high temperature and low pressure conditions, thereby improving driving safety. c. The operating data is stored in a large-capacity serial Flash memory. Even if the power is off, the data will not be lost. d. It is equipped with a USB interface, and the data can be read directly with a USB flash drive or connected to a computer for reading.

3 Conclusion

This system has the functions of collecting, recording and storing time, date and driving time; car tire pressure, temperature, etc.

The monitoring system communicates with the host through Zigbee wireless radio frequency technology; the Flash memory stores data, and the data will not be lost even if the power is off; the USB interface is configured to read data directly with a USB flash drive or connect to a computer for reading; it has timeout (fatigue) alarm and recording functions, which can effectively curb driver fatigue driving and ensure the safety of long-distance transportation driving.

This design has passed the test, the system runs well and can meet the basic usage requirements of the car black box.

Keywords:MG2455 Reference address:A brief analysis of the realization of car wireless black box based on MG2455 microprocessor Zigbee

Previous article:Design of Communication Unit Based on FlexRay Bus
Next article:Design of large-capacity storage system based on FPGA+MCU

Recommended ReadingLatest update time:2024-11-16 15:41

Design of ward monitoring system based on Zigbee technology
Medical resources are in short supply in my country. Developing a local intelligent monitoring network in hospitals can reduce the workload of medical staff and improve their work efficiency and service quality. The traditional solution is to use wired or simple wireless data transmission and reception. The sensor e
[Medical Electronics]
Design of ward monitoring system based on Zigbee technology
Design of wireless infusion monitoring solution based on ZigBee
In the medical system, the monitoring of patients during infusion has always been a concern for nurses and patients. Once the monitoring is wrong, air will enter the human blood system, causing serious consequences and even causing the patient's death. Existing control systems mostly use wired technology to build de
[Medical Electronics]
Design of wireless infusion monitoring solution based on ZigBee
LED lighting control solution based on ZigBee Light Link protocol
   Overview of ZigBee lighting control solution:   The solution is developed based on TI CC2530 chip. It uses smartphone APP interface control and supports Apple IOS and Android mobile device control. It can control multiple groups of lights, set scenes, adjust brightness, adjust RGB color reproduction and set cloud
[Power Management]
LED lighting control solution based on ZigBee Light Link protocol
Campus LED bulletin board system based on touch screen technology and ZigBee
In recent years, LED electronic display screens have attracted increasing attention as a high-tech product. They can display text, graphics and image information in real time or in a loop. They have many advantages, such as rich display modes, strong viewing, convenient display content modification, high brightness, s
[Microcontroller]
Campus LED bulletin board system based on touch screen technology and ZigBee
Design of smart home lighting control system based on artificial immune system and ZigBee (Part 1)
1 Introduction The role of smart home lighting control is not only to create a good light environment, but also to save energy. Therefore, a good lighting control system should be able to make full use of natural light from the outside and dynamically control lamps to achieve the best effect with minimal energy
[Power Management]
Design of smart home lighting control system based on artificial immune system and ZigBee (Part 1)
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号