Door magnetic sensor control system for driving
By combining the detection of door magnetic sensors and photoelectric sensors, the electromagnetic coil assists the door closure, the automatic locking problem when the door is not completely closed is solved, the detection accuracy and system compactness are improved, energy consumption is reduced, and current There are safety hazards and circuit complexity issues in the technical situation of doors in a false manner.
Patent Information
- Application Number
- CN202420504341.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2034-03-15
AI Technical Summary
When the existing car door detection system is not completely closed and is in a false cover state, the driver cannot perform remote door closing operation, which poses safety risks, and the detection and control part of the electric door suction system are independent, resulting in increased circuit complexity and increased cost.
A driving door magnetic sensor control system is designed, including door magnetic sensor circuit, photoelectric sensor circuit and judgment circuit. By detecting the door state and the car start state, the electromagnetic coil is controlled to assist the door closure, and through the controller and the locking device Connect to realize automatic or manual door locking function.
It improves the working efficiency and accuracy of door inspection, saves energy, realizes the automatic locking function of the door when it is not completely closed, avoids the driver's need to get off the car and close the door, and simplifies the system structure.
Smart Images

Figure CN221942187U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of automobile door detection control, in particular to a door magnetic sensor control system for driving. Background Art
[0002] As people's requirements for automobile safety and comfort continue to increase, the design of car doors, as an important part of the car, also needs to be continuously improved and optimized. When the car door is not completely closed and is in a half-open state, if the driver does not notice this situation in time, there will be safety hazards during the driving of the car. Therefore, it is extremely important to solve the problem of half-opening of the car door.
[0003] The Chinese utility model patent with the name of "Automobile Alarm System" and the announcement number of CN204936948U has been made public. The patent includes a displacement sensor, a contact sensor, a vibration system and a car body. The displacement sensor is arranged on the car body, the contact sensor is arranged on the car door lock, and the vibration system is arranged on the steering wheel of the car body. The vibration system is electrically connected to the displacement sensor and the contact sensor. When the vibration system receives the signals of the displacement sensor and the contact sensor at the same time, the vibration system starts to vibrate to remind the driver that the door is not closed properly. The car alarm system solves the problem that the car door is not closed properly during driving, but this system is limited to reminding the driver that the car door is not closed, and there is no other operation. If the rear passengers do not close the car door after getting off the car, the car door is in a half-closed state, and the driver does not notice the door situation in time, the system will remind the driver that the car door is not closed after the driver starts the car. At this time, it is inconvenient for the driver to get off the car to close the door.
[0004] There is an electric suction door system that solves the problem of the car door not being completely closed. However, the detection part and the control part of the electric suction door system work independently, which increases the complexity of the circuit design and the cost. Utility Model Content
[0005] The purpose of the present application is to provide a door magnetic sensor control system for driving, which solves the technical problem that the driver cannot control the closing of the door when the door is not closed properly and is in a half-open state.
[0006] In order to solve the above technical problems, the solution adopted by this application is as follows:
[0007] The utility model provides a door magnetic sensor control system for driving, comprising a controller and a locking device and a detection device electrically connected to the controller; the detection device detects whether the door is locked and sends a detection signal to the controller; the controller controls the locking device arranged on the door to work, and is characterized in that: the detection device is a door magnetic sensor detection device; the door magnetic sensor detection device comprises a door magnetic sensor circuit, a photoelectric sensor circuit, and a judgment circuit; the door magnetic sensor circuit comprises a reed switch and a magnet, the magnet is arranged at the bottom of the door, the reed switch is arranged at the bottom of the door frame of the vehicle body, and is opposite to the position of the magnet; the photoelectric sensor circuit comprises a shading plate, a photoelectric element, a common-phase amplifier circuit, a counter, and a D latch, a shading plate is arranged in front of the photoelectric element, and the shading plate is fixed at the rotation position of the wheel; the locking device is controlled by the controller, and the locking device comprises an electromagnetic coil, which is arranged at the bottom of the door frame of the vehicle body and is located in the middle position of the reed switch and the magnet in the door magnetic sensor circuit;
[0008] In the door magnetic sensor circuit, when the magnet approaches the reed switch, the circuit where the reed switch is located is turned on; when the magnet moves away from the reed switch, the circuit where the reed switch is located is turned off;
[0009] In the photoelectric sensor circuit, the photoelectric element is connected to the in-phase amplifier circuit. When the photoelectric element detects a light signal, the photoelectric element converts the light signal into an electrical signal, and the electrical signal is transmitted to the in-phase amplifier circuit. The in-phase amplifier circuit amplifies the electrical signal and transmits it to the counter connected thereto. The counter starts counting and outputs a high level when a certain amount is counted. The D latch connected to the counter receives the high level and locks it. The D latch outputs a high level. The output end of the D latch is connected to the controller, and the controller receives the high level signal. When the photoelectric element does not detect a light signal, the photoelectric element does not generate an electrical signal. The in-phase amplifier connected to the photoelectric element outputs a low level and transmits it to the counter connected thereto. The counter is in a reset state. At this time, the counter outputs a low level. The D latch connected to the counter maintains the last state before its enable end becomes a low level. The last state before the enable end of the D latch becomes a low level is a low level state. The output end of the D latch is connected to the controller, and the controller receives the low level signal.
[0010] The judgment circuit includes a differential circuit and a comparison circuit. The two ends of the differential circuit are respectively connected to the door magnetic sensor circuit and the photoelectric sensor circuit. The differential circuit integrates the voltage values of the door magnetic sensor circuit and the photoelectric sensor circuit, and then outputs them to the comparison circuit connected to the differential circuit through the output end. One input end of the comparison circuit is connected to the output end of the differential circuit, and the other input end is connected to the potentiometer. The comparison circuit compares the integrated voltage value with the threshold voltage output by the potentiometer, and the comparison result is transmitted from the output end to the controller connected to it.
[0011] The locking device is connected to the controller. When the door magnetic sensor detection device detects that the car is in the starting state and the door is not completely closed, the controller sends a signal to the locking device, the electromagnetic coil in the locking device is energized, a magnetic field is generated near the electromagnetic coil, the magnet is attracted, and the door is assisted to be completely closed;
[0012] In some embodiments, in the photoelectric sensor circuit, the reset terminal of the counter is controlled by the door magnetic sensor circuit, and the clock signal of the counter is provided by a controller.
[0013] In some embodiments, in the photoelectric sensor circuit, a reset terminal of the counter is connected to the door magnetic sensor circuit, and a clock signal terminal of the counter is connected to a controller.
[0014] In some embodiments, it is characterized in that the controller represents a main control chip, whose model is STM32F103C8T6, which is a 32-bit microcontroller based on the ARM Cortex-M core STM32 series.
[0015] In some embodiments, it is characterized in that the enable terminal of the D latch is connected to the output terminal of the XOR gate.
[0016] In some embodiments, it is characterized in that one input end of the XOR gate is connected to the counter, and the other end is connected to the output end of the NOT gate, and the input end of the NOT gate is connected to one end of the reed switch in the door magnetic sensor circuit. When the state of the reed switch changes, the state of the XOR gate changes, thereby controlling the operation of the D latch.
[0017] In some embodiments, the controller is connected to a timer and a button. After the controller receives a signal transmitted by a door magnetic sensor detection device, the timer starts; if the timer is completed and the vehicle door is not closed, the controller automatically controls the locking device connected to it to work; if the timer is within the timing period, the driver controls the controller connected to it by pressing a button, the controller then controls the locking device to complete the work, and the timer stops timing and is reset.
[0018] In some embodiments, the threshold voltage of the judgment circuit is provided by a potentiometer, which represents a sliding resistor. The positive pole of the sliding resistor is connected to the power supply, the negative pole is grounded, the middle pin is connected to the comparator, and the voltage output by the middle pin is the threshold voltage.
[0019] In some embodiments, the control system is provided with a power module for providing power to the alarm device, controller, door magnetic sensor detection device and locking device, and the power module is electrically connected to the alarm device, controller, door magnetic sensor detection device and locking device.
[0020] The technical solution of the present application has at least the following advantages and beneficial effects:
[0021] 1. In the photoelectric sensor circuit of the utility model, the number of times the photoelectric element detects the light signal is counted to determine whether the car has started to move. There is no need to measure the vehicle speed. The photoelectric sensor circuit starts working only when the door magnetic sensor circuit detects that the door is not closed. This design improves the working efficiency and accuracy of the door magnetic sensor detection device.
[0022] 2. The magnet in the utility model can be used in two parts. One part is in the door magnetic sensor circuit, where the magnet is used to control the switch of the reed switch; the other part is in the locking device, where the electromagnetic coil adsorbs the magnet. This design saves energy and makes the control system compact. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a structural schematic diagram of the utility model.
[0024] Figure 2 This is a schematic diagram of the door magnetic sensor circuit of the present utility model.
[0025] Figure 3 This is a schematic diagram of the photoelectric sensor circuit of the utility model.
[0026] Figure 4 It is a schematic diagram of the judgment circuit of the utility model.
[0027] In the figure: 1-controller, 2-door magnetic sensor detection device, 3-locking device, 4-alarm device, 5-timer, 6-button. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0029] It should be noted that similar numbers and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined and explained in the subsequent figures. If the terms "center", "upper", "lower", "inner", "outer", etc. indicate an orientation or position relationship based on the orientation or position relationship shown in the figure, or the orientation or position relationship in which the product of the application is usually placed when in use, it is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application. It should also be noted that unless otherwise clearly specified and limited, if the terms "set", "install", and "connect" appear, they should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be a connection between the two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0030] Example
[0031] Please refer to Figure 1-Figure 4 The utility model provides a driving door magnetic sensor control system, which is the same as the prior art, and includes a controller 1 and an alarm device 4 electrically connected to the controller, a locking device 3, and a detection device.
[0032] The detection device detects whether the vehicle door is locked and sends a detection signal to the controller 1; the controller 1 outputs a control instruction to the alarm device 4 to remind the driver that the vehicle door is not completely closed; the controller 1 controls the locking device 3 set on the vehicle door to work, so that the unclosed vehicle door is locked.
[0033] Different from the prior art, the detection device is a door magnetic sensor detection device 2; the door magnetic sensor detection device 2 includes a door magnetic sensor circuit, a photoelectric sensor circuit, and a judgment circuit, wherein a visor is arranged in front of the photoelectric element in the photoelectric sensor circuit, and the visor is fixed at the rotation position of the wheel, and as the wheel rotates, the visor periodically passes through the photoelectric element; the door magnetic sensor circuit includes a reed switch and a magnet, the magnet is arranged at the bottom of the vehicle door, and the reed switch is arranged at the bottom of the vehicle door frame, opposite to the position of the magnet; the locking device 3 is controlled by the controller 1, and the locking device 3 includes an electromagnetic coil, which is arranged at the bottom of the vehicle door frame and is located in the middle of the reed switch and the magnet in the door magnetic sensor circuit. The magnet mentioned above has two functions in this control system, one is to assist the locking device 3 in closing the vehicle door, and the other is to control the disconnection and closing of the reed switch. When the car door is opened, the magnet inside the car door moves away from the reed switch at the bottom of the door frame, and the reed switch is disconnected, that is, the door magnetic sensor circuit determines that the car door is not fully closed; when the door magnetic sensor detection device 2 detects that the car door is not fully closed and the car is in the starting state, the controller 1 controls the locking device 3, and the electromagnetic coil between the magnet and the reed switch is energized, and the adsorption magnet is adsorbed to assist the car door to be fully closed. After the closing action is completed, the electromagnetic coil is de-energized. At this time, the magnet is close to the reed switch, and the reed switch is closed, that is, the door magnetic sensor circuit determines that the car door is in a closed state.
[0034] It is worth noting that the wire material used in the electromagnetic coil is non-magnetic, such as copper or aluminum. The electromagnetic coil composed of non-magnetic wire material will not be magnetized by the magnet.
[0035] The door magnetic sensor detection device 2 includes a door magnetic sensor circuit, a photoelectric sensor circuit, and a judgment circuit. The door magnetic sensor detection device 2 is mainly used to detect whether the vehicle door is closed and whether the vehicle is in a driving state.
[0036] The door magnetic sensor circuit includes a reed switch K1, a magnet U6, and resistors R3, R7, R14, and R15, which are used to detect the closed state of the car door. One end of the resistor R3 is connected to the power supply VCC, and the other end of the resistor R3 is connected to the pin 2 of the reed switch K1 and one end of the resistor R14, and the connected part outputs the voltage Uin1. The pin 1 of the reed switch K1, one end of the resistor R7, and one end of the resistor R15 are connected, and the other end of the resistor R7 is grounded. The other end of the resistor R15 is connected to the other end of the resistor R14, and the connected part outputs the voltage Uo. When the car door is in a closed state, the magnet is close to the reed switch K1, and the reed switch K1 is in a closed state at this time, and there is no voltage output at the output voltage Uo end; when the car door is not in a closed state, the reed switch K1 is in a disconnected state at this time, and the voltage value at the output voltage end Uin1 changes, and there is no voltage output at the output voltage Uo end.
[0037] The photoelectric sensor circuit includes a photoelectric element U1, an operational amplifier U9, a counter U2, a D latch U3, an XOR gate U4 and a NOT gate U5; resistors R1, R2, R10, R11, R12 and R13 are used to detect the start and stop status of the car, wherein the operational amplifier U9 and R10, R11 and R12 form a common-phase amplifier circuit for amplifying voltage. One end of the resistor R1 and the resistor R2 are connected and connected to the power supply VCC, the other end of the resistor R1 is connected to the pin 1 of the photoelectric element U1, the other end of the resistor R2 is connected to the pin 4 of the photoelectric element U1, the pin 3 of the photoelectric element U1, one end of the resistor R10, and one end of the resistor R13 are connected, the pin 2 of the photoelectric element U1, the other end of the resistor R13, and one end of the resistor R12 are connected and grounded, the other end of the resistor R10 is connected to the positive input terminal of the operational amplifier U9, the reverse input terminal of the operational amplifier U9 is connected to one end of the resistor R11 and the other end of the resistor R12, the output terminal of the operational amplifier U9 is connected to the other end of the resistor R11 and the EN terminal of the counter U2 The CLK terminal of the counter U2 is connected to the clock signal from the outside, and the clock signal can be provided by the controller 11; the RET terminal of the counter U2 is connected to the output terminal of the NOT gate U5 and the B terminal of the XOR gate U4, the output terminals Q0-Q2 of the counter U2 are not connected, the output terminal Q3 of the counter U2, the input terminal D of the D latch U3, and the input terminal A of the XOR gate U4 are connected, the EN terminal of the D latch U3 is connected to the output terminal Y of the XOR gate U4, the output terminal Q of the D latch U3 is connected to one end of the resistor R5, the output port Q' of the D latch U3 is not connected, the input terminal of the NOT gate U5 is the Uo input terminal, which is connected to the Uo output terminal in the door magnetic sensor circuit. When the car is driving, the photoelectric element U1 is continuously triggered, and the counter U2 will count after each trigger. The counting result will be output from the output terminal Q3 of the counter U2 to the D latch U3. The D latch U3 outputs the received signal from the Q terminal, and the Q terminal output terminal is set as the Uin2 output terminal.
[0038] The working mode of D latch U3 is: when EN terminal receives high level, the level output by Q terminal is the same as the level received by D terminal; when EN terminal receives low level, the level output by Q terminal is maintained as the last state before EN terminal changes to low level. The function of D latch in the circuit is to complete the data latching work so that the level state of output terminal Q terminal does not change.
[0039] The judgment circuit includes an operational amplifier U7 and a comparator U8, a sliding rheostat R9, a capacitor C1, resistors R4, R5, R6, and R8. One end of the resistor R4 is the Uin1 voltage input end, which is connected to the Uin1 output end in the door magnetic sensor circuit. The other end of the resistor R4 is connected to the positive input end of the operational amplifier U7 and one end of the resistor R6. The other end of the resistor R6 is connected to the output end of the operational amplifier U7. One end of the resistor R5 is the Uin2 voltage input end, which is connected to the Uin2 output end in the photoelectric sensor circuit. The other end of the resistor R5 is connected to the reverse input end of the operational amplifier U7 and the reverse input end of the resistor R8. One end is connected, the other end of the resistor R8, the negative pin of the sliding rheostat R9, one end of the capacitor C1, and the pin 4 of the comparator U8 are connected and grounded, the positive pin of the sliding rheostat R9 is connected to the pin 5 of the comparator U8 and connected to the power supply, the middle pin is connected to the reverse input end of the comparator U8, and the function of the sliding rheostat R9 is to set the voltage threshold; the other end of the capacitor C1, the positive input end of the comparator U8, and the output end of the operational amplifier U7 are connected, and the other end of the capacitor C1 is grounded. The function of the capacitor C1 is to eliminate coupling interference; the pin 1 of the comparator U8 is the output end, which is connected to the PA1 pin of the controller 1. The function of the comparator U8 is to compare the output voltage of the operational amplifier U7 with the threshold voltage. When the output voltage of the operational amplifier U7 is greater than the threshold voltage, the comparator U8 outputs a high level; when the output voltage of the operational amplifier U7 is less than the threshold voltage, the comparator U8 outputs a low level. The output end of the comparator U8 is connected to the controller 11. Operational amplifier U7 and resistors R4, R5, R6, and R8 form a differential amplifier, the purpose of which is to fix and amplify the difference in output voltage between the door magnetic sensor circuit and the photoelectric sensor circuit.
[0040] It should be noted that, in the door magnetic sensor detection device 2, when the door magnetic sensor circuit detects that the vehicle door is in a closed state, the reed switch K1 is closed and the photoelectric sensor circuit will not work, and the output voltage of the output end of the differential circuit is less than the threshold voltage. At this time, the comparator U8 outputs a low level, and the controller 11 does not work; when the door magnetic sensor circuit detects that the vehicle door is in an unclosed state, the reed switch K1 is disconnected and the photoelectric sensor circuit starts to work, and the output voltage of the output end of the differential circuit is greater than the threshold voltage. At this time, the comparator U8 outputs a high level, and the controller 11 activates the alarm device 44 and the locking device 33 after receiving the signal until the vehicle door is completely closed.
[0041] The door magnetic sensor detection device 2 specifically works as follows:
[0042] If the door is fully closed, the reed switch K1 is in the closed state, and the Uo terminal is at a low level, then the input terminal of the NOT gate U5 is at a low level, and the output terminal outputs a high level. At this time, the RET terminal of the counter U2 receives a high level and is in a reset state. The counter U2 cannot receive the counting signal, and the output terminal Q3 of the counter U2 outputs a low level. The input terminal D of the D latch U3 and the input terminal A of the XOR gate U4 both receive a low level. At this time, the A terminal of the XOR gate U4 inputs a low level, and the B terminal inputs a high level, so the output terminal of the XOR gate U4 is The Y terminal outputs a high level, the EN terminal of the D latch U3 continues to receive the high level of the output terminal of the XOR gate U4, and the output terminal Q of the D latch U3 continues to output the low level received by the input terminal D. The differential amplifier fixes and amplifies the voltage value of the first voltage input terminal and the voltage value of the second voltage input terminal, and then outputs them to the non-inverting input terminal of the comparator U8 and compares them with the threshold voltage. The output voltage is less than the threshold voltage, and the comparator U8 outputs a low level. The controller 11 receives the low level and will not activate the alarm device 4 and the locking device 3.
[0043] If the door is not completely closed, the reed switch K1 is in the disconnected state, and the Uo terminal is at a high level, then the input terminal of the NOT gate U5 is at a high level, and the output terminal outputs a low level. At this time, the input terminal B of the XOR gate U4 receives a low level, and the RET terminal of the counter U2 receives a low level, and is in a counting state. The photoelectric element U1 is triggered, that is, the voltage signal input to the input terminal of the common-mode amplifier becomes a rectangular wave signal. After passing through the common-mode amplifier, the rectangular wave signal is amplified, that is, the amplitude of the rectangular wave signal increases and is input to the EN terminal of the counter U2. When the EN terminal receives the high level part of the rectangular wave signal, the counter U2 counts; when the EN terminal receives the low level part of the rectangular wave signal, the counter U2 does not count. The B terminal of the XOR gate U4 continuously inputs a low level, and its A terminal receives the level output by the output terminal Q3 of the counter U2. At this time, the output terminal Y of the XOR gate U4 changes with the level of the Q3 terminal. When the Q3 terminal outputs a low level, the output terminal Y is a low level; when the Q3 terminal outputs a high level, the output terminal Y is a high level. The EN terminal of the D latch U3 receives the level signal of the output terminal Y terminal of the XOR gate U4. When the output terminal Q3 terminal of the counter U2 outputs a high level, the output terminal Y terminal of the XOR gate U4 inputs a high level to the EN terminal of the D latch U3. The input terminal D terminal of the D latch U3 receives the high level output by the Q3 terminal of the counter U2. According to the above-mentioned working principle of the D latch, the level of the output terminal Q terminal of the D latch is the same as the level of the input terminal D terminal of the D latch U3, both of which are high levels; when the output terminal Q3 terminal of the counter U2 outputs a low level, the output terminal Y terminal of the XOR gate U4 inputs a low level to the EN terminal of the D latch U3. The input terminal D terminal of the D latch U3 receives the low level output by the Q3 terminal of the counter U2. According to the above-mentioned working principle of the D latch, the level of the output terminal Q terminal of the D latch is maintained at the last state before the EN terminal becomes a low level, that is, the level output by the Q terminal is a high level at this time. The differential amplifier fixes and amplifies the voltage value of the first voltage input terminal and the voltage value of the second voltage input terminal, and then outputs them to the non-inverting input terminal of the comparator U8 and compares them with the threshold voltage. When the output voltage reaches the threshold voltage, the comparator U8 outputs a high level, and the controller 11 receives the high level to activate the alarm device 4 and the locking device 3.
[0044] The photoelectric sensor circuit in the door magnetic sensor detection device 2 is mainly used to determine the start and stop state of the car. As an optional method, the photoelectric sensor circuit in the embodiment can be replaced by any one of an acceleration sensor, a clutch state sensor, and an accelerator pedal position sensor. When any one of the acceleration sensor, the clutch state sensor, and the accelerator pedal position sensor is used, there is no need to design the above-mentioned shading plate and counter.
[0045] The alarm device 4 includes a sound alarm and a display light alarm, which are used to generate a warning signal. When the alarm device 4 receives the alarm signal from the controller 1, the alarm device 4 activates the sound alarm and the display light alarm to remind the driver that the door is not closed.
[0046] In this embodiment, the alarm device 4 belongs to the prior art and will not be described in detail here.
[0047] The controller 1 is electrically connected to the door magnetic sensor detection device 2, the locking device 3, and the alarm device 4, respectively. The controller 1, the door magnetic sensor detection device 2, the locking device 3, and the alarm device 4 are all powered by a power module; the controller 1 is connected to the timer 5 and the button 6. When the controller 1 receives a signal from the door magnetic sensor detection device 2, the controller 1 sends a control signal to the alarm device 4 and the locking device 3, thereby activating the alarm device 4 and the locking device 3.
[0048] In some embodiments, when the controller 1 receives a signal from the door magnetic sensor detection device 2, the controller 1 first sends a signal to the alarm device 4, the alarm device 4 is activated, and the timer 5 is started at the same time. The timer 5 starts timing. At this time, the driver can manually control the locking device 3 to lock the door through the button 6. After the manual control completes the door locking, the timer 5 stops timing and resets; if the driver does not notice the alarm signal, after the timer 5 completes timing, the controller 1 sends a signal to the locking device 3, and the locking device 3 automatically locks the door.
[0049] In some embodiments, the door magnetic sensor detection device 2 can be combined with the alarm device 4. When it is detected that the vehicle door is not completely closed, the alarm device 4 is immediately activated. If the driver does not notice the alarm, the controller 1 activates the locking device 3 after the timer 5 finishes timing, completing the function of closing and locking the vehicle door.
[0050] So far, various embodiments of the present invention have been described in detail. In order to avoid obscuring the concept of the present invention, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution of the present invention, and the scope of the present invention is defined by the attached claims.
Claims
1. A door magnetic sensor control system for driving, comprising a controller (1), a locking device (3) electrically connected to the controller, and a detection device; the detection device detects whether a door is locked and sends a detection signal to the controller (1); the controller (1) controls the locking device (3) arranged on the door to work, characterized in that: The detection device is a door magnetic sensor detection device (2); the door magnetic sensor detection device (2) comprises a door magnetic sensor circuit, a photoelectric sensor circuit, and a judgment circuit; the door magnetic sensor circuit comprises a reed switch and a magnet, wherein the magnet is arranged at the bottom of the vehicle door, and the reed switch is arranged at the bottom of the vehicle door frame, opposite to the position of the magnet; the photoelectric sensor circuit comprises a shading plate, a photoelectric element, a common-mode amplifier circuit, a counter, and a D latch, wherein a shading plate is arranged in front of the photoelectric element, and the shading plate is fixed at the rotation position of the wheel; the locking device (3) is controlled by a controller (1), and the locking device (3) comprises an electromagnetic coil, which is arranged at the bottom of the vehicle door frame and is located between the reed switch and the magnet in the door magnetic sensor circuit; In the door magnetic sensor circuit, the magnet approaches the reed switch, and the circuit where the reed switch is located is turned on; The magnet is away from the reed switch, and the circuit where the reed switch is located is disconnected; In the photoelectric sensor circuit, the photoelectric element is connected to the common-phase amplifier circuit. When the photoelectric element detects a light signal, the photoelectric element converts the light signal into an electric signal, and the electric signal is transmitted to the common-phase amplifier circuit. The common-phase amplifier circuit amplifies the electric signal and transmits it to the counter connected thereto. The counter starts counting and outputs a high level when a certain amount is counted. The D latch connected to the counter receives the high level and locks it. The D latch outputs a high level. The output end of the D latch is connected to the controller (1), and the controller (1) receives the high level signal. When the photoelectric element does not detect a light signal, the photoelectric element does not generate an electric signal. The common-phase amplifier connected to the photoelectric element outputs a low level and transmits it to the counter connected thereto. The counter is in a reset state. At this time, the counter outputs a low level. The D latch connected to the counter maintains the last state before its enable end changes to a low level. The last state before the enable end of the D latch changes to a low level is a low level state. The output end of the D latch is connected to the controller (1), and the controller (1) receives the low level signal. The judgment circuit includes a differential circuit and a comparison circuit. The two ends of the differential circuit are respectively connected to the door magnetic sensor circuit and the photoelectric sensor circuit. The differential circuit integrates the voltage values of the door magnetic sensor circuit and the photoelectric sensor circuit, and then outputs them to the comparison circuit connected to the differential circuit through the output end. One input end of the comparison circuit is connected to the output end of the differential circuit, and the other input end is connected to the potentiometer. The comparison circuit compares the integrated voltage value with the threshold voltage output by the potentiometer, and the comparison result is transmitted from the output end to the controller (1) connected to it. The locking device (3) is connected to the controller (1). When the door magnetic sensor detection device detects that the vehicle is in the starting state and the vehicle door is not completely closed, the controller (1) sends a signal to the locking device, the electromagnetic coil in the locking device is energized, a magnetic field is generated near the electromagnetic coil, the magnet is attracted, and the vehicle door is assisted to be completely closed.
2. A driving door magnetic sensor control system according to claim 1, characterized in that: In the photoelectric sensor circuit, the reset end of the counter is connected to the door magnetic sensor circuit, and the clock signal end of the counter is connected to the controller (1).
3. A driving door magnetic sensor control system according to any one of claims 1 and 2, characterized in that: The controller (1) refers to a main control chip, whose model is STM32F103C8T6, and is a 32-bit microcontroller based on the STM32 series of ARM Cortex-M core.
4. A driving door magnetic sensor control system according to claim 1, characterized in that: The enable terminal of the D latch is connected to the output terminal of the XOR gate.
5. A driving door magnetic sensor control system according to claim 4, characterized in that: One input end of the XOR gate is connected to the counter, and the other end is connected to the output end of the NOT gate. The input end of the NOT gate is connected to one end of the reed switch in the door magnetic sensor circuit. When the state of the reed switch changes, the state of the XOR gate changes, thereby controlling the operation of the D latch.
6. A driving door magnetic sensor control system according to claim 1, characterized in that: The controller (1) is connected to a timer (5) and a button (6). After the controller (1) receives a signal transmitted by a door magnetic sensor detection device, the timer (5) starts; if the timer (5) has finished timing and the vehicle door has not been closed, the controller (1) automatically controls the locking device (3) connected thereto to operate; if the timer (5) is within the timing period, the driver controls the controller (1) connected thereto by pressing the button (6), the controller (1) then controls the locking device (3) to complete the operation, and the timer (5) stops timing and is reset.
7. A driving door magnetic sensor control system according to claim 1, characterized in that: The threshold voltage of the judgment circuit is provided by a potentiometer, which represents a sliding rheostat. The positive pole of the sliding rheostat is connected to the power supply, the negative pole is grounded, the middle pin is connected to the comparator, and the voltage output by the middle pin is the threshold voltage.
8. A driving door magnetic sensor control system according to claim 1, characterized in that: The control system is provided with a power module for providing power to the alarm device (4), the controller (1), the door magnetic sensor detection device (2) and the locking device (3); the power module is electrically connected to the alarm device (4), the controller (1), the door magnetic sensor detection device and the locking device (3).
