Embedded vehicle-mounted alcohol detection system
By designing an embedded vehicle-mounted alcohol detection system, real-time monitoring and alarm of alcohol concentration and driver positioning status is achieved using STM32 microcontroller and multiple sensors, the problems of inconvenience in the existing system, waste of resources and untimely monitoring are solved, and the road safety level is improved.
Patent Information
- Application Number
- CN202411875610.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-25
AI Technical Summary
The existing road alcohol testing system is inconvenient to use, has serious resource waste, and is poorly generalized, so it cannot achieve coordination and compatibility between information detection and self-regulation. The traditional alcohol testing method relies on regular inspections by traffic police personnel, and there is a problem of untimely monitoring.
An embedded vehicle alcohol detection system is designed, which can be cross-integrated through the STM32 microcontroller control and sensor detection technology to realize vehicle alcohol detection and real-time feedback. The system includes an alcohol concentration detection module, a human body sensing module, a voice broadcast module, an over-concentration information sending module, an OLED display module, a motor and a driving module, which can monitor the alcohol concentration and the driver's position status in real time, and prevent drunk driving through voice broadcasts and text messages.
Real-time monitoring and alarm of alcohol concentration and driver position status is achieved, which can promptly remind drivers and their families to prevent drunk driving and improve road safety.
Smart Images

Figure CN119872229A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a vehicle-mounted alcohol detection system, in particular to an embedded vehicle-mounted alcohol detection system. Background Art
[0002] With the development and maturity of Internet of Things application technology, road safety construction has become a general trend. Strengthening the information and networking of road safety is of great significance to improving the level of driving safety and the safety of road users. The existing road alcohol detection system is inconvenient, wastes resources seriously, and has poor versatility. The theoretical research on drunk driving detection is one-sided and cannot achieve the coordinated compatibility of information detection and self-regulation.
[0003] In modern road safety regulations, driving under the influence of alcohol is a strictly prohibited violation. However, the traditional alcohol detection method relies on regular inspections by traffic police, which has problems such as untimely monitoring. With the continuous advancement of road safety detection technology, the application of intelligent alcohol detection technology is becoming more and more widespread.
[0004] In order to respond to the national policy of prohibiting drunk driving, promote the rational allocation of resources, improve the level of road safety, provide a safe driving environment, and achieve the goals of driving safety and road driving regulations, it is urgent to develop an intelligent embedded vehicle alcohol detection and feedback system. Summary of the invention
[0005] The purpose of the present invention is to provide an embedded vehicle alcohol detection system, which realizes vehicle alcohol detection and real-time feedback through the cross-integration of single-chip control and sensor detection technology. The system implants a parameter information receiving and processing system on the STM32 main controller to achieve simultaneous reception and processing of multiple parameters, effectively preventing the occurrence of drunk driving.
[0006] The objective of the present invention is achieved through the following technical solutions: An embedded vehicle alcohol detection system, the system includes a core controller STM32 series single chip microcomputer, an alcohol concentration detection module, a human body sensing module, a voice broadcast module, an over-concentration information sending module, an OLED display module, a motor and drive module, and an information adjustment and management module, wherein: The drug alcohol concentration detection module reads the alcohol concentration and then performs a threshold comparison to operate the motor and drive module, and realizes the vehicle motor adjustment and alarm operation with the over-concentration information sending module; The human body sensing module works by detecting infrared radiation emitted by human bodies in the environment; After receiving the information of normal or excessive alcohol concentration transmitted by the main controller, the voice broadcast module broadcasts the information to remind; The over-concentration information sending module adopts a SIM800C GSM GPRS module, which is equipped with SMS sending and receiving functions, and generates an adjustment signal based on the alcohol concentration exceeding standard signal received by the STM32 main controller; The OLED display module is driven by the IIC protocol to display whether the driver is in place, alcohol concentration, digital information of motor adjustment speed, and threshold adjustment process information; The motor and drive module generates a regulation signal through the digital signal received by the STM32 main controller to complete the speed adjustment of the motor; The information adjustment and management module uses encoders and convenient buttons; The main controller receives the digital information converted by the alcohol detection module and the human body sensing module, and after internal analysis and processing, displays the vehicle information on an external OLED display screen. It controls the working status of the motor and drive module through threshold comparison and conditional judgment to determine whether the vehicle is started.
[0007] In the embedded vehicle-mounted alcohol detection system, the alcohol concentration detection module adopts an MQ3 alcohol concentration sensor. The MQ3 sensor is based on a metal oxide semiconductor (MOS). When it comes into contact with alcohol vapor, the resistance of the sensor changes, and the alcohol concentration is accurately calculated by measuring the resistance change.
[0008] In the embedded vehicle alcohol detection system, the human body sensing module adopts the HC-SR505 sensor. There is a difference between the human body temperature and the ambient temperature. The sensor senses this change and triggers an output signal to be received by the STM32 main controller to determine whether the driver is in place.
[0009] The embedded vehicle-mounted alcohol detection system, the voice broadcast module adopts the JQ6500 voice broadcast module and the speaker, and the JQ6500 voice broadcast module completes the control of music playback through serial instructions.
[0010] In the embedded vehicle-mounted alcohol detection system, the over-concentration information sending module adopts a SIM800CGSM GPRS module to send a reminder SMS to a pre-set mobile phone.
[0011] In the embedded vehicle-mounted alcohol detection system, the OLED display module adopts a 0.96-inch OLED display screen.
[0012] The embedded vehicle-mounted alcohol detection system, the motor and drive module adopt a stepper motor and an L298N drive module, and the drive module outputs a specific current pulse to achieve driving.
[0013] The described embedded vehicle alcohol detection system, the described information adjustment and management module, adopts an encoder and a convenient key, and realizes the addition and subtraction adjustment of each parameter threshold value by changing the pin level of the main controller.
[0014] In the embedded vehicle alcohol detection system, the main controller adopts a microcontroller STM32F103C8T6 single-chip microcomputer based on the ARM Cortex-M3 core, receives the digital quantity information converted by the alcohol detection module and the human body sensing module, and after internal analysis and processing, controls the on-off working state of the over-concentration information sending module, the voice broadcast module, etc. according to the threshold comparison and condition judgment to achieve overload alarm.
[0015] The advantages and positive effects of the present invention are: 1. The present invention realizes real-time monitoring and alarm of alcohol concentration and driver's seat status through MQ3 alcohol concentration sensor, HC-SR505 human body induction sensor, OLED display screen, etc., so as to timely remind the driver and his family of the driver's personal information and adjust the alarm.
[0016] 2. The present invention is an intelligent vehicle alcohol detection system that can detect in real time whether the driver is in place and key parameters such as the driver's alcohol concentration, and realizes alarming of the driver's status through sensors and software algorithms to ensure that the driver cannot drive after drinking. The system is designed with a voice broadcast reminder function and an over-concentration information sending function. If the driver's alcohol concentration exceeds the standard, a text reminder can be given, and the driver's information can be sent to the set family members in the form of text messages, which can remind the driver and avoid drunk driving.
[0017] 3. The present invention is applicable to the field of road safety, injecting new power into the development of road safety level and adding new ideas for subsequent embedded detection of road safety facilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Schematic diagram of the system structure of the present invention. DETAILED DESCRIPTION
[0019] The present invention will be described in detail below with reference to the accompanying drawings.
[0020] The system of the present invention includes a core controller STM32 series single-chip microcomputer, an alcohol concentration detection module, a human body sensing module, a voice broadcast module, an over-concentration information sending module, an OLED display module, a motor and drive module, and an information adjustment and management module, wherein: The drug alcohol concentration detection module uses the MQ3 alcohol concentration sensor. The MQ3 sensor is based on metal oxide semiconductor (MOS) technology. When it comes into contact with alcohol vapor, the resistance of the sensor will change. This change is related to the alcohol concentration. By measuring the change in resistance, the alcohol concentration can be accurately calculated. The stm32 main controller reads the alcohol concentration and performs a threshold comparison to manipulate the motor and drive module and the over-concentration information sending module to achieve vehicle motor adjustment and alarm operations.
[0021] The human body sensing module uses the HC-SR505 sensor. The HC-SR505 does not emit infrared rays, but works by detecting infrared radiation emitted by the human body in the environment. When the driver enters its detection range, due to the difference between the human body temperature and the ambient temperature, the sensor can sense this change and trigger an output signal. The output signal will be received by the STM32 main controller and used to determine whether the driver is in place.
[0022] The voice broadcast module uses the JQ6500 voice broadcast module and the speaker. The JQ6500 voice broadcast module controls the music playback through simple serial instructions without complicated underlying operations. It is easy to use and stable and reliable. After the voice broadcast module receives the information that the alcohol concentration is normal or exceeds the standard transmitted by the main controller, it broadcasts this information as a reminder. The over-concentration information sending module uses the SIM800C GSM GPRS module. The module is equipped with SMS text message sending and receiving functions. It can send a reminder text message to a pre-set mobile phone through the adjustment signal generated by the alcohol concentration exceeding standard signal received by the STM32 main controller.
[0023] The OLED display module uses a 0.96-inch OLED display screen, which is driven by the IIC protocol. It can display digital information such as whether the driver is in place, alcohol concentration, motor adjustment speed, etc. on-site, and can also display threshold adjustment process information.
[0024] The motor and drive module use a stepper motor and an L298N drive module. This motor is usually composed of four coils. Each coil will be activated in turn when receiving a specific current pulse, thereby pushing the motor's rotor to rotate a fixed angle. The drive module can output a specific current pulse to achieve a driving effect. It can generate an adjustment signal through the digital signal received by the STM32 main controller to complete the speed adjustment of the motor.
[0025] The information adjustment and management module uses encoders and convenient buttons to mainly complete the following operations, and realizes the addition and subtraction adjustment of each parameter threshold by changing the pin level of the main controller.
[0026] The main controller uses a microcontroller STM32F103C8T6 based on the ARM Cortex-M3 core, which is responsible for receiving the digital information converted by the alcohol detection module and the human body sensing module. After internal analysis and processing, the vehicle information is displayed on an external OLED display screen, which is convenient for the driver to view on the spot. According to the threshold comparison and condition judgment, the on-off working status of the over-concentration information sending module, the voice broadcast module, etc. is controlled to achieve the purpose of overload alarm; at the same time, the working status of the motor and the drive module is controlled by threshold comparison and condition judgment to determine whether the vehicle is started.
[0027] The invention aims to improve the road driving safety level and maximizes the construction mode of human-computer interaction and overload alarm. The technology of the invention involves multiple performance parameter detection, so a parameter information receiving and processing system is implanted on the stm32 main controller to achieve simultaneous reception and processing of multiple parameters.
[0028] The STM32 main controller will initialize all system sensors uniformly, and use serial ports, I2C and other protocols to initialize communication with sensor modules. If all sensor modules are working properly, the STM32 microcontroller will act as the host to detect information. First, the STM32 microcontroller detects the driver's status through the human body sensing module and presents the driver's position information on the OLED display. If the human body sensing module outputs that the driver is in place, the main controller can control the motor to start and detect the driver's alcohol concentration, and the alcohol concentration information will also be displayed on the OLED display. If the driver's alcohol concentration is detected to be lower than the set threshold, the motor can be adjusted normally, and the motor speed can be adjusted through the encoder. At the same time, the main controller will use the voice broadcast module to broadcast the message "Your alcohol concentration is within the standard and you can drive." If the driver's alcohol concentration is detected to be higher than the set threshold, the control of the motor will be stopped immediately and the motor will be prohibited from rotating. At the same time, the main controller will use the voice broadcast module to broadcast the message "Your alcohol concentration exceeds the standard, driving is prohibited" to remind the driver of road safety. It will also use the over-concentration information sending module to send the message "You are driving under the influence of alcohol!" to the set mobile phone number. If the human body sensing module outputs that the driver is not in place, the motor will be uncontrollable and the motor will be prohibited from running.
[0029] The alcohol concentration threshold and the set mobile phone number in the above process can be changed through the key module, and the change process can also be observed through the OLED display.
[0030] The above is a detailed introduction to the technology of the present invention, and the hardware working principle and implementation method of the system are described. This description is only used to help understand the core idea of the technology of the present invention. In summary, the content of this specification should not be understood as limiting the technology of the present invention.
Claims
1. An embedded vehicle alcohol detection system, characterized in that: The system includes a core controller STM32 series single-chip microcomputer, an alcohol concentration detection module, a human body sensing module, a voice broadcast module, an over-concentration information sending module, an OLED display module, a motor and drive module, and an information adjustment and management module, wherein: The drug alcohol concentration detection module reads the alcohol concentration and then performs a threshold comparison to operate the motor and drive module, and realizes the vehicle motor adjustment and alarm operation with the over-concentration information sending module; The human body sensing module works by detecting infrared radiation emitted by human bodies in the environment; After receiving the information of normal or excessive alcohol concentration transmitted by the main controller, the voice broadcast module broadcasts the information to remind; The over-concentration information sending module adopts a SIM800C GSM GPRS module, which is equipped with SMS sending and receiving functions, and generates an adjustment signal based on the alcohol concentration exceeding standard signal received by the STM32 main controller; The OLED display module is driven by the IIC protocol to display whether the driver is in place, alcohol concentration, digital information of motor adjustment speed, and threshold adjustment process information; The motor and drive module generates a regulation signal through the digital signal received by the STM32 main controller to complete the speed adjustment of the motor; The information adjustment and management module uses encoders and convenient buttons; The main controller receives the digital information converted by the alcohol detection module and the human body sensing module, and after internal analysis and processing, displays the vehicle information on an external OLED display screen. It controls the working status of the motor and drive module through threshold comparison and conditional judgment to determine whether the vehicle is started.
2. An embedded vehicle alcohol detection system according to claim 1, characterized in that: The drug alcohol concentration detection module adopts the MQ3 alcohol concentration sensor. The MQ3 sensor is based on metal oxide semiconductor (MOS). When it comes into contact with alcohol vapor, the resistance of the sensor changes. The alcohol concentration can be accurately calculated by measuring the resistance change.
3. The embedded vehicle alcohol detection system according to claim 1, characterized in that: The human body sensing module uses the HC-SR505 sensor. There is a difference between the human body temperature and the ambient temperature. The sensor senses this change and triggers an output signal to be received by the STM32 main controller to determine whether the driver is in place.
4. The embedded vehicle alcohol detection system according to claim 1, characterized in that: The voice broadcast module adopts the JQ6500 voice broadcast module and the loudspeaker. The JQ6500 voice broadcast module controls the music playing through serial instructions.
5. The embedded vehicle alcohol detection system according to claim 1, characterized in that: The over-concentration information sending module adopts a SIM800C GSM GPRS module to send a reminder SMS to a pre-set mobile phone.
6. The embedded vehicle alcohol detection system according to claim 1, characterized in that: The OLED display module uses a 0.96-inch OLED display screen.
7. The embedded vehicle alcohol detection system according to claim 1, characterized in that: The motor and driving module adopt a stepping motor and an L298N driving module, and the driving module outputs a specific current pulse to realize driving.
8. The embedded vehicle alcohol detection system according to claim 1, characterized in that: The information adjustment and management module adopts an encoder and convenient buttons to achieve the addition and subtraction adjustment of each parameter threshold by changing the pin level of the main controller.
9. The embedded vehicle alcohol detection system according to claim 1, characterized in that: The main controller adopts a microcontroller STM32F103C8T6 single-chip computer based on the ARM Cortex-M3 core, receives the digital information converted by the alcohol detection module and the human body sensing module, and after internal analysis and processing, controls the on-off working status of the over-concentration information sending module, the voice broadcast module, etc. according to the threshold comparison and condition judgment to achieve overload alarm.