CN210454425U - Skylight control system with prevent pressing from both sides function - Google Patents

Skylight control system with prevent pressing from both sides function Download PDF

Info

Publication number
CN210454425U
CN210454425U CN201921016100.8U CN201921016100U CN210454425U CN 210454425 U CN210454425 U CN 210454425U CN 201921016100 U CN201921016100 U CN 201921016100U CN 210454425 U CN210454425 U CN 210454425U
Authority
CN
China
Prior art keywords
resistor
microcontroller
circuit
hall sensor
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201921016100.8U
Other languages
Chinese (zh)
Inventor
阳怡智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Huayi Automotive Electronic And Electrical Technology Co ltd
Original Assignee
Hunan Huayi Automotive Electronic And Electrical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Huayi Automotive Electronic And Electrical Technology Co ltd filed Critical Hunan Huayi Automotive Electronic And Electrical Technology Co ltd
Priority to CN201921016100.8U priority Critical patent/CN210454425U/en
Application granted granted Critical
Publication of CN210454425U publication Critical patent/CN210454425U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power-Operated Mechanisms For Wings (AREA)

Abstract

A skylight control system with an anti-pinch function comprises a power supply conversion circuit, a switching signal circuit, a microcontroller, a motor driving circuit, a double-Hall sensor circuit and an IGN interface circuit, wherein the double-Hall sensor circuit is connected with the power supply conversion circuit; the utility model collects the pulse signal generated by the magnetic field change of the multistage magnetic ring arranged on the motor rotor when the motor rotates through the two Hall sensors arranged in different positions, and can better judge the running state of the motor, thereby leading the microprocessor to better analyze the collected signal and leading the anti-clamping effect to be better; meanwhile, the functions of all parts of the system are reasonably set, so that the system of the utility model is simpler, and the effect of reducing the cost can be achieved; furthermore, the utility model discloses still have and prevent functions such as maloperation, overvoltage protection, prevent electric spark, can improve user experience better.

Description

Skylight control system with prevent pressing from both sides function
Technical Field
The utility model belongs to the automatic control field, concretely relates to skylight control system with prevent pressing from both sides function.
Background
Nowadays, automobiles with skylights are more and more favored by consumers, and a skylight system without an anti-pinch function is very easy to pinch passengers when the skylights are closed, so that potential safety hazards are formed. And current skylight anti-pinch system mainly includes: the skylight anti-pinch control system comprises a microcontroller, a motor driving circuit, an LIN driving circuit, a signal sampling circuit, a power supply circuit, a position sensing circuit, a key circuit, a state indicating circuit, a debugging interface circuit, a data storage circuit and the like, the circuits are very complicated, and the manufacturing cost is high, so that the popularization of the skylight anti-pinch control system is not facilitated.
SUMMERY OF THE UTILITY MODEL
In order to solve the problem, the utility model provides a have prevent that the circuit is simple, the lower skylight control system of cost of clamp function.
The utility model provides a technical scheme that its technical problem adopted is:
a skylight control system with an anti-pinch function comprises a power supply conversion circuit, a switching signal circuit, a microcontroller, a motor drive circuit and a double-Hall sensor circuit;
the input end of the power supply conversion circuit is electrically connected with an external vehicle-mounted power supply and is used for receiving external voltage and converting the external voltage into system working voltage;
the input end of the switching signal circuit is electrically connected with the microcontroller and is used for receiving a switching power supply control signal output by the microcontroller; the switch signal circuit is provided with two output ends which are electrically connected with the microcontroller, and one output end of the switch signal circuit is used for providing an initialization signal to the microcontroller; the other output end is used for outputting a window opening/closing control signal to the microcontroller;
the microcontroller is used for receiving, processing and transmitting data and signals in the system;
the motor driving circuit is provided with two input ends which are electrically connected with the microcontroller and used for receiving a driving control signal of the microcontroller and converting the driving control signal into a corresponding driving signal; the motor driving circuit is provided with three output ends, wherein the first output end and the second output end are electrically connected with an external direct current motor and are used for transmitting the driving signal to the external direct current motor, and the third output end is connected with the microcontroller and is used for outputting a driving circuit feedback signal to the microcontroller;
the double-Hall sensor circuit is used for acquiring a motor running state signal of the direct current motor; the input end of the double-Hall sensor circuit is electrically connected with the microcontroller and is used for receiving an enabling signal transmitted by the microcontroller; the double-Hall sensor circuit is provided with two output ends which are electrically connected with the microcontroller and used for transmitting the motor running state signal to the microcontroller.
Further, the power conversion circuit comprises a first diode, a three-terminal voltage regulator, a first capacitor, a second capacitor, a third capacitor and a fourth capacitor; after the first capacitor and the third capacitor are connected in parallel, the anode is connected with the cathode of the first diode, and the cathode is connected with the ground wire; the anode of the first diode is connected with an external vehicle-mounted power supply; after the second capacitor and the third capacitor are connected in parallel, the anode is connected with the microcontroller, and the cathode is connected with the ground wire; the input end of the three-terminal voltage stabilizer is connected with the cathode of the first diode, the output end of the three-terminal voltage stabilizer is connected with the microcontroller, and the ground end of the three-terminal voltage stabilizer is connected with the ground wire.
Further, the switching signal circuit comprises a slide rheostat, a first triode and a first switch; a first resistor is connected between the microcontroller and the first end of the slide rheostat; a second resistor is connected between the microcontroller and the ground wire; the second end of the sliding rheostat is connected with a ground wire, and a third resistor is connected between the third end of the sliding rheostat and the collector electrode of the first triode; the base electrode of the first triode and the emitting electrode of the first triode are connected with a fourth resistor, the emitting electrode of the first triode is connected with a power switching circuit, and a fifth resistor is connected between the base electrode of the first triode and the microcontroller; a sixth resistor, a seventh resistor and an eighth resistor which are connected in series are connected between the microcontroller and the power conversion circuit; a first switch is connected between the connection part of the sixth resistor and the seventh resistor and a ground wire; and a ninth resistor is connected between the connection part of the seventh resistor and the eighth resistor and the ground wire.
Furthermore, the system also comprises an IGN interface circuit; the IGN interface circuit comprises a tenth resistor, an eleventh resistor and a twelfth resistor; a tenth resistor and a twelfth resistor which are connected in series are connected between the input end of the IGN interface circuit and the microcontroller; an eleventh resistor is connected between the connection part of the tenth resistor and the twelfth resistor and the ground wire; the IGN interface circuit is used for transmitting an ignition signal to the microcontroller.
Further, the motor driving circuit comprises a second triode, a third triode, a common cathode diode, a first relay and a second relay; a thirteenth resistor is connected between the base electrode of the second triode and the microcontroller, a collector electrode is connected with the first control end of the first relay and the first positive end of the common cathode diode, and the base electrode is connected with the ground wire; a fourteenth resistor is connected between the base of the third triode and the microcontroller, a collector is connected with the second control end of the second relay and the second positive end of the cascode diode, and the base is connected with the ground wire; the second control end of the first relay, the first control end of the second relay, the common cathode of the common cathode diode, the normally open input end of the first relay and the normally open input end of the second relay are all connected with the power conversion circuit; the normally closed input end of the first relay and the normally closed input end of the second relay are both connected with a ground wire; a fifteenth resistor and a sixteenth resistor which are connected in series are connected between the output end of the first relay and the output end of the second relay; seventeen resistors are connected between the connection position of the fifteenth resistor and the sixteenth resistor and the microcontroller.
Furthermore, the motor driving circuit further comprises a piezoresistor, a fifth capacitor and a nineteenth resistor; the nineteenth resistor and the fifth capacitor are connected in series and then connected in parallel with the piezoresistor to prevent electric sparks; the voltage dependent resistor is connected between the output end of the first relay and the output end of the second relay and used for overvoltage protection.
Further, the double-Hall sensor circuit comprises a fourth triode, a first Hall sensor, a second Hall sensor and a sixth capacitor; a nineteenth resistor is connected between the base electrode of the fourth triode and the microcontroller, a twentieth resistor is connected between the base electrode and the collector electrode, the collector electrode is connected with the power conversion circuit (100), the emitter electrode is connected with the input end of the first Hall sensor and the input end of the second Hall sensor, and the sixth capacitor is connected between the collector electrode and the ground wire; the grounding ends of the first Hall sensor and the second Hall sensor are connected with a ground wire; a twenty-first resistor and a twenty-second resistor which are connected in series are connected between the output end of the first Hall sensor and the microcontroller; the connection part of the twenty-first resistor and the twenty-second resistor is connected with the power supply conversion circuit; a twenty-third resistor and a twenty-fourth resistor which are connected in series are connected between the output end of the second Hall sensor and the microcontroller; the joint of the twenty-third resistor and the twenty-fourth resistor is connected with the power conversion circuit; the first Hall sensor and the second Hall sensor are used for collecting the motor running state signals.
Further, the motor running state signal is a pulse signal generated by the change of the magnetic field of the external direct current motor multi-stage magnetic ring.
Furthermore, a special position point is arranged in the microcontroller; the special location points correspond to different sunroof locations and window open/close control signals.
Furthermore, the special position points comprise a warping mechanical zero point, a warping opening point, a window closing point, a half-window opening point, a window opening point and a window opening mechanical zero point.
The utility model has the advantages that:
the utility model discloses a microcontroller gathers through the produced pulse signal of the multistage magnetic ring magnetic field change of installation on the electric motor rotor when hall sensor that two ectopic settled rotate the motor, the running state of judgement motor that can be better to make microprocessor better carry out the analysis to the signal of gathering, make and prevent pressing from both sides the effect better.
Simultaneously, through the reasonable setting of the function of going to each part of system, make the utility model discloses the system is more succinct to can reach reduce cost's effect.
Furthermore, the utility model discloses still have and prevent functions such as maloperation, overvoltage protection, prevent electric spark, can improve user experience better.
Drawings
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings:
fig. 1 is a schematic block diagram of a system according to an embodiment of the present invention;
fig. 2 is an external wiring diagram of a microcontroller according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a power conversion circuit according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a switching signal circuit according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an IGN interface circuit according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a motor driving circuit according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a dual hall sensor circuit according to an embodiment of the present invention;
fig. 8 is a schematic view of a special position point of the skylight according to the embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
A skylight control system with an anti-pinch function is shown in figure 1 and comprises a power supply conversion circuit 100, a switching signal circuit 200, a microcontroller 300, a motor drive circuit 400 and a double-Hall sensor circuit 500;
the input end of the power conversion circuit 100 is electrically connected with an external vehicle-mounted power supply, and is used for receiving external voltage and converting the external voltage into system working voltage, and two output signals of the power conversion circuit 100 are respectively: VCC, VDD;
the input end of the switching signal circuit 200 is electrically connected to the microcontroller 300, and is configured to receive a switching power supply control signal PP0 output by the microcontroller 300; the switch signal circuit 200 has two output terminals electrically connected to the microcontroller 300, and one output terminal is used for providing an initialization signal (Init _ key) to the microcontroller 300; another output terminal for outputting a window opening/closing control signal (KEY _ AD) to the microcontroller 300;
the motor driving circuit 400 has two input terminals electrically connected to the microcontroller 300, and is configured to receive driving control signals (DOWN _ OUT, UP _ OUT) of the microcontroller 300 and convert the driving control signals into corresponding driving signals (DMD, DMU); the motor driving circuit 400 has three output terminals, a first output terminal and a second output terminal both electrically connected to the external dc motor for transmitting the driving signal to the external dc motor, and a third output terminal connected to the microcontroller 300 for outputting a driving circuit feedback signal (OUT _ CHECK) to the microcontroller 300;
the double-hall sensor circuit 500 is used for collecting a motor running state signal of the direct current motor; the input end of the dual HALL sensor circuit 500 is electrically connected to the microcontroller 300, and is configured to receive an enable signal (HALL _ POWER) transmitted by the microcontroller 300; the dual HALL sensor circuit 500 has two outputs electrically connected to the microcontroller 300 for transmitting the motor operating status signals (HALL1, HALL2) to the microcontroller 300.
As shown in fig. 3, the power conversion circuit 100 includes a first diode, a three-terminal regulator U1, a first capacitor C1, a second capacitor C2, a third capacitor C3, and a fourth capacitor C4; after the first capacitor C1 and the third capacitor C3 are connected in parallel, the anode of the first capacitor C1 is connected with the cathode of the first diode D1, and the cathode of the first capacitor C1 is connected with the ground wire; the anode of the first diode D1 is connected with an external vehicle-mounted power supply; after the second capacitor C2 and the third capacitor C4 are connected in parallel, the positive electrode of the second capacitor C2 is connected with the microcontroller 300, and the negative electrode of the second capacitor C2 is connected with the ground wire; the input end of the three-terminal voltage stabilizer U1 is connected with the negative electrode of the first diode D1, the output end of the three-terminal voltage stabilizer U1 is connected with the microcontroller 300, and the ground end of the three-terminal voltage stabilizer U1 is connected with the ground wire.
As shown in fig. 4, the switching signal circuit 200 includes a sliding rheostat R1, a first transistor Q1, a first switch S1; a first resistor R2 is connected between the microcontroller 300 and the first end of the slide rheostat R1; a second resistor R3 is connected between the microcontroller 300 and the ground wire; the second end of the sliding rheostat R1 is connected with the ground wire, and a third resistor R4 is connected between the third end of the sliding rheostat R1 and the collector of the first triode Q1; a base electrode of the first triode Q1 and an emitter electrode of the first triode Q1 are connected with a fourth resistor R5, an emitter electrode of the first triode Q1 is connected with the power conversion circuit 100, and a fifth resistor R6 is connected between the base electrode of the first triode Q1 and the microcontroller 300; a sixth resistor R7, a seventh resistor R8 and an eighth resistor R9 which are connected in series are connected between the microcontroller 300 and the power conversion circuit 100; a first switch S1 is connected between the connection position of the sixth resistor R7 and the seventh resistor R8 and the ground wire; a ninth resistor R10 is connected between the connection position of the seventh resistor R8 and the eighth resistor R9 and the ground line.
As shown in fig. 4, the switching signal circuit 200 uses the sliding rheostat R1 to continuously adjust the window opening/closing signal, the window opening/closing signal requires the first transistor Q1 to be turned on to realize the output of different levels, and the turning on of the first transistor Q1 is controlled by the microprocessor 300.
As shown in fig. 4, the first switch S1 serves as an initialization button for inputting an initialization signal (Init _ key) to the microcontroller 300;
in this embodiment, the first switch S1 further has an anti-misoperation function, which is realized by keeping the first switch S1 in a closed state for a certain period of time; after the first switch S1 is pressed, a low level signal is input to the corresponding input pin of the microcontroller 300, and the initialization program is triggered only after the microcontroller 300 detects the retention time of the low level signal;
in addition, the specific modes for realizing the misoperation prevention are various, and can be realized by multiple continuous keys, double keys and the like, and even a fingerprint identification switch can be adopted on the premise of properly increasing the cost;
the form of the button itself need not be unique, and ordinary push-button switches, capacitive switches, sliding varistors, etc. can accomplish this function.
As shown in fig. 4, in this embodiment, a capacitor C5, a capacitor C6, and a capacitor C7 are added, so that the waveform of the signal input to the single chip microcomputer can be better ensured.
As shown in fig. 5, the system further includes an IGN interface circuit 600; the IGN interface circuit 600 includes a tenth resistor R11, an eleventh resistor R12, a twelfth resistor R13; a tenth resistor R11 and a twelfth resistor R13 which are connected in series are connected between the input end of the IGN interface circuit 600 and the microcontroller 300; an eleventh resistor R12 is connected between the connection position of the tenth resistor R11 and the twelfth resistor R13 and the ground wire; the IGN interface circuit 600 is used to transmit an ignition signal to the microcontroller 300.
In this embodiment, can further improve the security that the skylight was opened through increasing ING interface circuit, for example adjust the door window under the car circumstances of not lighting an fire, can output warning instruction, further guarantee the safety that the door window was opened.
As shown in fig. 5, in this embodiment, a capacitor C8 is added, so that the waveform of the signal input to the single chip microcomputer can be better ensured.
As shown in fig. 6, the motor driving circuit 400 includes a second transistor Q2, a third transistor Q3, a cascode diode D2, a first relay K1, and a second relay K2; a thirteenth resistor R14 is connected between the base Q2 of the second triode and the microcontroller 300, the collector of the thirteenth resistor R14 is connected with the first control end of the first relay K1 and the first positive end of the cascode diode D2, and the base of the thirteenth resistor R14 is connected with the ground wire; a fourteenth resistor R15 is connected between the base Q3 of the third triode and the microcontroller 300, the collector of the fourteenth resistor R15 is connected with the second control end of the second relay K2 and the second positive end of the cascode diode D2D, and the base of the fourteenth resistor R15 is connected with the ground wire; the second control end of the first relay K1, the first control end of the second relay K2, the common cathode of the common cathode diode D2, the normally-open input end of the first relay K1 and the normally-open input end of the second relay K2 are all connected to the power conversion circuit 100; the normally closed input end of the first relay K1 and the normally closed input end of the second relay K2 are both connected with the ground wire; a fifteenth resistor R18 and a sixteenth resistor R19 which are connected in series are connected between the output end of the first relay K1 and the output end of the second relay K2; seventeen resistors R20 are connected between the junction of the fifteenth resistor R18 and the sixteenth resistor R19 and the microcontroller 300.
As shown in fig. 6, in this embodiment, the motor driving circuit 400 may also ensure the implementation of the system function by removing the circuit part related to the driving circuit feedback signal (OUT _ CHECK), and after the driving circuit feedback signal (OUT _ CHECK) is added, there may be an accurate location for the system operation status effectively, and especially when a fault occurs, it may be convenient to locate whether the specific fault occurs before the motor driving circuit 400 or after the motor driving circuit 400.
As shown in fig. 6, the motor driving circuit 400 further includes a voltage dependent resistor R16, a fifth capacitor C9, and a nineteenth resistor R17; the nineteenth resistor R17 and the fifth capacitor C9 are connected in series and then are connected in parallel with the piezoresistor R16 in series for preventing electric sparks; the piezoresistor R16 is connected between the output end of the first relay K1 and the output end of the second relay K2 for overvoltage protection.
As shown in fig. 7, the dual hall sensor circuit 500 includes a fourth transistor Q4, a first hall sensor H1, a second hall sensor H2, and a sixth capacitor C10; a nineteenth resistor R21 is connected between the base of the fourth triode Q4 and the microcontroller 300, a twentieth resistor R22 is connected between the base and the collector, the collector is connected with the power conversion circuit (100), the emitter is connected with the input end of the first Hall sensor H1 and the input end of the second Hall sensor H2, and a sixth capacitor C10 is connected between the collector and the ground wire; the grounding end of the first Hall sensor H1 and the grounding end of the second Hall sensor H2 are both connected with the ground wire; a twenty-first resistor R23 and a twenty-second resistor R24 which are connected in series are connected between the output end of the first Hall sensor H1 and the microcontroller 300; the connection position of the twenty-first resistor R23 and the twenty-second resistor R24 is connected with the power supply conversion circuit 100; a twenty-third resistor R25 and a twenty-fourth resistor R26 which are connected in series are connected between the output end of the second Hall sensor H2 and the microcontroller 300; the joint of the twenty-third resistor R23 and the twenty-fourth resistor R24 is connected with the power supply conversion circuit 100; the first Hall sensor H1 and the second Hall sensor H2 are used for collecting the running state signals of the motor.
The motor running state signal is a pulse signal (HALL1, HALL2) generated by the change of the magnetic field of the external direct current motor multi-stage magnetic ring.
In the embodiment, pulse signals (HALL1 and HALL2) generated by the change of a multi-stage magnetic ring magnetic field arranged on a motor rotor when the motor rotates are captured by the single chip microcomputer, the change rate of the motor steering, position, speed and speed is calculated, and anti-pinch operation is realized on the basis of the change rate of the motor steering, the position, the speed and the speed.
The microcontroller 300 is used for receiving, processing and transmitting data and signals in the system.
As shown in fig. 2, in this embodiment, the microcontroller 300 is a single chip microcomputer, and the single chip microcomputer specifically adopts an STM8S105 single chip microcomputer; the microcontroller 300 may also adopt other single-chip microcomputers, and the specific internal programs of different single-chips need to be modified appropriately, but the program flow chart remains basically unchanged, and the microcontroller 300 may also adopt a DSP, an ARM, and the like to implement similar functions except for adopting the single-chip microcomputers.
A special position point is arranged in the microcontroller 300; the special location points correspond to different sunroof locations and window open/close control signals.
As shown in fig. 8, the special position points include a tilting mechanical zero point, a tilting opening point, a window closing point, a half-opening point, a window opening point, and a window opening mechanical zero point; the specific definitions are shown in Table 1.
TABLE 1
Name (R) Note
Mechanical zero point of lifting Skylight upwarping mechanical blocking point
Point of opening of the warp Starting and warping soft stop point after skylight initialization
Window closing point Skylight full-closing point
Half-open window point Skylight half-open point
Window opening point Soft stop point for sliding opening of skylight
Mechanical zero point of window opening Sliding mechanical blocking point of skylight
In this embodiment, the special position points are mainly used for better confirming the position and speed of the window, and the number of different special position points and the specific position of the corresponding window can be changed differently according to the actual situation;
in this embodiment, the microprocessor 300 presets a plurality of different window opening/closing control signals corresponding to one hall number, that is, different levels correspond to different skylight positions; for example, the mechanical zero point of tilting, the opening point of tilting, the closing point of window, the half-opening point of window, the mechanical zero point of opening window, etc. all correspond to different opening/closing window control signals, i.e. different level signals adjusted by the slide rheostat.
The working principle of the present embodiment is described below with reference to the accompanying drawings:
first, referring to fig. 2 to 8, after the system is powered on, the microprocessor 300 detects the initialization signal (Init _ key) by pressing the first switch S1 for a long time, at this time, the microcontroller keeps detecting the initialization signal (Init _ key) continuously, and after the system keeps a certain time, the microcontroller 300 enters the initialization state; the microcontroller 300 outputs an enable signal (HALL _ POWER) to the dual HALL sensor circuit 500, so that the dual HALL sensor circuit 500 is activated and starts to collect pulse signals of the direct current motor (HALL1, HALL 2); the microcontroller 300 starts to control the direct current motor to rotate forwards through the motor driving circuit 400, at this time, the two ectopic HALL sensors still continuously acquire pulse signals (HALL1, HALL2), and the microcontroller 300 counts the pulse signals (HALL1, HALL 2); the driving control signal DOWN _ OUT for controlling the motor to rotate forwards is continuously sent OUT, the motor continuously rotates forwards to a skylight warping mechanical zero point, the motor can block the rotation at the moment, the pulse width of the motor pulse signals (HALL1 and HALL2) is changed after the motor is blocked, and the microcontroller 300 counts and clears the pulse signals HALL1 of the first Hall sensor H1 after detecting the motor pulse signals; then the microcontroller 300 starts to control the direct current motor to rotate reversely through the motor driving circuit 400, at this time, the two ectopic HALL sensors still continuously collect pulse signals (HALL1 and HALL2) of the direct current motor, and the microcontroller 300 analyzes the pulse signals (HALL1 and HALL2) collected by the two ectopic HALL sensors, detects whether the rotation direction of the motor is reversed or not according to the collected pulse signals (HALL1 and HALL2), counts the pulse signals HALL1 of the first HALL sensor H1, enables the skylight to be operated to a window closing point, and completes an initialization program;
at the moment, the initialization program of the microcontroller 300 is finished, the direct current motor stops rotating, the two ectopic Hall sensors continue to acquire pulse signals (HALL1 and HALL2), and no pulse is output at the moment because the direct current motor stops rotating;
when the window needs to be opened, after the window opening/closing control signal KEY _ AD is output to the microcontroller 300 by adjusting the switch signal circuit 200, the microcontroller 300 outputs a corresponding drive control signal UP _ OUT to the motor drive circuit 400, the motor drive circuit 400 starts to control the direct current motor to rotate forward, at this time, the two ex-situ HALL sensors still continuously acquire pulse signals (HALL1, HALL2), and the microcontroller 300 counts the pulse signal HALL1 of the first HALL sensor H1; the motor continuously rotates forwards due to the fact that the window opening/closing control signal KEY _ AD is not continuous, the microcontroller 300 continuously counts the pulse signals (HALL1 and HALL2), the counted value is compared with the level value regulated by the window opening/closing control signal KEY _ AD, when the counted value and the level value are equal, the motor stops running at the moment, and the recorded pulse signals (HALL1 and HALL2) are kept;
when the window needs to be closed, after the window opening/closing control signal KEY _ AD is output to the microcontroller 300 by adjusting the switching signal circuit 200, the microcontroller 300 outputs a corresponding drive control signal DOWN _ OUT to the motor drive circuit 400, the motor drive circuit 400 starts to control the direct current motor to reverse, at this time, the two ectopic HALL sensors still continuously acquire pulse signals (HALL1 and HALL2), and count the pulse signal HALL1 of the first HALL sensor H1; the motor continuously rotates reversely because the window opening/closing control signal KEY _ AD is not continuous, the microcontroller 300 continuously counts the pulse signals (HALL1, HALL2), compares the counted value with the level value adjusted by the window opening/closing control signal KEY _ AD, and stops the motor and keeps the recorded pulse signals (HALL1, HALL2) when the counted value is equal to the level value adjusted by the window opening/closing control signal KEY _ AD;
when the system meets an obstacle and an anti-pinch function needs to be started, firstly, the pulse width of a pulse signal HALL1 of a first Hall sensor H1 is judged, after the system meets the obstacle, the pulse width of the pulse signal HALL1 of the first Hall sensor H1 is increased certainly, the speed and the acceleration value of the system are calculated according to the pulse width of a plurality of pulse signals HALL1 of the first Hall sensor H1 and are compared with corresponding preset values in a microprocessor 300, whether the system meets the obstacle can be judged, meanwhile, the microprocessor 300 determines the motor steering according to collected pulse signals (HALL1 and HALL2), and if the judgment result is that the system meets the obstacle, the system reversely runs a certain pulse signal counting value according to the calculated position and the running direction of a skylight;
further, the motor steering can be determined by the state where the second HALL sensor H2 pulse signal HALL2 is at a high level or a low level when the first HALL sensor H1 pulse signal HALL1 is at the rising edge timing.
In this embodiment, the second HALL sensor H2 pulse signal HALL2 is used for assisting in determining the forward and reverse rotation of the motor, and may also be used for providing a comparison on the operating state of the first HALL sensor H1 to determine whether the sensor itself has a fault, and when the count value of the first HALL sensor H1 pulse signal is cleared, the second HALL sensor H2 is also cleared.
In this embodiment, the motor running state signal may also adopt other signals, for example: can gather direct current motor's operating current signal, the electric current can increase when direct current motor meets the barrier and blocks, also can realize preventing the function of pressing from both sides through the judgement to the electric current, in addition, after meetting the barrier, because motor speed is invariable basically, so only need the reversal for a certain time can withdraw from the barrier, reach the effect of final protection.
The above is only the preferred embodiment of the present invention, the present invention is not limited to the above embodiment, and the technical solution of the present invention is all within the protection scope of the present invention as long as the present invention is realized by the substantially same means.

Claims (10)

1. A skylight control system with an anti-pinch function is characterized by comprising a power supply conversion circuit (100), a switching signal circuit (200), a microcontroller (300), a motor drive circuit (400) and a double-Hall sensor circuit (500);
the input end of the power supply conversion circuit (100) is electrically connected with an external vehicle-mounted power supply and is used for receiving external voltage and converting the external voltage into system working voltage;
the input end of the switching signal circuit (200) is electrically connected with the microcontroller (300) and is used for receiving a switching power supply control signal output by the microcontroller (300); the switch signal circuit (200) has two output terminals electrically connected to the microcontroller (300), and one output terminal is used for providing an initialization signal to the microcontroller (300); another output for outputting a window open/close control signal to said microcontroller (300);
the microcontroller (300) is used for receiving, processing and transmitting data and signals in the system;
the motor driving circuit (400) is provided with two input ends which are electrically connected with the microcontroller (300) and used for receiving a driving control signal of the microcontroller (300) and converting the driving control signal into a corresponding driving signal; the motor driving circuit (400) is provided with three output ends, wherein the first output end and the second output end are electrically connected with an external direct current motor and are used for transmitting the driving signal to the external direct current motor, and the third output end is connected with the microcontroller (300) and is used for outputting a driving circuit feedback signal to the microcontroller (300);
the double-Hall sensor circuit (500) is used for collecting a motor running state signal of the direct current motor; the input end of the double-Hall sensor circuit (500) is electrically connected with the microcontroller (300) and is used for receiving an enabling signal transmitted by the microcontroller (300); the double-Hall sensor circuit (500) is provided with two output ends which are electrically connected with the microcontroller (300) and used for transmitting the motor running state signal to the microcontroller (300).
2. The skylight control system with anti-pinch function according to claim 1, characterized in that the power conversion circuit (100) comprises a first diode, a three-terminal regulator, a first capacitor, a second capacitor, a third capacitor and a fourth capacitor; after the first capacitor and the third capacitor are connected in parallel, the anode is connected with the cathode of the first diode, and the cathode is connected with the ground wire; the anode of the first diode is connected with an external vehicle-mounted power supply; after the second capacitor and the third capacitor are connected in parallel, the anode is connected with the microcontroller (300), and the cathode is connected with the ground wire; the input end of the three-terminal voltage stabilizer is connected with the cathode of the first diode, the output end of the three-terminal voltage stabilizer is connected with the microcontroller (300), and the ground end of the three-terminal voltage stabilizer is connected with the ground wire.
3. The skylight control system with anti-pinch function according to claim 1, characterized in that the switch signal circuit (200) comprises a slide rheostat, a first triode, a first switch; a first resistor is connected between the microcontroller (300) and the first end of the sliding rheostat; a second resistor is connected between the microcontroller (300) and the ground wire; the second end of the sliding rheostat is connected with a ground wire, and a third resistor is connected between the third end of the sliding rheostat and the collector electrode of the first triode; the base electrode of the first triode and the emitting electrode of the first triode are connected with a fourth resistor, the emitting electrode of the first triode is connected with a power switching circuit (100), and a fifth resistor is connected between the base electrode of the first triode and the microcontroller (300); a sixth resistor, a seventh resistor and an eighth resistor which are connected in series are connected between the microcontroller (300) and the power conversion circuit (100); a first switch is connected between the connection part of the sixth resistor and the seventh resistor and a ground wire; and a ninth resistor is connected between the connection part of the seventh resistor and the eighth resistor and the ground wire.
4. The skylight control system with anti-pinch function according to claim 1, further comprising an IGN interface circuit (600); the IGN interface circuit (600) comprises a tenth resistor, an eleventh resistor and a twelfth resistor; a tenth resistor and a twelfth resistor which are connected in series are connected between the input end of the IGN interface circuit (600) and the microcontroller (300); an eleventh resistor is connected between the connection part of the tenth resistor and the twelfth resistor and the ground wire; the IGN interface circuit (600) is configured to transmit an ignition signal to the microcontroller (300).
5. The skylight control system with the anti-pinch function according to claim 1, characterized in that the motor driving circuit (400) comprises a second triode, a third triode, a common cathode diode, a first relay and a second relay; a thirteenth resistor is connected between the base electrode of the second triode and the microcontroller (300), a collector electrode is connected with the first control end of the first relay and the first positive end of the common cathode diode, and the base electrode is connected with the ground wire; a fourteenth resistor is connected between the base of the third triode and the microcontroller (300), a collector is connected with the second control end of the second relay and the second positive end of the common cathode diode, and the base is connected with the ground wire; the second control end of the first relay, the first control end of the second relay, the common cathode of the common cathode diode, the normally open input end of the first relay and the normally open input end of the second relay are all connected with the power conversion circuit (100); the normally closed input end of the first relay and the normally closed input end of the second relay are both connected with a ground wire; a fifteenth resistor and a sixteenth resistor which are connected in series are connected between the output end of the first relay and the output end of the second relay; seventeen resistors are connected between the connection position of the fifteenth resistor and the sixteenth resistor and the microcontroller (300).
6. The skylight control system with the anti-pinch function according to claim 5, characterized in that the motor driving circuit (400) further comprises a voltage dependent resistor, a fifth capacitor, a nineteenth resistor; the nineteenth resistor and the fifth capacitor are connected in series and then connected in parallel with the piezoresistor to prevent electric sparks; the voltage dependent resistor is connected between the output end of the first relay and the output end of the second relay and used for overvoltage protection.
7. The skylight control system with the anti-pinch function according to claim 1, characterized in that the double Hall sensor circuit (500) comprises a fourth triode, a first Hall sensor, a second Hall sensor and a sixth capacitor; a nineteenth resistor is connected between the base electrode of the fourth triode and the microcontroller (300), a twentieth resistor is connected between the base electrode and the collector electrode, the collector electrode is connected with the power conversion circuit (100), the emitter electrode is connected with the input end of the first Hall sensor and the input end of the second Hall sensor, and the sixth capacitor is connected between the collector electrode and the ground wire; the grounding ends of the first Hall sensor and the second Hall sensor are connected with a ground wire; a twenty-first resistor and a twenty-second resistor which are connected in series are connected between the output end of the first Hall sensor and the microcontroller (300); the connection position of the twenty-first resistor and the twenty-second resistor is connected with the power supply conversion circuit (100); a twenty-third resistor and a twenty-fourth resistor which are connected in series are connected between the output end of the second Hall sensor and the microcontroller (300); the joint of the twenty-third resistor and the twenty-fourth resistor is connected with the power supply conversion circuit (100); the first Hall sensor and the second Hall sensor are used for collecting the motor running state signals.
8. The skylight control system with anti-pinch function as claimed in claim 1 or 7, wherein the motor running state signal is a pulse signal generated by the change of the magnetic field of the external DC motor multi-stage magnetic ring.
9. The skylight control system with anti-pinch function according to claim 1, characterized in that a special position point is arranged in the microcontroller (300); the special location points correspond to different sunroof locations and window open/close control signals.
10. The skylight control system with anti-pinch function according to claim 9, characterized in that the special position points include a tilting mechanical zero point, a tilting opening point, a window closing point, a half-opening point, a window opening point, and a window opening mechanical zero point.
CN201921016100.8U 2019-07-02 2019-07-02 Skylight control system with prevent pressing from both sides function Active CN210454425U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201921016100.8U CN210454425U (en) 2019-07-02 2019-07-02 Skylight control system with prevent pressing from both sides function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201921016100.8U CN210454425U (en) 2019-07-02 2019-07-02 Skylight control system with prevent pressing from both sides function

Publications (1)

Publication Number Publication Date
CN210454425U true CN210454425U (en) 2020-05-05

Family

ID=70443312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201921016100.8U Active CN210454425U (en) 2019-07-02 2019-07-02 Skylight control system with prevent pressing from both sides function

Country Status (1)

Country Link
CN (1) CN210454425U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113541531A (en) * 2021-07-19 2021-10-22 惠州市睿普斯林智能科技有限公司 Drive control method and circuit and storage bed

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113541531A (en) * 2021-07-19 2021-10-22 惠州市睿普斯林智能科技有限公司 Drive control method and circuit and storage bed
CN113541531B (en) * 2021-07-19 2024-06-04 锐迈科技股份有限公司 Driving control method, circuit and storage bed

Similar Documents

Publication Publication Date Title
CN102678008B (en) Self-adapting car window anti-clamping control circuit and control method
US6426604B1 (en) Power window controlling device
CN2905993Y (en) Anti-clamping automatic closing device for power-driven glass windows in automobile
CN102312634B (en) Anti-pinching control method and control system for automotive electric window
CN2937404Y (en) Anti-squeeze electric window control unit
CN103696649B (en) Anti-clamping protective device and method for power windows
CN101214786B (en) Car scuttle control device
CN203050353U (en) Car window anti-pinching control circuit based on ripple wave and current detection
CN210454425U (en) Skylight control system with prevent pressing from both sides function
CN206753316U (en) A kind of car anti-clamping window system
CN202463742U (en) Automobile body controller
CN112013444A (en) Range hood and baffle driving motor control method and device thereof
CN110821315B (en) Automobile electric back door opening and closing driving system based on gesture control and control method
CN206250753U (en) The Lock protective circuit of brush motor and the motor rotation blockage protection device of power windows
CN106193879A (en) A kind of control device and method of the multi-functional anti-pinch of vehicle window Hall
CN201158294Y (en) Clerestory window control device of automobile
CN205531906U (en) Prevent pressing from both sides sunroof controller based on detect motor load current
CN210798615U (en) Anti-pinch vehicle window controller with double anti-pinch functions
CN201824946U (en) Auxiliary device of automotive steering light based on control of single-chip microcomputer
CN201374666Y (en) Multi-drive electric window machine control device
CN209799709U (en) anti-pinch device for automobile glass
CN203313103U (en) Control circuit for internal and external circulation motor of vehicle-mounted hand-operated air conditioner
CN205554097U (en) Prevent pressing from both sides sunroof controller
CN201835667U (en) Intelligent car window control system
CN101510077B (en) Multi-drive type electric window-opening machine control system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant