A circuit structure and method for controlling a car window motor using the back electromotive force of an electric motor.
By using the back EMF control method of the motor, the polarity of the motor is switched by the main control module and the relay contact network, and soft start and reverse electromagnetic self-locking are performed by combining pulse width modulation signal. This solves the problems of starting shock and unstable operation of the window motor, and achieves smooth operation and efficient position holding.
Patent Information
- Application Number
- CN202611204458.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-10
- Publication Date
- 2026-11-17
AI Technical Summary
Existing window motor control systems are prone to generating inrush currents during startup, have insufficient position holding capability when stopped, and exhibit unstable operating speeds. In particular, they are prone to jamming or speed surges when the load changes, affecting the smooth raising and lowering of the window glass.
The method of back EMF control of motor is adopted. The main control module, the direction switching module and the speed control drive module work together to switch the polarity of the motor using a relay contact network. Combined with pulse width modulation signal, soft start is performed. In the sleep state, a low impedance closed loop path is formed to generate reverse electromagnetic self-locking torque to adapt to load changes.
It achieves smooth start-up, constant speed operation and stable stopping of the window motor, reduces starting inrush current and static power consumption, improves position holding capability, and avoids the use of an additional speed sensor.
Smart Images

Figure CN123109507A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive window motor control technology, and more specifically, to a circuit structure and method for controlling a window motor using the back electromotive force of the motor. Background Technology
[0002] As automotive electronics become increasingly sophisticated, window lift systems, in addition to controlling the raising and lowering of windows according to user commands, must also meet requirements such as smooth start-up, stable operating speed, reliable maintenance of the stopped position, and low static power consumption. When the window motor starts, its low armature resistance can easily generate a large inrush current. Furthermore, when the window is not fully open, it may be affected by its own weight, external pressure, or vehicle vibration, causing it to tend to move downwards. Therefore, appropriate circuit structures and control methods are needed to coordinate and control the direction of movement, start-up process, operating speed, and stopping state of the window motor.
[0003] Existing automotive window motor control systems typically use relay contact networks or power switching circuits to change the polarity of the power supply electrodes at both ends of the motor to control its forward and reverse rotation. They also adjust the duty cycle of the power switching transistors via pulse width modulation signals to achieve motor starting and speed regulation. After the window stops, the mechanical locking force is usually provided primarily by the worm gear mechanism in the motor gearbox. Some control systems that require the actual motor speed also incorporate speed detection elements such as Hall effect sensors and photoelectric encoders. However, the mechanical locking capability is easily affected by gear meshing clearance, component wear, and changes in lubrication conditions, potentially leading to a decrease in position holding ability after prolonged use. Adding speed detection elements increases the number of components, wiring complexity, installation space, and manufacturing costs.
[0004] Furthermore, in some window motor control schemes, after a soft start, a fixed drive duty cycle is typically determined according to a preset speed and remains unchanged during subsequent operation. However, the load resistance borne by the window glass throughout its entire stroke is not constant: as the glass enters the upper part of the window frame, the compressive reaction force of the sealing strip gradually increases, and the load may rise significantly near the fully closed position; aging and hardening of the sealing strip, deterioration of the guide rail lubrication, and assembly deviations can also cause slow load drift. Because the fixed duty cycle cannot adjust the motor output in a timely manner according to actual load changes, speed reduction or jamming is likely to occur when the load increases, while speed surges may occur when the load decreases, resulting in uneven window lifting speeds. Repeated speed changes also generate impact loads on the gear meshing surfaces, wire ropes, and other transmission components, accelerating fatigue wear of the lifting mechanism. Therefore, how to improve the starting impact, full-stroke operating speed stability, and stopping position holding capability of the window motor while maintaining a relatively simple control circuit structure, low cost, and low static power consumption has become a problem that needs to be solved. Summary of the Invention
[0005] To address the aforementioned technical problems, this application is proposed. Embodiments of this application provide a circuit structure and method for controlling a vehicle window motor using the back electromotive force of an electric motor.
[0006] According to one aspect of this application, a circuit structure for controlling a car window motor using the back electromotive force of a motor is provided, comprising: a main control module, a direction switching module, a speed control drive module, and a car window motor module; The direction control output terminal of the main control module is electrically connected to the input terminal of the direction switching module to transmit low-voltage DC level control signals. The power output terminal of the direction switching module is electrically connected to the positive and negative input terminals of the window motor module, respectively, to transmit high current polarity power to the motor or to form a short-circuit loop under specific conditions. The speed control output terminal of the main control module is electrically connected to the input terminal of the speed drive module to transmit PWM square wave signals. The power end of the speed control drive module is coupled in series with the main circuit loop consisting of the power supply, the direction switching module, and the window motor module, in order to control the physical on / off of the current in the entire circuit.
[0007] According to another aspect of this application, a method for controlling a vehicle window motor using the back electromotive force of an electric motor is provided, comprising: Step 1: Based on the window movement direction command, perform polarity switching control on the dual relay contact network in the motor movement direction control circuit, so that the moving contact of the corresponding relay is energized from the normally closed position to the normally open position to connect to the power supply and establish the motor polarity conduction path. Step 2: Under the power supply framework of the motor polarity conduction path, the power switching transistor in the speed control circuit is driven by high-frequency conduction and cutoff switching through the output pulse width modulation signal to generate a soft-start drive pulse current with smooth equivalent voltage rise. Step 3: Based on the target rotational speed of the window, the pulse width modulation duty cycle of the soft start drive pulse current is constant-matched and locked to output a steady-state drive current with constant energy. Step 4: Respond to the window sleep trigger indicator, remove the steady-state drive current and reset the dual relays to the normally closed contact state due to loss of excitation. This physically short-circuits the positive and negative terminals of the motor through the normally closed contacts of the dual relays to form a low-impedance closed-loop path. When the window is forced to rotate passively by external force, the rotor coil cuts the magnetic field of the stator permanent magnet to generate a reverse electromotive force. This reverse electromotive force, based on Lenz's law, excites an induced short-circuit current in the opposite direction in the low-impedance closed-loop path to generate an electromagnetic self-locking torque that counteracts the external force.
[0008] Compared with existing technologies, this application provides a circuit structure and method for controlling a car window motor using the back electromotive force of a motor. It constructs a control architecture in which a main control module, a direction switching module, a speed control drive module, and a car window motor module work collaboratively. The main control module reconstructs the polarity of the motor power supply through the direction switching module and uses the speed control drive module to output a drive signal with a gradually increasing duty cycle to reduce starting shock. During steady-state operation, the back electromotive force of the motor is collected during the drive signal cutoff gap, and the actual speed is inverted. The drive duty cycle is corrected in a closed loop based on the deviation between the actual speed and the target speed, so that the motor output adapts to the load changes throughout the entire travel of the car window. In sleep mode, the drive signal is removed, and the direction switching module forms a low-resistance closed loop at both ends of the motor, so that the back electromotive force generated when the motor rotates under external force forms a reverse resistance torque. This achieves smooth start-up, uniform speed operation, and auxiliary position holding while reducing static power consumption and eliminating the need for an additional speed sensor. Attached Figure Description
[0009] The above and other objects, features, and advantages of this application will become more apparent from the more detailed description of the embodiments of this application in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the embodiments of this application to explain this application and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.
[0010] Figure 1 This is a schematic diagram of the circuit structure for controlling a car window motor using the back electromotive force of a motor according to an embodiment of this application.
[0011] Figure 2 This is a flowchart of a method for controlling a car window motor using the back electromotive force of an electric motor according to an embodiment of this application.
[0012] Figure 3 This is a flowchart of step three of the method for controlling a car window motor using the back electromotive force of an electric motor according to an embodiment of this application.
[0013] Figure 4 This is a schematic diagram of the data flow in step three of the method for controlling a car window motor using the back electromotive force of an electric motor according to an embodiment of this application. Detailed Implementation
[0014] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0015] Existing window motor control methods are prone to generating inrush current during startup. When load changes are caused by factors such as the compression of the sealing strip, friction of the guide rail, and aging of components, using a fixed duty cycle drive can easily cause the window to decelerate, accelerate, or jam. Furthermore, after the window stops, it only relies on the mechanical transmission mechanism to maintain its position, and its position-holding ability may decrease with long-term use. To address this, the main control module controls the switching of dual relay contacts in the direction switching module based on the window's movement direction command, establishing a motor polarity conduction path corresponding to the target movement direction. It then outputs a pulse width modulation signal with a gradually increasing duty cycle to the speed control drive module, causing the power switch to control the main circuit current according to the gradually increasing conduction duration, thus achieving a soft start for the window motor. After the soft start is complete, the motor terminal voltage after the freewheeling current decays is acquired within the cutoff phase of the pulse width modulation signal. The real-time speed is calculated based on the correlation between the back electromotive force and the motor speed, and compared with the target speed. A duty cycle correction is generated through proportional-integral calculation to dynamically adjust the motor's drive energy and adapt to load changes throughout the entire stroke. When the window enters a dormant state, the drive signal is removed, and the dual relays are reset to their normally closed state. The motor terminals are connected to a low-impedance closed circuit, causing the back electromotive force generated when the motor is driven by an external force to form an electromagnetic reluctance torque opposite to the rotational trend, thereby balancing start-up smoothness, running speed stability, and stationary position holding capability.
[0016] Figure 1 This is a schematic diagram of the circuit structure for controlling a car window motor using the back electromotive force of a motor, according to an embodiment of this application. Figure 1 As shown, the circuit structure for controlling a car window motor using the back electromotive force of a motor according to an embodiment of this application is applied to the control of car window lifting and maintaining a non-fully open position. The circuit structure includes a PCB circuit board A, a main control module B, a direction switching module C, a speed control drive module D, and a car window motor module M. The main control module B, direction switching module C, and speed control drive module D are mounted on the PCB circuit board A, and the car window motor module M is connected to the PCB circuit board A via a power connection line. The main control module B includes a main controller for outputting a low-voltage DC level control signal and a PWM square wave signal; the direction switching module C is used to change the polarity of the power supply terminals of the car window motor module M according to the low-voltage DC level control signal, or to connect the two terminals of the car window motor module M to form a short-circuit loop; the speed control drive module D is used to control the physical on / off state of the main circuit loop according to the PWM square wave signal; the car window motor module M includes a car window motor for converting electrical energy into mechanical energy to drive the lifting and lowering of the car window, and generating a back electromotive force when the rotor is driven by an external force.
[0017] The positive terminal of the power supply is connected to PCB circuit board A through power supply connection point ①, and then connected to the power supply terminal of main control module B and the power input terminal of direction switching module C. The negative terminal of the power supply is connected to PCB circuit board A through power supply negative connection point ②, forming a high-current ground for the system. The first power output terminal of direction switching module C is connected to the positive terminal of window motor module M through positive input terminal ③, and the second power output terminal of direction switching module C is connected to the negative terminal of window motor module M through negative input terminal ④. The short-circuit common terminal ⑤ of direction switching module C is connected to the power input terminal of speed control drive module D, and the power output terminal of speed control drive module D is connected to the high-current ground ② of the system. Thus, speed control drive module D is coupled in series in the main circuit loop formed by power supply, direction switching module C, and window motor module M.
[0018] The direction control output of the main control module B is connected to the input of the direction switching module C via direction control connection point ⑥. Direction control connection point ⑥ connects two lines, including a first direction control line and a second direction control line, used to transmit a first low-voltage DC level control signal and a second low-voltage DC level control signal, respectively. The speed control output of the main control module B is connected to the input of the speed control drive module D via speed control connection point ⑦, used to transmit a PWM square wave signal. The low-voltage DC level control signal is used to change the contact state of the relay inside the direction switching module C, and the PWM square wave signal is used to change the conduction duration of the speed control drive module D. Both control the power supply polarity and average conduction time of the main circuit loop, respectively.
[0019] At the component level, the direction switching module C includes a first bidirectional relay K1, a second bidirectional relay K2, a first driving transistor Q1, a second driving transistor Q2, a first current-limiting resistor R1, a second current-limiting resistor R2, a first freewheeling diode D1, and a second freewheeling diode D2. Both the first bidirectional relay K1 and the second bidirectional relay K2 include an electromagnetic coil, a moving contact, a normally open contact, and a normally closed contact. The two bidirectional relays achieve forward power supply, reverse power supply, and terminal shorting of the window motor module M through combinations of contact states.
[0020] The first direction control terminal of the main control module B is connected to one end of the first current-limiting resistor R1 via direction control connection point ⑥. The other end of the first current-limiting resistor R1 is connected to the base of the first driving transistor Q1. The emitter of the first driving transistor Q1 is connected to system ground, and its collector is connected to one end of the coil of the first bidirectional relay K1. The other end of the coil of the first bidirectional relay K1 is connected to the positive power supply VCC, which corresponds to power supply connection point ①. The first freewheeling diode D1 is connected in reverse parallel across the coil of the first bidirectional relay K1, with its cathode connected to the positive power supply VCC and its anode connected to the collector of the first driving transistor Q1.
[0021] The second direction control terminal of the main control module B is connected to one end of the second current-limiting resistor R2 via direction control connection point ⑥. The other end of the second current-limiting resistor R2 is connected to the base of the second driving transistor Q2. The emitter of the second driving transistor Q2 is connected to system ground, and its collector is connected to one end of the coil of the second bidirectional relay K2. The other end of the coil of the second bidirectional relay K2 is connected to the positive power supply VCC. The second freewheeling diode D2 is connected in reverse parallel across the coil of the second bidirectional relay K2, with its cathode connected to the positive power supply VCC and its anode connected to the collector of the second driving transistor Q2. The first current-limiting resistor R1 and the second current-limiting resistor R2 respectively limit the current flowing into the bases of the first driving transistor Q1 and the second driving transistor Q2, so that the low-voltage DC level control signal output by the main controller is converted into the driving current required by the relay coil.
[0022] The moving contact of the first bidirectional relay K1 is connected to the positive terminal of the window motor module M via its positive input terminal ③, and the moving contact of the second bidirectional relay K2 is connected to the negative terminal of the window motor module M via its negative input terminal ④. The normally open contacts of both the first and second bidirectional relays K1 and K2 are connected in parallel to the positive power supply VCC, and their normally closed contacts are connected in parallel to the common shorting terminal ⑤. When the coil of the first bidirectional relay K1 is de-energized, its positive input terminal ③ is connected to the common shorting terminal ⑤; when the coil is energized, its positive input terminal ③ is connected to the positive power supply VCC. Similarly, when the coil of the second bidirectional relay K2 is de-energized, its negative input terminal ④ is connected to the common shorting terminal ⑤; when the coil is energized, its negative input terminal ④ is connected to the positive power supply VCC.
[0023] The speed control drive module D includes a third speed-regulating MOSFET Q3, a third gate current-limiting resistor R3, and a fourth gate pull-down resistor R4. The PWM signal output terminal of the main control module B is connected to one end of the third gate current-limiting resistor R3 through the speed control connection point ⑦, and the other end of the third gate current-limiting resistor R3 is connected to the gate of the third speed-regulating MOSFET Q3. The fourth gate pull-down resistor R4 is connected between the gate of the third speed-regulating MOSFET Q3 and the system ground. The drain of the third speed-regulating MOSFET Q3 is connected to the short-circuit common terminal ⑤ of the direction switching module C, and the source of the third speed-regulating MOSFET Q3 is connected to the system high-current ground ②. The third gate current-limiting resistor R3 is used to limit the gate charging and discharging current during PWM square wave signal switching, and the fourth gate pull-down resistor R4 is used to release the gate charge and keep the third speed-regulating MOSFET Q3 off when the PWM square wave signal is removed.
[0024] When the car window is raised, the main control module B turns on the first drive transistor Q1 and turns off the second drive transistor Q2 through the direction control connection point ⑥. The coil of the first bidirectional relay K1 receives excitation current, and its moving contact switches from a normally closed contact to a normally open contact, connecting the positive terminal ③ of the car window motor module M to the positive power supply VCC. The second bidirectional relay K2 remains normally closed, connecting the negative terminal ④ of the car window motor module M to the short-circuit common terminal ⑤. When the third speed-regulating MOSFET Q3 is turned on, a main circuit loop is formed, sequentially passing through the power supply connection point ①, the first bidirectional relay K1, the positive input terminal ③, the car window motor module M, the negative input terminal ④, the second bidirectional relay K2, the short-circuit common terminal ⑤, the third speed-regulating MOSFET Q3, and the negative power supply connection point ②, providing the car window motor module M with a drive current of the first polarity.
[0025] When the window glass is lowered, the main control module B cuts off the first drive transistor Q1 and turns on the second drive transistor Q2. The first bidirectional relay K1 remains normally closed, connecting the positive terminal ③ of the window motor module M to the short-circuit common terminal ⑤; the moving contact of the second bidirectional relay K2 switches to the normally open contact, connecting the negative terminal ④ of the window motor module M to the positive power supply VCC. When the third speed-regulating MOSFET Q3 is turned on, the current in the main circuit flows sequentially through the power supply connection point ①, the second bidirectional relay K2, the negative input terminal ④, the window motor module M, the positive input terminal ③, the first bidirectional relay K1, the short-circuit common terminal ⑤, the third speed-regulating MOSFET Q3, and the negative power supply connection point ②. The current direction in the window motor module M is reversed relative to the upward operation, thus outputting electromagnetic torque in the opposite direction.
[0026] After the direction switching module C establishes the corresponding motor polarity conduction path, the main control module B outputs a PWM square wave signal through the speed control connection point ⑦. When the PWM square wave signal is high, the gate-source voltage of the third speed-regulating MOSFET Q3 reaches the conduction condition, its drain-source channel is turned on, and the main circuit loop is closed; when the PWM square wave signal is low, the gate charge of the third speed-regulating MOSFET Q3 is released through the third gate current-limiting resistor R3 and the fourth gate pull-down resistor R4, its drain-source channel is turned off, and the main circuit loop is disconnected. During the startup phase of the window motor module M, the main control module B gradually increases the duty cycle of the PWM square wave signal, so that the equivalent drive voltage and average drive current obtained by the window motor module M increase smoothly, thereby reducing the startup inrush current; during the operation phase, the main control module B changes the conduction time of the third speed-regulating MOSFET Q3 in a unit cycle by changing the duty cycle of the PWM square wave signal, thereby realizing the speed regulation of the window motor module M.
[0027] When the car window is in a partially open position and enters a sleep state, the main control module B stops outputting low-voltage DC level control signals and PWM square wave signals. The first driver transistor Q1 and the second driver transistor Q2 are turned off, and the coils of the first bidirectional relay K1 and the second bidirectional relay K2 lose their excitation current and reset to the normally closed state. The positive input terminal ③ and the negative input terminal ④ are thus connected to the short-circuit common terminal ⑤ through the normally closed contacts of the first bidirectional relay K1 and the second bidirectional relay K2, respectively. The fourth gate pull-down resistor R4 pulls the gate potential of the third speed-regulating MOSFET Q3 down to the system ground, turning off the third speed-regulating MOSFET Q3 and isolating the short-circuit common terminal ⑤ from the high-current system ground ②. The positive terminal ③ of the car window motor module M, the normally closed contact of the first bidirectional relay K1, the short-circuit common terminal ⑤, the normally closed contact of the second bidirectional relay K2, the negative terminal ④ of the car window motor module M, and the internal armature coil of the car window motor together form a low-impedance closed path.
[0028] When the window glass passively rotates the rotor of the window motor module M under its own weight or external force, the armature coil cuts the stator magnetic field and generates a back electromotive force between the positive terminal ③ and the negative terminal ④. This back electromotive force forms an induced current in a low-impedance closed circuit. The induced current interacts with the stator magnetic field to generate an electromagnetic reluctance torque in the opposite direction to the passive rotation of the rotor. This electromagnetic reluctance torque, together with the mechanical self-locking force provided by the window motor gearbox, resists the movement of the window glass to the fully open position, thereby improving the window glass's ability to remain in the partially open position. When the first driving transistor Q1 or the second driving transistor Q2 switches from the on state to the off state, the induced voltage generated by the corresponding relay coil causes the first freewheeling diode D1 or the second freewheeling diode D2 to conduct in the forward direction. The magnetic field energy stored in the coil is released through the corresponding freewheeling circuit, thereby limiting the reverse voltage at the collector of the driving transistor and ensuring the stable reset of the direction switching module C.
[0029] In this application embodiment, a method for controlling a car window motor using the back electromotive force of a motor is also proposed. Figure 2 This is a flowchart illustrating a method for controlling a car window motor using the back electromotive force of an electric motor according to an embodiment of this application. Figure 2As shown, the method for controlling a car window motor using the back electromotive force of a motor according to an embodiment of this application includes: Step 1: Based on the car window movement direction command, performing polarity switching control on the dual relay contact network in the motor movement direction control circuit, causing the moving contact of the corresponding relay to be energized from the normally closed position to the normally open position to connect to the power supply, establishing a motor polarity conduction path; Step 2: Under the power supply framework of the motor polarity conduction path, driving the power switch in the speed control circuit to perform high-frequency on / off switching by outputting a pulse width modulation signal, so as to generate a soft-start drive pulse current with smooth equivalent voltage rise; Step 3: Based on the target speed value of the car window, controlling the soft-start drive... The pulse width modulation duty cycle of the dynamic pulse current is constant matched and locked to output a steady-state drive current with constant energy; Step 4: In response to the window sleep trigger indicator, the steady-state drive current is removed and the dual relays are reset to the normally closed contact state due to loss of excitation, thereby physically short-circuiting the positive and negative terminals of the motor through the normally closed contacts of the dual relays to form a low-impedance closed-loop path. When the window is forced to rotate passively by external force, the rotor coil cuts the magnetic field of the stator permanent magnet to generate a reverse electromotive force. This reverse electromotive force, based on Lenz's law, excites an induced short-circuit current in the opposite direction in the low-impedance closed-loop path to generate an electromagnetic self-locking torque to counteract the external force.
[0030] Specifically, in step one, based on the window movement direction command, the polarity switching control of the dual relay contact network in the motor movement direction control circuit is performed, causing the moving contact of the corresponding relay to close from the normally closed position to the normally open position to connect to the power supply and establish a motor polarity conduction path. It should be understood that since the window motor module is a reversible DC motor, its rotation direction depends on the potential polarity between the positive and negative input terminals, and the power supply cannot directly change its output polarity according to the window movement direction command; at the same time, the low-voltage DC level control signal output by the main control module is insufficient to directly switch the high-current power path required by the window motor module. If the power supply polarity is not determined before the window motor module starts, the window glass cannot perform the rising or falling action according to the window movement direction command, and abnormal current may occur when the contact state is uncertain. Therefore, in the technical solution of this application, based on the window movement direction command, the polarity switching control of the dual relay contact network in the direction switching module is performed, so that the moving contact of the corresponding relay is energized from the normally closed position to the normally open position to connect to the positive terminal of the power supply, while the moving contact of the other relay remains in the normally closed position connected to the common short-circuit terminal, thereby establishing a motor polarity conduction path corresponding to the window movement direction command. In this way, the low-voltage DC level control signal can be converted into a mechanical switching state of the dual relay contact network, forming a defined potential polarity at both ends of the window motor module, and making the direction control function independent of the subsequent PWM speed regulation function, thereby ensuring that the window glass runs stably in the specified direction.
[0031] More specifically, in a particular example of this application, the main control module first receives a window movement direction command and identifies whether the window glass is moving upwards or downwards as represented by the command. Before the window motor module receives PWM drive current, the main control module outputs a corresponding low-voltage DC level control signal through the direction control output terminal based on the identification result. Next, when the window movement direction command indicates the upward direction of the window glass, a low-voltage DC level control signal is applied to the base of the first driving transistor through the first current-limiting resistor, causing the first driving transistor to conduct. The coil of the first bidirectional relay is connected to the system ground from the positive terminal of the power supply through the first driving transistor and obtains excitation current. The moving contact of the first bidirectional relay is pulled from the normally closed position to the normally open position, connecting the positive input terminal of the window motor module to the positive terminal of the power supply. The second driving transistor remains off, and the moving contact of the second bidirectional relay remains in the normally closed position, connecting the negative input terminal of the window motor module to the short-circuit common terminal. This establishes a motor polarity conduction path that sequentially passes through the positive terminal of the power supply, the first bidirectional relay, the positive input terminal of the window motor module, the window motor module, the negative input terminal of the window motor module, the second bidirectional relay, and the short-circuit common terminal. Then, when the window movement direction command indicates the downward direction of the window glass, the main control module cuts off the first drive transistor and turns on the second drive transistor. The moving contact of the first bidirectional relay remains in the normally closed position, connecting the positive input terminal of the window motor module to the short-circuit common terminal. The coil of the second bidirectional relay receives excitation current, and its moving contact moves from the normally closed position to the normally open position, connecting the negative input terminal of the window motor module to the positive terminal of the power supply. This establishes a reverse motor polarity conduction path that sequentially passes through the positive terminal of the power supply, the second bidirectional relay, the negative input terminal of the window motor module, the window motor module, the positive input terminal of the window motor module, the first bidirectional relay, and the short-circuit common terminal. Furthermore, after confirming that the dual relay contact network has completed the switching, the main control module maintains a low-voltage DC level control signal corresponding to the window movement direction command, keeping the corresponding bidirectional relay continuously energized and the other bidirectional relay de-energized. At this time, the motor polarity conduction path has only completed the pre-establishment of the power supply topology, and the third speed-regulating MOSFET in the speed-regulating drive module has not yet been turned on. The window motor module will not produce unexpected rotation until the main control module outputs a PWM square wave signal through the speed control output terminal. Only then will the third speed-regulating MOSFET be connected to the common terminal and the system high-current ground according to the PWM square wave signal, so that a controlled drive current is formed in the motor polarity conduction path.
[0032] Specifically, in step two, within the power supply framework of the motor polarity conduction path, a high-frequency on / off switching drive is performed on the power switch in the speed control circuit using an output pulse width modulation signal to generate a soft-start drive pulse current with a smooth equivalent voltage rise. It should be understood that since the window motor has not yet generated a back electromotive force to cancel out the supply voltage when stationary, the armature circuit will generate a large starting current and a sudden starting torque when directly connected to the power supply, which can easily cause electrical and mechanical shocks to the relay contacts, window motor, gears, wire ropes, and guide rails, and other lifting transmission components. Therefore, in the technical solution of this application, within the power supply framework of the motor polarity conduction path, a high-frequency on / off switching drive is performed on the power switch in the speed control circuit using an output pulse width modulation signal to generate a soft-start drive pulse current with a smooth equivalent voltage rise. This limits the average input voltage and average drive current of the window motor during the initial startup phase and allows the output torque of the window motor to gradually increase according to the controlled process. This reduces the starting inrush current of the window motor, minimizes the sudden speed change when the window glass transitions from a stationary state to an up / down state, and reduces the impact load on the relay contacts and the lifting transmission components, providing a continuous and smooth driving foundation for subsequent steady-state speed regulation.
[0033] More specifically, in a particular example of this application, firstly, after the motor polarity conduction path is established, the main control module maintains a low-voltage DC level control signal corresponding to the window movement direction command. After the dual relay contact network completes engagement and reaches a stable state, it generates a pulse width modulation signal with a preset switching frequency and an initial duty cycle. The initial duty cycle is lower than the duty cycle corresponding to the steady-state operation of the window motor, thus limiting the driving energy input to the window motor during initial startup. Next, the main control module inputs the pulse width modulation signal to the power switch in the speed control circuit. When the pulse width modulation signal is high, the control terminal of the power switch receives an effective driving voltage and the power channel is turned on. The motor polarity conduction path is connected to the system's high-current ground via the power switch, and the power supply outputs driving current to the window motor. When the pulse width modulation signal is low, the charge at the control terminal of the power switch is released, and the power channel is turned off. The power supply current in the motor polarity conduction path is cut off, thereby converting continuous DC power into driving pulses arranged according to a preset switching frequency. Then, within continuous pulse width modulation (PWM) cycles, the main control module gradually increases the duty cycle of the PWM signal according to a preset soft-start slope. This gradually extends the conduction time of the power switch in each cycle while maintaining the switching frequency and the polarity state of the motor's polarity conduction path. Consequently, the equivalent voltage applied to the window motor, the average drive current flowing through the armature coil, and the electromagnetic torque generated by the window motor all increase smoothly during the soft-start process. Furthermore, when the duty cycle of the PWM signal reaches the base duty cycle corresponding to the target speed of the window, or when the soft-start duration reaches the preset soft-start duration, the main control module ends the duty cycle increment process. The speed control circuit outputs a soft-start drive pulse current with a smoothly rising equivalent voltage. The base duty cycle at the end of the soft-start is used as the driving reference for subsequent steady-state speed regulation, allowing the window glass to smoothly transition from a stationary state to an operating state.
[0034] Specifically, in step three, based on the target rotational speed of the window, the pulse width modulation duty cycle of the soft-start drive pulse current is constantly matched and locked to output a steady-state drive current with constant energy. It should be understood that since the pulse width modulation duty cycle of the soft-start drive pulse current is in a gradually increasing state, its function is to smoothly transition the window motor from a stationary state to a running state, and it cannot be directly used as a fixed drive reference for the continuous operation phase of the window motor. After the soft start is completed, if the pulse width modulation duty cycle continues to increase, the drive energy obtained by the window motor will continue to increase, causing the running speed of the window glass to deviate from the target rotational speed of the window. Therefore, in the technical solution of this application, based on the target rotational speed of the window, the pulse width modulation duty cycle of the soft-start drive pulse current is further constantly matched and locked to output a steady-state drive current with constant energy, thereby ending the drive energy increase process in the start-up phase and causing the power switching transistor in the speed control circuit to continuously switch according to a constant on-time matching the target rotational speed of the window. This allows the window motor to transition continuously from a soft-start state to a steady-state operating state. When the power supply voltage and window load are maintained at the corresponding calibration conditions, the operating speed of the window glass is kept within the operating range corresponding to the target speed value of the window, and the excessive speed of the window motor is avoided due to the pulse width modulation duty cycle continuing to increase.
[0035] More specifically, in a specific example of this application, firstly, the main control module detects whether the pulse width modulation duty cycle of the soft-start drive pulse current has reached the soft-start termination condition, and stops the duty cycle increment when the soft-start termination condition is reached, while simultaneously reading the target rotational speed value of the window. Next, based on a pre-calibrated correspondence between the target rotational speed value of the window and the pulse width modulation duty cycle, the main control module performs a duty cycle matching operation on the target rotational speed value of the window to determine the base duty cycle corresponding to the target rotational speed value of the window. This correspondence is pre-established based on the rated parameters of the window motor, the power supply voltage, and the calibrated load of the window lifting mechanism. Then, the main control module switches the pulse width modulation duty cycle of the soft-start drive pulse current at the soft-start termination moment to the base duty cycle, while maintaining the switching frequency of the pulse width modulation signal unchanged. This causes the power switching transistor in the speed control circuit to switch on and off at high frequency according to the base duty cycle in subsequent switching cycles, thereby converting the soft-start drive pulse current with a gradually increasing duty cycle into a steady-state drive current with a constant pulse width. The main control module locks the base duty cycle during periods when no stop command, reverse command, or sleep trigger flag is received, so that the power switch continuously outputs a steady-state drive current with constant energy.
[0036] In particular, it is worth mentioning that in the actual operation of the window regulator, the load resistance experienced by the window glass during its entire stroke from the fully open to the fully closed position is not constant, but exhibits significant positional dependence and time-varying characteristics. Specifically, in the lower half of the stroke, the window glass mainly overcomes its own weight and the sliding friction of the guide rail, which is relatively stable. However, as it enters the upper half of the stroke, the sealing strip around the window frame begins to gradually compress. The elastic reaction force exerted by the sealing strip on the glass increases non-linearly with the depth of compression, especially in the last few millimeters of the stroke near the fully closed position, where the sealing resistance can suddenly increase to several times that of the lower half of the stroke. In addition, as the vehicle ages, factors such as the aging and hardening of the sealing strip and the deterioration of the guide rail grease can introduce unpredictable, slow-varying resistance drift.
[0037] However, the control strategy adopted in step three of the first embodiment is as follows: after the main control module completes the soft start, it only performs a one-time duty cycle matching calculation based on the target speed characteristic value of the window, and then locks the speed regulating MOSFET in a constant duty cycle switching state for continuous output. The essential defect of this open-loop constant duty cycle control mode is that it completely ignores the deterministic physical mapping relationship between the pulse width modulation cutoff phase of the steady-state operating pulse current and the actual speed of the motor. When the speed regulating MOSFET is at the cutoff phase of each pulse width modulation cycle, the motor armature coil continues to rotate due to rotor inertia and cuts the stator permanent magnet magnetic field. In the short time window after the freewheeling current completely decays to zero, the residual open-circuit voltage between the positive and negative terminals of the motor is exactly equal to the back electromotive force that is linearly proportional to the actual speed. This natural speed feedback information contained in the existing hardware topology was not identified and utilized in the first embodiment.
[0038] The direct engineering consequences of the aforementioned defects are as follows: Faced with continuously changing load resistance throughout the entire window lifting stroke, the constant electromagnetic torque corresponding to a constant duty cycle cannot match the time-varying load demands. When the load suddenly increases (such as entering the sealing strip compression zone), the motor speed is forced to decrease, resulting in a significant deceleration or even jamming of the window movement; when the load suddenly decreases (such as leaving the sealing strip zone and entering the free-sliding phase), the motor speed unexpectedly increases, causing the window to surge. Ultimately, this manifests as inconsistent speed and uneven operation during window lifting, affecting not only the passenger's user experience and perceived quality but also generating impact alternating stress on the gear meshing surfaces and wire rope tension of the lifting mechanism due to repeated speed changes, accelerating fatigue wear of mechanical components.
[0039] To address the aforementioned technical deficiencies, a second embodiment is proposed. Specifically, in another specific example of this application, Figure 3 This is a flowchart of step three of the method for controlling a car window motor using the back electromotive force of an electric motor according to an embodiment of this application. Figure 4This is a schematic diagram of the data flow in step three of the method for controlling a car window motor using the back electromotive force of an electric motor according to an embodiment of this application. Figure 3 and Figure 4 As shown, step three includes: Sub-step 3.1: Within the pulse width modulation cutoff phase window of the soft-start drive pulse current, the residual open-circuit voltage after the freewheeling current between the positive and negative terminals of the motor is attenuated to zero is sampled using analog-digital sampling to obtain the pulse gap terminal voltage sample value; Sub-step 3.2: Based on the linear proportional relationship between the back electromotive force and the speed characterized by the motor voltage constant, the speed inversion solution is performed on the pulse gap terminal voltage sample value to obtain the real-time speed solution value of the motor; Sub-step 3.3: The difference between the target speed value of the window and the real-time speed solution value of the motor is calculated, and the difference result is closed-loop corrected based on the proportional-integral algorithm to obtain the duty cycle increment correction amount; Sub-step 3.4: The duty cycle increment correction amount is superimposed on the base duty cycle of the soft-start drive pulse current at the end of the soft start, and the power switch in the drive speed control circuit is switched at high frequency with the superimposed real-time duty cycle to generate a steady-state drive current.
[0040] Accordingly, in sub-steps 3.1 and 3.2, within the pulse width modulation cutoff phase window of the soft-start drive pulse current, the residual open-circuit voltage after the freewheeling current between the positive and negative terminals of the motor decays to zero is sampled using analog-digital sampling to obtain the pulse gap terminal voltage sample value. Furthermore, based on the linear proportional relationship between the back electromotive force (EMF) and speed, as represented by the motor voltage constant, the speed inversion calculation is performed on the pulse gap terminal voltage sample value to obtain the real-time motor speed calculation value. It should be understood that during the steady-state operation of the window motor, the power switching transistors in the speed control circuit periodically turn on and off at a fixed frequency. Each pulse width modulation cutoff phase forms a free state window where the motor armature coil is not directly driven by the power supply. In the first half of this window, the freewheeling current in the armature coil gradually decays along the freewheeling circuit. When the freewheeling current decays to zero, the rotor of the window motor continues to rotate due to mechanical inertia, and the rotor coil continues to cut the constant magnetic field formed by the stator permanent magnet. At this time, the residual open-circuit voltage between the positive and negative terminals of the motor corresponds to the motor back EMF and satisfies a linear proportional relationship with the instantaneous rotor speed. If sampling is performed before the freewheeling current has decayed to zero, the voltage sampled value at the pulse gap terminals will be superimposed with the armature resistance voltage drop and the freewheeling circuit voltage drop, failing to accurately represent the actual motor speed. Therefore, in the technical solution of this application, within the pulse width modulation cutoff phase window of the soft-start drive pulse current, the residual open-circuit voltage after the freewheeling current between the positive and negative terminals of the motor is sampled analog-to-digital. Based on the linear proportional relationship between the back electromotive force represented by the motor voltage constant and the speed, the speed inversion calculation is performed on the voltage sampled value at the pulse gap terminals. This extracts the physical feedback quantity that reflects the actual speed of the window motor from the cutoff phase of the existing pulse width modulation drive process. In this way, without adding external Hall sensors or photoelectric encoders, the existing speed control hardware loop topology and the analog-to-digital conversion channel of the main control module can be reused to realize the real-time speed sensing of the window motor, providing a real-time observation basis for subsequent closed-loop correction based on the target speed value of the window and the real-time speed calculation value of the motor.
[0041] In a specific example of this application, firstly, after the window motor completes a soft start and enters steady-state operation, the main control module controls the power switch in the speed control circuit to periodically turn on and off according to a set pulse width modulation frequency, using the falling edge of the transition from the on phase to the off phase in each pulse width modulation cycle as the sampling timing reference. After the power switch is turned off, the drive current between the power supply and the motor polarity conduction path is cut off, thereby forming a pulse width modulation cutoff phase window. Next, the main control module sets a sampling blanking period in the first half of the pulse width modulation cutoff phase window, causing the residual current in the armature coil to continuously decay through the freewheeling circuit, and locks the sampling time after the freewheeling current returns to zero according to a predetermined motor electrical time constant and freewheeling decay time, so as to prevent the resistance voltage drop component formed by the freewheeling current from entering the sampling result. Then, within the remaining window during which the freewheeling current decays to zero and the power switch remains off, the main control module triggers its internal analog-to-digital conversion channel to perform analog-to-digital sampling of the residual open-circuit voltage between the positive and negative terminals of the motor. The sampling value is then oriented according to the terminal voltage polarity determined by the window movement direction command, resulting in a pulse-gap terminal voltage sampling value. This pulse-gap terminal voltage sampling value characterizes the back electromotive force generated by the rotor coil cutting the stator permanent magnet magnetic field at the current instantaneous speed. Further, the main control module calls the motor voltage constant corresponding to the window motor, converting the pulse-gap terminal voltage sampling value into a calculated real-time motor speed value. This sampling and speed inversion calculation are repeated in subsequent pulse width modulation cycles, ensuring that the calculated real-time motor speed value is continuously updated according to the load changes during the window's raising and lowering process.
[0042] The physical relationship between back electromotive force and motor speed is expressed as:
[0043] Therefore, the calculation relationship for the rotational speed inversion solution is expressed as follows:
[0044] in, The calculated real-time rotational speed of the motor represents the instantaneous rotational speed of the window motor rotor, in revolutions per minute. The pulse gap terminal voltage sample value represents the measured residual open-circuit voltage between the positive and negative terminals of the motor after the freewheeling current decays to zero within the pulse width modulation cutoff phase window, in volts. The motor voltage constant represents the inherent proportionality coefficient of the induced electromotive force generated by the rotor coil at a unit speed. It is determined by the magnetic flux of the stator permanent magnet and the effective number of turns of the rotor coil, and its unit is volt-minutes per revolution. In the above calculation relationship, the pulse gap terminal voltage sampling value constitutes the measured physical quantity that changes with the instantaneous rotor speed, and the motor voltage constant constitutes the inherent back electromotive force and speed conversion scale of the window motor. The division operation between the two converts the voltage domain sampling result into the speed domain solution result. When the compression reaction force of the sealing strip or the friction force of the guide rail increases, causing the window motor speed to decrease, the pulse gap terminal voltage sampling value decreases accordingly, and the calculated real-time motor speed solution value decreases accordingly; when the load of the window motor decreases, causing the speed to increase, the pulse gap terminal voltage sampling value increases accordingly, and the real-time motor speed solution value increases accordingly. Therefore, the pulse gap terminal voltage sampling value can reflect the actual load change during the entire stroke of the window glass lifting. The above division relationship indicates that the sampling accuracy of the pulse gap terminal voltage sample value directly determines the calculation accuracy of the real-time motor speed value, while accurately locking the moment when the freewheeling current returns to zero is a prerequisite for ensuring that the sampled value does not contain the resistance voltage drop component. The above sampling and calculation process utilizes the time window formed by the pulse width modulation cutoff phase and reuses the existing speed control hardware loop topology and the analog-to-digital conversion resources of the main control module. Thus, without adding external Hall sensors or photoelectric encoders, it obtains the physical feedback quantity corresponding to the actual speed of the window motor, realizing the expansion of speed sensing capability under zero external speed sensor increment conditions.
[0045] Accordingly, in sub-step 3.3, the difference between the target rotational speed of the window and the calculated real-time rotational speed of the motor is calculated, and the difference result is corrected in a closed loop based on the proportional-integral algorithm to obtain the duty cycle increment correction. It should be understood that during the window's raising and lowering process, it is affected by multiple factors, including the elastic compressive force of the sealing strip, the component of the glass's own weight along the guide rail, the lubrication state of the guide rail, and the frictional resistance of the mechanism. These factors combine to form a continuously fluctuating load disturbance. Furthermore, the quasi-static elastic pressure exerted by the sealing strip on the glass also constitutes a slowly varying load component, causing the actual rotational speed of the window motor to deviate from the target rotational speed of the window. Relying solely on the current rotational speed deviation for a proportional response is insufficient to eliminate the steady-state rotational speed deviation under slowly varying cumulative load disturbances. Therefore, in the technical solution of this application, the target rotational speed of the window and the calculated real-time rotational speed of the motor are further calculated by difference. The difference result is then corrected using a proportional-integral (PI) algorithm to obtain the duty cycle increment correction. This quantifies the actual impact of the current load disturbance on the rotational speed of the window motor and converts the speed deviation information into a control increment that can directly affect the power switching transistors in the speed control circuit. In this way, the proportional component can quickly respond to the current speed deviation, and the integral component can continuously compensate for the steady-state error caused by constant load offset and slowly varying load disturbances, providing a closed-loop control basis for subsequent dynamic adjustment of the drive energy.
[0046] In a specific example of this application, firstly, the main control module acquires the target rotational speed of the window and the real-time rotational speed of the motor obtained by inverting the sampled value of the pulse width modulation period according to the sampling timing corresponding to the pulse width modulation period, and makes both use the same rotational unit and direction reference. Next, the main control module subtracts the real-time rotational speed of the motor from the target rotational speed of the window to obtain the rotational speed closed-loop deviation, and determines whether the window motor is currently in an underspeed or overspeed state based on the sign of the rotational speed closed-loop deviation, so that the rotational speed closed-loop deviation directly represents the degree of influence of the load disturbance on the actual rotational speed of the window motor at the current moment. Then, the main control module performs proportional calculation on the rotational speed closed-loop deviation, linearly amplifying the current rotational speed closed-loop deviation according to the proportional gain coefficient to form an instantaneous correction component for the current rotational speed deviation; at the same time, according to the time interval between two adjacent samplings, the rotational speed closed-loop deviation generated in each sampling period is accumulated in the time domain, and an integral correction component for the historical accumulated deviation is formed according to the integral gain coefficient. Furthermore, the instantaneous correction component is added to the integral correction component to obtain the duty cycle increment correction amount. The duty cycle increment correction amount and the integral accumulation result are subjected to a limiting process corresponding to the allowable duty cycle range of the power switch tube, so that the duty cycle increment correction amount can be superimposed on the base duty cycle of the soft start drive pulse current at the end of the soft start in subsequent processing.
[0047] The calculation relationship for the closed-loop deviation of the rotational speed is expressed as follows:
[0048] in, The closed-loop speed deviation is the instantaneous difference between the target speed value of the window and the calculated real-time speed value of the motor. A positive value indicates that the actual speed is lower than the target (underspeed), and a negative value indicates that the actual speed is higher than the target (overspeed). The characteristic value of the target rotational speed of the car window; This is the calculated real-time speed value of the motor. When the calculated real-time motor speed is lower than the target speed of the window, it indicates that the window motor is in an underspeed state; when When the calculated real-time motor speed is higher than the target speed of the window, it indicates that the window motor is in an overspeed state; when At that time, the calculated real-time motor speed is consistent with the target speed of the car window.
[0049] The calculation relationship of proportional-integral correction is expressed as follows:
[0050] in, For duty cycle increment correction, the physical meaning is the dimensionless adjustment increment that needs to be superimposed on the base duty cycle; The proportional gain coefficient is used to determine the response sensitivity of the closed-loop control to the current speed closed-loop deviation. This is the integral gain coefficient, used to determine the convergence speed of the closed-loop control in eliminating steady-state speed deviation; The closed-loop deviation of the rotational speed recorded in the kth sampling period; is the time interval between two adjacent samples; k is the sampling period number; m is the total number of sampling periods accumulated so far. In the above proportional-integral correction calculation, The proportional component is used to linearly amplify the current closed-loop speed deviation in real time. When the window glass enters the compression zone of the sealing strip, causing an increase in load resistance, the calculated real-time speed of the motor decreases, the closed-loop speed deviation becomes positive, and the proportional component increases accordingly, thus creating an immediate adjustment trend to increase the drive duty cycle. Conversely, when the window glass leaves the high-resistance zone, causing the calculated real-time speed of the motor to exceed the target speed of the window, the closed-loop speed deviation becomes negative, and the proportional component creates an immediate adjustment trend to decrease the drive duty cycle. Therefore, the proportional component is used to improve the tracking response speed of the window motor to sudden load changes. Constitutes integral components, where, The summation operation represents the cumulative deviation of the rotational speed deviation over time within the k-th sampling period. The integral operation represents the historical deviation time integral from the start of closed-loop correction to the current sampling period. The integral gain coefficient is also included. The historical deviation time integral is then converted into a duty cycle correction component. The cumulative structure of the integral term gives it a memory characteristic; even if the closed-loop speed deviation in the current sampling period is zero, as long as the time integral of the historical deviation is not zero, the integral component will maintain a non-zero output to continuously compensate for constant load offset. This characteristic matches the slowly varying load components during window operation, such as the quasi-static elastic pressure applied to the glass by the sealing strip, changes in guide rail lubrication, and frictional resistance of the mechanism. This allows the window motor to eliminate residual steady-state speed deviations and converge towards the target window speed value at different lifting stroke positions. The proportional and integral components work together to form the duty cycle increment correction, thus simultaneously ensuring rapid response under sudden load changes and steady-state error elimination under slowly varying load conditions.
[0051] Accordingly, in sub-step 3.4, the duty cycle increment correction is superimposed on the base duty cycle of the soft-start drive pulse current at the end of the soft start. The power switch in the drive speed control circuit switches at high frequency with the superimposed real-time duty cycle to generate a steady-state drive current. It should be understood that since the duty cycle increment correction is a digital correction generated by the main control module based on the speed closed-loop deviation, it cannot directly change the drive energy of the window motor. Only by injecting it into the actual power drive path of the speed control circuit can the conversion from digital correction to physical drive energy be completed. At the same time, the base duty cycle of the soft-start drive pulse current at the end of the soft start only corresponds to the preset calibration condition and cannot compensate for the load disturbance caused by the compression reaction force of the sealing strip, the component of the glass weight along the guide rail, and the change in the friction state of the guide rail. Therefore, in the technical solution of this application, the duty cycle increment correction is further superimposed on the base duty cycle of the soft-start drive pulse current at the end of the soft start. The power switch in the drive speed control circuit switches at high frequency with the superimposed real-time duty cycle to generate a steady-state drive current. This converts the speed closed-loop correction result into the actual conduction time of the power switch in each switching cycle, and dynamically increases or decreases the drive energy according to the underspeed or overspeed state of the window motor. In this way, the steady-state drive current can have load compensation characteristics, enabling the window motor to maintain the target speed value of the window under the load change conditions of the entire window lifting stroke, and making the closed-loop speed control process continuously connected with the preceding soft start process and the subsequent sleep short-circuit self-locking process.
[0052] In a specific example of this application, firstly, the main control module reads the base duty cycle reached at the end of the soft-start phase of the soft-start drive pulse flow and obtains the duty cycle increment correction calculated based on the proportional-integral algorithm. This base duty cycle is then used as the static operating reference for the steady-state operation of the window motor. Next, the main control module linearly superimposes the duty cycle increment correction with the base duty cycle and performs a limiting process on the superposition result corresponding to the allowable conduction range of the power switch, obtaining the real-time duty cycle of the load adaptive speed control signal. Within each sampling period, the real-time duty cycle is recalculated based on the updated duty cycle increment correction, ensuring that the load adaptive speed control signal is continuously updated along with the calculated real-time motor speed. Then, the high-level duration of the pulse width modulation signal is adjusted according to the real-time duty cycle while keeping the switching frequency of the pulse width modulation signal constant. The power switch in the speed control circuit switches between high-frequency conduction and cutoff according to the load adaptive speed control signal, widening or compressing the pulse width of the soft-start drive pulse current, so that the conduction ratio of the power switch changes with the load per unit time, thereby adjusting the equivalent voltage, average drive current, and electromagnetic torque obtained by the window motor. Furthermore, when the window motor is in an underspeed state due to increased load resistance, the positive duty cycle increment correction increases the real-time duty cycle, prolongs the conduction time of the power switch, and increases the drive energy carried by the steady-state drive current. When the window motor is in an overspeed state due to decreased load resistance, the negative duty cycle increment correction decreases the real-time duty cycle, shortens the conduction time of the power switch, and reduces the drive energy carried by the steady-state drive current, thereby outputting a steady-state drive current with load compensation characteristics.
[0053] The calculation relationship for the superposition of duty cycles is expressed as follows:
[0054] in, The real-time duty cycle of the load adaptive speed control signal is the physical meaning of which is the proportion of the conduction time of the power switch in the speed control circuit in each switching cycle to the total duration of that switching cycle. This is the terminal duty cycle reached by the soft-start drive pulse flow at the end of the soft-start phase. Its physical meaning is the static working reference used for closed-loop correction. This is the duty cycle increment correction amount, which physically represents the dimensionless adjustment increment determined based on the speed closed-loop deviation and its historical cumulative results, and superimposed on the base duty cycle. In the above calculation relationship, This represents the basic drive energy of the window motor corresponding to the target rotational speed of the window under calibrated load conditions. This represents the additional drive correction generated to offset the current load disturbance, and the sum of the two is obtained. This indicates the actual control result applied to the power switch. When hour, The system automatically maintains its original constant duty cycle operation, ensuring compatibility between the closed-loop improvement method and the original control logic, without requiring additional operating mode switching overhead. At this time, the real-time duty cycle increases relative to the base duty cycle to compensate for the underspeed state of the window motor; when At this time, the real-time duty cycle decreases relative to the base duty cycle to suppress the overspeed state of the window motor.
[0055] When the window glass enters the compression zone of the sealing strip, causing a sudden increase in load resistance, the calculated real-time motor speed decreases, creating a positive speed closed-loop deviation. The duty cycle increment correction increases accordingly, increasing the on-time of the power switch in each switching cycle. This enhances the driving energy of the steady-state drive current and maintains the target window speed. Conversely, when the window glass leaves the high-resistance zone and enters the low-resistance coasting zone, the calculated real-time motor speed recovers, creating a negative speed closed-loop deviation. The duty cycle increment correction decreases or becomes negative, reducing the real-time duty cycle to suppress overspeed of the window motor. Thus, the steady-state drive current changes from a fixed energy output to a drive output that compensates for changes in the window load. When the main control module responds to the window sleep trigger flag during subsequent operation, the load adaptive speed control signal is removed, the power switching tube in the speed control circuit stops high-frequency switching, and the steady-state drive current is cut off; the dual relay contact network loses excitation and returns to the normally closed state, so that the positive and negative terminals of the window motor form a low-impedance closed path, thereby continuously connecting the closed-loop speed control process with the sleep short-circuit self-locking process.
[0056] In summary, through the aforementioned load-adaptive speed control mechanism based on back-EMF closed-loop feedback, without changing the hardware topology or adding any external speed sensors, the original constant duty cycle open-loop control is upgraded to closed-loop adaptive control with pulse-by-pulse width modulation period dynamic correction. This transforms the steady-state speed control quality of the window motor from a constant-force variable-speed mode to a constant-speed variable-force mode. In terms of technical effects, the uniformity of the window's lifting speed across the entire travel range is significantly improved. Whether in the low-resistance zone in the middle of the travel or the high-resistance zone near the fully closed position, the actual operating speed is constrained by the closed loop to a minimal deviation zone near the target speed, eliminating speed jumps and jamming caused by sudden load changes. Simultaneously, uniform speed operation avoids the impact-induced alternating stress on the gear meshing surface and transmission components of the lifting mechanism caused by repeated acceleration and deceleration, reducing the rate of mechanical fatigue wear and extending the service life of the window assembly. At the system resource level, the back EMF sampling fully reuses the idle window of the speed regulation pulse cutoff phase and the existing analog-to-digital conversion hardware channel. The proportional-integral operation only occupies a very small amount of computing power resources of the main control module, realizing the engineering goal of obtaining closed-loop speed regulation capability at near-zero marginal cost.
[0057] Specifically, in step four, in response to the window sleep trigger indicator, the steady-state drive current is removed, and the dual relays are reset to their normally closed contact state due to loss of excitation. This physically short-circuits the positive and negative terminals of the motor through the normally closed contacts of the dual relays, forming a low-impedance closed-loop path. When the window is forced to rotate passively by an external force, the rotor coil cuts the stator permanent magnet magnetic field, generating a reverse electromotive force. This reverse electromotive force, based on Lenz's law, induces a short-circuit current in the opposite direction in the low-impedance closed-loop path, generating an electromagnetic self-locking torque to counteract the external force. It should be understood that when the window is not fully open, the glass's own weight, external pressure, and vehicle vibration all create forces that cause the window to move towards the fully open position. Relying solely on the worm gear in the motor gearbox to maintain the window's position is susceptible to changes in gear meshing clearance, mechanical wear, and lubrication conditions. Continuing to supply steady-state drive current to the window motor after the window has stopped will increase static power consumption and cause the window motor and power devices to continuously heat up. Therefore, in the technical solution of this application, in response to the window sleep trigger indicator, the steady-state drive current is removed and the dual relays are reset to the normally closed contact state due to loss of excitation. This physically short-circuits the positive and negative terminals of the motor through the normally closed contacts of the dual relays to form a low-impedance closed-loop path. When the window is forced to rotate passively by an external force, the rotor coil cuts the magnetic field of the stator permanent magnet to generate a reverse electromotive force, thereby converting the passive rotation of the rotor caused by the external force into an electromagnetic force that opposes this passive rotation. In this way, under the condition that the main control module stops continuous driving and without increasing the static power supply burden, the electromagnetic self-locking torque and the mechanical self-locking force of the motor gearbox can jointly maintain the window glass in a non-fully open position, improving the window glass's ability to resist its own weight and external downward pressure.
[0058] More specifically, in a specific example of this application, firstly, the main control module receives the window sleep trigger flag, stops outputting the load adaptive speed control signal, and causes the power switching transistor in the speed control circuit to stop high-frequency switching between on and off, and remain in the off state, thereby cutting off the steady-state drive current; after the drive current in the main circuit decays, the main control module removes the low-voltage DC level control signal to avoid the dual relays switching contacts when carrying drive current. Next, the first and second drive transistors are cut off due to the removal of the base drive signal, the coils of the first and second bidirectional relays lose their excitation current, and the magnetic field energy stored in the coils is released through the corresponding freewheeling diodes. The moving contacts of the two bidirectional relays return from normally open contacts to normally closed contacts under the reset action; the normally closed contact of the first bidirectional relay connects the positive terminal of the motor to the short-circuit common terminal, and the normally closed contact of the second bidirectional relay connects the negative terminal of the motor to the same short-circuit common terminal, thereby electrically connecting the positive and negative terminals of the motor to each other through the normally closed contacts of the dual relays. Then, the power switch in the speed control circuit remains off under the pull-down action of the gate, isolating the short-circuited common terminal from the high-current ground of the system. The positive and negative terminals of the motor, the normally closed contacts of the dual relays, the short-circuited common terminal, and the rotor coil inside the motor together form a low-impedance closed-loop path that does not rely on external power for continuous power supply. After this low-impedance closed-loop path is formed, the window motor no longer receives active driving energy and enters a dormant position holding state. Furthermore, when the window glass is subjected to its own weight or external pressure and the motor rotor is forced to rotate passively through the lifting mechanism, the rotor coil cuts the magnetic field formed by the stator permanent magnet, generating a reverse electromotive force between the positive and negative terminals of the motor. This reverse electromotive force is applied to the low-impedance closed-loop path and drives the induced short-circuit current to flow through the rotor coil. The induced short-circuit current generates an electromagnetic torque in the magnetic field of the stator permanent magnet that is opposite to the direction of the passive rotation of the rotor, i.e., an electromagnetic self-locking torque. The more obvious the passive rotation tendency of the motor rotor, the greater the generated reverse electromotive force and corresponding induced short-circuit current, and the stronger the electromagnetic self-locking torque, thereby suppressing the rotor from continuing to rotate and preventing the car window glass from moving to the fully open position through the lifting mechanism, thus achieving auxiliary position holding in the dormant state.
[0059] In summary, the technical solution of this application constructs a control architecture in which a main control module, a direction switching module, a speed control drive module, and a window motor module work together. The main control module reconstructs the polarity of the motor power supply through the direction switching module and uses the speed control drive module to output a drive signal with a gradually increasing duty cycle to reduce starting shock. During steady-state operation, the back electromotive force of the motor is collected during the drive signal cutoff gap and the actual speed is inverted. The drive duty cycle is corrected in a closed loop according to the deviation between the actual speed and the target speed, so that the motor output adapts to the load changes throughout the entire travel of the window. In the sleep state, the drive signal is removed, and the direction switching module forms a low-resistance closed loop at both ends of the motor, so that the back electromotive force generated when the motor rotates under external force forms a reverse resistance torque. Thus, under the conditions of reducing static power consumption and eliminating the need for an additional speed sensor, it simultaneously achieves smooth start-up, uniform speed operation, and auxiliary position holding.
[0060] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A circuit structure for controlling a car window motor using the back electromotive force of an electric motor, characterized in that, include: Main control module, direction switching module, speed control drive module and window motor module; The direction control output terminal of the main control module is electrically connected to the input terminal of the direction switching module to transmit low-voltage DC level control signals. The power output terminal of the direction switching module is electrically connected to the positive and negative input terminals of the window motor module, respectively, to transmit high current polarity power to the motor or to form a short-circuit loop under specific conditions. The speed control output terminal of the main control module is electrically connected to the input terminal of the speed drive module to transmit PWM square wave signals. The power end of the speed control drive module is coupled in series with the main circuit loop consisting of the power supply, the direction switching module, and the window motor module, in order to control the physical on / off of the current in the entire circuit.
2. The circuit structure for controlling a car window motor using the back electromotive force of a motor according to claim 1, characterized in that, The main control module includes a main controller, a first driving transistor, a second driving transistor, a first freewheeling diode, a second freewheeling diode, a first bidirectional relay, a second bidirectional relay, a third speed-regulating MOSFET, and a window motor.
3. The circuit structure for controlling the car window motor using the back electromotive force of the motor according to claim 2, characterized in that, The first direction control output terminal of the main controller is connected to the base of the first driving transistor; the emitter of the first driving transistor is connected to system ground, and its collector is connected in series to one end of the coil of the first bidirectional relay, the other end of which is connected to the positive power supply; the first freewheeling diode is connected in reverse parallel across the coil of the first bidirectional relay; the second direction control output terminal of the main controller is connected to the base of the second driving transistor; the emitter of the second driving transistor is connected to system ground, and its collector is connected to one end of the coil of the second bidirectional relay, the other end of which is connected to the positive power supply; the second freewheeling diode is connected in reverse parallel across the coil of the second bidirectional relay. In the main power supply circuit, the moving contact of the first bidirectional relay is connected to the positive terminal of the window motor, and the moving contact of the second bidirectional relay is connected to the negative terminal of the window motor. The normally closed contacts of the first and second bidirectional relays are directly electrically connected to each other, forming a common short-circuit node. The normally open contacts of the first and second bidirectional relays are connected in parallel to the positive terminal of the power supply. The PWM output terminal of the main controller is connected to the gate of the third speed-regulating MOSFET. The drain of the third speed-regulating MOSFET is connected to the aforementioned common short-circuit node, and its source is connected to system ground.
4. The circuit structure for controlling a car window motor using the back electromotive force of a motor according to claim 1, characterized in that, The direction switching module includes a first bidirectional relay, a second bidirectional relay, a first driving transistor, a second driving transistor, a first current-limiting resistor, a second current-limiting resistor, a first freewheeling diode, and a second freewheeling diode.
5. The circuit structure for controlling a car window motor using the back electromotive force of a motor according to claim 4, characterized in that, The first direction control terminal of the main control module is connected to the base of the first driving transistor after being connected in series with the first current-limiting resistor; the emitter of the first driving transistor is connected to the system ground, and its collector is electrically connected to one end of the coil of the first bidirectional relay; the second direction control terminal of the main control module is connected to the base of the second driving transistor after being connected in series with the second current-limiting resistor; the emitter of the second driving transistor is connected to the system ground, and its collector is electrically connected to one end of the coil of the second bidirectional relay. In this configuration, the other ends of the coils of the first bidirectional relay and the second bidirectional relay are connected to the positive terminal of the power supply; the cathode of the first freewheeling diode is connected to VCC, and the anode is connected to the collector of the first driving transistor; the cathode of the second freewheeling diode is connected to VCC, and the anode is connected to the collector of the second driving transistor. The moving contact of the first bidirectional relay is connected to the positive terminal of the window motor, and the moving contact of the second bidirectional relay is connected to the negative terminal of the window motor. The normally open contacts of the first and second bidirectional relays are connected in parallel to the positive terminal of the power supply. The normally closed contacts of the two relays are connected in parallel to a common short-circuit terminal.
6. The circuit structure for controlling a car window motor using the back electromotive force of a motor according to claim 1, characterized in that, The speed control drive module includes a third speed control MOSFET, a third gate current limiting resistor, and a fourth gate pull-down resistor.
7. The circuit structure for controlling a car window motor using the back electromotive force of a motor according to claim 6, characterized in that, The PWM signal output terminal of the main control module is connected to one end of the third gate current limiting resistor; the other end of the third gate current limiting resistor is connected in series to the control terminal of the third speed regulating MOSFET; the fourth gate pull-down resistor is connected in parallel between the gate of the third speed regulating MOSFET and the system ground; the input terminal of the third speed regulating MOSFET is electrically coupled to the short-circuit common terminal of the bidirectional relay in the direction switching module; and the output terminal of the third speed regulating MOSFET is directly connected to the system high current ground.
8. A method for controlling a vehicle window motor using the back electromotive force of an electric motor, characterized in that, include: Step 1: Based on the window movement direction command, perform polarity switching control on the dual relay contact network in the motor movement direction control circuit, so that the moving contact of the corresponding relay is energized from the normally closed position to the normally open position to connect to the power supply and establish the motor polarity conduction path. Step 2: Under the power supply framework of the motor polarity conduction path, the power switching transistor in the speed control circuit is driven by high-frequency conduction and cutoff switching through the output pulse width modulation signal to generate a soft-start drive pulse current with smooth equivalent voltage rise. Step 3: Based on the target rotational speed of the window, the pulse width modulation duty cycle of the soft start drive pulse current is constant-matched and locked to output a steady-state drive current with constant energy. Step 4: Respond to the window sleep trigger indicator, remove the steady-state drive current and reset the dual relays to the normally closed contact state due to loss of excitation. This physically short-circuits the positive and negative terminals of the motor through the normally closed contacts of the dual relays to form a low-impedance closed-loop path. When the window is forced to rotate passively by external force, the rotor coil cuts the magnetic field of the stator permanent magnet to generate a reverse electromotive force. This reverse electromotive force, based on Lenz's law, excites an induced short-circuit current in the opposite direction in the low-impedance closed-loop path to generate an electromagnetic self-locking torque that counteracts the external force.
9. The method for controlling a car window motor using the back electromotive force of an electric motor according to claim 8, characterized in that, Step three includes: Sub-step 3.1: Within the pulse width modulation cutoff phase window of the soft start drive pulse current, perform analog-to-digital sampling on the residual open-circuit voltage after the freewheeling current between the positive and negative terminals of the motor decays to zero to obtain the pulse gap terminal voltage sampling value. Sub-step 3.2: Based on the linear proportional relationship between the back electromotive force and the speed, represented by the motor voltage constant, the speed inversion solution is performed on the pulse gap terminal voltage sampling value to obtain the real-time motor speed solution value; Sub-step 3.3: Perform a difference calculation between the target rotational speed of the window and the calculated real-time rotational speed of the motor, and perform a closed-loop correction on the difference result based on the proportional-integral algorithm to obtain the duty cycle increment correction amount; Sub-step 3.4: The duty cycle increment correction is superimposed on the base duty cycle of the soft-start drive pulse current at the end of the soft start, and the power switch in the speed control circuit is driven to switch at high frequency with the superimposed real-time duty cycle to generate a steady-state drive current.
