Motor control device and motor control method

By setting multiple switching elements and sensors in the motor control device to detect and correct the rotation position of the brushless motor, the problem of electrical angular spacing mismatch caused by uneven magnetization and changes in the installation position of the Hall sensor is solved, and effective suppression of vibration and noise of the brushless motor is achieved.

JP7658925B2Active Publication Date: 2025-04-08MITSUBA CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022005670
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2025-04-08
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

When existing motor control equipment deals with brushless motors, the electrical angular spacing mismatch caused by uneven magnetization of magnets and changes in the installation position of Hall sensors, resulting in motor vibration and abnormal noise.

Method used

By providing a plurality of switching elements and sensors in the control unit, the rotation position of the motor is detected, and correction is performed according to the detection signal, and correction coefficients are calculated and applied to ensure the normal operation of the motor.

Benefits of technology

It effectively suppresses vibration and abnormal noise of brushless motor, ensuring smooth operation of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007658925000001
    Figure 0007658925000001
  • Figure 0007658925000002
    Figure 0007658925000002
  • Figure 0007658925000003
    Figure 0007658925000003
Patent Text Reader

Abstract

To suppress generation of vibration or abnormal sound of a motor.SOLUTION: A motor control device comprises a switching element, a rotation position detection sensor for a rotor, and a control unit which outputs a drive signal. The control unit includes a gate control voltage output section, a counter value acquisition section and a switching control section. Regarding a correction coefficient, a position detection signal corresponding to a phase of a first reference Hall edge constituting a first Hall stage which is a minimum counter value is defined as a first reference position detection signal, and a position detection signal corresponding to a phase of a second reference Hall edge constituting a second Hall stage which is an intermediate value is defined as a second reference position detection signal. Regarding an average value of counter values, a first detection error in a case where the first reference position detection signal is defined as a reference and a second detection error in a case where the second reference position detection signal is defined as a reference, based on whether or not the first detection error and the second detection error include a negative value, a correction coefficient selected from any one of the first detection error and the second detection error is selected and set.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a motor control device and a motor control method. [Background technology]

[0002] A brushless motor has a stator with a three-phase coil and a rotor with a permanent magnet for the field, and a sensor magnet that rotates with the rotor is attached to the rotor's rotating shaft. The sensor magnet is magnetized with alternating south and north poles in the direction of rotation, and three hall sensors that detect the rotational position are attached near the sensor magnet at predetermined intervals in the direction of rotation so that they can detect the switching of the sensor magnet's magnetic poles.

[0003] A motor control device that controls the drive of a brushless motor rotates the brushless motor by outputting a current pattern corresponding to six Hall stages, which are represented by a combination of the potentials of the position detection signals that are the outputs of the three Hall sensors, to an inverter circuit that drives the brushless motor, using the switching positions (Hall edges) of the three Hall sensors as a reference.

[0004] Here, due to variations in the magnetization of the sensor magnet in the brushless motor, variations in the mounting position of the Hall sensors, etc., the electrical angle interval between two Hall edges constituting each of the six Hall stages 1 to 6 may not match the designed electrical angle interval of the Hall stages. In such cases, switching the drive signal output for each Hall edge may affect the operation of the brushless motor, resulting in vibrations and abnormal noise.

[0005] Therefore, a motor control device has been proposed that corrects the position detection signal for each Hall edge that indicates the switching of the Hall stage, and switches the current conduction pattern based on the corrected position detection signal (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0006] [Patent Document 1] Japanese Patent Application Laid-Open No. 2017-121105

[0007] The motor control device described above smooths the operation of the brushless motor by switching the current conduction pattern at a timing delayed from the timing at which the Hall edge position detection signal is detected. However, in the above-mentioned motor control device, depending on the installation positions of the three Hall sensors, the correction amount of the position detection signal may become negative (i.e., the delay time for timing correction may become negative), and it may not be possible to control the timing of switching the current conduction pattern. Summary of the Invention [Problem to be solved by the invention]

[0008] The present invention has been made in consideration of the above-mentioned circumstances, and its object is to provide a motor control device and a control method for a motor control device that can accurately suppress the generation of vibrations and abnormal noise in a brushless motor. [Means for solving the problem]

[0009] One aspect of the present invention is a motor control device that controls the rotation of a rotor by controlling the energization of three-phase coils of a brushless motor, the motor control device comprising: a plurality of switching elements arranged to be able to switch the current flowing through the coils; a plurality of sensors provided corresponding to each of the coils and detecting the rotational position of the rotor; and a control unit that outputs a drive signal to switch the switching elements based on position detection signals that are outputs of the plurality of sensors, the control unit comprising: a gate control voltage output unit that outputs a drive signal to switch the switching elements based on corrected Hall edges that constitute each of six Hall stages represented by a combination of potentials of the position detection signals that are outputs of the plurality of sensors; a counter value acquisition unit that acquires, from the position detection signals, a counter value that is the Hall stage time represented by the time between two Hall edges that constitute each of the Hall stages; and a delay time for each Hall edge that is corrected by the delay time, the ... a switching control unit that outputs the drive signal to a gate control voltage output unit, wherein the correction coefficient is determined as follows: a first reference Hall edge is one of two Hall edges constituting a first Hall stage that is the smallest counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, and the Hall edge whose counter value becomes smaller as the Hall edge is spread in the rotation direction of the brushless motor; a first reference position detection signal is the position detection signal corresponding to a phase in which the first reference Hall edge is located; a second reference Hall edge is one of two Hall edges constituting a second Hall stage that is the intermediate value between the largest counter value and the smallest counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, and the position detection signal corresponding to a phase in which the second reference Hall edge is located is the second reference position detection signal; and a detection error that is a difference between an average value of counter values ​​for three consecutive Hall stages in the rotation direction of the brushless motor and the counter value of each of the Hall stages,For a first detection error when the first reference position detection signal is used as a reference and a second detection error when the second reference position detection signal is used as a reference, a correction coefficient calculated from either the first detection error or the second detection error is selected and set based on whether the first detection error or the second detection error includes a negative value.

[0010] One aspect of the present invention is a motor control device that controls the rotation of a rotor by controlling the energization of three-phase coils of a brushless motor, the motor control device comprising: a plurality of switching elements arranged to be able to switch the current flowing through the coils; a plurality of sensors provided corresponding to each of the coils to detect the rotational position of the rotor; and a control unit that outputs a drive signal to switch the switching elements based on position detection signals that are outputs of the plurality of sensors, the control unit having a gate control voltage output unit, a counter value acquisition unit, a switching control unit, a reference phase selection unit, an average value calculation unit, a detection error calculation unit, a correction coefficient calculation unit, and a memory control unit, the motor control method including: a gate control voltage output step in which the gate control voltage output unit outputs a drive signal to switch the switching elements based on corrected Hall edges that constitute each of six Hall stages represented by combinations of potentials of the position detection signals that are outputs of the plurality of sensors; and a counter value acquisition unit that acquires a counter value that is the Hall stage time represented by the time between two Hall edges that constitute each of the Hall stages and a correction coefficient acquisition unit that acquires a counter value that is the Hall stage time represented by the time between two Hall edges that constitute each of the Hall stages and a correction coefficient acquisition unit that acquires a correction coefficient based on the position detection signals. a switching control step in which the switching control unit multiplies the counter value of each of the previous Hall stages by a preset correction coefficient, and outputs the drive signal to the gate control voltage output unit based on each of the Hall edges corrected by the delay times, using the value obtained by multiplying the counter value of each of the previous Hall stages by a preset correction coefficient as a delay time for each of the current Hall edges; and the reference phase selection unit selects, among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, a Hall edge whose counter value becomes smaller by widening the Hall edge in the rotation direction of the brushless motor, as a first reference Hall edge, and sets the position detection signal corresponding to the phase in which the first reference Hall edge is located as a first reference position detection signal, and, among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, a Hall edge whose counter value becomes smaller by widening the Hall edge in the rotation direction of the brushless motor, as a second reference Hall edge,a correction coefficient calculation step in which the correction coefficient calculation unit calculates a first correction coefficient by dividing the first detection error by the average value, or a second correction coefficient by dividing the second detection error by the average value; and a storage control step in which the storage control unit stores the correction coefficient calculated from either the first detection error or the second detection error based on whether the calculated first detection error or the calculated second detection error includes a negative value. [Effects of the Invention]

[0011] According to the present invention, vibrations and abnormal noises in a brushless motor can be suppressed with high precision. [Brief explanation of the drawings]

[0012] [Figure 1] 1 is a diagram illustrating an example of a motor device according to an embodiment of the present invention. [Figure 2] FIG. 6 is a diagram illustrating an example of a procedure for setting a correction coefficient in the present embodiment. [Figure 3] FIG. 10 is a diagram showing an example of counter values ​​for each hole stage in the present embodiment. [Figure 4] FIG. 10 is a diagram showing an example of a calculation result of a first detection error using a first average value according to the present embodiment. [Figure 5] FIG. 10 is a diagram showing an example of a calculation result of a second detection error using a second average value according to the present embodiment. DETAILED DESCRIPTION OF THE INVENTION

[0013] [Embodiment] A motor control device and a motor control method according to an embodiment of the present invention will be described below with reference to the drawings.

[0014] FIG. 1 is a diagram showing an example of a motor device 100 according to this embodiment. As shown in FIG. 1, the motor device 100 includes a motor 2, a rotation axis sensor 23, a control unit 6, and an inverter 50. The motor device 100 according to this embodiment is used, for example, in a wiper device that wipes the window glass of a vehicle.

[0015] [Inverter configuration example] The inverter 50 outputs an output signal that rotates the motor 2 based on the drive signal generated by the drive signal generation unit 46. That is, the inverter 50 drives the switching elements (51a to 51f) based on the drive signal generated by the drive signal generation unit 46, and applies an applied voltage based on a current waveform to the three-phase armature coils (21u, 21v, 21w). The inverter 50 generates an applied voltage using DC power supplied from the battery 5 .

[0016] The inverter 50 includes six switching elements 51a to 51f connected in a three-phase bridge configuration and diodes 52a to 52f. The switching elements 51a to 51f are, for example, N-channel metal oxide semiconductor field effect transistors (MOSFETs), and form a three-phase bridge circuit.

[0017] Switching element 51a and switching element 51d are connected in series between the positive and negative terminals of battery 5 to form a U-phase bridge circuit. Switching element 51a has a drain terminal connected to the positive terminal of battery 5, a source terminal connected to node N1, and a gate terminal connected to the signal line for the upper U-phase drive signal. Switching element 51d has a drain terminal connected to node N1, a source terminal connected to the negative terminal of battery 5, and a gate terminal connected to the signal line for the lower U-phase drive signal. Node N1 is connected to connection point 21a of motor 2.

[0018] Switching element 51b and switching element 51e are connected in series between the positive and negative terminals of battery 5 to form a V-phase bridge circuit. Switching element 51b has a drain terminal connected to the positive terminal of battery 5, a source terminal connected to node N2, and a gate terminal connected to the signal line for the upper V-phase drive signal. Switching element 51e has a drain terminal connected to node N2, a source terminal connected to the negative terminal of battery 5, and a gate terminal connected to the signal line for the lower V-phase drive signal. Node N2 is connected to connection point 21b of motor 2.

[0019] Switching element 51c and switching element 51f are connected in series between the positive and negative terminals of battery 5 to form a W-phase bridge circuit. Switching element 51c has a drain terminal connected to the positive terminal of battery 5, a source terminal connected to node N3, and a gate terminal connected to the signal line for the upper W-phase drive signal. Switching element 51f has a drain terminal connected to node N3, a source terminal connected to the negative terminal of battery 5, and a gate terminal connected to the signal line for the lower W-phase drive signal. Node N3 is connected to connection point 21c of motor 2.

[0020] Moreover, the diodes 52a to 52f are all so-called freewheeling diodes. In the following description, the switching elements 51a, 51b, 51c, 51d, 51e, and 51f are also referred to as switching elements UH, VH, WH, UL, VL, and WL.

[0021] [Motor configuration example] The motor 2 is, for example, a three-phase, four-pole brushless motor. The motor 2 is driven to rotate by an output signal output from an inverter 50 based on a drive signal, which will be described later. The motor 2 also includes a stator 21 and a rotor 22.

[0022] The stator 21 is fixed to the inner periphery of the case of the motor 2. The stator 21 includes three-phase armature coils (21u, 21v, 21w). The armature coils (21u, 21v, 21w) are wound around the stator 21. For example, the three-phase armature coils (21u, 21v, 21w) are connected by a delta connection. In the delta connection, the armature coil 21u and the armature coil 21w are connected by the connection point 21a, the armature coil 21v and the armature coil 21w are connected by the connection point 21b, and the armature coil 21u and the armature coil 21v are connected by the connection point 21c.

[0023] The rotor 22 is provided inside the stator 21. The rotor 22 includes, for example, a rotor shaft 22a and a sensor magnet 22b attached to the rotor shaft 22a. A plurality of bearings (not shown) are provided inside the case of the motor 2, and the rotor shaft 22a is rotatably supported by the plurality of bearings.

[0024] The rotational shaft sensor 23 detects a signal corresponding to the rotation of the rotor 22. The rotational shaft sensor 23 includes, for example, three Hall sensors (23u, 23v, 23w). When the rotor 22 rotates, these three Hall sensors (23u, 23v, 23w) output pulse signals that are shifted in phase by approximately 120 degrees from one another to the control unit 6. That is, as the rotor 22 rotates, the rotational shaft sensor 23 generates pulse signals based on changes in the magnetic poles of the four-pole sensor magnet 22b arranged on the rotor shaft 22a, and outputs the pulse signals to the control unit 6. Each Hall sensor detects a position that is shifted by approximately 120 electrical degrees.

[0025] [Configuration example of control unit (motor control device)] The control unit 6 is, for example, a processor including a CPU (Central Processing Unit) and performs overall control of the motor device 100. The control unit 6 performs PWM (Pulse Width Modulation) control, sets a duty ratio according to a target rotation output of the rotor 22 (for example, a target rotation speed TRPM), and outputs a drive signal according to the set duty ratio to the inverter 50. The control unit 6 also controls the drive of the motor 2 via the inverter 50, for example, by supplying rectangular wave current. The control unit 6 is also called a motor control device.

[0026] The control unit 6 includes a gate control voltage output unit 61, a switching control unit 62, a counter value acquisition unit 63, a reference phase selection unit 64, an average value calculation unit 65, a detection error calculation unit 66, a correction coefficient calculation unit 67, a memory control unit 68, and a memory unit 69.

[0027] The gate control voltage output unit 61 outputs a PWM signal (drive signal) that switches the switching elements UH, VH, WH, UL, VL, and WL based on the corrected Hall edges that constitute each of the six Hall stages represented by the combination of potentials of the position detection signals Hu, Hv, and Hw, which are the outputs of the Hall sensors 23u, 23v, and 23w.

[0028] The counter value acquisition unit 63 acquires the counter value, which is the hall stage time represented by the time between two hall edges that constitute each of hall stages 1 to 6, from the position detection signals Hu, Hv, and Hw input from the hall sensors 23u, 23v, and 23w.

[0029] The switching control unit 62 recognizes the Hall stage based on the position detection signals Hu, Hv, Hw input from the Hall sensors 23u, 23v, 23w, and reads out the energization pattern corresponding to the Hall stage stored in the storage unit 69. The switching control unit 62 uses a value obtained by multiplying the counter value of each Hall stage from the previous (360 electrical degrees ago) by a preset correction coefficient as the delay time for each Hall edge of the current, and generates a PWM command signal having a period of 60 electrical degrees from the energization pattern based on each Hall edge corrected by the delay time, and causes the gate control voltage output unit 61 to output the PWM signal having a period of 60 electrical degrees.

[0030] As a result, the switching elements UH, VH, WH, UL, VL, and WL are driven by PWM control and are each turned on and off intermittently during a period corresponding to each current conduction pattern.

[0031] [Correction coefficient settings] The correction coefficients are set as follows before shipping of the motor control device 4 (for example, during an adjustment process after product assembly or a shipping inspection process).

[0032] FIG. 2 is a diagram showing an example of a procedure for setting the correction coefficient in this embodiment. (Step S10) The control unit 6 sets the motor 2 to a state in which it is rotationally driven. In this state, the counter value acquisition unit 63 acquires the time interval (i.e., the counter value) between the two Hall edges that constitute each of the Hall stages 1 to 6. The reference phase selection unit 64 selects a reference phase, which serves as a detection reference for the detection error, from among the U phase, V phase, and W phase, based on the counter value for each Hall stage acquired by the counter value acquisition unit 63. In this embodiment, the reference phase selection unit 64 selects two types of reference phases: a first reference phase and a second reference phase.

[0033] The first reference phase is the phase in which the first reference Hall edge is located, when the Hall edge whose counter value becomes smaller by widening the Hall edge in the rotation direction of the brushless motor is defined as the first reference Hall edge, which is one of the two Hall edges that make up the first Hall stage, which is the smallest counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit. The second reference phase is the phase in which the second reference Hall edge is located, when the Hall edge whose counter value becomes smaller by widening the Hall edge in the rotation direction of the brushless motor is one of the two Hall edges constituting the second Hall stage, which is the intermediate value between the maximum counter value and the minimum counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit. Note that the "intermediate value" here is not limited to a value exactly intermediate between the maximum counter value and the minimum counter value, but simply refers to a value less than the maximum counter value and greater than the minimum counter value. The first reference phase and the second reference phase will be described in more detail with reference to FIG.

[0034] 3 is a diagram showing an example of the counter value for each hall stage in this embodiment. Here, an electrical angle of 0 to 60 degrees is hall stage 1, an electrical angle of 60 to 120 degrees is hall stage 2, and so on, with an electrical angle of 300 to 360 degrees being hall stage 6. In the example shown in the same figure, the counter value of hall stage 1 is 1121, the counter value of hall stage 2 is 1164, the counter value of hall stage 3 is 1139, the counter value of hall stage 4 is 1129, the counter value of hall stage 5 is 1165, and the counter value of hall stage 6 is 1141. In this example, the first hole stage (that is, the hole stage having the smallest counter value among the counter values ​​of the six hole stages acquired by the counter value acquisition unit) is hole stage 1.

[0035] Note that the counter value may exhibit a similar tendency for every 180 degrees of electrical angle. For example, if the counter value of hall stage 1 is relatively small, the counter value of hall stage 4, which is shifted by 180 degrees, also tends to be relatively small. In this case, the hall stage with the smallest counter value may be selected for every 180 degrees of electrical angle. For example, hall stage 1 may be the first hall stage for electrical angles from 0 to 180 degrees, and hall stage 4 may be the first hall stage for electrical angles from 180 to 360 degrees. In other words, in this embodiment, the "hall stage with the smallest counter value" among the six hall stages may refer to one hall stage with the smallest counter value in the range of electrical angles from 0 to 360 degrees, or may refer to both the hall stage with the smallest counter value in the range of electrical angles from 0 to 180 degrees and the hall stage with the smallest counter value in the range of electrical angles from 180 to 360 degrees.

[0036] As described above, the first reference phase is the phase in which the first reference Hall edge is located. The first reference Hall edge is the Hall edge, of the two Hall edges that make up the first Hall stage, that widens in the direction of rotation of the brushless motor, thereby decreasing the counter value. In the example shown in the figure, of the two Hall edges (the rising edge of the position detection signal Hu and the falling edge of the position detection signal Lw) that make up the first Hall stage (Hall stage 1), by spreading the rising edge of the position detection signal Hu in the rotation direction of the brushless motor, the counter value of Hall stage 1 becomes smaller than "1121." On the other hand, by spreading the falling edge of the position detection signal Lw in the rotation direction of the brushless motor, the counter value of Hall stage 1 becomes larger than "1121." In this case, the rising edge of the position detection signal Hu is the first reference Hall edge, and the first reference phase is the phase in which the position detection signal Hu is located, i.e., the U phase.

[0037] The reference phase selection unit 64 selects the Hall edge of the two Hall edges that constitute the first Hall stage, which has the smallest counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, as the first reference Hall edge, the Hall edge whose counter value becomes smaller when the Hall edge is widened in the rotation direction of the brushless motor, and selects the position detection signal corresponding to the phase in which the first reference Hall edge is located as the first reference position detection signal. That is, in this example, the reference phase selection unit 64 selects the U phase as the first reference phase and the position detection signal Hu as the first reference position detection signal.

[0038] In the case of an electrical angle of 180 to 360 degrees, the reference phase selection unit 64 selects the U phase as the first reference phase and the position detection signal Lu as the first reference position detection signal in the same manner as described above.

[0039] Next, the second reference phase will be described. In the example shown in the figure, in the range of electrical angles from 0 to 180 degrees, the counter value is smallest in Hall Stage 1 (counter value 1121), and the counter value is largest in Hall Stage 2 (counter value 1164). In other words, among Hall Stages 1 to 3, the counter value is intermediate in Hall Stage 3 (counter value 1139). In addition, within the range of electrical angles from 180 to 360 degrees, the counter value is smallest at Hall stage 4 (counter value 1129), and the counter value is largest at Hall stage 5 (counter value 1165). In other words, among Hall stages 4 to 6, the counter value is intermediate at Hall stage 6 (counter value 1141). In this case, the second hall stage (i.e., the hall stage having the intermediate value between the maximum counter value and the minimum counter value among the counter values ​​of the six hall stages acquired by the counter value acquisition unit) is hall stage 3 in the range of electrical angles 0 to 180 degrees, and hall stage 6 in the range of electrical angles 180 to 360 degrees.

[0040] As described above, the second reference phase is the phase in which the second reference Hall edge is located. The second reference Hall edge is the Hall edge of the two Hall edges that make up the second Hall stage, and the counter value decreases when the Hall edge is widened in the rotation direction of the brushless motor. In the example shown in the figure, of the two Hall edges (the rising edge of the position detection signal Hv and the falling edge of the position detection signal Lu) that make up the second Hall stage (Hall stage 3) in the electrical angle range of 0 to 180 degrees, by spreading the rising edge of the position detection signal Hv in the rotation direction of the brushless motor, the counter value of Hall stage 3 becomes smaller than "1139." On the other hand, by spreading the falling edge of the position detection signal Lu in the rotation direction of the brushless motor, the counter value of Hall stage 3 becomes larger than "1139." In this case, the rising edge of the position detection signal Hv is the second reference Hall edge, and the second reference phase is the phase in which the position detection signal Hv is located, i.e., the V phase. Furthermore, of the two Hall edges (the falling edge of the position detection signal Lv and the rising edge of the position detection signal Hu) that make up the second Hall stage (Hall stage 6) within the electrical angle range of 180 to 360 degrees, by spreading the falling edge of the position detection signal Lv in the rotation direction of the brushless motor, the counter value of the Hall stage 6 becomes smaller than "1141". On the other hand, by spreading the rising edge of the position detection signal Hu in the rotation direction of the brushless motor, the counter value of the Hall stage 6 becomes larger than "1141". In this case, the falling edge of the position detection signal Lv is the second reference Hall edge, and the second reference phase is the phase in which the position detection signal Hv is located, i.e., the V phase.

[0041] The reference phase selection unit 64 selects, as the second reference hall edge, the hall edge whose counter value becomes smaller by widening the hall edge in the rotation direction of the brushless motor, out of the two hall edges that constitute the second hall stage, which is the intermediate value between the maximum counter value and the minimum counter value of the six hall stages acquired by the counter value acquisition unit, and selects, as the second reference hall edge, the position detection signal corresponding to the phase in which the second reference hall edge is located, as the second reference position detection signal. That is, in this example, the reference phase selection unit 64 selects the V phase as the second reference phase and the position detection signal Hv as the second reference position detection signal.

[0042] Returning to FIG. 2, the procedure for setting the correction coefficients will be explained further. (Step S20) The average value calculation unit 65 calculates the average value of the counter values ​​for three consecutive Hall stages in the rotation direction of the brushless motor. 3, the reference phase selector 64 selects the U phase as the first reference phase and the position detection signal Hu as the first reference position detection signal. In this case, the average value calculator 65 calculates the average value of the counter values ​​over a calculation target period covering Hall stages 1 to 3 from the rising edge of the position detection signal Hu (the position at an electrical angle of 0 degrees) to the falling edge of the position detection signal Lu (the position at an electrical angle of 180 degrees). More specifically, the average value calculation unit 65 obtains an integrated value 3424 by integrating the counter value 1121 of hole stage 1, the counter value 1164 of hole stage 2, and the counter value 1139 of hole stage 3. The average value calculation unit 65 obtains a first average value 1141 by dividing the integrated value 3424 by the number of hole stages (i.e., 3).

[0043] Similarly, for hole stages 4 to 6, the average value calculation unit 65 obtains an integrated value 3435 by integrating the counter value 1129 for hole stage 4, the counter value 1165 for hole stage 5, and the counter value 1141 for hole stage 6. The average value calculation unit 65 divides the integrated value 3435 by the number of hole stages (i.e., 3) to obtain a first average value 1145.

[0044] Furthermore, the average value calculation section 65 also calculates the average value of the counter values ​​for the second reference phase (V phase) in the same manner as in the case of the first reference phase (U phase) described above. In the example shown in the figure, the reference phase selector 64 selects the V phase as the second reference phase and the position detection signal Hv as the second reference position detection signal. In this case, the average value calculator 65 calculates the average value of the counter values ​​over the calculation target period from Hall stages 3 to 5, from the rising edge of the position detection signal Hv (at an electrical angle of 120 degrees) to the falling edge of the position detection signal Lv (at an electrical angle of 300 degrees). More specifically, the average value calculation unit 65 obtains an integrated value 3433 by integrating the counter value 1139 of hole stage 3, the counter value 1129 of hole stage 4, and the counter value 1165 of hole stage 5. The average value calculation unit 65 obtains a second average value 1144 by dividing the integrated value 3433 by the number of hole stages (i.e., 3).

[0045] Similarly, for hole stages 6 to 2, the average value calculation unit 65 obtains an integrated value 3426 by integrating the counter value 1141 for hole stage 6, the counter value 1121 for hole stage 1, and the counter value 1164 for hole stage 2. The average value calculation unit 65 obtains a second average value 1142 by dividing the integrated value 3426 by the number of hole stages (i.e., 3).

[0046] (Step S30) Returning to FIG. 2, the detection error calculation unit 66 calculates the first detection error when the first reference position detection signal is used as the reference, and the second detection error when the second reference position detection signal is used as the reference, out of the detection errors which are the differences between the average value and the counter values ​​of each hall stage. A specific example in which the detection error calculation unit 66 calculates the first detection error using the first average value will be described with reference to FIG. 4, and a specific example in which the detection error calculation unit 66 calculates the second detection error using the second average value will be described with reference to FIG.

[0047] FIG. 4 is a diagram showing an example of a calculation result of the first detection error using the first average value according to the present embodiment. Specifically, in the range of hall stages 1 to 3, the detection error calculation unit 66 calculates the difference +20 between the first average value 1141 and the counter value 1121 of hall stage 1 as the first detection error of the switching position between hall stage 1 and hall stage 2 (i.e., the falling edge position of the position detection signal Lw).The detection error calculation unit 66 calculates the difference -2 between the first average value 1141 and the counter value 1139 of hall stage 3 as the first detection error of the switching position between hall stage 2 and hall stage 3 (i.e., the rising edge position of the position detection signal Hv). Furthermore, in the range of hall stages 4 to 6, the detection error calculation unit 66 calculates the difference +16 between the first average value 1145 and the counter value 1129 of hall stage 4 as the first detection error of the switching position between hall stage 4 and hall stage 5 (i.e., the rising position of the position detection signal Hw).The detection error calculation unit 66 calculates the difference −4 between the first average value 1145 and the counter value 1141 of hall stage 6 as the first detection error of the switching position between hall stage 5 and hall stage 6 (i.e., the falling position of the position detection signal Lv).

[0048] FIG. 5 is a diagram showing an example of a calculation result of the second detection error using the second average value according to the present embodiment. Specifically, in the range of hall stages 3 to 5, the detection error calculation unit 66 calculates the difference between the second average value 1144 and the counter value 1139 of hall stage 3 (+5) as a first detection error of the switching position between hall stage 3 and hall stage 4 (i.e., the falling position of the position detection signal Lu).The detection error calculation unit 66 calculates the difference between the second average value 1144 and the counter value 1165 of hall stage 5 (+21) as a second detection error of the switching position between hall stage 4 and hall stage 5 (i.e., the rising position of the position detection signal Hw). Furthermore, in the range of hall stages 6 to 2, the detection error calculation unit 66 calculates the difference +1 between the second average value 1142 and the counter value 1141 of hall stage 6 as the second detection error of the switching position between hall stage 6 and hall stage 1 (i.e., the rising position of the position detection signal Hu).The detection error calculation unit 66 calculates the difference +22 between the first average value 1142 and the counter value 1164 of hall stage 2 as the second detection error of the switching position between hall stage 1 and hall stage 2 (i.e., the falling position of the position detection signal Lw).

[0049] (Step S40) Returning to FIG. 2, the memory control unit 68 determines whether the calculated first detection error and second detection error include negative values. If the memory control unit 68 determines that both the first detection error and the second detection error include negative values ​​(step S40; YES), the process proceeds to step S50. If the memory control unit 68 determines that either the first detection error or the second detection error does not include a negative value (step S40; NO), the process proceeds to step S60.

[0050] 3 to 5, the first detection error for the falling edge position of the position detection signal Lw is +20, the first detection error for the rising edge position of the position detection signal Hv is −2, the first detection error for the rising edge position of the position detection signal Hw is +16, and the first detection error for the falling edge position of the position detection signal Lv is −4. In other words, the first detection errors include negative values. The second detection error for the falling edge position of the position detection signal Lu is +5, the second detection error for the rising edge position of the position detection signal Hw is +21, the second detection error for the rising edge position of the position detection signal Hu is +1, and the second detection error for the falling edge position of the position detection signal Lw is +22. In other words, the second detection errors do not include negative values. In this example, the memory control unit 68 determines that either the first detection error or the second detection error does not include a negative value, and proceeds to step S60.

[0051] On the other hand, both the first detection error and the second detection error may include negative values ​​due to variations in the magnetization of the sensor magnet, variations in the mounting position of the Hall sensor, etc. In this case, the memory control unit 68 proceeds to step S50.

[0052] (Step S50) Returning to FIG. 2, the memory control unit 68 selects the first detection error or the second detection error, whichever has the smaller absolute negative value, as the correction value. For example, if the first detection error includes - (minus) 1 and the second detection error includes - (minus) 7, the first detection error has the smaller absolute negative value. In this case, the memory control unit 68 selects the first detection error as the correction value. The memory control unit 68 replaces negative values ​​included in the detection error with 0 (zero). For example, it replaces − (minus) 1 included in the first detection error with 0 (zero). The memory control unit 68 supplies the correction value after replacing it with 0 (zero) to the correction coefficient calculation unit 67.

[0053] (Step S60) On the other hand, if either the first detection error or the second detection error does not contain a negative value, the memory control unit 68 selects the first detection error or the second detection error that does not contain a negative value as the correction value. For example, if the first detection error contains a negative value and the second detection error does not contain a negative value, the memory control unit 68 selects the second detection error as the correction value. The memory control unit 68 supplies the selected correction value to the correction coefficient calculation unit 67.

[0054] (Step S70) The correction coefficient calculation unit 67 calculates a correction coefficient by dividing the correction value selected by the memory control unit 68 by the average value described above. Specifically, when the first detection error is supplied as a correction value, the correction coefficient calculation unit 67 calculates the following as the first correction coefficients: the value obtained by dividing the first detection error +20 at the falling edge position of the position detection signal Lw by the first average value 1141, the value obtained by dividing the first detection error +16 at the rising edge position of the position detection signal Hv by the first average value 1145, and the value obtained by dividing the first detection error −4 at the falling edge position of the position detection signal Lv by the first average value 1145, as shown in Figure 4. In addition, when the second detection error is supplied as a correction value, the correction coefficient calculation unit 67 calculates the following as second correction coefficients: the value obtained by dividing the second detection error +5 at the falling edge position of the position detection signal Lu by the second average value 1144, the value obtained by dividing the second detection error +21 at the rising edge position of the position detection signal Hw by the second average value 1144, the value obtained by dividing the second detection error +1 at the rising edge position of the position detection signal Hu by the second average value 1142, and the value obtained by dividing the second detection error +22 at the falling edge position of the position detection signal Lw by the second average value 1142, as shown in Figure 5.

[0055] That is, the correction coefficient calculation unit 67 calculates a first correction coefficient by dividing the first detection error by the average value, or a second correction coefficient by dividing the second detection error by the average value. The storage control unit 68 stores the calculated correction coefficients in the storage unit 69.

[0056] That is, the memory control unit 68 stores the correction coefficient calculated from either the first detection error or the second detection error as the correction coefficient for each hall stage based on whether the calculated first correction coefficient and second correction coefficient contain negative values.

[0057] Furthermore, as explained in step S50, if the calculated first detection error and second detection error both contain negative values, the memory control unit 68 stores in the memory unit 69 a correction coefficient calculated from the first detection error or the second detection error whose absolute value of the negative value is smaller.

[0058] Furthermore, as explained in step S60, if one of the calculated first detection error and second detection error does not contain a negative value, the memory control unit 68 stores the correction coefficient calculated from the first detection error or the second detection error that does not contain a negative value in the memory unit 69.

[0059] In this way, the storage unit 69 stores the correction coefficients calculated before the motor control device is shipped.

[0060] As a result, the switching control unit 62 multiplies the counter value of each previous Hall stage by a preset correction coefficient, sets the value as the delay time for each Hall edge of the current time, and generates a PWM command signal having a period of 60 electrical degrees based on each Hall edge corrected by the delay time, and causes the gate control voltage output unit 61 to output a PWM signal having a period of 60 electrical degrees, thereby controlling the forward and reverse drive of the motor 2.

[0061] According to the motor control device of this embodiment configured in this manner, the position detection signal can be corrected for each Hall edge that indicates the switching of the Hall stage, thereby accurately suppressing the occurrence of vibrations and abnormal noise.

[0062] To further miniaturize the motor device 100 or reduce the influence of magnetic fields from the external environment, the Hall sensors may be designed to be relatively close to the sensor magnet 22b. In such cases, the spacing between the three Hall sensors (23u, 23v, and 23w) arranged in a row on the circuit board may become narrower (i.e., the Hall sensor pitch may become narrower). In such cases, variations in the magnetization of the sensor magnet and the mounting position of the Hall sensors have a relatively large effect on the error in the time interval between Hall edges (i.e., the count value). Therefore, when the Hall sensor pitch is narrowed, the correction value for correcting the count value may easily become negative when the rotor rotation direction is used as the reference, depending on the variations in the magnetization of the sensor magnet and the mounting position of the Hall sensors. When the rotation direction of the rotor is used as the reference, a negative correction value (i.e., elapsed time) means that the correction is made by going back in time. Therefore, if the correction value becomes negative, the correction cannot be realized.

[0063] Therefore, the motor control device of this embodiment determines whether the correction value (i.e., the detection error) is a negative value, and sets the correction coefficient so that the correction value does not become negative. With the motor control device of this embodiment configured in this way, even if the Hall sensor pitch is narrowed, it is possible to correct the position detection signal, thereby accurately suppressing the occurrence of vibrations and abnormal noise.

[0064] Furthermore, because the motor control device of this embodiment can be miniaturized as described above, it can be manufactured at low cost, and the amount of materials required for manufacturing and the amount of waste can be reduced. Therefore, the motor control device of this embodiment can contribute to achieving Goal 7 "Ensure access to affordable, reliable, sustainable and modern energy for all" and Goal 12 "Produce sustainably and consume responsibly" of the Sustainable Development Goals (SDGs) led by the United Nations.

[0065] In the above-described embodiment, the control unit 6 includes the counter value acquiring unit 63, the reference phase selecting unit 64, the average value calculating unit 65, the detection error calculating unit 66, the correction coefficient calculating unit 67, the memory control unit 68, and the memory unit 69. However, the present invention is not limited to this. The counter value acquiring unit 63, the reference phase selecting unit 64, the average value calculating unit 65, the detection error calculating unit 66, the correction coefficient calculating unit 67, the memory control unit 68, and the memory unit 69 may be provided in other devices included in the motor device 100, or in devices such as a test device external to the motor device 100.

[0066] At least some of the functions of the control unit 6 may be implemented by hardware including circuitry such as a large-scale integration (LSI), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a graphics processing unit (GPU). Alternatively, at least some of the functions of the motor control device 30 may be implemented by a combination of software and hardware. Furthermore, these pieces of hardware may be integrated into one or may be separated into multiple pieces.

[0067] Although the embodiments of the present invention have been described above with reference to the drawings, the motor control device and motor control method are not limited to the above-described embodiments, and various modifications, substitutions, combinations, and / or design changes can be made without departing from the spirit and scope of the present invention.

[0068] Furthermore, the effects of the above-described embodiments of the present invention are described as examples. Therefore, the embodiments of the present invention may also achieve other effects that a person skilled in the art can recognize from the description of the above-described embodiments in addition to the above-described effects. [Explanation of symbols]

[0069] 2...motor, 23...rotating shaft sensor, 6...control unit, 21...stator, 21u, 21v, 21w...armature coil, 50...inverter, 51a to 51f...switching elements, 61...gate control voltage output unit, 62...switching control unit, 63...counter value acquisition unit, 64...reference phase selection unit, 65...average value calculation unit, 66...detection error calculation unit, 67...correction coefficient calculation unit, 68...memory control unit, 69...memory unit, 100...motor device

Claims

1. A motor control device controls the rotation of a rotor by controlling the energization of three-phase coils of a brushless motor, A plurality of switching elements arranged to be able to switch the current flowing through the coil; a plurality of sensors provided corresponding to the coils, each of the sensors detecting a rotational position of the rotor; a control unit that outputs a drive signal for switching the switching element based on position detection signals that are outputs of the plurality of sensors; The control unit is a gate control voltage output unit that outputs a drive signal for switching the switching elements based on a corrected Hall edge constituting each of six Hall stages represented by a combination of potentials of the position detection signals that are outputs of the plurality of sensors; a counter value acquiring unit that acquires a counter value, which is a time of the hall stage represented by a time between two hall edges constituting each of the hall stages, from the position detection signal; a switching control unit that outputs the drive signal to the gate control voltage output unit based on each Hall edge corrected by the delay time, the delay time being calculated by calculating a counter value of each Hall stage of the previous time and a preset correction coefficient, and the gate control voltage output unit outputs the drive signal to the gate control voltage output unit based on each Hall edge corrected by the delay time; having The correction coefficient is Among the two Hall edges constituting a first Hall stage having the smallest counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, the Hall edge whose counter value becomes smaller by expanding the Hall edge in the rotation direction of the brushless motor is defined as a first reference Hall edge, and the position detection signal corresponding to the phase in which the first reference Hall edge is located is defined as a first reference position detection signal; Among the two Hall edges constituting a second Hall stage, which is an intermediate value between the maximum counter value and the minimum counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, the Hall edge whose counter value becomes smaller by expanding the Hall edge in the rotation direction of the brushless motor is defined as a second reference Hall edge, and the position detection signal corresponding to the phase in which the second reference Hall edge is located is defined as a second reference position detection signal; Among the detection errors which are the differences between the average value of the counter values ​​of three consecutive Hall stages in the rotational direction of the brushless motor and the counter values ​​of the Hall stages, a first detection error when the first reference position detection signal is used as a reference and a second detection error when the second reference position detection signal is used as a reference are calculated as follows: A correction coefficient calculated from either the first detection error or the second detection error is selected and set based on whether the first detection error or the second detection error includes a negative value. Motor control device.

2. The control unit is a reference phase selection unit that selects the first reference position detection signal and the second reference position detection signal from the position detection signals; an average value calculation unit for calculating the average value; a detection error calculation unit that calculates the first detection error and the second detection error; a correction coefficient calculation unit that calculates a first correction coefficient by dividing the first detection error by the average value and a second correction coefficient by dividing the second detection error by the average value; a storage control unit that stores one of the first correction coefficient and the second correction coefficient as the correction coefficient for each of the hall stages based on whether the calculated first detection error and the calculated second detection error include negative values; The motor control device according to claim 1 , further comprising:

3. The storage control unit, 3. The motor control device according to claim 2, wherein when one of the calculated first detection error and the calculated second detection error does not include a negative value, the correction coefficient calculated from the one of the first detection error and the second detection error that does not include a negative value is stored.

4. The storage control unit, 4. The motor control device according to claim 2, wherein when the calculated first detection error and the calculated second detection error both include negative values, the correction coefficient calculated from the first detection error or the second detection error, whichever has the smaller absolute value of the negative value, is stored.

5. The motor control device according to claim 1 , wherein the control unit has a storage unit that stores the correction coefficient calculated before shipment of the motor control device.

6. A motor control device controls the rotation of a rotor by controlling the energization of three-phase coils of a brushless motor, A plurality of switching elements arranged to be able to switch the current flowing through the coil; a plurality of sensors provided corresponding to the coils, each of the sensors detecting a rotational position of the rotor; a control unit that outputs a drive signal for switching the switching element based on position detection signals that are outputs of the plurality of sensors; The control unit includes a gate control voltage output unit, a counter value acquisition unit, and a switching control unit, a gate control voltage output step in which the gate control voltage output unit outputs a drive signal for switching the switching elements based on a corrected Hall edge constituting each of six Hall stages represented by a combination of potentials of the position detection signals which are outputs of the plurality of sensors; a counter value acquiring step in which the counter value acquiring unit acquires a counter value, which is a time of the hall stage represented by a time between two hall edges constituting each of the hall stages, from the position detection signal; a switching control step in which the switching control unit multiplies each counter value of the previous Hall stage by a preset correction coefficient, sets the value as the delay time of each Hall edge of the current Hall stage, and causes the gate control voltage output unit to output the drive signal based on each Hall edge corrected by the delay time; having The correction coefficient is Among the two Hall edges constituting a first Hall stage having the smallest counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, the Hall edge whose counter value becomes smaller by expanding the Hall edge in the rotation direction of the brushless motor is defined as a first reference Hall edge, and the position detection signal corresponding to the phase in which the first reference Hall edge is located is defined as a first reference position detection signal; Among the two Hall edges constituting a second Hall stage, which is an intermediate value between the maximum counter value and the minimum counter value among the counter values ​​of the six Hall stages acquired by the counter value acquisition unit, the Hall edge whose counter value becomes smaller by expanding the Hall edge in the rotation direction of the brushless motor is defined as a second reference Hall edge, and the position detection signal corresponding to the phase in which the second reference Hall edge is located is defined as a second reference position detection signal; Among the detection errors which are the differences between the average value of the counter values ​​of three consecutive Hall stages in the rotational direction of the brushless motor and the counter values ​​of the Hall stages, a first detection error when the first reference position detection signal is used as a reference and a second detection error when the second reference position detection signal is used as a reference are calculated as follows: A correction coefficient calculated from either the first detection error or the second detection error is selected and set based on whether the first detection error or the second detection error includes a negative value. Motor control methods.

Citation Information

Patent Citations

  • Motor control device and method of controlling the same

    JP2017121105A

  • Motor control device, and motor control device controlling method

    JP2018133911A

  • Motor control device and control method for motor control device

    JP2020068613A