introduction
At present, almost all countries use breath alcohol testers to conduct on-site testing of drivers to determine whether the measured driver has been drinking. This paper proposes an alcohol detection and safety control system, which is installed on the car. It can determine whether the driver is driving under the influence of alcohol without the need for traffic police and other personnel, thereby ensuring the safety of the driver and reducing the workload of traffic police and other personnel. At the same time, it can make an independent judgment based on whether the alcohol content exceeds the standard, and can control the car ignition switch, so that the drunk driver cannot start the car.
1 Overall design
The system uses the driver's active exhalation method to determine whether the driver is driving under the influence of alcohol. The overall design scheme is shown in Figure 1. The system can be placed on the dashboard of the car. When the driver starts the car, the alarm device will sound to remind the driver to use the alcohol detection and safety control system. At this time, the engine is locked and the car cannot be started. After the alcohol sensor is heated, the green light of the system indicator module lights up to prompt the driver to exhale. To prevent the driver from evading detection, a microphone is set as an exhalation judgment device. When the exhalation is confirmed, the microcontroller sends a trigger signal to start detecting the gas signal detected by the alcohol sensor. Since the alcohol content is proportional to the voltage signal generated by the alcohol sensor after detection, the alcohol content can be judged based on the voltage signal. The detection signal passes through the amplification and detection circuits for signal amplification and filtering, and is then converted into a digital signal through the A/D conversion circuit. The signal is processed and judged by the single-chip microcomputer. If the alcohol content does not exceed the standard, the indicator light will light up, the control relay will not work, and the car can be started; otherwise, the exceeding indicator light will light up and the alarm device will sound at the same time, indicating that the car cannot be driven. If the driver starts the car forcibly, the control relay will cut off the power supply of the ignition device, making the car unable to drive, thereby realizing the function of controlling drunk driving.
2 Hardware Design
The hardware design adopts independent structures of the transmitting part and the receiving part, so that the detection and control systems are separated.
2.1 Transmitter
The transmitting part is powered by a battery, with 89C2051 microcontroller as the control core, equipped with QM-J3 gas-sensitive alcohol sensor, breath microphone, 8-bit A/D converter AD0809 and transmitting module F04E. The main function is to detect the alcohol content, determine whether it exceeds the standard, and send a signal to the receiving part. The principle block diagram is shown in Figure 2. This part consists of the following modules:
2.1.1 Alcohol content detection module
The module includes an alcohol sensor, detection, amplifier circuit and A/D conversion circuit. The alcohol probe uses QM-J3 gas sensor, which is an N-type semiconductor with composite metal oxide as the main material. When exhaling, once the element contacts ethanol vapor, its conductivity increases rapidly with the increase of gas concentration, so that the generated voltage signal also increases. After the voltage signal is converted into a digital quantity by the detection, amplifier circuit and A/D conversion circuit, it is sent to the single-chip microcomputer for threshold judgment to detect whether the alcohol content in the driver's exhaled gas exceeds the standard.
2.1.2 Exhalation judgment module
In order to prevent the alcohol sensor from making a wrong judgment due to the driver not exhaling and failing to correctly detect the actual alcohol content in the driver's body, this module is set to determine whether the driver exhales. When the microphone is used to exhale, the microphone will generate a pulse signal. The microcontroller determines that the driver exhales and then detects the signal sent by the alcohol probe.
2.1.3 Indicator module
The module has three indicator lights: red, green and yellow. The red light is the power indicator light, which is on when working; the green light is the exhalation prompt light, and the alcohol probe needs a certain amount of time to heat up to achieve the ideal sensitivity.
When the heating time is up, the green light comes on, indicating that you can exhale; the yellow light indicates that the exhalation is effective. When the yellow light is not on, it means that the exhalation is not sufficient. Only when the yellow light comes on will the microcontroller start to detect the signal sent by the alcohol probe.
2.1.4 Microcontroller
The 89C2051 single-chip microcomputer of the 51 series is selected as the processor to detect the exhalation judgment signal and judge the alcohol content in the gas, and generate the corresponding information code to send to the transmitting device.
2.1.5 Transmitter Module
The mature F04E transmitting module is adopted, which can be directly connected to the single-chip microcomputer, modulate the information code given by the processor and send it wirelessly to the receiving part.
2.2 Receiving part
The receiving part is installed on the car, mainly to judge the received signal code and make corresponding operations. If an error code is received, it returns to continue testing; if an over-limit code is received, an alarm sound is given, the ignition device is disconnected, the car headlights are on, and the horn sounds; if a non-over-limit code is received, a driving prompt sound is given and the ignition device is turned on. The structural block diagram is shown in Figure 3, which can be divided into the following modules:
[page]
2.2.1 Receiving device module
Adopt J04H receiving module. When there is no signal, the output of J04H is zero level (no noise interference). It is suitable for the input interface of single-chip microcomputer. J04H adopts strip gold-plated inductor and optimized circuit. No external antenna is required. The receiving sensitivity is high. The gold-plated inductor with a certain hardness is used to adjust the receiving frequency. The receiving circuit performance is more stable than that of the fine-tuning capacitor. J04H has a higher receiving bandwidth. It is matched with F04E and basically does not require debugging. As long as the power supply and lead wire do not have too large distributed parameters, it can be in a normal receiving state. The receiving module receives the signal of the transmitting module and sends the code to the single-chip microcomputer after modulation.
2.2.2 Microcontroller
After receiving the code from the receiving device, it performs different operations according to different codes. It controls the working indicator light, relay, and voice alarm module.
2.2.3 Relay control module
Controlled by a single-chip microcomputer, it is equivalent to a switch, controlling the on and off of the ignition, the lighting of the car lights, and the sounding or not of the horn.
2.2.4 Alarm Voice Module
The buzzer is used as an alarm. When the alcohol content exceeds the standard, a warning tone prohibiting driving is issued; when it does not exceed the standard, a prompt tone allowing driving is issued.
Through the above design, the front end of the system can generate the corresponding control code after the alcohol content signal detected by the alcohol sensor is judged by the single chip microcomputer and sent wirelessly by the sending module. The receiving part of the back end can decode the control code transmitted by the transmitting part and generate the corresponding control signal to control the ignition circuit of the car, thereby realizing effective control of drunk driving.
3 Software Design
The software part is also divided into two parts, transmission and reception, according to the system function settings. Due to space limitations, this article presents its main functions in the form of a flow chart.
The main program flow chart of the transmitter is shown in Figure 4, which realizes the functions of breath recognition, whether the alcohol content exceeds the standard, generating information codes and sending the information codes to the receiving part. Each device has a unique 40-bit binary code number, and the number is placed in the high five bits of the signal code every five bits starting from the low bit, and the last three bits are generated according to the test results. In this way, a set of eight eight-bit information codes with check bits are generated. Since the number of each device is different, this transmitter cannot start the car when used on any other receiver, thus playing the role of an electronic key.
Figure 5 is the main program flow chart of the receiving part. Its function is to receive information, in which the information code is received by receiving 8 information codes at a time. After receiving, it is judged whether the check bits of the 8 information codes are correct. If correct, it is judged whether it exceeds the standard based on the comparison between the last information code and the exceeding code. Otherwise, it returns to receive again. When the check bit is correct and the same as the exceeding code, the exceeding operation is executed, that is, the alarm device sounds and the control relay cuts off the power supply of the ignition device; otherwise, it is compared with the non-exceeding code. If they are the same, the non-exceeding control is executed and the car can be started. If they are not the same, it returns to receive information again.
4 Conclusion
The vehicle alcohol detection and safety control system is designed to prevent traffic accidents. This article introduces the entire design by explaining the functions of each module and the software workflow. It can be carried with you without any complicated operations, and has great promotion value in practical applications.
Previous article:Design of single chip sewage remote monitoring system
Next article:Design of Fingerprint Attendance Management System Based on Single Chip Microcomputer
- Popular Resources
- Popular amplifiers
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
- Common Misconceptions About 802.11ax
- The problem of not selecting the package in the box
- 【Silicon Labs Development Kit Review】+ Development Environment Setup
- Digital Temperature Sensors
- PCB experience (spent many years to compile in the forum) Download it if needed
- [Fudan Micro FM33LC046N Review] + Unboxing
- [GD32E231 DIY Contest] 1. Good emulator
- Follow TI's high voltage technology experts to learn about the advantages of capacitive isolation technology!
- EEWORLD University Hall ---- Large-scale Data Processing and Cloud Computing Peking University
- A question about Datasheet?