Motor Control Device

The motor control device improves DC motor position control by integrating relative and absolute position data to correct for inaccuracies, enhancing precision and stability.

JP7547947B2Active Publication Date: 2024-09-10DENSO CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2020186668
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2024-09-10
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

Existing methods for detecting the rotational state of DC motors, such as using potentiometers or current waveforms, suffer from inaccuracies due to resistance variations and noise interference, making precise position control difficult.

Method used

A motor control device that combines relative and absolute position information from a potentiometer and current fluctuations to accurately determine the position of a DC motor's output shaft, incorporating a real position correction mechanism to enhance precision.

Benefits of technology

Enables highly accurate position control of DC motors by correcting position information using both absolute and relative methods, reducing errors from resistance variations and noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547947000002
    Figure 0007547947000002
  • Figure 0007547947000008
    Figure 0007547947000008
  • Figure 0007547947000007
    Figure 0007547947000007
Patent Text Reader

Abstract

To provide a motor controller capable of controlling a position at high accuracy.SOLUTION: A motor controller is a device for controlling the driving of a DC motor 71 interlocked with an output shaft part 75 of an actuator 70. The motor controller comprises: a relative position acquisition part 54 that acquires relative position information of the output shaft part by detecting a current variation when rotating a DC motor; and absolute position acquisition part 53 for acquiring absolute position information of the output shaft part by using a potentiometer 76. The motor controller comprises an actual position setting part 56 for setting actual position information of the output shaft part on the basis of at least one of two pieces of positional information of the absolute position information and the relative position information. The motor controller comprises: an actual position correction part 57 that corrects the actual position information on the basis of at least one position information of the two pieces of positional information of the absolute position information and the relative position information. Thus, the motor controller capable of performing a position control with high accuracy can be obtained.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The disclosure herein relates to a motor controller. [Background technology]

[0002] Patent Document 1 discloses a rotation detection device that detects the rotation state of a brushed DC motor. As a method for detecting the rotation state of a DC motor, a method of providing a sensor such as a rotary encoder or a potentiometer is known. In addition, as a method for detecting the rotation state of a DC motor without using a large-scale sensor, a method of detecting the current waveform of the DC motor is known. The contents of the prior art documents are incorporated by reference as explanations of the technical elements in this specification. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2010-63347 A Summary of the Invention [Problem to be solved by the invention]

[0004] When a method using a potentiometer is adopted as a method for detecting the rotation state of a DC motor, it is difficult to accurately detect the fine rotation state due to variations in the resistance value of the potentiometer, etc. Also, when a method for detecting a current waveform is adopted, position deviations may occur due to the influence of noise, etc., making it difficult to stably and accurately detect the rotation state. In the above-mentioned respects and other respects not mentioned, further improvements are required for motor control devices.

[0005] One disclosed object is to provide a motor control device capable of highly accurate position control. [Means for solving the problem]

[0006] The motor control device disclosed herein is a motor control device that controls the drive of a DC motor (71) that is linked to an output shaft portion (75) of an actuator (70, 270), and includes a relative position acquisition unit (54) that detects current fluctuations when the DC motor is rotated to acquire relative position information of the output shaft portion, an absolute position acquisition unit (53) that acquires absolute position information of the output shaft portion using a potentiometer (76), an actual position setting unit (56) that sets actual position information of the output shaft portion based on at least one of two pieces of position information, the absolute position information and the relative position information, and an actual position correction unit (57) that corrects the actual position information based on at least one of two pieces of position information, the absolute position information and the relative position information. The apparatus further includes an abnormality determination unit (59) that determines whether or not there is an abnormality in the absolute position information or the relative position information, and a timer (55) that counts the passage of time, and when the abnormality determination unit determines that there is an abnormality, the real position correction unit does not correct the real position information using the absolute position information or the relative position information at the timing when the abnormality occurs, which is obtained using the timer. . The motor control device disclosed herein is a motor control device that controls the drive of a DC motor (71) that is linked to an output shaft portion (75) of an actuator (70, 270), and includes a relative position acquisition unit (54) that detects current fluctuations when the DC motor is rotated to acquire relative position information of the output shaft portion, an absolute position acquisition unit (53) that acquires absolute position information of the output shaft portion using a potentiometer (76), an actual position setting unit (56) that sets actual position information of the output shaft portion based on at least one of two position information, the absolute position information and the relative position information, and The system includes an actual position correction unit (57) that corrects actual position information based on at least one piece of position information, an abnormality determination unit (59) that determines the presence or absence of an abnormality in the absolute position information or the relative position information, and a voltage acquisition unit (51) that acquires a voltage in a DC power supply (5) for driving a DC motor, and when the amount of fluctuation in the voltage acquired by the voltage acquisition unit is equal to or greater than a threshold, the abnormality determination unit determines that there is an abnormality in the relative position information at that timing, and when the abnormality determination unit determines that there is an abnormality, the actual position correction unit does not correct the actual position information using the absolute position information or the relative position information at the timing when the abnormality occurs.

[0007] The disclosed motor control device includes an actual position setting unit that sets actual position information of the output shaft based on at least one of two pieces of position information, the absolute position information and the relative position information, and an actual position correction unit that corrects the actual position information based on at least one of the two pieces of position information, the absolute position information and the relative position information. Therefore, it is possible to obtain corrected actual position information from two pieces of absolute position information and relative position information obtained by different methods. Therefore, it is easier to obtain the position of the output shaft with high accuracy compared to a case where the position of the output shaft is obtained based on only one of the absolute position information and the relative position information. Therefore, it is possible to provide a motor control device that can control the position with high accuracy.

[0008] The various aspects disclosed in this specification adopt different technical means to achieve their respective objectives. The claims and the parenthetical symbols described in this section are merely illustrative of the corresponding relationship with the embodiments described below, and are not intended to limit the technical scope. The objectives, features, and effects disclosed in this specification will become clearer with reference to the following detailed description and the accompanying drawings. [Brief description of the drawings]

[0009] [Figure 1] 1 is a diagram showing a configuration of a vehicle air conditioning device; [Diagram 2] FIG. 2 is a block diagram showing a schematic configuration of a motor system. [Diagram 3] 4 is a flowchart relating to control of the motor system in a correction mode. [Figure 4] FIG. 13 is a diagram showing a characteristic map of a potentiometer during correction. [Diagram 5] FIG. 13 is a diagram showing a characteristic map of a potentiometer after correction. [Figure 6] FIG. 11 is a block diagram showing a schematic configuration of a motor system according to a second embodiment. [Figure 7] 13 is a flowchart relating to correction control of a motor system in a third embodiment. [Figure 8] 13 is a flowchart relating to correction control of a motor system in a fourth embodiment. [Figure 9] 13 is a flowchart relating to correction control of a motor system in a fifth embodiment. [Figure 10] 13 is a flowchart relating to correction control of a motor system in a sixth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] A number of embodiments will be described with reference to the drawings. In a number of embodiments, functionally and / or structurally corresponding and / or associated parts may be given the same reference numerals or reference numerals with different digits in the hundredths or more. For corresponding and / or associated parts, reference may be made to the description of other embodiments.

[0011] First embodiment The motor control device 50 is a device for controlling the rotational drive of a motor device. In the following, an example will be described in which the motor control device 50 controls each motor device provided in the vehicle air conditioner 1. However, the motor devices controlled by the motor control device 50 are not limited to the motor devices provided in the vehicle air conditioner 1. Other motor devices mounted on the vehicle may also be controlled. The motor control device 50 may control a motor device for adjusting the opening of a valve device such as a three-way valve that switches the flow of a liquid such as engine coolant. Alternatively, the motor device mounted on something other than the vehicle may be controlled.

[0012] In FIG. 1, the vehicle air conditioner 1 is mounted on a vehicle. The vehicle is, for example, an automobile equipped with a gasoline-driven engine. However, the vehicle may also be an electric automobile equipped with a driving motor, or a hybrid automobile equipped with both an engine and a motor. The vehicle air conditioner 1 is a device that adjusts the temperature of the air taken in and blows it out into the vehicle cabin. In other words, the vehicle air conditioner 1 is a device that performs air conditioning operations such as heating, cooling, and dehumidifying the vehicle cabin.

[0013] The vehicle air conditioner 1 includes an air conditioning case 10 in which an air path through which air flows is formed. The air conditioning case 10 houses various devices used for air conditioning operation. The air conditioning case 10 is formed with two air intakes, an inside air inlet 11n and an outside air inlet 11g. The air conditioning case 10 is formed with a defroster outlet 15 that blows conditioned air to the front window of the vehicle. The air conditioning case 10 is formed with a face outlet 16 that blows conditioned air to the upper part of the front seat. The air conditioning case 10 is formed with a foot outlet 17 that blows conditioned air to the lower part of the front seat.

[0014] The vehicle air conditioner 1 includes a blower 31, an evaporator 32, and a heater core 33. The blower 31 is a device for blowing air into the air conditioner case 10. The evaporator 32 is a heat exchanger in which a refrigerant flows and cools the air by taking heat of vaporization from the surrounding air when the refrigerant evaporates from a liquid to a gas. The heater core 33 is a heat exchanger in which high-temperature engine coolant flows and heats the surrounding air using the heat of the engine coolant. However, instead of the heater core 33, an electric heater that consumes electricity to heat the air may be used, or both the heater core 33 and the electric heater may be used in combination.

[0015] The vehicle air conditioner 1 includes an inside / outside air switching door 21 for opening and closing the inside air inlet 11n and the outside air inlet 11g. The inside / outside air switching door 21 is a door device that adjusts the amount of air introduced into the air conditioning case 10 from the inside air inlet 11n and the outside air inlet 11g. The door device is also called a flap device. The door device is also called a damper device.

[0016] The inside / outside air switching door 21 opens the inside air inlet 11n and closes the outside air inlet 11g to realize an inside air mode in which conditioned air is circulated inside the vehicle. The inside / outside air switching door 21 closes the inside air inlet 11n and opens the outside air inlet 11g to realize an outside air mode in which conditioned air is taken in from outside the vehicle. However, in the outside air mode, the inside air inlet 11n does not have to be completely closed. For example, the inside air inlet 11n may be left slightly open to take in a smaller proportion of inside air than outside air to circulate the air.

[0017] The vehicle air conditioner 1 includes an air mix door 23 for adjusting the temperature of the conditioned air. The air mix door 23 is provided downstream of the evaporator 32 and upstream of the heater core 33 in the air flow inside the air conditioning case 10. By controlling the opening degree of the air mix door 23, the amount of air that passes through the heater core 33 and is heated can be adjusted.

[0018] The vehicle air conditioner 1 includes a defroster door 25 for opening and closing the defroster outlet 15. The defroster door 25 is a door device that adjusts whether or not conditioned air is blown out from the defroster outlet 15 and the amount of blown out air. The vehicle air conditioner 1 includes a face door 26 for opening and closing the face outlet 16. The face door 26 is a door device that adjusts whether or not conditioned air is blown out from the face outlet 16 and the amount of blown out air. The vehicle air conditioner 1 includes a foot door 27 for opening and closing the foot outlet 17. The foot door 27 is a door device that adjusts whether or not conditioned air is blown out from the foot outlet 17 and the amount of blown out air.

[0019] The vehicle air conditioner 1 has five air outlet modes: defroster mode, face mode, foot mode, bi-level (B / L) mode, and foot / defroster (F / D) mode. However, the types of air outlet modes are not limited to the above-mentioned five modes. The defroster door 25, face door 26, and foot door 27 are door devices that switch modes in the vehicle air conditioner 1, and are also called mode doors.

[0020] The inside / outside air switching door 21 can rotate in a range from a state in which the inside air inlet 11n is closed to a state in which the outside air inlet 11g is closed. The inside / outside air switching door 21 can rotate through an angle of, for example, 100°. The air mix door 23 can rotate in a range from a state in which the amount of air passing through the heater core 33 is minimized to a state in which the amount of air not passing through the heater core 33 is minimized. The air mix door 23 can rotate through an angle of, for example, 180°.

[0021] The defroster door 25 is rotatable in a range from a state in which the defroster outlet 15 is closed to a state in which the defroster outlet 15 is completely open. The rotatable angle of the defroster door 25 is, for example, 90°. The face door 26 is rotatable in a range from a state in which the face outlet 16 is closed to a state in which the face outlet 16 is completely open. The rotatable angle of the face door 26 is, for example, 90°. The foot door 27 is rotatable in a range from a state in which the foot outlet 17 is closed to a state in which the foot outlet 17 is completely open. The rotatable angle of the foot door 27 is, for example, 90°.

[0022] The mode doors, namely, the defroster door 25, the face door 26, and the foot door 27, may be configured as one continuous door device. For example, a rotary door may be used in which a door plate portion formed in an arcuate surface is rotated to open and close each air outlet. In this case, one door plate portion has the functions of three door devices, namely, the defroster door 25, the face door 26, and the foot door 27. The rotary door can rotate at an angle of, for example, 330°.

[0023] The inside / outside air switching door 21, the air mix door 23, the defroster door 25, the face door 26, and the foot door 27 are door devices whose door plate angle is adjusted by a servo motor. Since the air flow rate at the door plate changes depending on the angle of the door plate, it is preferable to control the angle of the door plate of each door device as accurately as possible.

[0024] 2, the motor system 100 includes a motor control device 50 and an actuator 70. The actuator 70 includes a DC motor 71, a speed reducer 72, an output shaft 75, and a potentiometer 76. The DC motor 71 is a servo motor that is controlled by the motor control device 50. The DC motor 71 is a motor that can easily obtain a larger torque than a stepping motor.

[0025] The DC motor 71 includes a stator having permanent magnets that function as field poles. The DC motor 71 includes a rotor with an air gap on the inner circumference of the field poles. The DC motor 71 includes a commutator on the same axis as the rotor. The commutator is also called a commutator. The DC motor 71 includes brushes that come into contact with the commutator to pass current through the commutator. The DC motor 71 is configured such that the commutator in contact with the brushes is constantly switched by driving the motor to rotate.

[0026] The output shaft portion 75 is a portion of the actuator 70 that outputs a driving force to the outside. The output shaft portion 75 is connected to a door device such as the inside / outside air switching door 21 of the vehicle air conditioner 1 to rotate the door device. The speed reducer portion 72 is a portion that reduces the speed of the rotation of the DC motor 71 and transmits it to the output shaft portion 75. The speed reducer portion 72 can adjust the torque and rotation speed required for the actuator 70. The speed reducer portion 72 is equipped with a plurality of gears including a worm gear.

[0027] The potentiometer 76 is a device for measuring the rotational position of the output shaft portion 75. The potentiometer 76 is a variable resistor whose resistance value changes according to the rotational position. A predetermined voltage is applied to the potentiometer 76, and the change in the resistance value of the potentiometer 76 can be obtained as a change in voltage. By using the potentiometer 76, the current rotational position of the output shaft portion 75 can be measured. The potentiometer 76 is also called a potentiometer sensor. The potentiometer 76 is low-cost and easy to detect the rotational position compared to a rotational position detection sensor such as an encoder.

[0028] The potentiometer 76 is configured to include, for example, a resistive film provided continuously along the circumferential direction of a rotating shaft coaxial with the output shaft portion 75, and a connection terminal that slides on the resistive film. By applying a voltage to the resistive film of the potentiometer 76, a voltage drop is caused in stages in the resistive film. This makes it possible to detect which position on the resistive film the connection terminal is in contact with by the magnitude of the voltage of the potentiometer 76. In other words, the rotational position of the connection terminal can be obtained from the magnitude of the voltage of the potentiometer 76. The resistive film in an ideal potentiometer 76 is formed with a uniform thickness from the start end to the end end. However, the resistance value of the actual potentiometer 76 may be significantly different from the ideal state due to manufacturing variations and aging deterioration. In particular, when an operation is performed a number of times exceeding the guaranteed number of times, aging deterioration becomes noticeable, and a change in resistance value, such as an increase in the resistance value of a part of the resistive film, is likely to occur.

[0029] The motor control device 50 includes a voltage acquisition unit 51 and a drive unit 52. The voltage acquisition unit 51 is a part that acquires a power supply voltage, which is an output voltage of a DC power supply 5. The voltage acquisition unit 51 acquires the voltage in order to monitor whether the power supply voltage is at an appropriate value. Here, the DC power supply 5 is, for example, a 12V auxiliary battery. However, if there is no need to monitor the power supply voltage, the voltage acquisition unit 51 may be omitted.

[0030] The driving unit 52 is a part that drives the DC motor 71. The driving unit 52 switches between a state in which the DC motor 71 is driven and a state in which the DC motor 71 is not driven by controlling the timing of applying the power supply voltage of the DC power supply 5 to the DC motor 71. The driving unit 52 controls the rotational driving of the DC motor 71 based on corrected actual position information, which will be described later. The driving unit 52 and the DC motor 71 are connected to each other by a signal line.

[0031] The motor control device 50 includes an absolute position acquisition unit 53. The absolute position acquisition unit 53 acquires position information using a potentiometer 76. Here, the position information that can be acquired using the potentiometer 76 is absolute position information indicating the rotational position of the potentiometer 76 linked to the output shaft portion 75. However, the potentiometer 76 has a tolerance as a component. For this reason, there is a deviation between the actual value and the ideal value. For example, the variation in the resistive film of the potentiometer 76, which is a variable resistor, causes the characteristic map indicating the relationship between the voltage and the rotational position to deviate from the ideal characteristic map. Therefore, in order to grasp the position of the output shaft portion 75 more accurately, it is important to correct the variation of the potentiometer 76. The absolute position acquisition unit 53 and the potentiometer 76 are connected to each other by a signal line.

[0032] The motor control device 50 includes a relative position acquisition unit 54 and a timer 55. The relative position acquisition unit 54 detects the fluctuation of the current supplied to the DC motor 71 via the drive unit 52 as a relative position signal. More specifically, the current waveform of the DC motor 71 is detected as a relative position signal. While the DC motor 71 is rotating, the current increases and decreases smoothly like a sine wave. By detecting the current value at a detection period that is sufficiently shorter than the period of the sine wave current waveform, the number of rotations of the DC motor 71 from the position where the detection is started can be obtained. For example, when the period of the sine wave is 2 milliseconds, the detection period can be set to 100 microseconds, which is sufficiently shorter than 2 milliseconds, to obtain the current waveform. In this case, one period of the current waveform is detected by detecting 20 current values. If 50 current values ​​are detected, 2.5 periods of the current waveform are detected.

[0033] The method of detecting the current waveform is not limited to the above-mentioned method of acquiring the current value at intervals sufficiently short with respect to the period of the current waveform. For example, the current waveform may be detected using a sine wave detection circuit using a resistor element and a capacitor element. Regardless of the method of detecting the current waveform, the number of revolutions of the DC motor 71 can be acquired by determining how many periods the detected current waveform has.

[0034] The rotation speed of the DC motor 71 is linked to the rotation of the output shaft 75. Therefore, the relative position acquisition unit 54 detects a current value, which is a relative position signal, and can measure the amount of rotational movement of the output shaft 75. The position information that can be acquired using the relative position acquisition unit 54 is relative position information that indicates how much the output shaft 75, which is linked to the rotation of the DC motor 71, has rotated based on the position at which detection began.

[0035] The timer 55 is a device that measures the time when the relative position acquisition unit 54 detects the relative position signal. By using the timer 55, it is possible to count the elapsed time from the start of position detection by the relative position acquisition unit 54. As a result, the relative position acquisition unit 54 associates each relative position signal detected using the time information acquired by the timer 55 with the timing at which the relative position signal was detected. A plurality of timers 55 may be provided. In this case, a dedicated timer 55 may be provided that associates the voltage of the potentiometer 76 acquired by the absolute position acquisition unit 53 with the timing at which the voltage was acquired. In addition, a dedicated timer 55 may be provided that associates the voltage of the DC power supply 5 acquired by the voltage acquisition unit 51 with the timing at which the voltage was acquired.

[0036] The motor control device 50 includes an actual position setting unit 56 and an actual position correction unit 57. The actual position setting unit 56 sets real position information, which is information indicating the actual position of the output shaft unit 75, based on the relative position information or the absolute position information. For example, the absolute position information acquired using the potentiometer 76 is regarded as the real position information of the output shaft unit 75, and the absolute position information is set as the real position information. However, the relative position information acquired by the relative position acquisition unit 54 may also be set as the real position information.

[0037] The real position correction unit 57 is a part that corrects the real position information set by the real position setting unit 56. The real position correction unit 57 generates correction information from two pieces of position information, the absolute position information acquired by the absolute position acquisition unit 53 and the relative position information acquired by the relative position acquisition unit 54. More specifically, the real position information is corrected by adding a position difference between the absolute position information and the relative position information to the real position information. For example, when the absolute position information is set by the real position setting unit 56 to the real position information, the difference between the relative position information and the absolute position information, which is the real position information, is added to the real position information, so that the real position information can be corrected to match the relative position information. However, the method of correcting the real position information is not limited to the above example.

[0038] The motor control device 50 includes a storage unit 58 and an abnormality determination unit 59. The storage unit 58 is a portion that stores information such as corrected actual position information. The storage unit 58 stores correction information related to corrections of actual position information that have been implemented in the past.

[0039] The abnormality determination unit 59 is a part that determines the presence or absence of an abnormality in the motor control device 50. The abnormality determination unit 59 is connected to the voltage acquisition unit 51 and determines the presence or absence of an abnormality in the DC power supply 5. The abnormality determination unit 59 is connected to the relative position acquisition unit 54 and determines the presence or absence of an abnormality in the relative position signal. The function of the abnormality determination unit 59 is not limited to the above example. The abnormality determination unit 59 is connected to parts other than the voltage acquisition unit 51 and the relative position acquisition unit 54 and can determine the presence or absence of various abnormalities in the connected parts.

[0040] The correction mode, in which the motor control device 50 corrects the actual position information, will be described below. In the correction mode, the output shaft portion 75 is driven to rotate. Therefore, during the correction mode, the door device is driven in a manner different from that required by the air conditioning control. Therefore, it is preferable not to execute the correction mode when there is an air conditioning request for the vehicle air conditioner 1, but to execute the correction mode when there is no air conditioning request for the vehicle air conditioner 1.

[0041] In FIG. 3, when the correction mode is started, the driving unit 52 moves the output shaft portion 75 to a correction start position in step S101. The correction start position can be set to a position where the voltage of the potentiometer 76 is minimum. For example, when the voltage of the potentiometer 76 varies from 0V to 5V, the position indicating 0V is set to the correction start position. The correction start position is not limited to the position where the voltage of the potentiometer 76 is minimum. For example, the start end position, which is one end position in the movable range of the output shaft portion 75, may be set as the correction start position. The relative position information is obtained by acquiring the position of the output shaft portion 75 from the magnitude of the relative movement of the output shaft portion 75 based on this correction start position. After the output shaft portion 75 is moved to the correction start position, the process proceeds to step S102.

[0042] In step S102, the driving unit 52 starts moving the output shaft 75 toward the correction end position. The correction end position can be set to a position where the voltage of the potentiometer 76 is at its maximum. For example, if the voltage of the potentiometer 76 varies from 0V to 5V, the position indicating 5V is set to the correction end position. The correction end position is not limited to the position where the voltage of the potentiometer 76 is at its maximum. For example, the terminal position, which is the other end position of the movable range of the output shaft 75, may be set as the correction end position. The terminal position is the position opposite to the start end position of the movable range of the output shaft 75.

[0043] When the motor system 100 is used for the inside / outside air switching door 21, for example, the door position in the inside air mode can be set as the correction start position, and the door position in the outside air mode can be set as the correction end position. When the motor system 100 is used for driving the air mix door 23, for example, the position covering the flow path that passes through the heater core 33 can be set as the correction start position, and the position covering the flow path that does not pass through the heater core 33 can be set as the correction end position.

[0044] When the motor system 100 is used for the defroster door 25, for example, the position where the defroster outlet 15 is fully opened can be set as the correction start position, and the position where the defroster outlet 15 is fully closed can be set as the correction end position. At the position where the defroster outlet 15 is fully opened, the defroster door 25 is brought into contact with the air conditioning case 10 and abutted against the abutment position, making it easy to accurately determine the correction start position. At the position where the defroster outlet 15 is fully closed, the defroster door 25 is brought into contact with the air conditioning case 10 and abutted against the air conditioning case 10, making it easy to accurately determine the correction end position. However, a large load may be placed on the door device when abutting. For this reason, the door may be moved at a low speed up to the correction start position to reduce the load at the time of abutment, and the correction end position may be set to a position where the door does not abut. Alternatively, both the correction start position and the correction end position may be set to a position where the defroster door 25 does not abut against the air conditioning case 10.

[0045] When the motor system 100 is used for the face door 26, the correction start position and the correction end position can be set in the same manner as when the motor system 100 is used for the defroster door 25. When the motor system 100 is used for the foot door 27, the correction start position and the correction end position can be set in the same manner as when the motor system 100 is used for the defroster door 25.

[0046] When the output shaft 75 is moved from the correction start position to the correction end position, the rotation speed of the DC motor 71 is kept constant. In other words, the drive unit 52 drives the DC motor 71 so that the output shaft 75 rotates at a constant speed. After the output shaft 75 starts to move toward the correction end position, the process proceeds to step S111.

[0047] In step S111, it is determined whether the relative position acquisition unit 54 has detected a relative position signal. For example, when detecting a current waveform during rotational driving of the DC motor 71, each current value constituting the current waveform as a whole is a relative position signal.

[0048] When a relative position signal is detected, the timer 55 is used to obtain the time when the relative position signal was detected. This makes it possible to know when the relative position signal was obtained. If a relative position signal is detected, the process proceeds to step S112. On the other hand, if a relative position signal is not detected, the process proceeds to step S121.

[0049] In step S112, the relative position acquisition unit 54 acquires relative position information at the moment the relative position signal is detected. The relative position acquisition unit 54 acquires the relative position information by calculating the rotational position of the output shaft 75 from a reference correction start position based on the detected relative position signal. At this time, the relative position information functions as information indicating at what point in time the output shaft 75 is in what relative position. After acquiring the relative position information, the process proceeds to step S113.

[0050] In step S113, the absolute position acquisition unit 53 acquires absolute position information at the moment the relative position signal is detected. In other words, the absolute position information at the timing when the relative position information is acquired is acquired. The absolute position acquisition unit 53 acquires the absolute position from the detected voltage of the potentiometer 76 and the characteristic map stored in the memory unit 58. The characteristic map is a map showing the relationship between the voltage of the potentiometer 76 and the rotational position of the output shaft portion 75. The initial map, which is the characteristic map in the initial state, is determined by the specifications of the potentiometer 76. However, in the initial map, a predetermined tolerance due to the manufacturing variation of the potentiometer 76 is set, and it is difficult to acquire the rotational position of the output shaft portion 75 with high accuracy. After acquiring the absolute position information, the process proceeds to step S114.

[0051] In step S114, the real position setting unit 56 sets real position information. In setting the real position information, either the absolute position information or the relative position information is regarded as the real position information. After setting the real position information, the process proceeds to step S115.

[0052] In step S115, the real position correction unit 57 corrects the real position information. In correcting the real position information, the real position information is corrected using at least one of the absolute position information and the relative position information. When the absolute position information is set as the real position information, the real position information is corrected using at least the relative position information. On the other hand, when the relative position information is set as the real position information, the real position information is corrected using at least the absolute position information.

[0053] In the following, a method of correcting the real position information will be described by taking as an example a case where absolute position information is set in the real position information and the real position information is corrected using relative position information. FIG. 4 is a diagram showing the relationship between the rotational position Tp and the voltage Vp of the potentiometer 76 during correction. The rotational position of the potentiometer 76 corresponds to the rotational position of the output shaft portion 75. In the diagram, the horizontal axis indicates the rotational position and the vertical axis indicates the voltage. In the diagram, an initial map, which is a characteristic map in an initial state that does not take into account the variation in resistance value, is shown by a dashed line. The initial map is a characteristic map for the potentiometer 76 in an ideal state. In the diagram, the initial map is shown as Mi.

[0054] Based on the relative position information, the voltage V1 of the potentiometer 76 at the timing when the rotational position reaches T1 is plotted. When based on the initial map, the voltage when the rotational position is T1 is Vs1, which is a voltage lower than V1. The deviation between the plotted point and the initial map corresponds to the correction information. In other words, the difference between V1 and Vs1 corresponds to the correction information at the rotational position of T1. After correcting the actual position information, proceed to step S116.

[0055] 3, the corrected real position information is stored in the storage unit 58. However, instead of storing the corrected real position information, correction information indicating a deviation from the initial map may be stored, so that the corrected real position information is substantially recorded. After the corrected real position information is stored in the storage unit 58, the process proceeds to step S121.

[0056] In step S121, the motor control device 50 determines whether the output shaft portion 75 has reached the correction end position. If the output shaft portion 75 has reached the correction end position, the process proceeds to step S122. On the other hand, if the output shaft portion 75 has not reached the correction end position, the process returns to step S111. As a result, detection of the relative position signal and the associated correction of the actual position information are repeated from the correction start position until the output shaft portion 75 reaches the correction end position.

[0057] In step S122, the abnormality determination unit 59 verifies the validity of the relative position signal. More specifically, it determines whether the relative position signal is normal or not, and verifies whether the correction of the actual position information is performed based on a normal relative position signal. If the relative position signal is normal, it determines that the corrected actual position information at that timing is appropriate and reflects it in the correction. On the other hand, if there is an abnormality in the relative position signal, it determines that the corrected actual position information at that timing is inappropriate and does not reflect it in the correction.

[0058] An example of an abnormality determination by the abnormality determination unit 59 will be described below. The abnormality determination unit 59 determines that an abnormality exists when the timing from when a relative position signal is acquired until when the next relative position signal is acquired is shorter than a predetermined time. For example, in a case where it is assumed that a relative position signal can be acquired at intervals of about 100 microseconds under normal circumstances, the predetermined time is set to 50 microseconds. In this case, when the time required from when the immediately preceding relative position signal is acquired until when the next relative position signal is acquired is less than the predetermined time of 50 microseconds, the acquired relative position signal is determined to be an abnormal signal.

[0059] Furthermore, even if the timing from when a relative position signal is acquired until the next relative position signal is acquired is long, if it is determined that a relative position signal that should have been acquired exists in between, the abnormality determination unit 59 determines that there is no abnormality in the relative position signal itself. For example, assume that a relative position signal can be acquired at intervals of about 100 microseconds under normal circumstances. In this case, if a relative position signal is acquired at 1005 microseconds after a relative position signal acquired at 810 microseconds, it can be determined that a relative position signal that should have been acquired around 900 microseconds could not be acquired. In this case, it is determined that the relative position signal acquired at 1005 microseconds is a relative position that is two relative position signals ahead of the relative position of the previous relative position signal acquired at 810 microseconds.

[0060] Another example of the abnormality determination by the abnormality determination unit 59 will be described below. The abnormality determination unit 59 determines that an abnormality exists when the amount of fluctuation in the power supply voltage acquired by the voltage acquisition unit 51 is equal to or greater than the threshold. For example, in a case where the DC power supply 5 stably outputs a voltage of 12 V under normal circumstances, the threshold of the amount of voltage fluctuation is set to 2 V. In this case, the relative position signal acquired at the time when the voltage fluctuation of the DC power supply 5 exceeds 2 V is determined to be an abnormal signal. After selecting the corrected actual position information, the process proceeds to step S123.

[0061] In step S123, the storage unit 58 stores appropriate correction information. In other words, for the appropriate correction information determined to be normal by the abnormality determination unit 59, each piece of correction information is integrated and stored as one correction information. More specifically, a post-correction map, which is a characteristic map after correction, is stored in the storage unit 58. In step S122, if it is determined that the relative position signal is abnormal, the corresponding relative position signal is not used for correction. For this reason, some plot points may be missing in the post-correction map. Even if some plot points are missing in the post-correction map, the post-correction map can be created based on normal plot points. However, if the number of plot points is small, such as if there are many relative position signals determined to be abnormal, a post-correction map with low accuracy may be created. In this case, the correction mode may be started again from the beginning without creating the post-correction map.

[0062] 5 is a diagram showing the relationship between the rotational position Tp and the voltage Vp of the potentiometer 76 after the correction is completed. In the figure, a solid line shows an example of a post-correction map, which is a characteristic map after correction that takes into account the variation in the resistance value, etc. The post-correction map is a map that shows the characteristics of the actual potentiometer 76. In the figure, the post-correction map is indicated as Mc.

[0063] The range from the correction start position to the correction end position is divided into 10 stages from T1 to T10. Based on the relative position information, the voltage of the potentiometer 76 at the time when the rotation position reaches each of the positions T1 to T10 is plotted. However, for the rotation position that would normally correspond to T5, it is determined that a normal relative position signal could not be acquired and is not reflected in the plot. The lines of the post-correction map are drawn smoothly so as to pass through the zero point where both the rotation position and the voltage of the potentiometer 76 are zero and multiple plot points. However, the method of drawing the lines of the post-correction map can be appropriately selected from various approximation methods.

[0064] In the initial map, the slope is a straight line with a constant gradient. On the other hand, in the corrected map, the slope is slightly different depending on the rotational position. At T1, the voltage V1 in the corrected map is larger than the voltage Vs1 in the initial map. In other words, if the rotation of the DC motor 71 is controlled to T1 based on the initial map, the DC motor 71 is controlled to a rotational position smaller than T1. On the other hand, at T8, the voltage V8 in the corrected map is smaller than the voltage Vs8 in the initial map. In other words, if the rotation of the DC motor 71 is controlled to T8 based on the initial map, the DC motor 71 is controlled to a rotational position larger than T8.

[0065] The initial map indicates real position information before correction. In other words, the initial map indicates absolute position information. The corrected map indicates real position information after correction. The difference between the initial map and the corrected map indicates the correction information. Obtaining absolute value information using the corrected map instead of the initial map and setting real position information is equivalent to obtaining absolute position information and correcting it with relative position information.

[0066] In the above description, the rotational position is divided into 10 stages from T1 to T10 in the post-correction map, and the corresponding voltages of the potentiometer 76 are plotted, but the number of divisions is not limited to 10 stages. For example, every time a relative position signal is detected, the relationship between the rotational position and the voltage of the potentiometer 76 may be plotted, and the number of plot points may be 10,000 or more. When the relative position signal is a current value of a current waveform, the time from when a relative position signal is detected until the next relative position signal is detected depends on the speed at which the DC motor 71 is rotated, and is, for example, 100 microseconds. When the signal detection interval is 100 microseconds and it takes 5 seconds to move from the correction start position to the correction end position, the number of plot points is 50,000.

[0067] More accurate correction can be achieved by obtaining the voltage of the potentiometer 76 in detail relative to the rotational position to ensure a large number of plot points. On the other hand, the fewer the number of plot points, the shorter the time required to create the map. For example, it may be set so that a relative position signal is detected every time a current value constituting a current waveform is detected twice, and the voltage of the potentiometer 76 relative to the rotational position is plotted. This makes it possible to halve the number of plot points compared to plotting every time a relative position signal is detected. This makes it easier to shorten the time required for correction. It is preferable to set the number of plot points appropriately according to the required correction accuracy and required time.

[0068] The process from detecting the relative position signal in step S111 to storing the corrected actual position information in step S116 is performed using a microcomputer of the motor control device 50. For this reason, it is preferable that the microcomputer has high processing performance. More specifically, it is preferable that the microcomputer can set a scan channel and convert multiple channels. In addition, it is preferable that the microcomputer can store information in the storage unit 58 at high speed by DMA (Direct Memory Access). In addition, it is preferable that the microcomputer has a high robustness, in which external interrupt AD conversion is possible and the external interrupt itself is equipped with a noise filter function. In particular, when the output shaft unit 75 is moved from the correction start position to the correction end position in several seconds and the number of plot points reaches tens of thousands, it is necessary to process a huge amount of information in a short time. Therefore, it is important that the microcomputer has high performance and can execute processing with an extremely small time lag in order to accurately correct the actual position information.

[0069] The storage unit 58 simultaneously stores two characteristic maps, an initial map and a corrected map. Here, the abnormality determination unit 59 may determine whether or not the corrected map is included within the range of the allowable tolerance of the initial map. If the entire corrected map is included within the range of the allowable tolerance of the initial map, it is determined that there is no abnormality in the corrected map and the potentiometer 76. On the other hand, if even a part of the corrected map is not included within the range of the allowable tolerance of the initial map, it is determined that there is an abnormality in at least one of the corrected map and the potentiometer 76. If it is determined that there is an abnormality, it is possible that the potentiometer 76 is normal but there is an abnormality in the correction mode, and an incorrect corrected map has been obtained. In this case, a suitable corrected map may be obtained by performing the correction mode again. If the corrected map is not included within the range of the allowable tolerance of the initial map, it is preferable to perform the correction mode again to the user or the like, or to notify the user to replace the potentiometer 76.

[0070] In the case where a corrected map obtained in a correction mode previously performed has already been stored in the memory unit 58, both the past corrected map and the latest corrected map may be stored. In this way, the past corrected map and the latest corrected map can be compared to estimate the degree of deterioration of the potentiometer 76 over time. After the corrected map is stored in the memory unit 58 as appropriate correction information, the correction mode is terminated.

[0071] If the corrected map is stored in the memory unit 58, the absolute position acquisition unit 53 can acquire absolute position information of the output shaft unit 75 based on the corrected map when driving the motor system 100. Here, the absolute position information acquired using the corrected map is position information that takes into account the variation of the potentiometer 76, and it is easier to acquire the actual rotational position of the output shaft unit 75 more accurately than the absolute position information acquired using the initial map. Therefore, the rotational position of the output shaft unit 75 can be obtained with high accuracy without having to perform control using relative position information, such as the acquisition of relative position information by the relative position acquisition unit 54.

[0072] When driving the motor system 100, the DC motor 71 is controlled to approach a target rotation position while detecting the actual rotation position of the output shaft portion 75. When the corrected map can be used, the actual rotation position of the output shaft portion 75 is detected using the corrected map. The driving method of the motor system 100 is not limited to the method using the corrected map. When the corrected map cannot be used, the rotation position of the output shaft portion 75 can be detected using only the relative position information. In this case, by accurately grasping the rotation position at the start of position detection using only the relative position information, the rotation position can be detected with the same accuracy as the method using the corrected map.

[0073] A detection area is set in the potentiometer 76. The detection area is an area where a continuous resistive film is provided. The potentiometer 76 can detect a voltage Vp corresponding to the rotational position Tp within the detection area. In the potentiometer 76, the resistive film cannot be arranged in an area where a conductor or the like connected to the end of the resistive film is provided. For this reason, the resistive film cannot be arranged in a continuous ring shape over 360°, and for example, the resistive film is provided over 300°, and the remaining 60° is not provided with the resistive film. The area equivalent to 300° where the resistive film is provided is the detection area. On the other hand, the area equivalent to 60° where the resistive film is not provided is the non-detection area.

[0074] The more the detection range of the potentiometer 76 corresponds to the movable range of the output shaft portion 75, the easier it is to finely detect changes in the rotational position of the output shaft portion 75. For example, assume that the detection range of the potentiometer 76 is 300° and the voltage fluctuation of the potentiometer 76 is 0V to 5V. When the entire detection range of the potentiometer 76 corresponds to the output shaft portion 75 with a movable range of 300°, a voltage fluctuation of 0.1V corresponds to a rotation of the output shaft portion 75 equivalent to 6°. When the entire detection range of the potentiometer 76 corresponds to the output shaft portion 75 with a movable range of 150°, a voltage fluctuation of 0.1V corresponds to a rotation of the output shaft portion 75 equivalent to 3°.

[0075] When the rotational drive of the DC motor 71 is controlled using the corrected map, if the rotational drive is out of the detection range of the potentiometer 76, the rotational position cannot be detected. For example, assume that the rotatable angle of the door device is 330° and the detection range of the potentiometer 76 is 300°. If the rotatable angle of the door device is directly made to correspond to the detection range of the potentiometer 76, the potentiometer 76 cannot detect the rotational position in the range equivalent to 30°. In this way, when the rotational position of the output shaft portion 75 linked to the door device is located outside the detection range of the potentiometer 76, the rotational position is detected based only on the relative position information. In other words, the relative position information is set as the actual position information, and correction is not performed using the absolute position information. As a result, even in a situation where the drive control of the DC motor 71 cannot be performed using the corrected map, the drive control of the DC motor 71 can be continued using the relative position information.

[0076] When the DC motor 71 is driven and controlled using the corrected map, the corrected actual position information is updated every time the voltage of the potentiometer 76 is acquired. Therefore, the DC motor 71 is driven and controlled so that the output shaft portion 75 approaches the target rotation position based on the updated corrected actual position information. Therefore, the output shaft portion 75 may exceed the target rotation position between the acquisition of the voltage of the potentiometer 76 and the next acquisition of the voltage. The longer the voltage acquisition interval of the potentiometer 76, the more likely the above-mentioned hunting is to occur. The voltage acquisition interval is, for example, 20 milliseconds. Also, the smaller the amount of rotational movement required to reach the target rotation position, the more likely the above-mentioned hunting is to occur. Also, the faster the movement of the door device, the more likely the above-mentioned hunting is to occur.

[0077] When the DC motor 71 is controlled and driven using the relative position information, the current waveform is updated every time the detection period of the current waveform elapses. Therefore, the DC motor 71 is controlled and driven based on the updated current waveform so that the output shaft portion 75 approaches the target rotation position. The detection period of the current waveform is at least shorter than the voltage acquisition interval of the potentiometer 76. The detection period of the current waveform is, for example, 100 microseconds. Therefore, the drive control of the DC motor 71 using the relative position information is less likely to cause hunting than the drive control of the DC motor 71 using the corrected map.

[0078] When the amount of rotational movement to the target rotational position is equal to or greater than a predetermined amount of movement, it is preferable to control the drive of the DC motor 71 using the corrected map. This allows the position of the output shaft 75 to approach the target rotational position with simple control. On the other hand, when the amount of rotational movement to the target rotational position is less than the predetermined amount of movement, the drive of the DC motor 71 is not controlled using the corrected map, but is controlled using the relative position information. This makes it possible to suppress hunting by adopting a control method that is less likely to cause hunting in a situation where hunting is likely to occur.

[0079] According to the above-described embodiment, the actual position setting unit 56 sets the actual position information of the output shaft portion 75 based on at least one of the two pieces of position information, the absolute position information and the relative position information. Furthermore, the actual position correction unit 57 corrects the actual position information based on at least one of the two pieces of position information, the absolute position information and the relative position information. Therefore, the rotational position of the output shaft portion 75 can be obtained using the two pieces of position information, the absolute position information and the relative position information. Therefore, the rotational position of the output shaft portion 75 can be obtained with higher accuracy than when the rotational position of the output shaft portion 75 is obtained using only one of the position information, the absolute position information and the relative position information. Therefore, it is possible to provide a motor control device 50 capable of controlling the position with high accuracy.

[0080] The real position setting unit 56 sets the real position information using the absolute position information, and the real position correction unit 57 corrects the real position information using the relative position information. Here, the absolute position information is affected by manufacturing variations and aging deterioration of the potentiometer 76. For this reason, it is difficult to obtain the rotational position of the output shaft unit 75 with high accuracy. However, the absolute position information can be easily obtained from the voltage of the potentiometer 76. On the other hand, the relative position information makes it easy to obtain the rotational position of the output shaft unit 75 with high accuracy from the rotation speed of the DC motor 71. However, the relative position information requires alignment with a reference position before starting detection of the relative position signal. Therefore, the rotational position of the output shaft unit 75 can be obtained with high accuracy by correcting the absolute position information, which is easy to obtain, based on the highly accurate relative position information.

[0081] The actual position correction unit 57 corrects the actual position information by adding the difference between the absolute position information and the relative position information to the actual position information. This allows the actual position information to be corrected so that it matches the relative position information. Therefore, it is easy to accurately obtain the rotational position of the output shaft portion 75 by correcting the actual position information so that it matches the relative position information that makes it easy to obtain the rotational position of the output shaft portion 75 with high accuracy.

[0082] The storage unit 58 stores a post-correction map showing the relationship between the voltage of the potentiometer 76 and the actual position information after correction. Therefore, when driving the DC motor 71 in a mode other than the correction mode, the DC motor 71 can be controlled using the post-correction map stored in the storage unit 58. Therefore, it is easier to obtain the rotational position of the output shaft portion 75 with high accuracy compared to the case where an initial map having a large tolerance due to the influence of manufacturing variations of the potentiometer 76 is used. Also, by driving the DC motor 71 using the post-correction map, it is possible to obtain position information with correction taken into account, without obtaining relative position information by acquiring a relative position signal.

[0083] The memory unit 58 stores an initial map and a corrected map. Therefore, the initial map and the corrected map can be compared. This makes it possible to determine, for example, that the potentiometer 76 may be broken if the corrected map is out of the allowable tolerance range of the initial map. Alternatively, it can be determined that the correction mode may not have been performed properly and an incorrect corrected map may have been obtained if the corrected map is out of the allowable tolerance range of the initial map.

[0084] When it is determined that there is an abnormality in the relative position signal, the real position correction unit 57 does not reflect the corrected real position information in the correction. In other words, when the abnormality determination unit 59 determines that there is an abnormality, the real position correction unit 57 does not correct the real position information using the absolute position information or the relative position information at the timing when the abnormality occurs. This makes it possible to prevent erroneous correction of the real position information using an abnormal value. This makes it easier to maintain high correction accuracy.

[0085] When the abnormality determination unit 59 determines that there is an abnormality, the actual position correction unit 57 does not correct the actual position information using the absolute position information or relative position information at the timing when the abnormality occurs, which is acquired using the timer 55. Therefore, the time when the absolute position information or the relative position information was acquired and the time when the abnormality occurred can be checked later. In other words, it is not necessary to determine the presence or absence of an abnormality at the same time as acquiring the absolute position information or the relative position information. Therefore, it is easier to distribute the processing performed by the motor control device 50 in terms of time, compared to the case where the validity of the relative position signal detected at the same time as the relative position signal is detected.

[0086] When the amount of change in the voltage acquired by the voltage acquisition unit 51 is equal to or greater than a threshold, the abnormality determination unit 59 determines that there is an abnormality in the relative position information at that timing. Therefore, even if the relative position acquisition unit 54 erroneously detects a current change caused by a change in the voltage of the DC power supply 5 as a change in the current waveform, the erroneously detected signal is not used for correction. Therefore, it is possible to prevent erroneous correction of the actual position information using an abnormal value.

[0087] The output shaft portion 75 is set at a butting position where one end of the movable range is mechanically butted against. Furthermore, the actual position correction unit 57 corrects the actual position information by, for example, correcting the absolute position information at the butting position using the relative position information at the butting position. Here, the butting position is a position that can correspond to a state where the door device is fully closed, and is a mechanically determined position, so that accurate position information is easy to obtain. Therefore, position information that may include errors such as relative position information can be associated with the butting position of the output shaft portion 75. In particular, by setting the butting position as the correction start position, the correction can be carried out based on the accurate position of the output shaft portion 75. Therefore, it is easy to improve the correction accuracy of the actual position information.

[0088] The relative position acquisition unit 54 acquires relative position information of the output shaft portion 75 at a plurality of positions including at least the position where the door device is butted against the air conditioning case 10. Therefore, the butted position can be included in the relative position information. Therefore, accurate position information of the output shaft portion 75 can be associated with the relative position information. In particular, by setting the butted position as the correction start position, it is possible to acquire relative position information based on the accurate position of the output shaft portion 75. Therefore, it is easy to improve the correction accuracy of the actual position information.

[0089] When the rotational position of the output shaft portion 75 is located outside the detection area of ​​the potentiometer 76, the real position setting unit 56 sets the real position information using the relative position information and does not perform correction using the absolute position information. Therefore, even if appropriate absolute position information cannot be detected using the potentiometer 76, the output shaft portion 75 can be rotated using the relative position information. In addition, compared to a configuration in which the movable range of the output shaft portion 75 is not located outside the detection area of ​​the potentiometer 76, a finer change in the rotational position can be detected as a voltage change. Therefore, the accuracy of position detection can be partially improved by extracting only a range that requires fine position detection from the movable range of the output shaft portion 75 and making it correspond to the entire detection area of ​​the potentiometer 76. In other words, the DC motor 71 can be controlled by using different control methods, namely, a control method using a corrected map and a control method using only relative position information.

[0090] When the rotational movement amount of the output shaft portion 75 is less than a predetermined movement amount, the actual position setting portion 56 sets the actual position information using the relative position information, and does not perform correction using the absolute position information. Therefore, in a situation where hunting is likely to occur, the DC motor 71 can be controlled by a control method that makes hunting less likely to occur. Therefore, it is easy to suppress the occurrence of hunting.

[0091] In the control of the correction mode, in step S113, it is not necessary to obtain only the absolute position information at the moment when the relative position signal is detected. For example, absolute position information may be continuously obtained at all times. In this case, the timer 55 is used to link the voltage of the potentiometer 76 to what timing. This allows the absolute position information at the moment when the relative position signal is detected to be referenced later and the actual position information to be corrected collectively. In other words, the processes from step S114 to step S116 can be executed collectively after the output shaft portion 75 reaches the correction end position in step S121.

[0092] In the control of the correction mode, step S122 may be omitted. In this case, all of the corrected actual position information obtained is treated as appropriate correction information and is stored in the storage unit 58 as a corrected map.

[0093] Second embodiment This embodiment is a modification based on the preceding embodiment, in which the driving section 52 drives an actuator 270 having a plurality of actuator devices.

[0094] 6, the actuator 270 includes a first actuator 270a, a second actuator 270b, a third actuator 270c, and a fourth actuator 270d. The actuator devices constituting the actuator 270 each drive a different door device. For example, the first actuator 270a drives the inside / outside air switching door 21. For example, the second actuator 270b drives the air mix door 23. For example, the third actuator 270c drives the defroster door 25. For example, the fourth actuator 270d drives the face door 26.

[0095] The number of actuator devices constituting the actuator 270 is not limited to four. The actuator 270 may be composed of fewer than four actuator devices. Alternatively, the actuator 270 may be composed of more than four actuator devices.

[0096] The driving unit 52 is a four-channel driver capable of driving the actuator 270 having four actuator devices. Each actuator device constituting the actuator 270 is connected to the driving unit 52 via a signal line. Each actuator device constituting the actuator 270 is connected to the absolute position acquisition unit 53 via a signal line. However, if there is no problem with signal processing, the motor control device 50 and the actuator 270 may be connected via wireless communication to exchange signals.

[0097] When the correction mode is performed, only one actuator device to be corrected is driven, and the remaining actuator devices that are not to be corrected are stopped from being driven. For example, when the first actuator 270a is to be corrected, the second actuator 270b, the third actuator 270c, and the fourth actuator 270d are stopped from being driven. In this state, the correction mode control is performed while the first actuator 270a is moved from the correction start position to the correction end position. This makes it easy to prevent a situation in which the current fluctuations of different actuator devices are superimposed and the relative position signal cannot be detected correctly.

[0098] The first corrected map, which is a corrected map acquired in a correction mode targeted at the first actuator 270a, is a corrected map dedicated to the first actuator 270a and is therefore not used to drive actuator devices other than the first actuator 270a.

[0099] After the correction mode for the first actuator 270a is completed, the correction mode for the second actuator 270b is executed. At this time, the first actuator 270a, the third actuator 270c, and the fourth actuator 270d are in a state where driving is stopped. In this state, the correction mode control is executed while the second actuator 270b is moved from the correction start position to the correction end position. In this way, a second corrected map, which is a corrected map dedicated to the second actuator 270b, is acquired.

[0100] Similarly, a third corrected map, which is a corrected map dedicated to the third actuator 270c, is obtained. Furthermore, a fourth corrected map, which is a corrected map dedicated to the fourth actuator 270d, is obtained. In this way, a dedicated corrected map can be obtained for each actuator device constituting the actuator 270. When driving the actuator 270 in a mode other than the correction mode, each actuator device can be driven while acquiring absolute position information using a dedicated corrected map. In this way, the motor control device 50 can easily acquire absolute position information that takes into account correction for each actuator device and control each DC motor 71.

[0101] The correction mode does not have to be executed for all actuator devices constituting the actuator 270. For example, the correction mode may be executed only for actuator devices for driving door devices that require particularly fine control of the rotational position.

[0102] According to the above-described embodiment, while the driving unit 52 is driving one actuator device to be corrected, the driving unit 52 stops driving the remaining actuator devices. In other words, while the relative position acquisition unit 54 is acquiring the relative position information of one DC motor 71, the driving unit 52 stops driving the remaining DC motors 71. This makes it possible to prevent multiple actuator devices from being driven simultaneously. This makes it possible to suppress a situation in which the current waveforms of multiple actuator devices are superimposed and the relative position signal cannot be acquired properly. This makes it easy to stably improve the accuracy of correction in the correction mode. In addition, the load applied to the microcomputer can be distributed compared to the case in which correction is performed simultaneously for all actuator devices.

[0103] The driving unit 52 can drive the first actuator 270a, the second actuator 270b, the third actuator 270c, and the fourth actuator 270d. Therefore, a single driving unit 52 can drive a plurality of actuator devices. Therefore, it is easier to miniaturize the motor system 100 compared to a configuration in which a separate driving unit 52 is provided for each of a plurality of actuator devices. Also, with regard to the relative position acquisition unit 54 that detects the current fluctuation in the driving unit 52, it is not necessary to provide a separate relative position acquisition unit 54 for each of a plurality of actuator devices. Therefore, it is easier to configure the motor system 100 in a small size and at low cost.

[0104] Third embodiment This embodiment is a modification of the preceding embodiment as a basic form. In this embodiment, the presence or absence of a correction request is determined. Furthermore, correction information is stored without verifying the validity of the relative position signal.

[0105] 7, when control related to correction of the DC motor 71 is started, the motor control device 50 determines in step S300 whether or not there is a correction request. If there is a correction request, the process proceeds to step S101, and the above-mentioned series of correction-related controls are performed. On the other hand, if there is no correction request, the control related to correction of the DC motor 71 is terminated.

[0106] For example, when the motor system 100 is driven for the first time, a state in which a correction is required is entered. Also, a state in which a correction is required is entered when a predetermined period of time has passed since the previous correction. Here, the predetermined period is, for example, six months. The correction request switching is not limited to being set in advance. For example, during an inspection process in the manufacturing process of the vehicle air conditioner 1, an inspection worker may switch to a state in which a correction is required. Alternatively, when the vehicle air conditioner 1 is installed in an automobile, a user may switch to a state in which a correction is required.

[0107] If it is determined in step S121 that the output shaft portion 75 has reached the correction end position, the process proceeds to step S323. In step S323, the storage unit 58 stores the correction information. At this time, the correction information is stored without verifying the validity of the relative position signal. In other words, the correction information is stored assuming that all detected relative position signals are appropriate signals.

[0108] According to the embodiment described above, it is determined whether or not there is a correction request, and therefore the time until the DC motor 71 transitions to normal driving can be made shorter than in the case where control related to correction is always executed regardless of the presence or absence of a correction request.

[0109] Since the correction information is stored without verifying the validity of the relative position signal, the correction can be completed more quickly than when the correction is performed after verifying the validity of the relative position signal.

[0110] Fourth embodiment This embodiment is a modification of the preceding embodiment, in which it is determined whether the amount of fluctuation in the power supply voltage is less than a threshold value and the result is reflected in the correction.

[0111] 8, when a relative position signal is detected in step S111, relative position information is acquired in step S112, absolute position information is acquired in step S113, and the voltage acquisition unit 51 acquires the power supply voltage in step S410. In other words, the power supply voltage at the timing when the relative position signal is detected in step S111 is acquired. After acquiring the power supply voltage, real position information is set in step S114, and the real position information is corrected in step S115. After correcting the real position information in step S115, the process proceeds to step S416.

[0112] In step S416, memory unit 58 stores the corrected actual position information and the power supply voltage. At this time, the corrected actual position information and the power supply voltage at the same timing are stored. After storing the corrected actual position information and the power supply voltage, the process proceeds to step S121, where it is determined whether output shaft portion 75 has reached the correction end position. If output shaft portion 75 has reached the correction end position, the process proceeds to step S422. On the other hand, if output shaft portion 75 has not reached the correction end position, the process returns to step S111.

[0113] In step S422, the abnormality determination unit 59 determines whether the amount of change in the power supply voltage is less than a threshold value. Here, the power supply voltage used in the determination is the power supply voltage at the timing when the relative position signal is detected. Since the power supply voltage is acquired and stored every time the relative position signal is detected, the determination is made for a plurality of power supply voltages. If the amount of change in the power supply voltage is less than the threshold value, it is determined that the DC power supply 5 was operating normally at the timing when the relative position signal was acquired, and the process proceeds to step S123. On the other hand, if the amount of change in the power supply voltage is equal to or greater than the threshold value, it is determined that an abnormality occurred in the DC power supply 5 at the timing when the relative position signal was acquired, and the process proceeds to step S424.

[0114] In step S123, all the detected relative position signals are deemed to be appropriate signals, and appropriate correction information is stored. After the appropriate correction information is stored, control related to correction is terminated.

[0115] In step S424, the motor control device 50 determines that the detected relative position signals include inappropriate signals and deletes the correction information. However, the correction information to be deleted is the correction information acquired in the current correction mode, and the correction information in the correction modes executed in the past is maintained in the stored state. After the correction information is deleted, the control related to the correction is terminated. However, instead of terminating the control related to the correction, the control may be returned to step S101 and the correction mode may be executed from the beginning.

[0116] According to the above-described embodiment, the power supply voltage is acquired every time the relative position signal is detected, and then it is determined whether the fluctuation amount of the power supply voltage is less than the threshold value. Therefore, it is possible to determine whether the relative position signal is an appropriate signal from the fluctuation of the power supply voltage, or an inappropriate signal due to the influence of the fluctuation of the power supply voltage. Therefore, it is possible to prevent erroneous correction based on an inappropriate signal.

[0117] Fifth embodiment This embodiment is a modification of the preceding embodiment as a basic form. In this embodiment, a power supply voltage check is performed while the output shaft portion 75 is moved from the correction start position to the correction end position.

[0118] 9, in step S101, the output shaft 75 is moved to the correction start position, and then in step S102, the output shaft 75 starts to move toward the correction end position. Then, the process proceeds to step S503.

[0119] In step S503, the voltage acquisition unit 51 starts a power supply voltage check. In the power supply voltage check, the power supply voltage is acquired at a predetermined time interval and stored. This allows storage of how the power supply voltage changed at what timing. The predetermined time interval for acquiring the power supply voltage is preferably approximately the same as the interval for detecting the relative position signal. For example, if it is assumed that the relative position signal is detected at an interval of 100 microseconds, the interval for acquiring the power supply voltage is also set to 100 microseconds. However, the interval for acquiring the power supply voltage may be set to an interval shorter than the interval for detecting the relative position signal. Alternatively, the interval for acquiring the power supply voltage may be set to an interval longer than the interval for detecting the relative position signal. After starting the power supply voltage check, the process proceeds to step S111 while continuing the power supply voltage check.

[0120] If it is determined in step S121 that the output shaft portion 75 has reached the correction end position, the process proceeds to step S504. In step S504, the voltage acquisition portion 51 ends the power supply voltage check. This means that the power supply voltage is acquired at predetermined time intervals from the correction start position to the correction end position of the output shaft portion 75. After the power supply voltage check is completed, the process proceeds to step S422. If the amount of fluctuation in the power supply voltage is less than the threshold in step S422, it is determined that the DC power supply 5 operated normally from the correction start position to the correction end position of the output shaft portion 75, and the process proceeds to step S123. On the other hand, if the amount of fluctuation in the power supply voltage is equal to or greater than the threshold, it is determined that an abnormality occurred in the DC power supply 5 from the correction start position to the correction end position of the output shaft portion 75, and the process proceeds to step S424.

[0121] In step S123, all detected relative position signals are deemed to be appropriate signals, and appropriate correction information is stored. After the appropriate correction information is stored, control related to correction is terminated. On the other hand, in step S424, it is deemed that the detected relative position signals include inappropriate signals, and the correction information is deleted, and control related to correction is terminated.

[0122] According to the above-described embodiment, the power supply voltage check is performed while the output shaft portion 75 is moved from the correction start position to the correction end position. Therefore, it is possible to determine whether the DC power supply 5 is operating normally while the relative position signal is being detected. This makes it possible to suppress the influence of an abnormality in the DC power supply 5 on the correction, and to easily improve the accuracy of the correction. Also, unlike the case where the power supply voltage is obtained at the timing when the relative position signal is detected, the interval for obtaining the power supply voltage can be set arbitrarily. Therefore, the power supply voltage can be obtained at the timing when the relative position signal is not detected. This makes it possible to determine whether the fluctuation in the power supply voltage is affecting the relative position signal when the relative position signal is not detected at the timing when the relative position signal should be detected.

[0123] Sixth embodiment This embodiment is a modification of the preceding embodiment, in which a determination is made as to whether or not the time interval at which the relative position signal is acquired is normal, and the result is reflected in the correction.

[0124] 10, when a relative position signal is detected in step S111, relative position information is acquired in step S112, absolute position information is acquired in step S113, and time information is acquired in step S610. The time information is information indicating the timing at which the relative position signal was detected. After acquiring the time information, real position information is set in step S114, and the real position information is corrected in step S115. After correcting the real position information in step S115, the process proceeds to step S616.

[0125] In step S616, the memory unit 58 stores the corrected actual position information and the time. At this time, the corrected actual position information and the information on the time when the relative position signal was acquired are stored as a set. After storing the corrected actual position information and the time, the process proceeds to step S121, where it is determined whether the output shaft portion 75 has reached the correction end position. If the output shaft portion 75 has reached the correction end position, the process proceeds to step S622. On the other hand, if the output shaft portion 75 has not reached the correction end position, the process returns to step S111.

[0126] In step S622, the abnormality determination unit 59 determines whether the stored time interval is a normal interval. Here, the time interval used for the determination is the time interval from when a relative position signal is detected until the next relative position signal is detected. Since the time is acquired and stored every time a relative position signal is detected, a determination is made for a plurality of time intervals. If the time interval is appropriate, it is determined that the relative position signal has been acquired appropriately, and the process proceeds to step S123. On the other hand, if the time interval is inappropriate, it is determined that the relative position signal has not been acquired appropriately, and the process proceeds to step S424. Here, if the time interval is inappropriate, this corresponds to a case where the time interval is too short or too long compared to the appropriate interval.

[0127] In step S123, all detected relative position signals are considered to be signals acquired at appropriate timing, and appropriate correction information is stored. After the appropriate correction information is stored, control related to correction is terminated. On the other hand, in step S424, it is considered that the detected relative position signals include erroneous signals acquired at inappropriate timing, and the correction information is deleted, and control related to correction is terminated.

[0128] According to the above-described embodiment, whether or not the time interval at which the relative position signal is acquired is normal is determined and reflected in the correction. Therefore, it is possible to determine whether the relative position signal is acquired at the appropriate timing. Therefore, it is possible to prevent erroneous correction from being performed based on an erroneous signal detected at a timing when it should not have been acquired. Alternatively, it is possible to prevent correction from being performed using erroneous relative position information when a signal is not detected at a timing when it should have been acquired.

[0129] Other embodiments The disclosure in this specification and drawings, etc. is not limited to the exemplified embodiments. The disclosure includes the exemplified embodiments and modifications by those skilled in the art based thereon. For example, the disclosure is not limited to the combination of parts and / or elements shown in the embodiments. The disclosure can be implemented by various combinations. The disclosure can have additional parts that can be added to the embodiments. The disclosure includes the omission of parts and / or elements of the embodiments. The disclosure includes the substitution or combination of parts and / or elements between one embodiment and another embodiment. The disclosed technical scope is not limited to the description of the embodiments. Some disclosed technical scopes are indicated by the description of the claims, and should be interpreted as including all modifications within the meaning and scope equivalent to the description of the claims.

[0130] The disclosure in the specification and drawings is not limited by the claims. The disclosure in the specification and drawings includes the technical ideas described in the claims, and extends to more diverse and broader technical ideas than the technical ideas described in the claims. Therefore, various technical ideas can be extracted from the disclosure in the specification and drawings without being bound by the claims.

[0131] The control unit and the method described in the present disclosure may be implemented by a special-purpose computer having a processor programmed to execute one or more functions embodied in a computer program. Alternatively, the device and the method described in the present disclosure may be implemented by a special-purpose hardware logic circuit. Alternatively, the device and the method described in the present disclosure may be implemented by one or more special-purpose computers configured by a combination of a processor that executes a computer program and one or more hardware logic circuits. Also, the computer program may be stored in a computer-readable non-transitory tangible recording medium as instructions executed by the computer. [Explanation of symbols]

[0132] 1 Vehicle air conditioning device, 5 DC power supply, 10 Air conditioning case, 21 Inside / outside air switching door (door device), 23 Air mix door (door device), 25 Defroster door (door device), 26 Face door (door device), 27 Foot door (door device), 50 Motor control device, 51 Voltage acquisition unit, 52 Drive unit, 53 Absolute position acquisition unit, 54 Relative position acquisition unit, 55 Timer, 56 Actual position setting unit, 57 Actual position correction unit, 58 Memory unit, 59 Abnormality determination unit, 70 Actuator, 71 DC motor, 75 Output shaft unit, 76 Potentiometer, 100 Motor system, 270 Actuator

Claims

1. A motor control device that controls the driving of a DC motor (71) that is linked to an output shaft portion (75) of an actuator (70, 270), a relative position acquisition unit (54) that detects a current fluctuation when the DC motor is rotated and acquires relative position information of the output shaft portion; an absolute position acquisition unit (53) that acquires absolute position information of the output shaft portion using a potentiometer (76); an actual position setting unit (56) that sets actual position information of the output shaft portion based on at least one of two pieces of position information, the absolute position information and the relative position information; an actual position correction unit (57) that corrects the actual position information based on at least one of the two pieces of position information, the absolute position information and the relative position information; an abnormality determination unit (59) for determining the presence or absence of an abnormality in the absolute position information or the relative position information; A timer (55) for counting the passage of time; The motor control device, when the abnormality determination unit determines that there is an abnormality, the actual position correction unit does not correct the actual position information using the absolute position information or the relative position information at the timing when the abnormality occurs, which is obtained using the timer.

2. A motor control device that controls the driving of a DC motor (71) that is linked to an output shaft portion (75) of an actuator (70, 270), a relative position acquisition unit (54) that detects a current fluctuation when the DC motor is rotated and acquires relative position information of the output shaft portion; an absolute position acquisition unit (53) that acquires absolute position information of the output shaft portion using a potentiometer (76); an actual position setting unit (56) that sets actual position information of the output shaft portion based on at least one of two pieces of position information, the absolute position information and the relative position information; an actual position correction unit (57) that corrects the actual position information based on at least one of the two pieces of position information, the absolute position information and the relative position information; an abnormality determination unit (59) for determining the presence or absence of an abnormality in the absolute position information or the relative position information; a voltage acquisition unit (51) that acquires a voltage in a DC power source (5) for driving the DC motor, the abnormality determination unit determines that there is an abnormality in the relative position information at a timing when an amount of fluctuation in the voltage acquired by the voltage acquisition unit is equal to or greater than a threshold value; The motor control device, wherein the actual position correction unit does not correct the actual position information using the absolute position information or the relative position information at the time when the abnormality occurs when the abnormality determination unit determines that an abnormality exists.

3. the real position setting unit sets the real position information using the absolute position information; The motor control device according to claim 1 , wherein the actual position correction unit corrects the actual position information by using the relative position information.

4. The motor control device according to claim 3 , wherein the actual position correction unit corrects the actual position information by adding a difference between the absolute position information and the relative position information to the actual position information.

5. a memory unit (58) storing a characteristic map showing a relationship between the voltage of the potentiometer and position information of the output shaft portion; The motor control device according to claim 4 , wherein the storage unit stores a post-correction map (Mc) indicating a relationship between the voltage of the potentiometer and the actual position information after correction.

6. The motor control device according to claim 5 , wherein the storage unit stores an initial map (Mi) which is the characteristic map before the actual position information is corrected, and the corrected map.

7. A drive unit (52) capable of driving a plurality of the DC motors, 7. The motor control device according to claim 1, wherein the drive section stops driving the remaining DC motors while the relative position acquisition section is acquiring the relative position information for one of the DC motors.

8. The output shaft portion is set at an abutting position where one end of the movable range is mechanically abutted against the output shaft portion, the relative position acquisition unit acquires the relative position information at least at the abutment position, the absolute position acquisition unit acquires the absolute position information at least at the abutment position; The actual position setting unit sets the actual position information of the output shaft portion at the abutting position, The motor control device according to claim 1 , wherein the actual position correction unit corrects the actual position information at the abutment position.

9. 9. The motor control device according to claim 1, wherein, when a rotational position of the output shaft portion is located outside a detection area of ​​the potentiometer, the actual position setting unit sets the actual position information using the relative position information and does not perform correction using the absolute position information.

10. 10. The motor control device according to claim 1, wherein, when a rotational movement amount from a current rotational position of the output shaft portion to a target rotational position is less than a predetermined movement amount, the actual position setting unit sets the actual position information using the relative position information and does not perform correction using the absolute position information.

Citation Information

Patent Citations

  • Safety defice for power window

    JP2000274140A

  • Motor control device

    JP2008148412A

  • Rotation detector and direct-current motor

    JP2010063347A

  • Calibration method for servo motor device, and servo motor device

    JP2010148251A

  • Rotation detecting device and DC motor

    JP2011176944A