Hall deviation correction circuit, driver, motor and correction method
The Hall signal delay output is realized through the capacitance module and control module of the Hall deviation correction circuit, which solves the motor control problem caused by the installation deviation of the Hall sensor, simplifies the hardware circuit, and reduces the system cost and area.
Patent Information
- Application Number
- CN202410221212.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, the installation deviation of the Hall sensor of the permanent magnet synchronous motor leads to the deviation of the rotor position angle estimation, the fluctuation of the average rotor speed and the increase of the motor noise, which affects the control effect, and the compensation method requires complex algorithms and increases the system cost.
A Hall deviation correction circuit is used to realize the delayed output of the Hall signal through the charge and discharge control of the capacitor module and the control module, simplifying the hardware circuit and reducing cost and area.
It achieves effective correction and compensation of Hall deviation, simplifies the adjustment process, reduces system cost and area, and avoids the need to use microcontrollers such as MCUs and develop software algorithms.
Smart Images

Figure CN118763928A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of motor drive, and in particular to a Hall deviation correction circuit, a driver, a motor and a correction method. Background Art
[0002] Permanent magnet synchronous motors have the advantages of simple structure, small size, light weight, low loss, high efficiency and high power factor. They are widely used in electric vehicles, household appliances, industrial control and other industries.
[0003] Hall-type motor position sensors (hereinafter referred to as "Hall sensors") are usually installed in motors to feedback the position information of the motor rotor. For example, permanent magnet synchronous motors use three switch-type Hall sensors as rotor position sensors in many application fields to obtain the six absolute positions of the rotor. The three Hall sensors need to be evenly distributed at a certain angle when installed. There are two angle distribution forms: 60° and 120°. However, due to the uneven installation process, the Hall sensors of permanent magnet synchronous motors on the market generally have installation deviations, which directly affect the accuracy of angle estimation in vector control, and will cause rotor position angle estimation deviations, rotor average speed fluctuations, increased motor noise, and even current distortion, affecting the control effect.
[0004] Currently, most microcontrollers such as MCU are used in conjunction with software programs to compensate for the mechanical deviation of the Hall sensor installation. This not only requires the development of complex algorithm programs, but the use of microcontrollers such as MCU will also increase the cost and area of the system.
[0005] Therefore, it is necessary to provide an improved technical solution to overcome the above technical problems existing in the prior art. Summary of the invention
[0006] In order to solve the above technical problems, the present application provides a Hall deviation correction circuit, driver, motor and correction method, which realizes compensation correction of Hall deviation (such as angle deviation) through a simple hardware circuit with low cost and small area.
[0007] According to a first aspect of the present application, a Hall deviation correction circuit is provided for a motor, wherein the Hall deviation correction circuit comprises:
[0008] Capacitor module, which controls charging / discharging according to the transition edge of the Hall signal;
[0009] A control module, which controls the charge / discharge time of the capacitor module according to the voltage signal generated by the capacitor module and the transition edge of the Hall signal, and delays the output of the transition edge of the Hall signal;
[0010] Wherein, the delayed output time of the transition edge of the Hall signal is defined by the charge / discharge time of the capacitor module.
[0011] Optionally, the control module is configured to:
[0012] When the transition edge of the Hall signal is detected, the capacitor module is controlled to charge / discharge, and when the charging / discharging time of the capacitor module reaches a first time, a delayed Hall edge signal is output.
[0013] Optionally, when it is detected that the first voltage generated by the capacitor module reaches a third reference voltage, it indicates that the motor is operating abnormally, and the motor is controlled to stop.
[0014] In some embodiments, the capacitor module includes a first capacitor and a second capacitor;
[0015] The control module controls the first capacitor and the second capacitor to discharge when the transition edge of the Hall signal is detected, and controls the first capacitor to charge when the first voltage generated by the first capacitor drops to a first reference voltage;
[0016] When the second voltage generated by the second capacitor drops to the second reference voltage, a delayed Hall edge signal is output, and the second voltage is controlled to follow the first voltage. The first capacitor and the second capacitor are proportional in size, and the delayed output time of the transition edge of the Hall signal is adjusted by adjusting the proportional coefficient between the first capacitor and the second capacitor.
[0017] Furthermore, the capacitor module includes:
[0018] A first transistor, used to control the on-off of a discharge path of the first capacitor;
[0019] A first constant current source and a second transistor are connected in series to a charging path of the first capacitor, the second transistor is used to control the on and off of the charging path of the first capacitor, and the first constant current source is used to provide a charging current for the first capacitor when the second transistor is turned on;
[0020] A second constant current source and a third transistor are connected in series to a discharge path of the second capacitor, the third transistor is used to control the on and off of the discharge path of the second capacitor, and the second constant current source is used to provide a discharge current for the second capacitor when the third transistor is turned on;
[0021] A voltage follower and a fourth transistor, wherein the fourth transistor is used to control the on-off of a charging path between the second capacitor and the voltage follower, and the voltage follower enables the second voltage to follow the first voltage when the fourth transistor is turned on.
[0022] Furthermore, the control module includes:
[0023] a first control circuit, configured to control the connection of a charging path of the first capacitor and disconnection of a discharging path of the first capacitor when detecting that the first voltage drops to the first reference voltage, and control the connection of the discharging path of the first capacitor and disconnection of the charging path of the first capacitor when detecting a transition edge of the Hall signal;
[0024] The second control circuit is used to control the connection of the charging path of the second capacitor and disconnection of the discharge path of the second capacitor when it is detected that the second voltage drops to the second reference voltage, and output the delayed Hall edge signal as an enable signal for driving the bridge arm switching, and when the transition edge of the Hall signal is detected, control the connection of the discharge path of the second capacitor and disconnection of the charging path of the second capacitor, wherein the enable signal is used to trigger the motor to perform phase switching.
[0025] Furthermore, the first control circuit is also used to output a stall signal when the first voltage reaches the third reference voltage, so as to control the disconnection of the charging path of the first capacitor, wherein the stall signal is used to control the motor to stop.
[0026] In some other embodiments, the capacitor module includes a third capacitor, and the control module controls the third capacitor to discharge when the transition edge of the Hall signal is detected;
[0027] When the third voltage generated by the third capacitor drops to the fourth reference voltage, a delayed Hall edge signal is output, and the charging of the third capacitor is controlled. The charging current and the discharging current of the third capacitor are proportional, and the delayed output time of the transition edge of the Hall signal is adjusted by adjusting the proportionality coefficient between the charging current and the discharging current of the third capacitor.
[0028] Furthermore, the capacitor module further includes:
[0029] A first constant current source and a sixth transistor are connected in series to a charging path of the third capacitor, the sixth transistor is used to control the on and off of the charging path of the third capacitor, and the first constant current source is used to provide a charging current for the third capacitor when the sixth transistor is turned on;
[0030] The second constant current source and the fifth transistor are connected in series to the discharge path of the third capacitor. The fifth transistor is used to control the on-off of the discharge path of the third capacitor. The second constant current source is used to provide a discharge current for the third capacitor when the fifth transistor is turned on.
[0031] Furthermore, when the control module detects the transition edge of the Hall signal, it controls the discharge path of the third capacitor to be connected and the charging path of the third capacitor to be disconnected; when it detects that the third voltage generated by the third capacitor drops to the fourth reference voltage, it controls the charging path of the third capacitor to be connected and the discharge path of the third capacitor to be disconnected, and outputs the delayed Hall edge signal as an enable signal for switching the driving bridge arm, wherein the switching enable signal is used to trigger the motor to perform phase switching.
[0032] According to a second aspect of the present application, a driver is provided for driving a motor to rotate, the driver comprising:
[0033] A Hall signal collector, used to detect the Hall signal according to the rotation of the motor;
[0034] The Hall deviation correction circuit as described in any embodiment of the present application is used to delay the output of the Hall signal as an enable signal for switching the driving bridge arm, so as to realize the correction of the working state of the motor;
[0035] A control circuit, used for generating a plurality of driving signals according to the enable signal;
[0036] The driving circuit is used to provide a driving current according to the plurality of driving signals to drive the motor to rotate.
[0037] According to a third aspect of the present application, a motor is provided, comprising:
[0038] Motor body;
[0039] The driver as described in any embodiment of the present application provides a driving current to drive the motor body to rotate.
[0040] According to a fourth aspect of the present application, a Hall deviation correction method is provided for a motor, the method comprising:
[0041] When the transition edge of the Hall signal appears, two timers are set to start timing;
[0042] When the next transition edge of the Hall signal appears, the current timing time of the first timer is used as the first threshold time and the timing is restarted;
[0043] The second threshold time is determined according to the first threshold time and the proportional coefficient. When the timing time of the second timer reaches the second threshold time, the transition edge of the Hall signal is delayed and output, and when the next transition edge of the Hall signal appears, the second timer restarts counting.
[0044] The proportionality coefficient represents the ratio of the second threshold time to the first threshold time, and the delayed output time of the transition edge of the Hall signal is adjusted by adjusting the proportionality coefficient.
[0045] In some embodiments, a capacitor module is provided, and the timing of the two timers is realized by charging / discharging the capacitor module. The timing time of the two timers is characterized by controlling the charging / discharging time of the capacitor module to realize the delayed output of the transition edge of the Hall signal.
[0046] Optionally, the capacitor module includes a first capacitor and a second capacitor;
[0047] When the transition edge of the Hall signal is detected, the first capacitor and the second capacitor are discharged, indicating that the first timer and the second timer start timing;
[0048] When the first voltage generated by the first capacitor drops to the first reference voltage, the first capacitor is charged, and when the next transition edge of the Hall signal appears, the first capacitor stops charging and starts discharging, indicating that the timing time of the first timer reaches the first threshold time and starts timing again;
[0049] When the second voltage generated by the second capacitor drops to the second reference voltage, it indicates that the timing time of the second timer reaches the second threshold time, a delayed Hall edge signal is output, and the second voltage is controlled to follow the first voltage;
[0050] The ratio of the second capacitance to the first capacitance represents the proportionality coefficient.
[0051] Optionally, the capacitor module includes a third capacitor.
[0052] When the transition edge of the Hall signal is detected, the third capacitor is discharged, indicating that the first timer and the second timer start timing;
[0053] When the third voltage generated by the third capacitor drops to the fourth reference voltage, it indicates that the timing time of the second timer reaches the second threshold time, a delayed Hall edge signal is output, and the charging of the third capacitor is controlled;
[0054] When the next transition edge of the Hall signal appears, the charging of the third capacitor stops and starts to discharge, indicating that the first timer starts to count again after reaching the first threshold time;
[0055] The ratio of the charging current to the discharging current of the third capacitor represents the proportionality coefficient.
[0056] In some other embodiments, two counters are respectively provided, and the count values of the two counters represent the timing values of the two timers;
[0057] When the transition edge of the Hall signal appears, the two counters start counting.
[0058] When the next transition edge of the Hall signal appears, the current count value of the first counter is used as the first count threshold and counting starts again;
[0059] When the count value of the second counter reaches the second count threshold, the transition edge of the Hall signal is delayed and output, and when the next transition edge of the Hall signal appears, the second counter restarts counting;
[0060] The ratio of the first counting threshold value to the second counting threshold value represents the proportionality factor.
[0061] The beneficial effects of this application include at least:
[0062] The embodiment of the present application sets up a capacitor module and a control module, and configures the control module to control the charging and discharging of the capacitor module according to the Hall signal, so that the delayed output of the Hall signal can be achieved based on the charging and discharging switching of the capacitor module. Therefore, it is only necessary to reasonably configure the delayed output time of the Hall signal to achieve the correction and compensation of the Hall deviation of the motor. Compared with the traditional solution, the present application can achieve the purpose of correcting the Hall deviation with a simple hardware circuit, without the need to set up a microcontroller such as an MCU and develop a software algorithm, and the adjustment process is simple, which greatly reduces the cost and area of the solution.
[0063] It should be noted that the above general description and the following detailed description are merely exemplary and explanatory and do not limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1(a) to Figure 1(c) Schematic diagrams showing various corresponding relationships between the Hall signal of the motor and the rotor angle;
[0065] Figure 2 A structural block diagram of a motor provided according to an embodiment of the present invention is shown;
[0066] Figure 3 A schematic block diagram of a Hall deviation correction circuit according to a first embodiment of the present invention is shown;
[0067] Figure 4 A circuit schematic diagram of a Hall deviation correction circuit provided according to a first embodiment of the present invention is shown;
[0068] Figure 5 Another circuit schematic diagram of the Hall deviation correction circuit provided according to the first embodiment of the present invention is shown;
[0069] Figure 6 Another circuit schematic diagram of the Hall deviation correction circuit provided according to the first embodiment of the present invention is shown;
[0070] Figure 7 A schematic diagram showing signal waveforms in a Hall deviation correction circuit provided according to a first embodiment of the present invention is shown;
[0071] Figure 8 A schematic block diagram of a Hall deviation correction circuit according to a second embodiment of the present invention is shown;
[0072] Fig. 9 A circuit schematic diagram of a Hall deviation correction circuit according to a second embodiment of the present invention is shown;
[0073] Fig.10 A schematic diagram showing signal waveforms in a Hall deviation correction circuit according to a second embodiment of the present invention is shown;
[0074] Fig.11 A schematic flow chart of a Hall deviation correction method provided according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0075] In order to facilitate the understanding of the present application, the present application will be described more comprehensively below with reference to the relevant drawings. The preferred embodiments of the present application are given in the drawings. However, the present application can be implemented in different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive.
[0076] In the field of motor control, the motor can only rotate if the coils in the motor are alternately powered in sequence in a specific way. This behavior of alternating power supply to the coils is called commutation. That is, in the square wave current control mode, when the motor rotor position turns to a certain fixed position, the Hall signal will flip. At this time, it is necessary to switch the working state of the driving bridge arm to ensure that the motor continues to rotate in the original direction. For brushless DC motors, accurate commutation must be achieved based on the actual position of the rotor. The Hall sensor mode is a common method to obtain the motor rotor position information. Among them, the Hall position sensor is evenly arranged on the integrated circuit board at the end of the motor according to a predetermined angle interval (such as 120° electrical angle), and its magnetic poles mostly use magnetic pole pieces of the same order as the motor rotor. In theory, such an arrangement will make the Hall signal jump edge coincide with the zero point of the motor's line back electromotive force. At this time, accurate commutation can be achieved at the Hall signal jump edge.
[0077] Taking a three-phase motor as an example, the Hall sensor generates a 0 or 1 logic level according to the polarity of the corresponding regional magnetic pole piece. When the motor rotates clockwise, the order of the three-phase Hall signal {U, V, W} is 5, 4, 6, 2, 3, 1; when the motor rotates counterclockwise, the order of the three-phase Hall signal {U, V, W} is 1, 3, 2, 6, 4, 5. The corresponding relationship between the three-phase Hall signal {U, V, W} and the rotor angle during clockwise rotation is shown in Figure 1 (a), 5->30°, 4->90°, 6->150°, 2->210°, 3->270°, 1->330°.
[0078] However, the Hall deviation caused by the installation will cause the Hall signal jump edge to advance or lag relative to the zero crossing point of the motor's line back electromotive force. As shown in Figure 1(b), the Hall signal is advanced, and the jump edge of the three-phase Hall signal is before the ideal commutation time, such as 5->28°, 4->87°, 6->149°, 2->208°, 3->268°, 1->327°. Figure 1(c) is the Hall signal lag, and the jump edge of the three-phase Hall signal is after the ideal commutation time, such as 5->33°, 4->94°, 6->153°, 2->215°, 3->272°, 1->331°. Advance commutation or delay commutation will cause the electromagnetic torque of the motor to fluctuate, making the waveforms on both sides of the motor terminal voltage asymmetric and the motor running unsteadily. Therefore, the Hall deviation needs to be calibrated for commutation.
[0079] In response to the above problems, the embodiment of the present application improves the driver structure of the existing motor. In the improved solution, the purpose of correcting the Hall deviation can be achieved with a simple hardware circuit. There is no need to set up a microcontroller such as MCU in the prior art and develop software algorithms. The adjustment process is simple, which greatly reduces the cost and area of the solution.
[0080] It should be noted that this article only uses the application scenario of installing three Hall sensors on a three-phase motor as an example to illustrate the technical solution of the embodiment of the present application, but it can be understood that the technical solution of the present application is not limited to this. For motors of other phases and / or application scenarios with other numbers of Hall sensors installed, the technical solution of the present application is also applicable.
[0081] Specifically, the motor disclosed in the embodiments of the present application is as follows: Figure 2 As shown, the motor includes a motor body 10 and a driver.
[0082] exist Figure 2In the example shown, a plurality of Hall sensors 11 are mounted on the motor body 10, and the plurality of Hall sensors 11 are used to output a plurality of phase signals according to different positions of the rotor in the motor body 10. The driver receives the plurality of phase signals and determines the rotor position of the motor according to the plurality of phase signals, thereby providing a driving current to the corresponding input terminal of the motor body to drive the motor body to rotate.
[0083] The driver further includes: a Hall signal collector 20, a Hall deviation correction circuit 30, a control circuit 40 and a drive circuit 50. Among them, the Hall signal collector 20 is coupled to a plurality of Hall sensors 11 to detect the Hall signal according to the rotation of the motor; the Hall deviation correction circuit 30 is coupled to the Hall signal collector 20 to delay the output of the Hall signal output by the Hall signal collector 20 as an enable signal BAS_EN for switching the drive bridge arm, thereby correcting the Hall deviation of the motor and finally correcting the working state of the motor; the control circuit 40 is coupled to the Hall deviation correction circuit 30 to generate a plurality of drive signals G1~Gn according to the enable signal BAS_EN output by the Hall deviation correction circuit 30, wherein n is equal to 2N and N is the number of motor phases; the drive circuit 40 has N drive bridge arms, which are used to provide a drive voltage (V U 、V V 、V W ) and / or driving current to drive the rotor in the motor body 10 to rotate.
[0084] In the embodiment of the present application, the Hall signal collector 20, the control circuit 40 and the drive circuit 50 can be implemented using existing related technologies, so their respective specific structures can be understood by referring to the existing technologies and will not be described in detail herein.
[0085] In the embodiment of the present application, the Hall deviation correction circuit 30 provided in the driver is a hardware circuit, such as Figure 3 and Figure 8 As shown, it includes a capacitor module 31 and a control module 32, wherein the capacitor module 31 is used to control the charge / discharge according to the transition edge of the Hall signal; the control module 32 is coupled to the capacitor module 31, and is used to receive the Hall signal, and according to the voltage signal generated by the capacitor module 31 and the transition edge (including the rising edge or the falling edge) of the Hall signal, control the charge / discharge time of the capacitor module 31, and delay the output of the transition edge of the Hall signal. Among them, the delayed output time of the transition edge of the Hall signal is defined by the charge / discharge time of the capacitor module. Among them, the charge / discharge time of the capacitor module 31 is defined by the following parameters: the capacitance of the capacitor in the capacitor module 31, the size of the charge / discharge current, and the size of the preset reference voltage.
[0086] In specific implementation, in some embodiments, the control module 32 is configured to: control the capacitor module 31 to switch to the charging state when it is detected that the voltage on the capacitor module 31 is less than the preset reference voltage, control the capacitor module 31 to switch to the discharging state at the transition edge of the Hall signal, and output the delayed Hall edge signal when the discharge time of the capacitor module 31 reaches the first time, that is, in these embodiments, the delayed output time of the transition edge of the Hall signal is defined by the discharge time of the capacitor module 31. In other embodiments, the control module 32 is configured to: control the capacitor module 31 to switch to the discharging state when it is detected that the voltage on the capacitor module 31 is greater than the preset reference voltage, control the capacitor module 31 to switch to the charging state at the transition edge of the Hall signal, and output the delayed Hall edge signal when the charging time of the capacitor module 31 reaches the first time, that is, in these embodiments, the delayed output time of the transition edge of the Hall signal is defined by the charging time of the capacitor module 31.
[0087] In some optional examples, the control module 32 is further configured to indicate that the motor is operating abnormally and control the motor to stop when it is detected that the voltage generated by the capacitor module 31 reaches a third reference voltage.
[0088] The structure of the Hall deviation correction circuit 30 in the present application is described below in conjunction with specific embodiments. The following embodiments are only descriptions of the scheme of defining the delayed output time of the transition edge of the Hall signal by the discharge time of the capacitor module 31, but it can be understood that the scheme of defining the delayed output time of the transition edge of the Hall signal by the charging time of the capacitor module 31 can be obtained after a simple transformation (such as interchange of charge / discharge control, etc.).
[0089] Embodiment 1
[0090] The Hall deviation correction circuit 30 provided in this embodiment is as follows Figure 3 , Figure 4 , Figure 5 , Figure 6 Any of the ones shown.
[0091] exist Figure 3 In the example shown, the capacitor module 31 includes a first capacitor C1 and a second capacitor C2. The control module 32, for example, controls the first capacitor C1 and the second capacitor C2 to discharge when a transition edge of the Hall signal is detected, and controls the first capacitor C1 to charge when the first voltage V1 generated by the first capacitor C1 drops to the first reference voltage Vref1, and outputs a delayed Hall edge signal when the second voltage V2 generated by the second capacitor C2 drops to the second reference voltage Vref2, and controls the second voltage V2 on the second capacitor C2 to follow the first voltage V1 on the first capacitor C1.
[0092] In this embodiment, the first capacitor C1 and the second capacitor C2 are proportional in size, and the proportional coefficient between the first capacitor C1 and the second capacitor C2 is set to a first coefficient (i.e., C1 / C2). The delayed output time of the Hall edge signal is adjusted by adjusting the size of the first coefficient, thereby correcting the angle of the motor rotor deviation. The smaller the first coefficient, the longer the delayed output time.
[0093] The capacitor module 31 further includes a first transistor Q1 , a first constant current source I1 and a second transistor Q2 connected to the first capacitor C1 , a second constant current source I2 , a third transistor Q3 , a fourth transistor Q4 and a voltage follower 33 connected to the second capacitor C2 .
[0094] Wherein, the first transistor Q1 is coupled between the first end of the first capacitor C1 and the reference ground, the second end of the first capacitor C1 is coupled to the reference ground, the control end of the first transistor Q1 receives the first control signal Vgs1, and the first transistor Q1 is used to control the on-off of the discharge path of the first capacitor C1 according to the first control signal Vgs1; the first constant current source I1 and the second transistor Q2 are coupled in series to the charging path of the first capacitor C1, the first constant current source I1 is used to provide a charging current for the first capacitor C1 when the second transistor Q2 is turned on, and the control end of the second transistor Q2 receives the second control signal Vgs2, and is used to control the on-off of the charging path of the first capacitor C1 according to the second control signal Vgs2;
[0095] The third transistor Q3 and the second constant current source I2 are coupled in series to the discharge path of the second capacitor C2, and the second constant current source I2 is used to provide a discharge current for the second capacitor C2 when the third transistor Q3 is turned on. The control end of the third transistor Q3 receives the third control signal Vgs3, which is used to control the on-off of the discharge path of the second capacitor C2 according to the third control signal Vgs3; the voltage follower 33 is configured as a voltage follower structure, and is coupled in series with the fourth transistor Q4 between the first end of the first capacitor C1 and the first end of the second capacitor C2, and is used to provide a charging signal for the second capacitor C2 according to the first voltage V1 when the fourth transistor Q4 is turned on. The control end of the fourth transistor Q4 receives the fourth control signal Vgs4, which is used to control the on-off of the charging path of the second capacitor C2 according to the fourth control signal Vgs4.
[0096] The control module 32 includes a first control circuit 321 and a second control circuit 322, wherein the first control circuit 321 receives a Hall signal and a first reference voltage Vref1, and is used to provide a first control signal Vgs1 and a second control signal Vgs2 to the control ends of the first transistor Q1 and the second transistor Q2 respectively according to the Hall signal, the first reference voltage Vref1 and the first voltage V1 on the first capacitor C1; the second control circuit 32 receives a Hall signal and a second reference voltage Vref2, and is used to provide a third control signal Vgs3 and a fourth control signal Vgs4 to the control ends of the third transistor Q3 and the fourth transistor Q4 respectively according to the Hall signal, the second reference voltage Vref2 and the second voltage V2 on the second capacitor.
[0097] Optionally, the first transistor Q1, the second transistor Q2, the third transistor Q3 and the fourth transistor Q4 shown in this embodiment are NMOS transistors, but other implementations are also possible. For example, the first transistor Q1, the second transistor Q2, the third transistor Q3 and the fourth transistor Q4 can also be selected as PMOS transistors, CMOS transistors, bipolar junction transistors and other types of transistors that can be used as switching tubes.
[0098] In specific implementation, the first control circuit 321 is configured as follows: when it is detected that the first voltage V1 drops to the first reference voltage Vref1, it outputs a valid second control signal Vgs2 and an invalid first control signal Vgs1 to control the charging path connected to the first capacitor C1 and disconnect the discharge path of the first capacitor C1, thereby charging the first capacitor C1 using the first constant current source I1; when the transition edge of the Hall signal is detected, it outputs a valid first control signal Vgs1 and an invalid second control signal Vgs2 to control the discharge path connected to the first capacitor C1 and disconnect the charging path of the first capacitor C1, thereby discharging the first capacitor C1.
[0099] The second control circuit 322 is configured as follows: when it is detected that the second voltage V2 drops to the second reference voltage Vref2, it outputs a valid fourth control signal Vgs4 and an invalid third control signal Vgs3 to control the charging path connected to the second capacitor C2 and disconnect the discharge path of the second capacitor C2, so as to charge the second capacitor C2 following the first voltage V1; when it is detected that the transition edge of the Hall signal, it outputs a valid third control signal Vgs3 and an invalid fourth control signal Vgs4 to control the discharge path connected to the second capacitor C2 and disconnect the charging path of the second capacitor C2, so as to discharge the second capacitor C2 using the second constant current source I2, and when the discharge is such that the second voltage V2 is less than the second reference voltage Vref2, it outputs a delayed Hall edge signal as an enable signal BAS_EN for driving the bridge arm switching, so as to realize the delayed output of the Hall signal, wherein the enable signal BAS_EN is used to realize the same function as the Hall signal, i.e., triggering the motor to switch phases.
[0100] Optionally, in Figure 4 In the example shown, the first control circuit 321 includes: a first comparator 41, a first trigger 42, and a second trigger 43. The positive input terminal of the first comparator 41 receives the first reference voltage Vref1, the negative input terminal of the first comparator 41 receives the first voltage V1, and the output terminal of the first comparator 41 outputs the first trigger signal ctr1; the first input terminal of the first trigger 42 is coupled to the output terminal of the first comparator 41 to receive the first trigger signal ctr1, the second input terminal of the first trigger 42 receives the Hall signal, the output terminal of the first trigger 42 is coupled to the control terminal of the first transistor Q1, and the first trigger 42 is used to output the invalid first control signal Vgs1 to turn off the first transistor Q1 under the triggering of the rising edge of the first trigger signal ctr1; on the rising edge of the Hall signal The first trigger 43 outputs a valid first control signal Vgs1 to turn on the first transistor Q1 when triggered by the rising edge or falling edge of the Hall signal; the first input terminal of the second trigger 43 receives the Hall signal, the second input terminal of the second trigger 43 is coupled to the output terminal of the first comparator 41 to receive the first trigger signal ctr1, the output terminal of the second trigger 43 is coupled to the control terminal of the second transistor Q2, and the second trigger 43 is used to output an invalid second control signal Vgs2 to turn off the second transistor Q2 when triggered by the rising edge or falling edge of the Hall signal, or output a valid second control signal Vgs2 to turn on the second transistor Q2 when triggered by the rising edge of the first trigger signal ctr1.
[0101] Exemplarily, the first trigger 42 and the second trigger 43 are, for example, RS triggers or a trigger group composed of a plurality of RS triggers, and are specifically capable of realizing the corresponding functions of the first trigger 42 and the second trigger 43 described in the text of this document. Taking the RS trigger as an example, the first end of the first trigger 42 corresponds to the reset end, the second end of the first trigger 42 corresponds to the set end, and the output end of the first trigger 42 is a positive logic output end, and the second trigger 43 is the same.
[0102] The second control circuit 322 includes: a second comparator 44, a third trigger 45 and a fourth trigger 46. The positive input terminal of the second comparator 44 receives the second reference voltage Vref2, the negative input terminal of the second comparator 44 receives the second voltage V2, and the output terminal of the second comparator 44 outputs the second trigger signal ctr2; the first input terminal of the third trigger 45 is coupled to the output terminal of the second comparator 44 to receive the second trigger signal ctr2, the second input terminal of the third trigger 45 receives the Hall signal, the output terminal of the third trigger 45 is coupled to the control terminal of the third transistor Q3, and the third trigger 45 is used to output the invalid third control signal Vgs3 to turn off the third transistor Q3 under the triggering of the rising edge of the second trigger signal ctr2; at the rising edge of the Hall signal The fourth trigger 46 outputs a valid third control signal Vgs3 to turn on the third transistor Q3 under the triggering of the rising edge or the falling edge; the first input end of the fourth trigger 46 receives the Hall signal, the second input end of the fourth trigger 46 is coupled to the output end of the second comparator 44 to receive the second trigger signal ctr2, and the output end of the fourth trigger 46 is coupled to the control end of the fourth transistor Q4. The fourth trigger 46 is used to output an invalid fourth control signal Vgs4 to turn off the fourth transistor Q4 under the triggering of the rising edge or the falling edge of the Hall signal, or output a valid fourth control signal Vgs4 to turn on the fourth transistor Q4 under the triggering of the rising edge of the second trigger signal ctr2. Exemplarily, the third trigger 45 and the fourth trigger 46 are, for example, RS triggers or a trigger group composed of multiple RS triggers, specifically based on the corresponding functions of the third trigger 45 and the fourth trigger 46 described in the text of this article. Taking the RS trigger as an example, the first end of the third trigger 45 corresponds to the reset end, the second end of the third trigger 45 corresponds to the set end, and the output end of the third trigger 45 is a positive logic output end, and the fourth trigger 46 is the same.
[0103] In some preferred examples, such as Figure 3 and Figure 5 As shown, the first control circuit 321 also receives a third reference voltage Vref3, and is used to output a stall signal LR when the first voltage V1 reaches the third reference voltage Vref3, and adjust the second control signal Vgs2 to an invalid state to control the disconnection of the charging path of the first capacitor C1, wherein the stall signal LR is used to control the motor to stop.
[0104] Optionally, in Figure 5 In the example shown, Figure 4 Based on the example shown, the first control circuit 321 further includes: a third comparator 51 and an OR gate logic circuit 52. The positive input terminal of the third comparator 51 receives the first voltage V1, the negative input terminal of the third comparator 51 receives the third reference voltage Vref3, and the output terminal of the third comparator 51 outputs the third trigger signal ctr3; the first input terminal of the OR gate logic circuit 52 receives the Hall signal, the second input terminal of the OR gate logic circuit 52 is coupled to the output terminal of the third comparator 51 to receive the third trigger signal ctr3, and the output terminal of the OR gate logic circuit 52 is coupled to the first input terminal of the second trigger 42.
[0105] It can be understood that in this example, when the first capacitor C1 works in the charging mode, the first control circuit 321 can not only turn off the second transistor Q2 to control the first capacitor C1 to exit the charging mode under the trigger of the rising edge or falling edge of the Hall signal, but also compare the first voltage V1 and the third reference voltage Vref3, and output the stall signal LR when the first voltage V1 reaches the third reference voltage Vref3, and trigger the second transistor Q2 to be turned off to control the first capacitor C1 to exit the charging mode, wherein the stall signal LR is used to indicate that the motor has a stall fault. By setting the third reference voltage Vref3 and comparing it with the first voltage V1, a timely reminder can be given when the motor is stalled, which can improve the safety of the motor operation.
[0106] Optionally, in Figure 4 or Figure 5 Based on the examples shown, in some other examples, the structure of the second control circuit 322 can be adjusted so as to reduce the number of components required for the second control circuit 322 while achieving the same circuit function, thereby simplifying the circuit and reducing costs.
[0107] For example, with Figure 5 The example shown is compared to the Figure 6In the illustrated example, the second control circuit 322 includes a second comparator 41 and a fifth flip-flop 61 . Among them, the positive input terminal of the second comparator 41 receives the second reference voltage Vref2, the negative input terminal of the second comparator 41 receives the second voltage V2, and the output terminal of the second comparator 41 outputs the second trigger signal ctr2 and the enable signal BAS_EN; the first input terminal of the fifth trigger 61 is coupled to the output terminal of the second comparator 41 to receive the second trigger signal ctr2, the second input terminal of the fifth trigger 61 receives the Hall signal, the first output terminal of the fifth trigger 61 is coupled to the control terminal of the third transistor Q3, and the second output terminal of the fifth trigger 61 is coupled to the control terminal of the fourth transistor Q4. The fifth trigger 61 is used to output an invalid third control signal Vgs3 and a valid fourth control signal Vgs4 under the triggering of the rising edge of the second trigger signal ctr2 to turn off the third transistor Q3 and turn on the fourth transistor Q4, or output a valid third control signal Vgs3 and an invalid fourth control signal Vgs4 under the triggering of the rising edge or falling edge of the Hall signal to turn on the third transistor Q3 and turn off the fourth transistor Q4. Exemplarily, the fifth trigger 61 is, for example, an RS trigger or a trigger group composed of a plurality of RS triggers, and is mainly capable of realizing the corresponding functions of the fifth trigger 61 described in the text of this document. Taking the RS trigger as an example, the first end of the fifth trigger 61 corresponds to the reset end, the second end of the fifth trigger 61 corresponds to the set end, the first output end of the fifth trigger 61 is the positive logic output end, and the second output end of the fifth trigger 61 is the negative logic output end. Figure 5 Compared to the example shown, Figure 6 In the example shown, the number of flip-flops required to be used is reduced by utilizing the negative logic output terminal of the flip-flop or providing an inverter.
[0108] Combine the following Figure 7 The working principle of the Hall deviation correction circuit 30 shown in this embodiment is described as follows, taking the Hall deviation correction when the Hall signal is advanced as an example. It can be understood that the Hall deviation correction when the Hall signal is lagging is similar:
[0109] When the rising transition edge or the falling transition edge of any Hall signal (HA, HB, HC) occurs, the first control circuit 321 outputs a valid first control signal Vgs1 and an invalid second control signal Vgs2, and the second control circuit 322 outputs a valid third control signal Vgs3 and an invalid fourth control signal Vgs4, and controls the first transistor Q1 and the third transistor Q3 to be turned on, and the second transistor Q2 and the fourth transistor Q4 to be turned off. At this time, the first capacitor C1 and the second capacitor C2 are discharged at different discharge speeds, for example, the first capacitor C1 is discharged quickly, and the second capacitor C2 is discharged based on the discharge current provided by the second constant current source I2. Among them, when the first voltage V1 at both ends of the first capacitor C1 drops below the first reference voltage Vref1, the first comparator 41 outputs the rising edge of the first trigger signal ctr1, the first control circuit 321 outputs the invalid first control signal Vgs1 and the valid second control signal Vgs2, controls the first transistor Q1 to be turned off, and the second transistor Q2 to be turned on. At this time, the first constant current source I1 charges the first capacitor C1 through the second transistor Q2 until the next Hall signal jump edge (rising edge or falling edge) appears, and controls the second transistor Q2 to be turned off to stop charging; when the second voltage V2 at both ends of the second capacitor C2 is discharged through the second constant current source I2 and drops below the second reference voltage Vref2, the second comparator 41 outputs the rising edge of the second trigger signal ctr2, and the second control circuit 322 outputs the invalid third control signal Vgs1. s3 and the effective fourth control signal Vgs4, control the third transistor Q3 to turn off and the fourth transistor Q4 to turn on. At this time, the second capacitor C2 is charged by the output signal of the voltage follower through the fourth transistor Q4, and the second voltage V2 across the second capacitor C2 follows the voltage of the voltage V1 across the first capacitor C1, until the next Hall signal jump edge (rising edge or falling edge) appears, the fourth transistor Q4 is controlled to turn off and stop charging (based on the voltage follower, when the next Hall signal jump edge arrives, the voltage V1 across the first capacitor C1 and the second voltage V2 across the second capacitor C2 have the same voltage value, for example, both are Vref0), and the third transistor Q3 is turned on to discharge the second capacitor C2 based on the discharge current provided by the second constant current source I2, and the second voltage V2 across the second capacitor C2 begins to decrease. Among them, whenever the second voltage V2 across the second capacitor C2 is reduced to the second reference voltage Vref2, the second comparator 44 outputs a valid pulse signal as an enable signal BAS_EN, thereby realizing a fixed phase delay of the Hall signal. That is to say, the embodiment of the present application delays the output of the Hall signal as the enable signal BAS_EN, and uses the enable signal BAS_EN instead of the Hall signal to realize the switching control of the working state of the driving bridge arm, thereby achieving the compensation and correction effect on the installation position deviation angle of the Hall position sensor.
[0110] It can be understood that, since the Hall deviation correction circuit 30 disclosed in the embodiment of the present application can realize the delayed output of the Hall signal, and the delay time is limited by the discharge time required for the discharge process of the second voltage V2 at both ends of the second capacitor C2 from Vref0 to the second reference voltage Vref2 based on the discharge current provided by the second constant current source I2. Therefore, it is only necessary to reasonably set the capacitance of the first capacitor C1, the capacitance of the second capacitor C2, the first constant current source I1, the second constant current source I2, the first reference voltage Vref1 and the second reference voltage Vref2 in the circuit, so that the moment when the second voltage V2 at both ends of the second capacitor C2 is reduced to the second reference voltage Vref2 coincides with the theoretical commutation moment of the motor, so as to achieve compensation correction of the deviation angle of the installation position of the Hall position sensor. Among them, the theoretical commutation moment of the motor can be determined by detecting the zero crossing point of the line back electromotive force of the motor, and this can be used as the basis for selecting the circuit parameters.
[0111] refer to Figure 7 , assuming that the theoretical commutation moments of the motor in one rotation cycle are t12, t14, t16, t18, t110, t112, respectively, corresponding to 30°, 90°, 150°, 210°, 270° and 330° of the motor rotor angle, respectively. In practical applications, due to the Hall deviation caused by the installation, the jump edge of the Hall signal appears ahead of the zero crossing point of the line back electromotive force of the motor, that is, in one rotation cycle of the motor, the jump edge of the Hall signal (HA, HB, HC) appears at t11, t13, t15, t17, t19, t111, respectively, and the embodiment of the present application obtains the enable signal BAS_EN after phase delaying each jump edge of the Hall signal HA, HB, HC through the Hall deviation correction circuit 30, so that the working state of each phase driving bridge arm in the motor drive circuit can be perfectly switched at the theoretical commutation moment of the motor.
[0112] In some examples, when the first control circuit 321 also includes a third comparator 51 and an OR gate logic circuit 52, the first control circuit 321 will also output an invalid second control signal Vgs2 to turn off the second transistor Q2 when the first voltage V1 across the first capacitor C1 is charged to the third reference voltage Vref3, stop charging the first capacitor C1, and the third comparator 51 outputs a stall signal LR.
[0113] In this embodiment, the delayed output of the Hall signal is achieved by setting two capacitors C1 and C2 to cooperate with each other, which makes the control more flexible and has a high fault tolerance rate.
[0114] Embodiment 2
[0115] The Hall deviation correction circuit 30 provided in this embodiment is as follows Figure 8 , Fig. 9Any of the ones shown.
[0116] exist Figure 8 In the example shown, the capacitor module 31 includes a third capacitor C3. The control module 32 controls the third capacitor C3 to discharge when a transition edge of the Hall signal is detected. When the third voltage V3 generated by the third capacitor C3 drops to the fourth reference voltage Vref4, the delayed Hall edge signal is output and the third capacitor V3 is controlled to charge.
[0117] In this embodiment, the charging current and discharging current of the third capacitor C3 are proportional, and the proportional coefficient between the charging current and the discharging current is set as the second coefficient. The delayed output time of the Hall edge signal is adjusted by adjusting the size of the second coefficient, thereby correcting the angle of the motor rotor deviation. The smaller the ratio of the charging current to the discharging current (i.e., the second coefficient), the shorter the delayed output time.
[0118] In this embodiment, the capacitor module 31 further includes a fifth transistor Q5, a sixth transistor Q6, a first constant current source I1 and a second constant current source I2 connected to the third capacitor C3;
[0119] Among them, the second constant current source I2 and the fifth transistor Q5 are coupled in series in the discharge path of the third capacitor C3, and the second constant current source I2 is used to provide a discharge current for the third capacitor C3 when the fifth transistor Q5 is turned on, and the control end of the fifth transistor Q5 receives the fifth control signal Vgs5, which is used to control the on-off of the discharge path of the third capacitor C3 according to the fifth control signal Vgs5; the first constant current source I1 and the sixth transistor Q6 are coupled in series in the charging path of the third capacitor C3, and the first constant current source I1 is used to provide a charging current for the third capacitor C3 when the sixth transistor Q6 is turned on, and the control end of the sixth transistor Q6 receives the sixth control signal Vgs6, which is used to control the on-off of the charging path of the third capacitor C3 according to the sixth control signal Vgs6.
[0120] The control module 32 is used to receive the Hall signal and the fourth reference voltage Vref4, and provide a fifth control signal Vgs5 and a sixth control signal Vgs6 to the control terminals of the fifth transistor Q5 and the sixth transistor Q6 respectively according to the Hall signal, the fourth reference voltage Vref4 and the third voltage V3 on the third capacitor C3.
[0121] Optionally, the fifth transistor Q5 and the sixth transistor Q6 shown in this embodiment are NMOS transistors, but other implementations are also possible. For example, the fifth transistor Q5 and the sixth transistor Q6 can also be selected as PMOS transistors, CMOS transistors, bipolar junction transistors, and other types of transistors that can be used as switching tubes.
[0122] In specific implementation, the control module 32 is configured as follows: when it is detected that the third voltage V3 drops to the fourth reference voltage Vref4, an effective sixth control signal Vgs6 and an invalid fifth control signal Vgs5 are output to control the charging path of the third capacitor C3 and disconnect the discharge path of the third capacitor C3, thereby charging the third capacitor C3 using the first constant current source I1; when the transition edge of the Hall signal is detected, an effective fifth control signal Vgs5 and an invalid sixth control signal Vgs6 are output to control the discharge path of the third capacitor C3 and disconnect the charging path of the third capacitor C3, thereby discharging the third capacitor C3 using the second constant current source I2, and when the third voltage V3 is discharged to be less than the fourth reference voltage Vref4, a delayed Hall edge signal is output as an enable signal BAS_EN for driving the bridge arm switching, thereby realizing delayed output of the Hall signal, wherein the enable signal BAS_EN is used to realize the same function as the Hall signal, i.e., triggering the motor to switch phases.
[0123] Optionally, in Fig. 9 In the example shown, the control module 32 includes: a fourth comparator 91, a sixth trigger 92 and a seventh trigger 93. The positive input terminal of the fourth comparator 91 receives the fourth reference voltage Vref4, the negative input terminal of the fourth comparator 91 receives the third voltage V3, and the output terminal of the fourth comparator 91 outputs a fourth trigger signal ctr4; the first input terminal of the sixth trigger 92 is coupled to the output terminal of the fourth comparator 91 to receive the fourth trigger signal ctr4, the second input terminal of the sixth trigger 92 receives the Hall signal, the output terminal of the sixth trigger 92 is coupled to the control terminal of the fifth transistor Q5, and the sixth trigger 92 is used to output the invalid fifth control signal Vgs5 to turn off the fifth transistor Q5 under the triggering of the rising edge of the fourth trigger signal ctr4, or output the invalid fifth control signal Vgs5 to turn off the fifth transistor Q5 under the triggering of the rising edge of the Hall signal A valid fifth control signal Vgs5 is output when triggered by a rising edge or a falling edge to turn on the fifth transistor Q5; the first input terminal of the seventh trigger 93 receives the Hall signal, the second input terminal of the seventh trigger 93 is coupled to the output terminal of the fourth comparator 91 to receive the fourth trigger signal ctr4, the output terminal of the seventh trigger 93 is coupled to the control terminal of the sixth transistor Q6, and the seventh trigger 93 is used to output an invalid sixth control signal Vgs6 to turn off the sixth transistor Q6 when triggered by a rising edge or a falling edge of the Hall signal, or to output a valid sixth control signal Vgs6 to turn on the sixth transistor Q6 when triggered by the rising edge of the fourth trigger signal ctr4.
[0124] Exemplarily, the sixth trigger 92 and the seventh trigger 93 are, for example, RS triggers or a trigger group composed of a plurality of RS triggers, and are specifically capable of realizing the corresponding functions of the sixth trigger 92 and the seventh trigger 93 described in the text of this document. Taking the RS trigger as an example, the first end of the sixth trigger 92 corresponds to the reset end, the second end of the sixth trigger 92 corresponds to the set end, and the output end of the sixth trigger 92 is a positive logic output end, and the same is true for the seventh trigger 93.
[0125] In some preferred examples, such as Figure 8 and Fig. 9 As shown, the control module 32 also receives the third reference voltage Vref3, and is used to output the stall signal LR when the third voltage V3 reaches the third reference voltage Vref3, and adjust the sixth control signal Vgs6 to an invalid state to control the third capacitor C3 to exit the charging mode.
[0126] Optionally, in Fig. 9 In the example shown, the control module 32 further includes: a fifth comparator 94 and an OR gate logic circuit 95. The positive input terminal of the fifth comparator 94 receives the third voltage V3, the negative input terminal of the fifth comparator 94 receives the third reference voltage Vref3, and the output terminal of the fifth comparator 94 outputs the third trigger signal ctr3; the first input terminal of the OR gate logic circuit 95 receives the Hall signal, the second input terminal of the OR gate logic circuit 95 is coupled to the output terminal of the fifth comparator 94 to receive the third trigger signal ctr3, and the output terminal of the OR gate logic circuit 95 is coupled to the first input terminal of the sixth trigger 92.
[0127] It can be understood that in this example, when the third capacitor C3 works in the charging mode, the control module 32 can not only turn off the sixth transistor Q6 to control the third capacitor C3 to exit the charging mode under the trigger of the rising edge or falling edge of the Hall signal, but also compare the third voltage V3 and the third reference voltage Vref3, and output the stall signal LR when the third voltage V3 reaches the third reference voltage Vref3, and trigger the sixth transistor Q6 to be turned off to control the third capacitor C3 to exit the charging mode, wherein the stall signal LR is used to indicate that the motor has a stall fault. By setting the third reference voltage Vref3 and comparing it with the third voltage V3, timely reminders can be given when the motor is stalled, which can improve the safety of the motor operation.
[0128] Combine the following Fig.10 The working principle of the Hall deviation correction circuit 30 shown in this embodiment is described as follows, taking the Hall deviation correction when the Hall signal is advanced as an example. It can be understood that the Hall deviation correction when the Hall signal is lagging is similar:
[0129] When the rising transition edge or falling transition edge of any Hall signal (HA, HB, HC) occurs, the control module 32 outputs a valid fifth control signal Vgs5 and an invalid sixth control signal Vgs6, controls the fifth transistor Q5 to be turned on, and the sixth transistor Q6 is turned off. At this time, the third capacitor C3 is discharged based on the discharge current provided by the second constant current source I2. When the third voltage V3 at both ends of the third capacitor C3 drops below the fourth reference voltage Vref4, the fourth comparator 91 outputs the rising edge of the fourth trigger signal ctr4, the control module 32 outputs an invalid fifth control signal Vgs5 and a valid sixth control signal Vgs6, controls the fifth transistor Q5 to be turned off, and the sixth transistor Q6 is turned on. At this time, the first constant current source I1 charges the third capacitor C3 through the sixth transistor Q6, until the transition edge (rising edge or falling edge) of the next Hall signal occurs, controls the sixth transistor Q6 to be turned off to stop charging, and the fifth transistor Q5 is turned on to discharge the third capacitor C3 based on the discharge current provided by the second constant current source I2, and the third voltage V3 at both ends of the third capacitor C3 begins to decrease. Among them, whenever the third voltage V3 across the third capacitor C3 is reduced to the fourth reference voltage Vref4, the fourth comparator 91 outputs a valid pulse signal as the driving bridge arm switching enable signal BAS_EN, thereby realizing a fixed phase delay of the Hall signal. That is to say, the embodiment of the present application delays the output of the Hall signal as the enable signal BAS_EN, and uses the enable signal BAS_EN instead of the Hall signal to realize the switching control of the driving bridge arm working state, thereby achieving the compensation and correction effect on the installation position deviation angle of the Hall position sensor.
[0130] It can be understood that, since the Hall deviation correction circuit 30 disclosed in the embodiment of the present application can realize the delayed output of the Hall signal, and the delay time is limited by the discharge time required for the discharge process of the third voltage V3 at both ends of the third capacitor C3 to be reduced to the fourth reference voltage Vref4 based on the discharge current provided by the second constant current source I2. Therefore, it is only necessary to reasonably set the capacitance of the third capacitor C3, the first constant current source I1, the second constant current source I2 and the fourth reference voltage Vref4 and other parameters in the circuit, so that the moment when the third voltage V3 at both ends of the third capacitor C3 is reduced to the fourth reference voltage Vref4 coincides with the theoretical commutation moment of the motor, so as to achieve compensation correction of the deviation angle of the installation position of the Hall position sensor. Among them, the theoretical commutation moment of the motor can be determined by detecting the zero crossing point of the line back electromotive force of the motor, and this can be used as the basis for selecting the circuit parameters.
[0131] refer to Fig.10, assuming that the theoretical commutation moments of the motor in one rotation cycle are t22, t24, t26, t28, t210, t212, respectively, corresponding to 30°, 90°, 150°, 210°, 270° and 330° of the motor rotor angle, respectively. In practical applications, due to the Hall deviation generated by the installation, the jump edge of the Hall signal appears ahead of the zero crossing point of the line back electromotive force of the motor, that is, in one rotation cycle of the motor, the jump edge of the Hall signal (HA, HB, HC) appears at t21, t23, t25, t27, t29, t211, respectively, and the embodiment of the present application obtains the enable signal BAS_EN for switching the driving bridge arm after phase delaying each jump edge of the Hall signal HA, HB, HC by the Hall deviation correction circuit 30, so that the working state of each phase driving bridge arm in the motor driving circuit can be perfectly switched at the theoretical commutation moment of the motor.
[0132] In this embodiment, the Hall deviation correction circuit 30 only needs one capacitor C3 to achieve delayed output of the Hall signal, and the circuit structure is simple, and the number of components required is smaller, which further reduces the cost and area.
[0133] It can be understood that in the Hall deviation correction circuit 30 provided in each embodiment of the present application, except for the capacitor element included in the capacitor module 31, each device in the control module 32 can be integrated into the original driver chip, basically without adding additional cost and area, and the hardware circuit implementation scheme based on the Hall deviation correction circuit 30 also makes it possible for the embodiment of the present application to correct the Hall deviation of the motor installation without the need for a microcontroller such as an MCU and the development of software algorithms, thereby greatly reducing the cost and area of the scheme, and the hardware circuit of the present invention is very simple to adjust.
[0134] Furthermore, the embodiment of the present application also provides a Hall deviation correction method for realizing the correction and compensation of the Hall deviation of the motor installation, referring to Fig.11 , the method comprises executing the following steps:
[0135] In step 111, when the transition edge of the Hall signal appears, two timers are set to start timing;
[0136] In step 112, when the next transition edge of the Hall signal appears, the current timing time of the first timer is used as the first threshold time and the timing is restarted;
[0137] In step 113, the second threshold time is determined according to the first threshold time and the proportional coefficient. When the timing time of the second timer reaches the second threshold time, the transition edge of the Hall signal is delayed and output, and when the next transition edge of the Hall signal appears, the second timer is controlled to restart counting, wherein the aforementioned proportional coefficient represents the ratio of the second threshold time to the first threshold time, and by adjusting the proportional coefficient, the delayed output time of the transition edge of the Hall signal is adjusted, and the smaller the proportional coefficient is, the shorter the delay time of the Hall edge signal is.
[0138] In some embodiments, a capacitor module can be set up to realize the timing of two timers by charging / discharging the capacitor module, and the timing time of the two timers can be characterized by controlling the charging / discharging time of the capacitor module to realize the delayed output of the Hall signal jump edge.
[0139] In one implementation of these embodiments, the capacitor module includes, for example, a first capacitor and a second capacitor, and the ratio of the second capacitor to the first capacitor represents the aforementioned proportional coefficient, that is, the smaller the ratio of the second capacitor to the first capacitor, the shorter the delay time for the Hall edge signal. At this time, when the transition edge of the Hall signal is detected, the first capacitor and the second capacitor are discharged, indicating that the first timer and the second timer start timing; when the first voltage generated by the first capacitor drops to the first reference voltage, the first capacitor is charged, and when the next transition edge of the Hall signal appears, the first capacitor stops charging and starts discharging, indicating that the timing time of the first timer reaches the first threshold time and restarts timing; when the second voltage generated by the second capacitor drops to the second reference voltage, it indicates that the timing time of the second timer reaches the second threshold time, outputs the delayed Hall edge signal, and controls the second voltage to follow the first voltage.
[0140] In another implementation of these embodiments, the capacitor module includes, for example, a third capacitor. At this time, when the transition edge of the Hall signal is detected, the third capacitor discharges, indicating that the first timer and the second timer start timing; when the third voltage generated by the third capacitor drops to the fourth reference voltage, it indicates that the timing time of the second timer reaches the second threshold time, outputs the delayed Hall edge signal, and controls the charging of the third capacitor; when the transition edge of the next Hall signal appears, the third capacitor charging is stopped and starts to discharge, indicating that the first timer starts timing again when the first threshold time is reached. Among them, the ratio of the charging current and the discharging current of the third capacitor represents the aforementioned proportionality coefficient, that is, the smaller the ratio of the charging current and the discharging current of the third capacitor, the shorter the delay time of the Hall edge signal.
[0141] In other embodiments, two counters may be used, and the count values of the two counters are used to represent the timing values of the first timer and the second timer, respectively. In this case, when the transition edge of the Hall signal appears, the two counters start counting; when the transition edge of the next Hall signal appears, the current count value of the first counter is used as the first counting threshold and the counting starts again; when the count value of the second counter reaches the second counting threshold, the transition edge of the Hall signal is delayed and output, and when the next transition edge of the Hall signal appears, the second counter starts counting again, wherein the ratio of the second counting threshold to the first counting threshold represents the aforementioned proportional coefficient, that is, the smaller the ratio of the second counting threshold to the first counting threshold, the shorter the delay time of the Hall edge signal.
[0142] In specific implementation, the zero-crossing point of the line back electromotive force when the motor is running can be detected, and the circuit parameters in the above-mentioned embodiments can be adjusted according to the zero-crossing point of the line back electromotive force to adjust the proportional coefficient, so as to adjust the delayed output time of the Hall signal, so that the moment when the Hall deviation correction circuit outputs the enable signal for driving the bridge arm switching coincides with the corresponding zero-crossing point of the line back electromotive force. The Hall deviation of the motor can be corrected by running the Hall deviation correction circuit after parameter adjustment.
[0143] It can be understood that the embodiments of the present application generally only need to adjust the parameters of the Hall deviation correction circuit once according to the zero-crossing point of the line back electromotive force to determine the circuit parameters when the Hall deviation correction circuit is applied to a specific motor for the first time. During the subsequent use of the motor, there is no need to adjust the circuit parameters except for special circumstances such as operating failures or regular or irregular inspections performed as needed. The circuit adjustment is simple and easy to use.
[0144] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly explaining the present application, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present application.
Claims
1. A Hall deviation correction circuit for a motor, the Hall deviation correction circuit comprising: Capacitor module, which controls charging / discharging according to the transition edge of the Hall signal; A control module, which controls the charge / discharge time of the capacitor module according to the voltage signal generated by the capacitor module and the transition edge of the Hall signal, and delays the output of the transition edge of the Hall signal; Wherein, the delayed output time of the transition edge of the Hall signal is defined by the charge / discharge time of the capacitor module.
2. The Hall deviation correction circuit according to claim 1, wherein: The control module is configured to: When the transition edge of the Hall signal is detected, the capacitor module is controlled to charge / discharge, and when the charging / discharging time of the capacitor module reaches a first time, a delayed Hall edge signal is output.
3. The Hall deviation correction circuit according to claim 1, wherein: When it is detected that the first voltage generated by the capacitor module reaches the third reference voltage, it indicates that the motor is working abnormally, and the motor is controlled to stop.
4. The Hall deviation correction circuit according to claim 2, wherein: The capacitor module includes a first capacitor and a second capacitor; The control module controls the first capacitor and the second capacitor to discharge when the transition edge of the Hall signal is detected, and controls the first capacitor to charge when the first voltage generated by the first capacitor drops to the first reference voltage; When the second voltage generated by the second capacitor drops to the second reference voltage, a delayed Hall edge signal is output, and the second voltage is controlled to follow the first voltage.
5. The Hall deviation correction circuit according to claim 4, wherein: The first capacitor and the second capacitor are proportional in size, and the delayed output time of the transition edge of the Hall signal is adjusted by adjusting the proportionality coefficient between the first capacitor and the second capacitor.
6. The Hall deviation correction circuit according to claim 2, wherein: The capacitor module includes a third capacitor, and the control module controls the third capacitor to discharge when the transition edge of the Hall signal is detected; When the third voltage generated by the third capacitor drops to the fourth reference voltage, a delayed Hall edge signal is output, and the charging of the third capacitor is controlled.
7. The Hall deviation correction circuit according to claim 2, wherein: The charging current and the discharging current of the third capacitor are proportional, and the delayed output time of the transition edge of the Hall signal is adjusted by adjusting the proportionality coefficient between the charging current and the discharging current of the third capacitor.
8. The Hall deviation correction circuit according to claim 5, wherein: The capacitor module also includes: A first transistor, used to control the on-off of a discharge path of the first capacitor; A first constant current source and a second transistor are connected in series to a charging path of the first capacitor, the second transistor is used to control the on and off of the charging path of the first capacitor, and the first constant current source is used to provide a charging current for the first capacitor when the second transistor is turned on; A second constant current source and a third transistor are connected in series to a discharge path of the second capacitor, the third transistor is used to control the on and off of the discharge path of the second capacitor, and the second constant current source is used to provide a discharge current for the second capacitor when the third transistor is turned on; A voltage follower and a fourth transistor, wherein the fourth transistor is used to control the on-off of a charging path between the second capacitor and the voltage follower, and the voltage follower enables the second voltage to follow the first voltage when the fourth transistor is turned on.
9. The Hall deviation correction circuit according to claim 8, wherein: The control module comprises: a first control circuit, configured to control the connection of a charging path of the first capacitor and disconnection of a discharging path of the first capacitor when detecting that the first voltage drops to the first reference voltage, and control the connection of the discharging path of the first capacitor and disconnection of the charging path of the first capacitor when detecting a transition edge of the Hall signal; The second control circuit is used to control the connection of the charging path of the second capacitor and disconnection of the discharge path of the second capacitor when it is detected that the second voltage drops to the second reference voltage, and output the delayed Hall edge signal as an enable signal for driving the bridge arm switching, and when the transition edge of the Hall signal is detected, control the connection of the discharge path of the second capacitor and disconnection of the charging path of the second capacitor; wherein the enable signal is used to trigger the motor to perform phase switching.
10. The Hall deviation correction circuit according to claim 9, wherein: The first control circuit is further configured to output a stall signal when the first voltage reaches the third reference voltage, and control disconnection of a charging path of the first capacitor, wherein the stall signal is used to control the motor to stop.
11. The Hall deviation correction circuit according to claim 7, wherein: The capacitor module also includes: A first constant current source and a sixth transistor are connected in series to a charging path of the third capacitor, the sixth transistor is used to control the on and off of the charging path of the third capacitor, and the first constant current source is used to provide a charging current for the third capacitor when the sixth transistor is turned on; The second constant current source and the fifth transistor are connected in series to the discharge path of the third capacitor. The fifth transistor is used to control the on-off of the discharge path of the third capacitor. The second constant current source is used to provide a discharge current for the third capacitor when the fifth transistor is turned on.
12. The Hall deviation correction circuit according to claim 11, wherein: When the control module detects the transition edge of the Hall signal, the discharge path of the third capacitor is controlled to be connected and the charging path of the third capacitor is disconnected; When it is detected that the third voltage generated by the third capacitor drops to the fourth reference voltage, the charging path of the third capacitor is controlled to be connected and the discharging path of the third capacitor is disconnected, and the delayed Hall edge signal is output as an enable signal for driving the bridge arm switching; The enable signal is used to trigger the motor to perform phase switching.
13. A driver for driving a motor to rotate, the driver comprising: A Hall signal collector, used to detect the Hall signal according to the rotation of the motor; A Hall deviation correction circuit as claimed in any one of claims 1 to 12, used to delay the output of the Hall signal as an enable signal for switching the driving bridge arm, so as to achieve correction of the working state of the motor; A control circuit, used for generating a plurality of driving signals according to the enable signal; The driving circuit is used to provide a driving current according to the plurality of driving signals to drive the motor to rotate.
14. A motor, comprising: Motor body; The driver according to claim 13 provides a driving current to drive the motor body to rotate.
15. A Hall deviation correction method for a motor, the method comprising: When the transition edge of the Hall signal appears, two timers are set to start timing; When the next transition edge of the Hall signal appears, the current timing time of the first timer is used as the first threshold time and the timing is restarted; The second threshold time is determined according to the first threshold time and the proportional coefficient. When the timing time of the second timer reaches the second threshold time, the transition edge of the Hall signal is delayed and output, and when the next transition edge of the Hall signal appears, the second timer restarts counting. The proportionality coefficient represents the ratio of the second threshold time to the first threshold time, and the delayed output time of the transition edge of the Hall signal is adjusted by adjusting the proportionality coefficient.
16. The Hall deviation correction method according to claim 15, wherein: A capacitor module is provided, and the timing of the two timers is realized by charging / discharging the capacitor module. The timing time of the two timers is characterized by controlling the charging / discharging time of the capacitor module to realize the delayed output of the transition edge of the Hall signal.
17. The Hall deviation correction method according to claim 16, wherein: The capacitor module includes a first capacitor and a second capacitor; When the transition edge of the Hall signal is detected, the first capacitor and the second capacitor are discharged, indicating that the first timer and the second timer start timing; When the first voltage generated by the first capacitor drops to the first reference voltage, the first capacitor is charged, and when the next transition edge of the Hall signal appears, the first capacitor stops charging and starts discharging, indicating that the timing time of the first timer reaches the first threshold time and starts timing again; When the second voltage generated by the second capacitor drops to the second reference voltage, it indicates that the timing time of the second timer reaches the second threshold time, a delayed Hall edge signal is output, and the second voltage is controlled to follow the first voltage; The ratio of the second capacitance to the first capacitance represents the proportionality coefficient.
18. The Hall deviation correction method according to claim 16, wherein: The capacitor module includes a third capacitor, When the transition edge of the Hall signal is detected, the third capacitor is discharged, indicating that the first timer and the second timer start timing; When the third voltage generated by the third capacitor drops to the fourth reference voltage, it indicates that the timing time of the second timer reaches the second threshold time, a delayed Hall edge signal is output, and the charging of the third capacitor is controlled; When the next transition edge of the Hall signal appears, the charging of the third capacitor stops and starts to discharge, indicating that the first timer starts to count again after reaching the first threshold time; The ratio of the charging current to the discharging current of the third capacitor represents the proportionality coefficient.
19. The Hall deviation correction method according to claim 15, wherein: Two counters are respectively set, and the count values of the two counters represent the timing values of the two timers; When the transition edge of the Hall signal appears, the two counters start counting. When the next transition edge of the Hall signal appears, the current count value of the first counter is used as the first count threshold and counting starts again; When the count value of the second counter reaches the second count threshold, the transition edge of the Hall signal is delayed and output, and when the next transition edge of the Hall signal appears, the second counter restarts counting; The ratio of the second counting threshold to the first counting threshold represents the proportionality factor.
Citation Information
Cited By
Motor driver having phase calibration mechanism and motor driving method thereof
TWI939124B
