1. Technical Field
The present invention relates to a device that detects a rotational angle of a motor and the like by using a resolver, and particularly, to a rotational angle detection device of a single excitation mode, which uses a single excitation circuit.
2. Related Art
A resolver is a rotational angle sensor including an excitation coil and two output coils on a periphery of a rotor coupled to a shaft. As such a rotational angle sensor, there is a rotary encoder besides the resolver. However, the rotary encoder uses an optical element and a magnetic resistance element, and accordingly, is prone to be affected by temperature, noise, dust and the like, and is inferior in terms of environmental resistance. As opposed to this, the resolver is basically composed only of coils and an iron core, and does not use the elements as described above. Accordingly, the resolver can be used even under severe environmental conditions, and for example, is used for detecting rotational angles of a motor and a steering wheel in an automobile.
When a sine wave signal is applied to the excitation coil of the resolver, then in the respective output coils, two-phase voltages amplitude-modulated into a sine wave shape are induced in response to a rotational angle of the shaft. Specifically, a signal in which a peak value of an amplitude is changed in accordance with a sin function is outputted from one of the output coils, and a signal in which a peak value of an amplitude is changed in accordance with a cos function is outputted from the other output coil. Hence, the amplitudes of the respective output signals are detected in a predetermined cycle, and tan−1 thereof is obtained, whereby the rotational angle of the shaft can be calculated.
The resolver 1 shown here is a resolver of a variable reluctance type. A shape of the rotor 11 is designed so that a reluctance (magnetic resistance) in a gap between the rotor 11 and the stator 12 can be periodically changed in response to a rotational angle of the rotor 11, and that voltages amplitude-modulated in the sine wave shape can be induced in the output coils L2 and L3. Here, the rotor 11 has an ellipsoidal shape, and for a while the rotor 11 is making one rotation, voltages, which are equivalent to two cycles and are amplitude-modulated into the sine wave shape, are taken out of the output coils L2 and L3. As shapes of the rotor 11, besides this, there are a variety of shapes such as a cross.
The control unit 50 includes a CPU 51, an excitation circuit 52, and a signal amplifier circuit 55. The excitation circuit 52 generates an excitation signal composed of a sine wave signal sin (cot) as shown in
The sin signal outputted from the output coil L2 is amplified by the signal amplifier circuit 55, and becomes a signal, which is as shown in
In the CPU 51, for the inputted sin signal and cos signal, sampling is performed in a predetermined cycle. As a result, for the sin signal, a sampling signal, which is as shown in
Incidentally, as an excitation mode of the resolver, a double excitation mode has been general heretofore. In the double excitation mode, in the excitation circuit 52, there are provided: an excitation signal generator circuit that generates the excitation signal; and an inverted excitation signal generator circuit that generates an inverted excitation signal different from the excitation signal in phase by 180° (for example, refer to Japanese Unexamined Patent Publication No. 2008-304326).
A signal amplifier circuit 55 is composed of a sin signal amplifier circuit 56 and a cos signal amplifier circuit 57. The sin signal amplifier circuit 56 amplifies a sin signal to be inputted from an output coil L2 to terminals T3 and T4. The cos signal amplifier circuit 57 amplifies a cos signal to be inputted from an output coil L3 to terminals T5 and T6. A detection method of the rotational angle in a CPU 51 is the same as that described with reference to
In the above-mentioned rotational angle detection device 200 of the double excitation mode, for the excitation circuit 52, two circuits are required, which are the excitation signal generator circuit 53 and the inverted excitation signal generator circuit 54. Accordingly, cost is increased. Moreover, in Japanese Unexamined Patent Publication No. H03-56818 (published in 1991), a resolver is described, which excites, by signals different in phase from each other, the respective two salient poles in a pair of excitation salient poles having coils wound differentially, and then detects the rotational angle based on synthesized signals outputted from midpoints of the respective coils. However, even in this mode, a plurality of signal sources which generate the signals different in phase are required.
One or more embodiments of the present invention provides a rotational angle detection device that reduces cost thereof by simplifying an excitation circuit. One or more embodiments of the present invention provides a rotational angle detection device capable of detecting an angle accurately even in the case where offsets occur in signals to be outputted from output coils.
In accordance with one aspect of the present invention, there is provided a rotational angle detection device including:
a resolver in which an excitation coil, a first output coil and a second output coil are provided on a periphery of a rotor coupled to a rotation shaft;
an excitation signal generator circuit that generates an excitation signal and gives the excitation signal to the excitation coil; and
a rotational angle calculation unit that performs sampling for respective output signals of the first output coil and the second output coil in a predetermined cycle, and calculates a rotational angle of the rotation shaft based on two sampling signals obtained as a result of the sampling,
wherein the excitation signal generator circuit is composed of an excitation signal generator circuit of a single excitation mode, the excitation signal generator circuit generating a single excitation signal. Moreover, an offset correction unit is provided, the offset correction unit correcting, for the respective sampling signals, offsets contained in the respective output signals of the first output coil and the second output coil. The rotational angle calculation unit calculates the rotational angle based on the respective sampling signals in which the offsets are corrected by the offset correction unit.
In such a way, a circuit configuration is simplified by the single excitation mode using the one excitation signal generator circuit, and accordingly, the cost can be reduced. Moreover, the correction for the offsets contained in the output signals from the first output coil and the second output coil is performed, and as a result, even in the case of adopting the single excitation mode, an accurate rotational angle can be detected by the rotational angle calculation unit without being affected by the offsets.
In the present invention, the offset correction unit may include a storage unit in which an offset correction value for correcting the offsets is stored in advance.
In such a way, the offset correction value is preset in the storage unit, and accordingly, it is not necessary to arithmetically operate and calculate the correction value every time, and processing in the rotational angle calculation unit is reduced.
In place of the storage unit, the offset correction unit may include an arithmetic operation unit that arithmetically operates an offset correction value for correcting the offsets.
In such a way, the offset correction value is obtained by the arithmetic operation, and accordingly, it is not necessary to store the correction value in the storage unit in advance. Moreover, the offset correction value is not a fixed value, but is updated in real time. Accordingly, the offsets can be removed more effectively, and accuracy in the angle detection is enhanced.
In an embodiment of the present invention, the offset correction value is an average value of a first amplitude value at first timing when amplitudes of the two sampling signals become equal to each other and a second amplitude value at second timing when the amplitudes of the two sampling signals become equal to each other.
In such a way, the points of intersection of the respective sampling signals at two pieces of timing are detected, whereby an optimal offset correction value can be calculated with ease.
In accordance with one or more embodiments of the present invention, the circuit configuration is simplified by the adoption of the single excitation mode, and accordingly, the rotational angle detection device can be provided, which is capable of reducing the cost, and In addition, of detecting the accurate rotational angle without being affected by the offsets.
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the respective drawings, the same reference numerals are assigned to the same portions or corresponding portions. In embodiments of the invention, numerous specific details are set forth in order to provide a more thorough understanding of the invention. However, it will be apparent to one of ordinary skill in the art that the invention may be practiced without these specific details. In other instances, well-known features have not been described in detail to avoid obscuring the invention.
The control unit 10a includes an excitation signal generator circuit 53, a signal amplifier circuit 55 and a CPU 30a. In the control unit 10a, the inverted excitation signal generator circuit 54 of
An output (excitation signal) of the excitation signal generator circuit 53 is given to one end of an excitation coil L1 through a terminal T1. Other end of the excitation coil L1 is connected to the ground (that is, is grounded) through a terminal T2. One end of an output coil L2 is inputted through a terminal T3 to a sin signal amplifier circuit 56 in the signal amplifier circuit 55. Other end of the output coil L2 is connected to the ground through a terminal T4. One end of an output coil L3 is inputted through a terminal T5 to a cos signal amplifier circuit 57 in the signal amplifier circuit 55. Other end of the output coil L3 is connected to the ground through a terminal T6.
The CPU 30a includes a sampling processing unit 31, an offset correction unit 32a, and an angle calculation unit 33. These blocks are represented as functional blocks, and such functions of the respective blocks are actually realized by software processing of the CPU 30a. The offset correction unit 32a has an offset correction value storage unit 34, an arithmetic operator 35 and an arithmetic operator 36. The CPU 30a composes a rotational angle calculation unit in one or more embodiments of the present invention.
Operations of the rotational angle detection device 100a configured as described above are basically similar to the operations described with reference to
Incidentally, in the case of adopting the single excitation mode, only the excitation signal generator circuit 53 just needs to be provided as the excitation circuit, and accordingly, a circuit configuration is simplified. However, meanwhile, offsets occur in the sin signal and the cos signal, and accordingly, required are countermeasures for avoiding an occurrence of an error in a detection angle owing to this offset. A description is made below of this matter.
In the case of the single excitation mode, as shown in
In the case of the double excitation mode, the line capacity between the excitation coil and the output coil does not become a problem, and accordingly, the offset does not occur in the sin signal. Accordingly, in
As described above, in the rotational angle detection device of the single excitation mode, error occurs in the detection angle based on the offsets which occur in the outputs (sin signal, cos signal) of the resolver. Accordingly, in the rotational angle detection device 100a of this embodiment, the error is not allowed to occur in the detection angle by the offset correction unit 32a provided in the CPU 30a even if there are offsets in the outputs of the resolver 1.
A description is made below in detail of a detection procedure for the rotational angle in the rotational angle detection device 100a.
The excitation signal generator circuit 53 generates the excitation signal based on the sine wave signal outputted from the CPU 30a, and gives this excitation signal to the excitation coil L1 of the resolver 1. The excitation signal Vi at this time is represented by:
Vi=sin(ωt) (1)
By the rotation of the rotor 11, the sin signal (shown as Vs1) is outputted from the output coil L2, and the cos signal (shown as Vc1) is outputted from the output coil L3. However, owing to the offsets mentioned above, these signals Vs1 and Vc1 contain an offset term δ as in the following arithmetic expressions.
Vs1=G·(sin(θ)+δ)·sin(ωt) (2)
Vc1=G·(cos(θ)+δ)·sin(ωt) (3)
Here, reference symbol G denotes a signal transformation ratio of the resolver 1, and reference symbol θ denotes the rotational angle of the rotor 11 (rotation shaft 13).
The sin signal Vs1 is amplified by the sin signal amplifier circuit 56 of the signal amplifier circuit 55. An output Vs2 of the sin signal amplifier circuit 56 becomes:
Vs2=β·Vs1=β·G·(sin(θ)+δ)·sin(ωt) (4)
β is an amplification factor of the sin signal amplifier circuit 56. Moreover, the cos signal Vc1 is amplified by the cos signal amplifier circuit 57 of the signal amplifier circuit 55. An output Vc2 of the cos signal amplifier circuit 57 becomes:
Vc2=β·Vc1=β·G·(cos(θ)+δ)·sin(ωt) (5)
The respective amplified signals are inputted to the sampling processing unit 31 of the CPU 50a.
The sampling processing unit 31 performs the sampling for the signals Vs2 and Vc2 in a predetermined cycle, and detects amplitude values of the signals at every sampling point of time. As a result, from the signal Vs2, there is extracted a sampling signal represented by:
Vs3=β·G·(sin(θ)+δ) (6)
and from the signal Vc2, there is extracted a sampling signal represented by:
Vc3=β·G·(cos(θ)+δ) (7)
These sampling signals are inputted to the offset correction unit 32a.
In the offset correction unit 32a, in the offset correction value storage unit 34, a correction value for correcting the offsets δ is stored in advance. This correction value is set in the offset correction value storage unit 34 at the time when the device is shipped from a factory. By using this correction value, the offset correction unit 32a performs, by the arithmetic operator 35, processing for deleting the offset term δ contained in the sampling signal Vs3 (arithmetic expression (6)) to be outputted from the sampling processing unit 31. As a result, an output Vs4 of the arithmetic operator 35 becomes:
Vs4=β·G·(sin(θ)) (8)
Moreover, by using the correction value, the offset correction unit 32a performs, by the arithmetic operator 36, processing for deleting the offset term δ contained in the sampling signal Vc3 (arithmetic expression (7)) to be outputted from the sampling processing unit 31. As a result, an output Vc4 of the arithmetic operator 36 becomes:
Vc4=β·G·(cos(θ)) (9)
The outputs Vs4 and Vc4 of the arithmetic operators 35 and 36 are inputted to the angle calculation unit 33.
Based on Vs4 and Vc4, the angle calculation unit 33 arithmetically operates an amplitude ratio of these signals, that is, Vs4/Vc4=sin(θ)/cos(θ)=tan (θ). Then, based on a result of this arithmetic operation, the rotational angle θ is detected from:
θ=tan−1[sin(θ)/cos(θ)] (10)
As described above, in the first embodiment, the offset correction value storage unit 34 is provided in the offset correction unit 32a, and by the correction value to be outputted therefrom, the offset correction for the sin signal and the cos signal, which are to be outputted from the output coils L2 and L3, is performed. Therefore, the signals to be inputted to the angle calculation unit 33 become those from which the offsets are removed as in the arithmetic expression (8) and the arithmetic expression (9). Hence, even in the case of adopting the single excitation mode, the angle calculation unit 33 can detect an accurate rotational angle θ based on the arithmetic operation (10) without being affected by the offsets.
Moreover, the offset correction value is set in the offset correction value storage unit 34 in advance, and accordingly, it is not necessary to arithmetically operate and calculate the correction value every time, and the processing in the angle calculation unit 33 is reduced.
Next, a description is made of an example of a decision method of the offset correction value with reference to
As can be seen from
δ=(Va+Vb)/2 (11)
In order to remove this offset δ, the offset correction value γ just needs to be equalized to δ (γ=δ). Accordingly, based on the arithmetic expression (11), the offset correction value γ becomes:
γ=(Va+Vb)/2 (12)
Hence, an average value of the amplitude values Va and Vb at the points a and b is calculated, whereby an optimal offset correction value γ for deleting the offset δ can be acquired.
In order to obtain the offset correction value γ, there is also such a method for calculating an average value between a maximum value and minimum value of the sampling signals besides the method described above (for example, refer to Japanese Unexamined Patent Publication No. 2004-45286). However, in accordance with this method, the changes of the signals must be tracked, and the maximum value and the minimum values must be detected, and accordingly, arithmetic operation processing becomes complicated. Moreover, it takes a time to detect the maximum value and the minimum value, and it becomes difficult to perform high-speed processing. As opposed to this, in accordance with the method of
In an offset correction unit 32b of the CPU 30b, an offset correction value arithmetic operation unit 37 is provided in place of the offset correction value storage unit 34 shown in
As described above, in the second embodiment, the offset correction value arithmetic operation unit 37 is provided in the offset correction unit 32b, and by the correction value arithmetically operated by this offset correction value arithmetic operation unit 37, the offset correction for the sin signal and the cos signal, which are to be outputted from the output coils L2 and L3, is performed. Accordingly, the signals to be inputted to an angle calculation unit 33 become those from which the offsets are removed as in the arithmetic expressions (8) and (9). Hence, even in the case of adopting the single excitation mode, the angle calculation unit 33 can detect the accurate rotational angle θ based on the arithmetic operation (10) without being affected by the offsets.
Moreover, the offset correction value is obtained by the arithmetic operation in the offset correction value arithmetic operation unit 37, and accordingly, it is not necessary to store the correction value in the storage unit in advance. Furthermore, the offset correction value is not a fixed value, but is updated in real time based on the outputs from the sampling processing unit 31. Accordingly, the offsets can be removed more effectively, and accuracy in the angle detection is enhanced.
In the present invention, a variety of embodiments can be adopted besides those mentioned above. For example, though the example where the offset correction value storage unit 34 is provided in the inside of the CPU 30a has been illustrated in
Moreover, in the above-described embodiments, the circuit shown in FIG. 2 is mentioned as an example of the excitation signal generator circuit 53, and the circuit in
Moreover, in
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this disclosure, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as disclosed herein. Accordingly, the scope of the invention should be limited only by the attached claims.
Number | Date | Country | Kind |
---|---|---|---|
2010-240735 | Oct 2010 | JP | national |