In-vehicle anti-drunk driving safety system based on MSP430

Publisher:春林初盛Latest update time:2015-03-10 Source: 21icKeywords:MSP430 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Since May 1, 2011, the Criminal Law Amendment (VIII) and the revised Road Traffic Safety Law have been officially implemented, and drunk driving will be subject to criminal liability. With the actual implementation of the detention for dangerous driving for drunk driving, the media and all sectors of society have paid more attention to the issue of criminalizing drunk driving. Various countries have a wide variety of alcohol testing instruments, but because they are not installed inside the car, they can only be checked one-on-one by the traffic police holding the instruments, making the scope of drunk driving inspection narrow, and it is impossible to actively eliminate this dangerous driving behavior, and it is impossible to completely eliminate traffic accidents caused by drunk driving.

Therefore, we hope to design a vehicle-mounted anti-drunk driving safety system. The design of this vehicle-mounted anti-drunk driving control system is divided into two parts. The alcohol concentration detection and judgment part is installed near the steering wheel of the car to facilitate the driver's breath detection; the second part is the alcohol concentration excessive control ignition part. This part of the circuit is connected to the car igniter to control the ignition and alarm circuit. In this way, a full range of active prohibition of drunk driving can be achieved.

1 System Design

The working principle of this design is that when the driver starts the car, the indicator light will light up to remind the user that the device is started, and the driver must first exhale into the alcohol sensor. The gas is processed by the sensor, detection amplification and AD conversion, and then input to the main control

The chip makes a judgment. If the threshold voltage is exceeded, the buzzer sounds and the stepper motor cannot be started, which means that the car engine cannot ignite. At this time, the voice alarm circuit will start the alarm. On the contrary, if the alcohol content is not exceeded, the display prompts that the alcohol concentration is normal and the car can be started normally. Figure 1 shows the overall principle block diagram of the system.

Design of vehicle-mounted anti-drunk driving safety system based on MSP430

2 Hardware Circuit Design

The core control module of the system is the MSP430F149 from TI of the United States. The highlights of this chip are low power consumption, rich on-chip peripheral modules, stable system operation, and compliance with modern environmental protection concepts. In particular, the chip comes with 10-bit and 12-bit ADC conversion, which is easy to use and fully meets the actual requirements of driving in real life.

1) Alcohol concentration collection

The alcohol concentration sensor MQK2 device is used at the input end of alcohol concentration collection. It uses a sensitive sintered body formed by sintered semiconductors. The manufacturing process ensures its long-term working stability; it has high sensitivity and good selectivity to ethanol vapor, high signal-to-noise ratio and low power consumption; these characteristics meet the needs of drivers' self-testing of drunk driving.

MQK2 is mainly composed of gas sensors and resistance wire. VH is connected to 5 V heating voltage, which can heat the resistance wire to 270-300℃; Vc is connected to the working voltage (range 5-24 V); the external voltage of this system is +5 V, and the sampling resistor RL = 2 kΩ. In this way, the resistance change of the MQK2 sensor can be converted into the change of the output voltage through the circuit in Figure 2, which can be converted into digital quantity through the A/D device inside the MSP430F149 for processing by the microcontroller.

Design of vehicle-mounted anti-drunk driving safety system based on MSP430

Considering that alcohol concentration is converted from non-electrical quantity to electrical quantity by the sensor, the sensor outputs a voltage of 0 to 3.3 V and the voltage value is stable. Since the voltage range of the alcohol sensor output is 3 to 5 V, the output value of the alcohol sensor cannot be directly given to the microcontroller. It can be seen from the literature that the alcohol content is in a linear proportional relationship with the voltage signal generated by the alcohol sensor after detection, so a general proportional circuit can be selected to convert it to the voltage range of the microcontroller. In this design circuit, a sliding rheostat is used instead of an alcohol sensor, so the analog quantity input by the sensor can be directly sent to the microcontroller using the change of the sliding rheostat voltage input, thereby obtaining a one-to-one correspondence between alcohol concentration and voltage.

2) Motor drive and alarm module

When the alcohol content exceeds the limit, a buzzer and an 8550 transistor are used to drive the driver to remind him of drunk driving. The indicator light is a light-emitting diode connected to the microcontroller, and a 1-2 kΩ resistor is added to limit the current. When driving under the influence, the output port P6.7 of the microcontroller is set to 1, and the 8550 transistor amplifies the current of the microcontroller to drive the buzzer. When in normal use, the output port p5.0 is set to 1, and a current limiting resistor is added to prevent the diode from being burned out due to excessive current.

Here, a stepper motor is used to replace the ignition of a car in reality. The rotation of the stepper motor means that the car's engine starts, otherwise the car cannot start. Because the output current of the microcontroller cannot drive the motor, a driver module is needed to drive the motor. Based on theoretical analysis and actual conditions, a stepper motor and LN298 are selected as the hardware circuit.

To sum up, the system uses LCD12864 display module to provide a human-computer interaction interface, and the ADC conversion module performs analog-to-digital signal conversion; the data processing module is used to display the detection information on the 12864 screen, and it corresponds to the input analog quantity; the motor drive and alarm module is responsible for alarming the user when the input analog quantity is too high, and displaying relevant information about the alcohol content; or when the input analog quantity is not marked, it prompts the user to ignite normally.

3) Main components

Based on the above description of the hardware, the main components and their parameters used in this design are shown in Table 1.

Design of vehicle-mounted anti-drunk driving safety system based on MSP430

3 Software Design

The main program flow chart of the system and the screenshot of successful compilation are shown in Figures 3 and 4. After the system is powered on, each module needs to be initialized and set to determine whether to issue a sound and light alarm, and at the same time send the calculated alcohol concentration value to LCD12864 for display. [page]

Design of vehicle-mounted anti-drunk driving safety system based on MSP430

4 Physical debugging circuit

As shown in Figure 5, the entire circuit consists of two circuits: the hardware resources on the MSP430F149 system board (LCD12864 display, buzzer, light-emitting diodes, etc.) and a motor drive module circuit (LN298 drive module and DC motor).

When the microcontroller is powered on, the 12864 display shows welcome (as shown in the left picture of Figure 6). When the alcohol content is higher than the set value, the drunk driving information is displayed in Figure 6, and the motor is prohibited, which means that the ignition device of the generator is stopped. If the alcohol content is normal, it is prompted that the car can be driven safely (as shown in the right picture of Figure 6).

Design of vehicle-mounted anti-drunk driving safety system based on MSP430
Design of vehicle-mounted anti-drunk driving safety system based on MSP430

5 Conclusion

The system has designed the software and hardware circuits for the vehicle-mounted anti-drunk driving safety control system, and has conducted software and hardware joint debugging on the experimental circuit based on the 32-bit low-power main control chip MSP430 as the core chip, proving the feasibility and correctness of the designed circuit. The hardware circuit is simple and low-cost, and the modular software design is easy to debug, which has certain expansion and application value. However, the vehicle-mounted drunk driving prohibition system is closely related to human subjective initiative. How to intelligently identify whether the gas received by the alcohol sensor is exhaled by the person who is about to drive requires further research.

Keywords:MSP430 Reference address:In-vehicle anti-drunk driving safety system based on MSP430

Previous article:Single chip frequency measurement program
Next article:Two-wheeled self-balancing intelligent car based on linear CCD

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

What are the maskable interrupts of MSP430?
Interrupts largely reflect the performance of a microcontroller. From this point of view, MSP430 does a very good job in interrupts, mainly by providing a very rich interrupt source, the basic ones are IO interrupts, timer interrupts and some interface interrupts (SPI, UART, I2C) and so on. Now I will talk about som
[Microcontroller]
An AC frequency detection system based on MSP430 single chip microcomputer
1 Introduction Since frequency signals have the advantages of strong anti-interference, easy transmission, and high measurement accuracy, many non-frequency sensor signals are converted into frequency quantities for measurement and processing. Therefore, frequency measurement methods are attractin
[Microcontroller]
An AC frequency detection system based on MSP430 single chip microcomputer
msp430 accurately measures low frequency
//****************************************************************************** // Date: 2009.8.16 // Author: xurafreedom // Email: freedomxura@gmail.com / mxh20999@163.com // Blog: http://xurafreedom.cublog.cn // Basic principle: 1s timing, count the number of rising edges of the captured signal during this time
[Microcontroller]
Design of multifunctional mouse based on 2.4GHz radio frequency communication
Introduction The multifunctional wireless mouse includes a wireless transmitting part and a wireless receiving part, wherein the transmitting part is the key part related to its overall performance. This system builds a wireless transmitting module with nRF24L01 as the core. nRF24L01 is a new single-chip RF tra
[Microcontroller]
Design of multifunctional mouse based on 2.4GHz radio frequency communication
MSP430 series chip crystal oscillator selection instructions
This report divides the MSP430 series chips into two parts, one is the high-speed crystal oscillator interface, and the other is the low-speed crystal oscillator interface. In general, the low-speed crystal oscillator interface can connect to the crystal oscillator that can be connected to the high-speed crystal oscill
[Microcontroller]
MSP430F5438 lights up LED
Today I just wanted to light up an LED lamp. Because there was no video, I had to do a lot of things by myself. I had talked to the store in the afternoon, and they said they would give me some technical support, but they didn’t give me any at all. I really wanted to go to hell. In fact, the code had been written a lo
[Microcontroller]
MSP430F5438 lights up LED
Capacitive touch MSP430 circuit and LED drive circuit design explanation
  The MSP430 series of microcontrollers are famous for their low power consumption and rich peripheral modules. For capacitive touch applications, the PIN RO capacitive touch detection method of MSP430 supports direct connection of the IO port to the detection electrode without any peripheral devices, which greatly si
[Power Management]
Capacitive touch MSP430 circuit and LED drive circuit design explanation
Design of transmission control timing detection system based on MSP430F149 single chip microcomputer
Since the rocket launcher launches simple controlled rockets, the electrical signal interface between its directional tube and the rocket has an ignition signal interface like ordinary uncontrolled rockets, as well as a 32-core parameter setting signal interface. In the launch procedure, if the flight control para
[Microcontroller]
Design of transmission control timing detection system based on MSP430F149 single chip microcomputer
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号