JP2012249497A - Motor controller and motor controlling method - Google Patents

Motor controller and motor controlling method Download PDF

Info

Publication number
JP2012249497A
JP2012249497A JP2011121755A JP2011121755A JP2012249497A JP 2012249497 A JP2012249497 A JP 2012249497A JP 2011121755 A JP2011121755 A JP 2011121755A JP 2011121755 A JP2011121755 A JP 2011121755A JP 2012249497 A JP2012249497 A JP 2012249497A
Authority
JP
Japan
Prior art keywords
motor
rotation
speed
rotation number
pulse signals
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011121755A
Other languages
Japanese (ja)
Other versions
JP5719696B2 (en
Inventor
Toshiyuki Amagasa
俊之 天笠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsuba Corp
Original Assignee
Mitsuba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsuba Corp filed Critical Mitsuba Corp
Priority to JP2011121755A priority Critical patent/JP5719696B2/en
Publication of JP2012249497A publication Critical patent/JP2012249497A/en
Application granted granted Critical
Publication of JP5719696B2 publication Critical patent/JP5719696B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To enhance pulse resolution to thereby improve control accuracy of motor speed and inversion position, in a motor which controls rotational speed and direction of the motor on the basis of motor pulses.SOLUTION: A wiper drive control unit has a CPU 22 connected to Hall ICs 17a and 17b. An absolute position signal of a blade from a Hall IC 20, and an A-phase pulse signal Sp1 and a B-phase pulse signal Sp2 from the Hall ICs 17a and 17b, are input into the CPU 22. The CPU 22 has a motor rotation number detection section 41 for calculating a rotation number of motor on the basis of the pulse signal Sp1, a rotation number determination section 43 for determining a level of the rotation number of the motor, and a signal selection section 44 for selecting a signal to be used for the control in accordance with the rotation number of the motor. The signal selection section 44 regulates such that only one of the pulse signals is input into the motor rotation number detection section 41 in a high rotation region, and the motor rotation number detection section 41 calculates the number of motor rotation using only the one of the pulse signals.

Description

本発明は、モータ回転軸の回転角度に対応して出力されるパルスに基づいてモータの回転速度や回転方向を制御するモータの制御技術に関し、特に、ワイパモータのような決められた角度範囲で正逆作動を行うモータの制御装置・制御方法に関する。   The present invention relates to a motor control technique for controlling the rotation speed and direction of a motor based on a pulse output corresponding to the rotation angle of a motor rotation shaft, and more particularly to a correct angle range such as a wiper motor. The present invention relates to a control device and a control method for a motor that performs reverse operation.

従来より、車両に設けられるワイパ装置では、ワイパアームを揺動駆動するための駆動源として、正逆作動を行う特許文献1のようなモータ(ワイパモータ)を使用したシステムが知られている。このようなモータには、モータ回転軸の回転を検出する回転センサが設けられており、回転センサからは回転軸の回転速度に応じた周期のパルス信号が出力される。回転センサは、回転方向を識別するため、90°位相がずれた位置に2個設けられており、両センサからは2つのパルス信号(A相、B相)が出力される。   2. Description of the Related Art Conventionally, in a wiper device provided in a vehicle, a system using a motor (wiper motor) as in Patent Document 1 that performs forward / reverse operation is known as a drive source for swinging and driving a wiper arm. Such a motor is provided with a rotation sensor for detecting the rotation of the motor rotation shaft, and a pulse signal having a period corresponding to the rotation speed of the rotation shaft is output from the rotation sensor. Two rotation sensors are provided at positions 90 ° out of phase to identify the rotation direction, and two pulse signals (A phase and B phase) are output from both sensors.

一方、正逆転モータの制御装置は、A相のパルス信号に基づいてモータ回転軸の回転数(回転速度)を認識すると共に、A相の切り替わりエッジでのB相のレベルによって、モータの回転方向を認識している。例えば、A相の信号が立ち上がるときB相がHIの場合は正転、LOの場合は逆転、のような形で回転方向を識別する。また、モータ制御装置側では、A相のパルス信号のカウント値(積算値)に基づいて出力軸の回転角度、つまり、ワイパアームの絶対位置を認識する。そして、これらの認識情報に基づいて、ワイパアームを上反転位置と下反転位置との間で揺動させるように、ワイパモータの正逆転動作を制御している。   On the other hand, the control device for the forward / reverse motor recognizes the rotational speed (rotational speed) of the motor rotation shaft based on the A-phase pulse signal and determines the rotational direction of the motor according to the B-phase level at the A-phase switching edge. Recognize. For example, when the A phase signal rises, the rotation direction is identified in the form of forward rotation when the B phase is HI and reverse rotation when the LO phase is LO. The motor control device recognizes the rotation angle of the output shaft, that is, the absolute position of the wiper arm, based on the count value (integrated value) of the A-phase pulse signal. Based on the recognition information, the forward / reverse operation of the wiper motor is controlled so that the wiper arm is swung between the upper reverse position and the lower reverse position.

特開2008−160941号公報JP 2008-160941 A

前述のように、正逆作動するモータを用いたシステムでは、回転センサからのパルス信号(A相,B相)を用途に応じて適宜使い分けてモータの駆動制御を行っている。ところが、近年、このようなシステムでは、モータの反転精度の向上が求められており、モータの回転角度検出においても高い分解能が求められて来ている。例えば、高級車向けのワイパ装置では、ワイパアームが所定の位置で正確かつスムーズに反転するような仕様が求められており、それに対応して、制御系におけるパルス分解能を更に細かくする必要性が生じている。   As described above, in a system using a motor that operates in forward and reverse directions, the drive control of the motor is performed by appropriately using the pulse signals (A phase and B phase) from the rotation sensor according to the application. However, in recent years, in such a system, improvement in the reversal accuracy of the motor is required, and high resolution is also required in detecting the rotation angle of the motor. For example, in a wiper device for a luxury car, a specification is required so that the wiper arm can be accurately and smoothly reversed at a predetermined position, and accordingly, it is necessary to further refine the pulse resolution in the control system. Yes.

しかしながら、パルス分解能を上げると、制御装置(マイコン)の処理能力や回転検出精度の点で問題が生じるおそれがあり、その対策が求められていた。すなわち、従来のシステムでは、パルス周期の算出には、パルスによるマイコンへの外部割込みを使用しており、パルス分解能を上げると高速回転域にてパルス周期が非常に短くなり、マイコンの処理が間に合わなくなる可能性があるという問題があった。また、分解能向上に伴いパルス間隔が狭くなると、構造的なバラツキの影響を受け易くなり、回転検出精度が低下するおそれがあるという問題もあった。   However, when the pulse resolution is increased, there is a possibility that problems may occur in terms of processing capability of the control device (microcomputer) and rotation detection accuracy, and countermeasures have been demanded. In other words, the conventional system uses an external interrupt to the microcomputer for the pulse period to calculate the pulse period.If the pulse resolution is increased, the pulse period becomes very short in the high-speed rotation range, and the microcomputer process is in time. There was a problem that it might disappear. In addition, when the pulse interval is narrowed as the resolution is improved, there is a problem that the rotation detection accuracy may be lowered because the structure is easily affected by structural variations.

本発明の目的は、モータ回転軸の回転角度に対応して出力されるパルスに基づいてモータの回転速度や回転方向を制御するモータにおいて、制御装置の処理速度を上げることなくパルスの分解能を上げ、モータ速度や反転位置の制御精度を向上させることにある。   An object of the present invention is to increase the resolution of a pulse without increasing the processing speed of a control device in a motor that controls the rotation speed and rotation direction of the motor based on a pulse output corresponding to the rotation angle of the motor rotation shaft. It is to improve the control accuracy of the motor speed and the reverse position.

本発明のモータ制御装置は、2つの回転センサを用いてモータ回転軸の回転を検出し、前記回転センサからそれぞれ出力されるパルス信号に基づいて当該モータの動作制御を行うモータ制御装置であって、前記パルス信号に基づいて前記モータの回転数を算出するモータ回転数検出部と、前記モータ回転数検出部にて算出した前記モータの回転数と所定の閾値とを比較してモータ回転数の高低を判定する回転数判定部と、前記回転数判定部にて前記モータが所定の回転数以上で回転していると判定されたとき、前記2つの回転センサのパルス信号のうち一方のみが前記モータ回転数検出部に入力されるように、前記モータ回転数検出部に対する前記パルス信号の入力を規制する信号選択部と、を有し、前記モータ回転数検出部は、前記モータが所定の回転数以上で回転している場合、前記パルス信号のうちの一方のみを用いて前記モータの回転数を算出することを特徴とする。   A motor control device according to the present invention is a motor control device that detects the rotation of a motor rotation shaft using two rotation sensors and controls the operation of the motor based on pulse signals respectively output from the rotation sensors. The motor rotation number detection unit that calculates the rotation number of the motor based on the pulse signal, and the motor rotation number calculated by the motor rotation number detection unit and a predetermined threshold are compared to determine the motor rotation number. When it is determined by the rotation number determination unit that determines the height and the rotation number determination unit that the motor is rotating at a predetermined rotation number or more, only one of the pulse signals of the two rotation sensors is the A signal selection unit that restricts input of the pulse signal to the motor rotation number detection unit so as to be input to the motor rotation number detection unit, and the motor rotation number detection unit If it is at a predetermined rotation number or more, and calculates the rotation speed of the motor using only one of the pulse signal.

本発明にあっては、モータ高速回転域では、2つのパルス信号のうちの1つを使用し、モータの回転数を算出する。これにより、高速回転域におけるパルスの入力頻度が低くなり、モータ制御装置の負担が軽減される。   In the present invention, in the motor high-speed rotation range, one of the two pulse signals is used to calculate the motor rotation speed. Thereby, the input frequency of pulses in the high-speed rotation region is reduced, and the burden on the motor control device is reduced.

前記モータ制御装置において、前記信号選択部は、前記回転数判定部にて前記モータが所定の回転数未満で回転していると判定されたときは、前記モータ回転数検出部に前記2つの回転センサのパルス信号の両方が入力されるように、前記モータ回転数検出部に対する前記両パルス信号の入力を許容し、前記モータ回転数検出部は、前記モータが所定の回転数未満で回転している場合、前記2つのパルス信号の両方を用いて前記モータの回転数を算出するようにしても良い。これにより、モータ制御装置への負担が少ない低回転領域における回転速度の検出精度が向上する。   In the motor control device, when the rotation number determination unit determines that the motor is rotating below a predetermined rotation number, the signal selection unit causes the motor rotation number detection unit to perform the two rotations. The input of both pulse signals to the motor rotation speed detection unit is allowed so that both of the pulse signals of the sensor are input, and the motor rotation speed detection unit causes the motor to rotate below a predetermined rotation speed. If so, the rotational speed of the motor may be calculated using both of the two pulse signals. Thereby, the detection accuracy of the rotation speed in the low rotation region with less burden on the motor control device is improved.

また、当該モータ制御装置に、前記パルス信号に基づいて前記モータ回転軸を反転させる反転タイミングを検出し、前記モータを反転駆動させる反転タイミング判定部をさらに設け、前記信号選択部は、前記回転数判定部にて前記モータが所定の回転数未満で回転していると判定されたときは、前記反転タイミング判定部に前記2つの回転センサのパルス信号の両方が入力されるように、前記反転タイミング判定部に対する前記両パルス信号の入力し、前記反転タイミング判定部は、前記2つのパルス信号の両方を用いて前記反転タイミングを検出するようにしても良い。これにより、パルス信号のうちの1つのみを用いて反転タイミングを検出する場合に比して、反転位置の分解能を上げることが可能となる。   The motor control device further includes a reversal timing determination unit that detects reversal timing for reversing the motor rotation axis based on the pulse signal and reversely drives the motor, and the signal selection unit includes the rotation speed. When the determination unit determines that the motor is rotating below a predetermined number of rotations, the inversion timing is set so that both of the pulse signals of the two rotation sensors are input to the inversion timing determination unit. The both pulse signals may be input to the determination unit, and the inversion timing determination unit may detect the inversion timing using both of the two pulse signals. This makes it possible to increase the resolution of the inversion position as compared with the case where the inversion timing is detected using only one of the pulse signals.

本発明のモータモータ制御方法は、2つの回転センサを用いてモータ回転軸の回転を検出し、前記回転センサからそれぞれ出力されるパルス信号に基づいて当該モータの動作制御を行うモータ制御方法であって、前記パルス信号に基づいて前記モータの回転数を算出すると共に、算出した前記モータの回転数と所定の閾値とを比較してモータ回転数の高低を判定し、前記モータが所定の回転数以上で回転していると判定されたとき、前記2つの回転センサのパルス信号のうち一方のみを用いて前記モータの回転数を算出することを特徴とする。   The motor motor control method of the present invention is a motor control method for detecting the rotation of the motor rotation shaft using two rotation sensors and controlling the operation of the motor based on the pulse signals respectively output from the rotation sensors. And calculating the number of rotations of the motor based on the pulse signal, comparing the calculated number of rotations of the motor with a predetermined threshold value, and determining whether the motor rotation number is high or low. When it is determined that the motor is rotating as described above, the rotational speed of the motor is calculated using only one of the pulse signals of the two rotation sensors.

本発明にあっては、モータ高速回転域では、2つのパルス信号のうちの1つを使用し、モータの回転数を算出する。これにより、高速回転域におけるパルスの入力頻度が低くなり、モータ制御装置の負担が軽減される。   In the present invention, in the motor high-speed rotation range, one of the two pulse signals is used to calculate the motor rotation speed. Thereby, the input frequency of pulses in the high-speed rotation region is reduced, and the burden on the motor control device is reduced.

前記モータ制御方法において、前記モータが所定の回転数未満で回転していると判定されたときは、前記2つの回転センサのパルス信号の両方を用いて前記モータの回転数を算出するようにしても良い。これにより、モータ制御装置への負担が少ない低回転領域における回転速度の検出精度が向上する。   In the motor control method, when it is determined that the motor is rotating at less than a predetermined rotation number, the rotation number of the motor is calculated using both pulse signals of the two rotation sensors. Also good. Thereby, the detection accuracy of the rotation speed in the low rotation region with less burden on the motor control device is improved.

また、前記パルス信号に基づいて前記モータ回転軸を反転させる反転タイミングを検出し、前記モータ本体を反転駆動させると共に、前記モータ回転軸が所定の回転数未満で回転していると判定されたときは、前記2つの回転センサのパルス信号の両方を用いて前記反転タイミングを検出するようにしても良い。これにより、パルス信号のうちの1つのみを用いて反転タイミングを検出する場合に比して、反転位置の分解能を上げることが可能となる。   In addition, when a reversal timing for reversing the motor rotation shaft is detected based on the pulse signal, the motor body is driven to reverse rotation, and it is determined that the motor rotation shaft is rotating at less than a predetermined number of rotations. The inversion timing may be detected using both pulse signals of the two rotation sensors. This makes it possible to increase the resolution of the inversion position as compared with the case where the inversion timing is detected using only one of the pulse signals.

本発明のモータ制御装置によれば、2つの回転センサを用いてモータ回転軸の回転を検出し、各回転センサから出力されるパルス信号に基づいて当該モータの動作制御を行うモータ制御装置にて、パルス信号に基づいてモータ回転数を算出するモータ回転数検出部と、算出したモータ回転数と所定の閾値とを比較してモータ回転数の高低を判定する回転数判定部と、モータが所定回転数以上で回転していると判定されたとき、2つの回転センサのパルス信号のうち一方のみがモータ回転数検出部に入力されるようにパルス信号の入力を規制する信号選択部と、を設け、モータ回転数検出部では、モータが所定の回転数以上で回転している場合は、パルス信号のうちの一方のみを用いてモータの回転数を算出するようにしたので、モータ高速回転域におけるモータ回転数検出部へのパルス入力頻度を抑えることができ、モータ制御装置の負担を軽減することが可能となる。   According to the motor control device of the present invention, the motor control device detects the rotation of the motor rotation shaft using the two rotation sensors and controls the operation of the motor based on the pulse signal output from each rotation sensor. A motor speed detector that calculates the motor speed based on the pulse signal, a motor speed detector that compares the calculated motor speed with a predetermined threshold value to determine whether the motor speed is high or low, A signal selection unit that restricts the input of the pulse signal so that only one of the pulse signals of the two rotation sensors is input to the motor rotation number detection unit when it is determined that the rotation is greater than the rotation number. The motor rotation speed detection unit calculates the motor rotation speed using only one of the pulse signals when the motor rotates at a predetermined rotation speed or higher. It is possible to suppress the pulse input frequency to the motor rotation speed detection unit in frequency, it is possible to reduce the load of the motor control device.

本発明のモータ制御方法によれば、2つの回転センサを用いてモータ回転軸の回転を検出し、各回転センサから出力されるパルス信号に基づいて当該モータの動作制御を行うモータ制御方法にて、パルス信号に基づいてモータ回転数を算出すると共に、算出したモータ回転数と所定の閾値とを比較してモータ回転数の高低を判定し、モータが所定の回転数以上で回転していると判定されたときは、2つの回転センサのパルス信号のうち一方のみを用いてモータの回転数を算出するようにしたので、モータ高速回転域におけるモータ回転数検出部へのパルス入力頻度を抑えることができ、モータ制御装置の負担を軽減することが可能となる。   According to the motor control method of the present invention, in the motor control method for detecting the rotation of the motor rotation shaft using two rotation sensors and controlling the operation of the motor based on the pulse signal output from each rotation sensor. The motor rotation number is calculated based on the pulse signal, the calculated motor rotation number is compared with a predetermined threshold value to determine whether the motor rotation number is high or low, and the motor is rotating at a predetermined rotation number or more. When the determination is made, the motor rotation speed is calculated using only one of the pulse signals of the two rotation sensors, so the frequency of pulse input to the motor rotation speed detector in the motor high-speed rotation range is suppressed. Thus, the burden on the motor control device can be reduced.

本発明のモータ制御処理が実施されるモータを備えたモータユニットの構成を示す説明図である。It is explanatory drawing which shows the structure of the motor unit provided with the motor by which the motor control process of this invention is implemented. 多極着磁マグネットとホールICの構成を示す断面図である。It is sectional drawing which shows the structure of a multipolar magnetized magnet and Hall IC. 図2のホールICが出力するパルス信号を示す線図である。It is a diagram which shows the pulse signal which Hall IC of FIG. 2 outputs. モータの制御系の構成を示す説明図である。It is explanatory drawing which shows the structure of the control system of a motor. CPUにおける信号選択処理系の構成を示すブロック図である。It is a block diagram which shows the structure of the signal selection processing system in CPU. 本発明の一実施例である制御処理のフローチャートである。It is a flowchart of the control processing which is one Example of this invention. ホールICの出力パルス信号の状態を示す説明図である。It is explanatory drawing which shows the state of the output pulse signal of Hall IC.

以下、本発明の実施例を図面に基づいて詳細に説明する。図1は、本発明のモータ制御処理が実施されるモータを備えたモータユニット(ワイパモータ)の構成を示す説明図である。図1のモータユニット1は、例えば、自動車用ワイパ装置など車両用電装部品の駆動源として使用される。モータユニット1は、図示しないリンク機構等を介して、ワイパアームやワイパブレード(以下、ブレードと略記する)と接続され、ブレードが上下反転位置に達すると、正逆回転が切り替えられる。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is an explanatory diagram illustrating a configuration of a motor unit (wiper motor) including a motor in which the motor control process of the present invention is performed. The motor unit 1 in FIG. 1 is used as a drive source for vehicle electrical components such as an automobile wiper device, for example. The motor unit 1 is connected to a wiper arm or a wiper blade (hereinafter abbreviated as a blade) via a link mechanism or the like (not shown), and when the blade reaches the upside down position, the forward / reverse rotation is switched.

モータユニット1は、モータ本体2と、ギアボックス3とから構成される。モータ本体2の回転軸(モータ回転軸)4の回転は、ギアボックス3内にて減速され、出力軸5に出力される。回転軸4は、有底筒状のヨーク6に回動自在に支持される。回転軸4には、コイルが巻装されたアーマチュアコア7と、コンミテータ8が取り付けられている。ヨーク6の内面には、複数の永久磁石9が固定されている。コンミテータ8には、給電用のブラシ10が摺接している。モータ本体2の速度(回転数)は、ブラシ10に対する供給電流量によって制御される。   The motor unit 1 includes a motor body 2 and a gear box 3. The rotation of the rotation shaft (motor rotation shaft) 4 of the motor body 2 is decelerated in the gear box 3 and is output to the output shaft 5. The rotating shaft 4 is rotatably supported by a bottomed cylindrical yoke 6. An armature core 7 around which a coil is wound and a commutator 8 are attached to the rotating shaft 4. A plurality of permanent magnets 9 are fixed to the inner surface of the yoke 6. The commutator 8 is in sliding contact with a power supply brush 10. The speed (number of rotations) of the motor body 2 is controlled by the amount of current supplied to the brush 10.

ヨーク6の開口側端縁部には、ギアボックス3のケースフレーム11が取り付けられている。回転軸4の先端部は、ヨーク6から突出してケースフレーム11内に収納される。回転軸4の先端部には、ウォーム12が形成されている。ウォーム12には、ケースフレーム11に回動自在に支持されたウォーム歯車13が噛合している。ウォーム歯車13には、その同軸上に小径の第1ギア14が一体的に設けられている。第1ギア14には、大径の第2ギア15が噛合している。第2ギア15には、ケースフレーム11に回動自在に支持される出力軸5が一体に取り付けられている。なお、図示されないが、回転軸4には、前記ウォーム12に隣接して、そのねじ方向とは逆向きのもう1つのウォームが形成されている。当該ウォームは、ウォーム歯車13、第1ギア14と同様の減速部材により、第2ギア15に動力伝達される。   A case frame 11 of the gear box 3 is attached to the opening side edge of the yoke 6. The tip of the rotating shaft 4 protrudes from the yoke 6 and is stored in the case frame 11. A worm 12 is formed at the tip of the rotating shaft 4. A worm gear 13 rotatably supported by the case frame 11 is engaged with the worm 12. The worm gear 13 is integrally provided with a first gear 14 having a small diameter on the same axis. A large-diameter second gear 15 is engaged with the first gear 14. An output shaft 5 that is rotatably supported by the case frame 11 is integrally attached to the second gear 15. Although not shown, the rotating shaft 4 is formed with another worm adjacent to the worm 12 in the direction opposite to the screw direction. The worm power is transmitted to the second gear 15 by a reduction member similar to the worm gear 13 and the first gear 14.

モータ本体2の駆動力は、ウォーム12、ウォーム歯車13、第1ギア14、第2ギア15を経て減速された状態で出力軸5に出力される。出力軸5には、ワイパ装置のクランクアーム(図示せず)が取り付けられている。モータ本体2が作動すると、出力軸5を介してクランクアームが駆動され、クランクアームと接続されたリンク機構を介してワイパアームが作動する。   The driving force of the motor body 2 is output to the output shaft 5 while being decelerated through the worm 12, the worm gear 13, the first gear 14, and the second gear 15. A crank arm (not shown) of a wiper device is attached to the output shaft 5. When the motor body 2 is operated, the crank arm is driven via the output shaft 5 and the wiper arm is operated via a link mechanism connected to the crank arm.

回転軸4には、多極着磁マグネット16(以下、マグネット16と略記する)が取り付けられている。これに対し、ケースフレーム11内には、マグネット16の外周部と対向するように、回転センサとして、ホールIC17が設けられている。図2は、マグネット16とホールIC17の構成を示す断面図であり、図3は、図2のホールIC17が出力するパルス信号を示す線図である。図2に示すようにマグネット16は環状(リング状)に形成され、その外周には、N極とS極とが周方向に交互に並ぶように10極の磁極が着磁されている。一方、ホールIC17は、回転軸4の中心に対して90度の角度差を持った位置に2個設けられている(17a,17b)。回転軸4が1回転すると、各ホールIC17a,17bからは10周期分のパルス信号が出力され、2個のホールIC17a,17bからは、位相が90°ずれたパルス信号Sp1(A相),Sp2(B相)が出力される。   A multipolar magnetized magnet 16 (hereinafter abbreviated as magnet 16) is attached to the rotating shaft 4. On the other hand, in the case frame 11, a Hall IC 17 is provided as a rotation sensor so as to face the outer peripheral portion of the magnet 16. 2 is a cross-sectional view showing the configuration of the magnet 16 and the Hall IC 17, and FIG. 3 is a diagram showing a pulse signal output from the Hall IC 17 of FIG. As shown in FIG. 2, the magnet 16 is formed in an annular shape (ring shape), and 10 poles are magnetized on the outer periphery thereof so that N poles and S poles are alternately arranged in the circumferential direction. On the other hand, two Hall ICs 17 are provided at positions having an angle difference of 90 degrees with respect to the center of the rotating shaft 4 (17a, 17b). When the rotating shaft 4 rotates once, pulse signals for 10 cycles are output from the Hall ICs 17a and 17b, and the two Hall ICs 17a and 17b output pulse signals Sp1 (A phase) and Sp2 whose phases are shifted by 90 °. (Phase B) is output.

パルス信号Sp1,Sp2の位相は互いに90°ずれており、パルス信号Sp1,Sp2のずれ方向は、回転軸4の回転方向に応じて反転する。従って、パルス信号Sp1,Sp2の出現タイミングを検出することにより、回転軸4の回転方向が判別でき、これによりワイパ動作の往路/復路の判別を行うことができる。また、ホールIC17a,17bの何れか一方のパルス出力の周期から、回転軸4の回転速度も検出できる。回転軸4の回転数とブレードの速度との間には、減速比及びリンク動作比に基づく相関関係が存在しており、回転軸4の回転数からブレードの速度も算出できる。   The phases of the pulse signals Sp1 and Sp2 are shifted from each other by 90 °, and the shift direction of the pulse signals Sp1 and Sp2 is inverted according to the rotation direction of the rotary shaft 4. Therefore, by detecting the appearance timing of the pulse signals Sp1 and Sp2, the rotation direction of the rotating shaft 4 can be determined, and thus the forward / return path of the wiper operation can be determined. Moreover, the rotational speed of the rotating shaft 4 can also be detected from the pulse output period of either one of the Hall ICs 17a and 17b. There is a correlation based on the speed reduction ratio and the link operation ratio between the rotation speed of the rotation shaft 4 and the blade speed, and the blade speed can also be calculated from the rotation speed of the rotation shaft 4.

第2ギア15の底面には、絶対位置検出用のマグネット18が取り付けられている。ケースフレーム11には、プリント基板19が取り付けられている。プリント基板19の上には、マグネット18と対向するようにホールIC20が配置されている。マグネット18は、第2ギア15の底面上に1個設けられており、ブレードが下反転位置に来たときホールIC20と対向する。第2ギア15は、前述のようにクランクアームが取り付けられ、ブレードを往復動させるため180度回転する。第2ギア15が回転しブレードが下反転位置に来ると、ホールIC20とマグネット18が対向してパルス信号が出力される。   An absolute position detection magnet 18 is attached to the bottom surface of the second gear 15. A printed circuit board 19 is attached to the case frame 11. A Hall IC 20 is disposed on the printed circuit board 19 so as to face the magnet 18. One magnet 18 is provided on the bottom surface of the second gear 15, and faces the Hall IC 20 when the blade comes to the lower inversion position. The second gear 15 is attached with a crank arm as described above, and rotates 180 degrees to reciprocate the blade. When the second gear 15 rotates and the blade comes to the lower reverse position, the Hall IC 20 and the magnet 18 face each other and a pulse signal is output.

ホールIC17,20からのパルス出力は、ワイパ駆動制御装置(モータ制御装置)21に送られる。図4は、本発明におけるモータ制御系の構成を示す説明図である。ワイパ駆動制御装置21のCPU(制御部)22は、イグニッションスイッチ31を介してバッテリ32と接続されており、ワイパスイッチ33によってワイパ装置の動作形態(OFF,INT,LO,HI)を切り替えられるようになっている。   The pulse output from the Hall ICs 17 and 20 is sent to a wiper drive control device (motor control device) 21. FIG. 4 is an explanatory diagram showing the configuration of the motor control system in the present invention. The CPU (control unit) 22 of the wiper drive control device 21 is connected to the battery 32 via the ignition switch 31 so that the operation mode (OFF, INT, LO, HI) of the wiper device can be switched by the wiper switch 33. It has become.

CPU22は、ホールIC20,17a,17bと接続されており、ホールIC20からのパルス出力をブレードの絶対位置信号、ホールIC17a,17bからのパルス信号をブレードの相対位置信号として用いてブレードの位置を認識する。また、CPU22は、ホールIC17aからのパルス信号Sp1をA相、ホールIC17bからのパルス信号Sp2をB相として使用する。CPU22は、絶対位置信号が得られた後のパルス数をカウントすることにより、ブレードの現在位置を認識し、ここでは、ホールIC20からの下反転位置を示す絶対位置信号と、ホールIC17aからのA相パルスの出力数の組み合わせによって、ブレードの現在位置を検出する。   The CPU 22 is connected to the Hall ICs 20, 17a and 17b, and recognizes the blade position using the pulse output from the Hall IC 20 as the absolute position signal of the blade and the pulse signal from the Hall ICs 17a and 17b as the relative position signal of the blade. To do. Further, the CPU 22 uses the pulse signal Sp1 from the Hall IC 17a as the A phase and the pulse signal Sp2 from the Hall IC 17b as the B phase. The CPU 22 recognizes the current position of the blade by counting the number of pulses after the absolute position signal is obtained. Here, the CPU 22 recognizes the absolute position signal indicating the downward inversion position from the Hall IC 20 and the A from the Hall IC 17a. The current position of the blade is detected by a combination of the number of phase pulse outputs.

また、CPU22は、ホールIC17aのパルス信号Sp1(A相)から、モータ本体2の速度(回転数)を検出する。モータ本体2は、検出された速度に基づいて、フィードバック制御される。モータ本体2にはPWM制御が実行され、CPU22は、制御条件や検出速度に応じて、印加電圧を適宜ON/OFFさせて、ON時間の比率を適宜変更する。すなわち、CPU22は、ホールIC17a,17bのモータパルスに基づいてモータ速度を算出すると共に、その値に応じてPWM制御のON期間の時比率(Duty)を設定する。これにより、モータ本体2に対する印加電圧が実効的に変化し、モータ本体2の速度が所望の値に制御される。なお、CPU22では、モータパルスの周期(Hz)をそのまま速度として処理するが、パルス周期から求めた回転数(rpm)によって制御を行っても良い。   Further, the CPU 22 detects the speed (number of rotations) of the motor body 2 from the pulse signal Sp1 (A phase) of the Hall IC 17a. The motor body 2 is feedback controlled based on the detected speed. PWM control is executed on the motor body 2, and the CPU 22 appropriately turns on and off the applied voltage according to the control conditions and the detection speed, and changes the ON time ratio as appropriate. That is, the CPU 22 calculates the motor speed based on the motor pulses of the Hall ICs 17a and 17b, and sets the duty ratio (Duty) of the PWM control ON period according to the value. Thereby, the applied voltage to the motor body 2 is effectively changed, and the speed of the motor body 2 is controlled to a desired value. Note that the CPU 22 processes the motor pulse cycle (Hz) as a speed as it is, but the control may be performed by the number of revolutions (rpm) obtained from the pulse cycle.

CPU22はさらに、パルス信号Sp1,Sp2に基づいて、モータの回転方向を認識する。すなわち、A相の切り替わりエッジでのB相のレベルによって、モータの回転方向を検出する。ここでは、A相の信号が立ち上がるときB相がHIの場合は正転(往路払拭)、LOの場合は逆転(復路払拭)と判定している。このようにしてワイパ駆動制御装置21はブレードの現在位置と速度、移動方向を認識し、これらのデータは、ワイパ駆動制御装置21内のRAM23に適宜格納される。CPU22は、ワイパ駆動制御装置21内のROM24に格納された各種基準値やマップ等を参照しつつ、これらのデータに基づいてモータ本体2を制御する。   Further, the CPU 22 recognizes the rotation direction of the motor based on the pulse signals Sp1 and Sp2. That is, the rotational direction of the motor is detected based on the level of the B phase at the A phase switching edge. Here, when the A phase signal rises, when the B phase is HI, it is determined to be forward rotation (forward wiping), and when it is LO, it is determined to be reverse rotation (return wiping). In this way, the wiper drive control device 21 recognizes the current position, speed, and movement direction of the blade, and these data are appropriately stored in the RAM 23 in the wiper drive control device 21. The CPU 22 controls the motor body 2 based on these data while referring to various reference values, maps, and the like stored in the ROM 24 in the wiper drive control device 21.

モータ本体2は、検出されたモータ速度に基づいて、フィードバック制御される。モータ本体2ではPWM制御が実行されており、CPU22は、制御条件や検出速度に応じて、印加電圧を適宜ON/OFFさせて、ON時間の比率を適宜変更する。すなわち、CPU22は、パルス信号Sp1に基づいてモータ速度を算出すると共に、ROM24のマップ等を参照しつつ、その値に応じてPWM制御のON期間の時比率(Duty)を設定する。これにより、モータ本体2に対する印加電圧が実効的に変化し、モータ本体2の速度が所望の値に制御される。なお、CPU22では、モータパルスの周期(Hz)をそのまま速度として処理するが、パルス周期から求めた回転数(rpm)によって制御を行っても良い。   The motor body 2 is feedback controlled based on the detected motor speed. PWM control is executed in the motor main body 2, and the CPU 22 appropriately turns ON / OFF the applied voltage according to the control conditions and the detection speed, and changes the ON time ratio as appropriate. That is, the CPU 22 calculates the motor speed based on the pulse signal Sp1, and sets the duty ratio (Duty) of the PWM control ON period according to the value while referring to the map of the ROM 24 and the like. Thereby, the applied voltage to the motor body 2 is effectively changed, and the speed of the motor body 2 is controlled to a desired value. Note that the CPU 22 processes the motor pulse cycle (Hz) as a speed as it is, but the control may be performed by the number of revolutions (rpm) obtained from the pulse cycle.

ここで、従来のシステムでは、前述のように、パルス分解能を上げると、制御装置の処理能力や回転検出精度の点で問題が生じるおそれがある。特に、高速回転域ではパルス周期が非常に短くなり、制御装置の処理が間に合わなくなる可能性がある。ワイパ装置の場合、ブレードは上下反転位置からスタートし、徐々に速度を上げて上下反転位置の中間地点付近で最も速度が高くなる。その後、ブレードは徐々に速度を落とし、上下反転位置にて停止し、反転動作を行う。すなわち、ワイパ装置では、モータ本体2の速度が遅い領域と速い領域が存在し、中間地点付近ではパルス周期が短くなる一方、反転位置近傍ではパルス周期が長くなる。   Here, in the conventional system, as described above, when the pulse resolution is increased, there is a possibility that a problem may occur in terms of processing capability of the control device and rotation detection accuracy. In particular, in the high-speed rotation range, the pulse period becomes very short, and the processing of the control device may not be in time. In the case of the wiper device, the blade starts from the upside down position, gradually increases in speed, and reaches the highest speed near the middle point of the upside down position. Thereafter, the blade gradually decreases in speed, stops at the upside down position, and performs the reverse operation. That is, in the wiper device, there are a region where the speed of the motor body 2 is slow and a region where the motor body 2 is slow, and the pulse cycle is short near the intermediate point, while the pulse cycle is long near the inversion position.

そこで、本発明による制御処理では、従来、モータ速度(ブレード位置)に関係なく、速度検知や回転方向検知に固定的に使用されていたA相,B相のパルス信号を、モータ速度に応じて取捨選択し、制御装置の処理負担を軽減すると共に、反転位置精度の向上を図っている。図5は、CPU22における信号選択処理系の構成を示すブロック図である。図5に示すように、CPU22には、モータ速度やブレード位置等に基づいてモータ2をフィードバック制御するモータ駆動指令部40に加えて、A相のパルス信号Sp1に基づいてモータ回転数を算出するモータ回転数検出部41と、A相とB相のパルス信号Sp1,Sp2に基づいてモータの回転方向を検知するモータ回転方向検出部42が設けられている。また、CPU22には、モータ回転数の高低を判定する回転数判定部43と、モータ回転数に応じて制御に使用する信号を選択する信号選択部44、反転位置を検出しモータを反転させる反転位置判定部(反転タイミング判定部)45が設けられている。   Therefore, in the control processing according to the present invention, the A-phase and B-phase pulse signals, which are conventionally used for speed detection and rotation direction detection, regardless of the motor speed (blade position), according to the motor speed. This is selected to reduce the processing load on the control device and improve the reversal position accuracy. FIG. 5 is a block diagram showing a configuration of a signal selection processing system in the CPU 22. As shown in FIG. 5, the CPU 22 calculates the motor rotation speed based on the A-phase pulse signal Sp1 in addition to the motor drive command unit 40 that feedback-controls the motor 2 based on the motor speed, blade position, and the like. A motor rotation number detection unit 41 and a motor rotation direction detection unit 42 that detects the rotation direction of the motor based on the A-phase and B-phase pulse signals Sp1 and Sp2 are provided. Further, the CPU 22 includes a rotation speed determination unit 43 that determines whether the motor rotation speed is high, a signal selection unit 44 that selects a signal used for control according to the motor rotation speed, and a reversal that detects the reverse position and reverses the motor. A position determination unit (inversion timing determination unit) 45 is provided.

このような装置構成と処理系を備えたモータユニット1では、次のようにしてモータ本体2が駆動制御される。図6は、そのフローチャートである。まず、イグニッションスイッチ31がオンされると、ワイパ駆動制御装置21内のCPU22等に電源が供給される。このときCPU22は、ブレードが下反転位置にある場合、ホールIC20からの絶対位置信号により、ブレードの位置を認識する。そして、この状態からワイパスイッチ33がオンされると、CPU22は、ブレードを上反転位置に向けて移動させるように、選択された作動モードにてモータ本体2を作動させる。   In the motor unit 1 having such a device configuration and processing system, the motor body 2 is driven and controlled as follows. FIG. 6 is a flowchart thereof. First, when the ignition switch 31 is turned on, power is supplied to the CPU 22 and the like in the wiper drive control device 21. At this time, the CPU 22 recognizes the position of the blade from the absolute position signal from the Hall IC 20 when the blade is in the lower inverted position. When the wiper switch 33 is turned on from this state, the CPU 22 operates the motor main body 2 in the selected operation mode so as to move the blade toward the upper reverse position.

モータ本体2が作動すると、ステップS1にて、CPU22は、モータ本体2の回転数(回転速度)を検出する。この回転数検出は、モータ回転数検出部41によって行われ、ホールIC17aからのA相のパルス信号Sp1を用いて回転軸4の回転数を算出する。また、モータ回転方向検出部42は、A相,B相のパルス信号Sp1,Sp2に基づき、モータ本体2の回転方向を検出する。CPU22は、認識した回転速度から、ROM24に格納された目標速度マップを参照して、モータ本体2の速度制御を行う。この速度制御においては、例えば、ブレードが下反転位置から中間位置に向けて移動するときは徐々にその移動速度を増加させ、中間位置から上反転位置に向けて移動するときには徐々にその移動速度を低下させるようにモータ本体2を制御する。   When the motor body 2 is activated, the CPU 22 detects the number of rotations (rotation speed) of the motor body 2 in step S1. This rotational speed detection is performed by the motor rotational speed detector 41, and the rotational speed of the rotary shaft 4 is calculated using the A-phase pulse signal Sp1 from the Hall IC 17a. The motor rotation direction detection unit 42 detects the rotation direction of the motor body 2 based on the A-phase and B-phase pulse signals Sp1 and Sp2. The CPU 22 controls the speed of the motor body 2 with reference to the target speed map stored in the ROM 24 from the recognized rotational speed. In this speed control, for example, when the blade moves from the lower reverse position toward the intermediate position, the movement speed is gradually increased, and when the blade moves from the intermediate position toward the upper reverse position, the movement speed is gradually increased. The motor main body 2 is controlled so as to be lowered.

ステップS1にてモータ回転数を検出した後、ステップS2に進み、回転数判定部43によって、回転数が高速回転状態か否かが判断される。回転数の判定は、現在の回転数と、ROM24に格納された閾値とを比較することによって行われ、現在の回転数が所定の閾値を超えると「高速」と判定される。S2にて「高速」と判定された場合は、ステップS3に進み、信号選択部44によってB相パルス信号Sp2の割り込みを禁止する。CPU22には、モータ作動中は、ホールIC17a,17bから常にパルス信号Sp1,Sp2が入力されており、従来のシステムでは、これらに基づいて、常に回転数と回転方向が検出されている。しかしながら、ワイパ装置では、モータが高速となった時点、つまり払拭領域の中間位置では、その回転方向は既知であり、かつ、不変である。従って、高速域では回転方向の検出は不要であり、B相パルス信号Sp2も不要となる。そこで、本発明の処理では、S2にて「高速」と判断された場合には、B相パルス信号Sp2の割り込みを禁止し、A相パルス信号Sp1のみによる回転数検出を実行する。これにより、高速域でのパルス入力間隔が広がりCPU22の処理負担が軽減される。   After detecting the motor rotational speed in step S1, the process proceeds to step S2, and the rotational speed determination unit 43 determines whether or not the rotational speed is in a high-speed rotational state. The determination of the rotational speed is performed by comparing the current rotational speed with a threshold value stored in the ROM 24. When the current rotational speed exceeds a predetermined threshold value, it is determined as “high speed”. If it is determined in S2 that it is “high speed”, the process proceeds to step S3, where the signal selector 44 prohibits interruption of the B-phase pulse signal Sp2. The CPU 22 always receives pulse signals Sp1 and Sp2 from the Hall ICs 17a and 17b during motor operation. In the conventional system, the rotational speed and the rotational direction are always detected based on these signals. However, in the wiper device, at the time when the motor becomes high speed, that is, at the intermediate position of the wiping area, the rotation direction is known and unchanged. Therefore, detection of the rotation direction is unnecessary in the high speed range, and the B-phase pulse signal Sp2 is also unnecessary. Therefore, in the processing of the present invention, when it is determined that the speed is “high speed” in S2, the interruption of the B-phase pulse signal Sp2 is prohibited, and the rotation speed detection is executed only by the A-phase pulse signal Sp1. As a result, the pulse input interval in the high speed region is widened, and the processing load on the CPU 22 is reduced.

S3にてB相の割り込みを規制した後、ステップS4に進み、A相パルス信号Sp1の割り込みの有無が判断される。つまり、次のA相パルス信号Sp1が入ってきたかどうかが判定され、割り込みがない場合(次のA相入力がない場合)は、現時点のA相パルス信号Sp1の周期からモータ回転数を算出する(ステップS5)。その後、CPU22(反転位置判定部45)は、ステップS6にて、絶対位置信号が得られた後のA相パルス信号Sp1のカウント数から、ブレードが反転位置に達したか否かを判定し、反転位置に達している場合はステップS7にて反転出力を行い、ルーチンを抜ける。これに対し、ステップS6にて、ブレードが反転位置に達していないと判定された場合は、モータ本体2のフィードバック制御を継続して(ステップS8)ルーチンを抜ける。また、ステップS4にて、A相パルス信号Sp1の割り込みがあったと判断された場合は、ステップS9に進み、ひとつ前のA相パルス信号Sp1から当該A相割り込みパルスまでの時間をパルス周期とする。その上で、ステップS10にて、パルス信号Sp1分の角度を加算してブレード移動角度を算出し、ステップS5以下の処理を行う。   After restricting the B-phase interrupt in S3, the process proceeds to step S4 to determine whether or not the A-phase pulse signal Sp1 is interrupted. That is, it is determined whether or not the next A-phase pulse signal Sp1 has been input, and if there is no interrupt (when there is no next A-phase input), the motor rotation speed is calculated from the current period of the A-phase pulse signal Sp1. (Step S5). Thereafter, in step S6, the CPU 22 (reverse position determination unit 45) determines whether the blade has reached the reverse position from the count number of the A-phase pulse signal Sp1 after the absolute position signal is obtained, If the inversion position has been reached, inversion output is performed in step S7, and the routine is exited. On the other hand, if it is determined in step S6 that the blade has not reached the reverse position, the feedback control of the motor body 2 is continued (step S8) and the routine is exited. If it is determined in step S4 that the A-phase pulse signal Sp1 has been interrupted, the process proceeds to step S9, and the time from the previous A-phase pulse signal Sp1 to the A-phase interrupt pulse is set as the pulse period. . Then, in step S10, an angle corresponding to the pulse signal Sp1 is added to calculate the blade movement angle, and the processing in step S5 and subsequent steps is performed.

一方、S2にて「高速ではない」と判定された場合はステップS11に進み、B相の割り込みを許可する。そして、ステップS12に進み、B相パルス信号Sp2の割り込みの有無が判断される。つまり、次のB相パルス信号Sp2が入ってきたかどうかが判定され、割り込みがない場合(次のB相入力がない場合)は、ステップS4に進み、A相パルス信号Sp1の割り込みの有無が判断され、S5以下の処理が行われる。これに対し、ステップS12にてB相パルス信号Sp2の割り込みがあったと判断された場合は、ステップS13に進み、ひとつ前のB相パルス信号Sp2から当該B相割り込みパルスまでの時間をパルス周期とする。ここで設定した周期は、ステップS4にてA相パルスの割り込みがない場合には、ステップS5にてそのままモータ回転数の算出に使用される。つまり、高速領域ではない場合(低速領域)では、B相パルス信号Sp2もモータ回転数の検出に使用される。これにより、低速領域にてパルス間隔が広くなった場合でも、モータ回転数の検出頻度が高まり、回転数の検出精度が向上する。   On the other hand, if it is determined at S2 that it is not "high speed", the process proceeds to step S11, and B-phase interruption is permitted. In step S12, it is determined whether or not the B-phase pulse signal Sp2 is interrupted. That is, it is determined whether or not the next B-phase pulse signal Sp2 has been input. If there is no interrupt (when there is no next B-phase input), the process proceeds to step S4 to determine whether or not there is an interrupt of the A-phase pulse signal Sp1. Then, the processing from S5 onward is performed. On the other hand, if it is determined in step S12 that the B-phase pulse signal Sp2 has been interrupted, the process proceeds to step S13, and the time from the previous B-phase pulse signal Sp2 to the B-phase interrupt pulse is defined as the pulse period. To do. The period set here is used as it is in step S5 for calculating the motor rotation speed when there is no interruption of the A-phase pulse in step S4. That is, when it is not the high speed region (low speed region), the B-phase pulse signal Sp2 is also used for detecting the motor speed. As a result, even when the pulse interval is widened in the low speed region, the frequency of detection of the motor rotation speed is increased, and the detection accuracy of the rotation speed is improved.

また、ステップS13にてパルス周期を設定した後は、ステップS14に進み、「B相反転設定」の有無が判断される。ここで、CPU22は、前述のように、ホールIC20からの絶対位置信号とA相パルス信号Sp1の組み合わせによって、ブレードの現在位置を検出している。すなわち、上下反転位置におけるモータ逆転動作は、A相パルスの積算数が所定値に達しブレードが反転位置に達したことを認識して実施される。従って、モータ反転出力は、A相パルス信号Sp1をトリガとして行われ、B相パルス信号Sp2はこれに関与しない。これに対し、「B相反転設定」とは、B相パルス信号Sp2も反転位置の判定に使用することを認める制御設定である。ステップS14では、この設定が行われているとき、反転位置に対してA相パルス信号Sp1が1エッジ前であるかどうかが判断される。この場合、反転位置に対して1エッジ前とは、図7に示すように、反転位置直前にB相パルス信号Sp2が入力された状態を示している(図7:P点)   In addition, after setting the pulse cycle in step S13, the process proceeds to step S14, and it is determined whether or not “B-phase inversion setting” is present. Here, as described above, the CPU 22 detects the current position of the blade by the combination of the absolute position signal from the Hall IC 20 and the A-phase pulse signal Sp1. That is, the motor reverse rotation operation at the upside down position is performed by recognizing that the cumulative number of A phase pulses has reached a predetermined value and the blade has reached the reverse position. Therefore, the motor reverse output is performed using the A-phase pulse signal Sp1 as a trigger, and the B-phase pulse signal Sp2 is not involved in this. On the other hand, “B-phase inversion setting” is a control setting that allows the B-phase pulse signal Sp2 to be used for the determination of the inversion position. In step S14, when this setting is performed, it is determined whether or not the A-phase pulse signal Sp1 is one edge before the inversion position. In this case, “one edge before the inversion position” indicates a state in which the B-phase pulse signal Sp2 is input immediately before the inversion position as shown in FIG. 7 (FIG. 7: point P).

ステップS14にて、B相反転設定が為されており、反転位置1エッジ前の場合は、ステップS15に進み、B相パルス信号Sp2相当分の角度を加算してブレード移動角度を算出する。つまり、次のA相パルス信号Sp1が入力される以前に、B相パルス信号Sp2を用いてブレード移動角度を算出し、ステップS4以下の処理を行う。従って、A相パルス信号Sp1のみによってブレード移動角度を算出する場合に比して、反転位置の分解能を向上することができ、より正確な位置にてブレードを反転させることが可能となる。   If the B-phase reversal setting has been made in step S14, and if it is one edge before the reversal position, the process proceeds to step S15 to add the angle corresponding to the B-phase pulse signal Sp2 to calculate the blade movement angle. That is, before the next A-phase pulse signal Sp1 is input, the blade movement angle is calculated using the B-phase pulse signal Sp2, and the processes in and after step S4 are performed. Therefore, compared with the case where the blade movement angle is calculated only by the A-phase pulse signal Sp1, the reversal position resolution can be improved, and the blade can be reversed at a more accurate position.

図6の処理を行いブレードが上反転位置にまで達すると、CPU22は、ステップS6にてブレードが上反転位置に達したことを認識し、その認識に基づき、モータ本体2の作動方向を反転させ、ブレードを上反転位置から下反転位置に向けて移動させる。そして、この復路行程においても、CPU22は、ホールIC17a,17bからのパルス信号Sp1,Sp2に基づき、モータ本体2の速度制御を行う。ブレードが下反転位置に達すると、CPU22は、ホールIC20からの絶対位置信号により、ブレードが下反転位置に達したことを認識する。そして、CPU22は、モータ本体2の作動方向を再度反転させ、ブレードを下反転位置から上反転位置に向けて移動させるようにモータ本体2を駆動する。以下、同様の行程を繰り返すことにより、モータ本体2によってブレードが所定の角度範囲で揺動する。   When the processing of FIG. 6 is performed and the blade reaches the upper reversal position, the CPU 22 recognizes that the blade has reached the upper reversal position in step S6, and reverses the operation direction of the motor body 2 based on the recognition. The blade is moved from the upper reverse position to the lower reverse position. Also in this return path, the CPU 22 controls the speed of the motor body 2 based on the pulse signals Sp1 and Sp2 from the Hall ICs 17a and 17b. When the blade reaches the lower reverse position, the CPU 22 recognizes that the blade has reached the lower reverse position based on the absolute position signal from the Hall IC 20. Then, the CPU 22 reverses the operating direction of the motor main body 2 again, and drives the motor main body 2 so as to move the blade from the lower reverse position toward the upper reverse position. Thereafter, the blade is swung within a predetermined angle range by the motor body 2 by repeating the same process.

このように、本発明による制御処理では、高速回転域(ワイパ払拭行程の中間領域)では、割り込み処理の際に、2相のうちの1相(本発明ではA相)を使用し、モータ本体2の回転数を算出する。これにより、パルスの入力頻度が低くなり、CPU22の負担が軽減される。また、所定の回転数よりも小さい回転数領域(低回転領域)では、割り込み処理の際に、A相・B相の両方を用いて回転数を算出する。これにより、A相のみを用いて回転数検出を行う場合に比して、回転速度の検出精度が向上する。さらに、反転出力を行う際に、B相のエッジも反転位置検出に設定可能とする。これにより、A相のみを用いて反転位置検出を行う場合に比して、反転位置の分解能を上げることが可能となる。   As described above, in the control processing according to the present invention, in the high-speed rotation region (intermediate region of the wiper wiping process), one of the two phases (A phase in the present invention) is used during the interrupt processing, and the motor body 2 is calculated. As a result, the frequency of pulse input is reduced, and the burden on the CPU 22 is reduced. Further, in the rotation speed region (low rotation region) smaller than the predetermined rotation speed, the rotation speed is calculated using both the A phase and the B phase in the interrupt process. Thereby, the detection accuracy of the rotational speed is improved as compared with the case where the rotational speed is detected using only the A phase. Further, when performing reverse output, the B-phase edge can also be set for reverse position detection. This makes it possible to increase the resolution of the inversion position as compared with the case where the inversion position is detected using only the A phase.

従って、本発明によれば、CPU22の処理性能を上げることなく、速度制御と反転位置の分解能を上げることができ、コストの増大を招くことなく、モータ制御精度を向上させることが可能となる。このため、本発明をワイパモータに適用すれば、ブレードの速度制御や反転位置の精度を高めることが可能となり、スムーズなブレード動作や、正確な反転動作を実現でき、ワイパ装置の性能向上が図られ、高級車仕様にも対応可能となる。   Therefore, according to the present invention, the resolution of the speed control and the reversal position can be increased without increasing the processing performance of the CPU 22, and the motor control accuracy can be improved without increasing the cost. For this reason, if the present invention is applied to a wiper motor, it becomes possible to improve the accuracy of blade speed control and reversal position, so that smooth blade operation and accurate reversal operation can be realized, and the performance of the wiper device can be improved. It will be compatible with luxury car specifications.

本発明は前記実施例に限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることは言うまでもない。
例えば、前述の実施例では、1個のモータユニット1を駆動源とし、リンク機構によって運転席側と助手席側のワイパアームを連動させる平行払拭型のワイパ装置に本発明を適用した例について説明したが、本発明の適用対象はこれには限定されず、運転席側と助手席側それぞれにモータユニットを配した対向払拭型のワイパ装置などにも適用可能である。
It goes without saying that the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention.
For example, in the above-described embodiment, an example in which the present invention is applied to a parallel wiping type wiper device in which one motor unit 1 is used as a drive source and the wiper arms on the driver's seat side and the passenger seat side are interlocked by a link mechanism has been described. However, the application target of the present invention is not limited to this, and the present invention can also be applied to a counter-wiping wiper device in which motor units are arranged on the driver's seat side and the passenger seat side, respectively.

また、本実施例では、ホールIC17aからのA相パルス信号を用いてモータ速度やブレード値を検出しているが、B相パルス信号を用いてこれらを検出しても良い。さらに、本実施例では、ホールIC20による絶対値信号とホールIC17a,17bからのパルス信号を用いてブレード位置の検出を行っているが、磁界の変化を電気抵抗の変化として検出する非接触式の磁気センサを用いてブレード位置検出を行っても良い。この場合、磁気センサからは回転軸の回転に比例する角度検出信号が出力され、その信号値に基づいて回転軸の回転角度検出、すなわち、ブレード位置検出を行うことができる。加えて、本実施例においては、ホールIC17a,17bを回転センサとして用いているが、回転センサの構成はこれに限られず、マグネットの回転速度に応じたパルス信号を出力することができるものであれば、例えば磁気抵抗素子センサ等、他の磁気センサを用いても良い。   In this embodiment, the motor speed and the blade value are detected using the A-phase pulse signal from the Hall IC 17a, but these may be detected using the B-phase pulse signal. Further, in this embodiment, the blade position is detected using the absolute value signal from the Hall IC 20 and the pulse signals from the Hall ICs 17a and 17b. However, the non-contact type detects the change in the magnetic field as the change in the electrical resistance. Blade position detection may be performed using a magnetic sensor. In this case, an angle detection signal proportional to the rotation of the rotating shaft is output from the magnetic sensor, and the rotation angle of the rotating shaft, that is, the blade position can be detected based on the signal value. In addition, in this embodiment, the Hall ICs 17a and 17b are used as rotation sensors. However, the configuration of the rotation sensor is not limited to this, and any pulse signal corresponding to the rotation speed of the magnet can be output. For example, other magnetic sensors such as a magnetoresistive element sensor may be used.

一方、前述の実施例では、本発明をワイパモータの制御に適用した例を示したが、本発明はワイパモータ以外にも適用可能である。例えば、ワイパモータ以外の車載モータや、機械駆動用のモータなど、モータ回転軸の回転角度に対応して出力されるパルスに基づいてモータの回転速度や回転方向を制御するモータについて広く適用可能である。   On the other hand, in the above-mentioned embodiment, the example in which the present invention is applied to the control of the wiper motor is shown, but the present invention can be applied to other than the wiper motor. For example, the present invention can be widely applied to motors that control the rotation speed and direction of a motor based on pulses output corresponding to the rotation angle of a motor rotation shaft, such as an in-vehicle motor other than a wiper motor and a motor for driving a machine. .

1 モータユニット
2 モータ本体
3 ギアボックス
4 回転軸
5 出力軸
6 ヨーク
7 アーマチュアコア
8 コンミテータ
9 永久磁石
10 ブラシ
11 ケースフレーム
12 ウォーム
13 ウォーム歯車
14 第1ギア
15 第2ギア
16 多極着磁マグネット
17 ホールIC
17a,17b ホールIC
18 マグネット
19 プリント基板
20 ホールIC
21 ワイパ駆動制御装置(モータ制御装置)
22 CPU
23 RAM
24 ROM
31 イグニッションスイッチ
32 バッテリ
33 ワイパスイッチ
40 モータ駆動指令部
41 モータ回転数検出部
42 モータ回転方向検出部
43 回転数判定部
44 信号選択部
45 反転位置判定部(反転タイミング判定部)
Sp1 A相パルス信号
Sp2 B相パルス信号
DESCRIPTION OF SYMBOLS 1 Motor unit 2 Motor main body 3 Gear box 4 Rotating shaft 5 Output shaft 6 Yoke 7 Armature core 8 Commutator 9 Permanent magnet 10 Brush 11 Case frame 12 Worm 13 Worm gear 14 First gear 15 Second gear 16 Multipole magnetized magnet 17 Hall IC
17a, 17b Hall IC
18 Magnet 19 Printed circuit board 20 Hall IC
21 Wiper drive control device (motor control device)
22 CPU
23 RAM
24 ROM
31 Ignition Switch 32 Battery 33 Wiper Switch 40 Motor Drive Command Unit 41 Motor Rotation Number Detection Unit 42 Motor Rotation Direction Detection Unit 43 Rotation Number Determination Unit 44 Signal Selection Unit 45 Reverse Position Determination Unit (Reverse Timing Determination Unit)
Sp1 A phase pulse signal Sp2 B phase pulse signal

Claims (6)

2つの回転センサを用いてモータ回転軸の回転を検出し、前記回転センサからそれぞれ出力されるパルス信号に基づいて当該モータの動作制御を行うモータ制御装置であって、
前記パルス信号に基づいて前記モータの回転数を算出するモータ回転数検出部と、
前記モータ回転数検出部にて算出した前記モータの回転数と所定の閾値とを比較してモータ回転数の高低を判定する回転数判定部と、
前記回転数判定部にて前記モータが所定の回転数以上で回転していると判定されたとき、前記2つの回転センサのパルス信号のうち一方のみが前記モータ回転数検出部に入力されるように、前記モータ回転数検出部に対する前記パルス信号の入力を規制する信号選択部と、を有し、
前記モータ回転数検出部は、前記モータが所定の回転数以上で回転している場合、前記パルス信号のうちの一方のみを用いて前記モータの回転数を算出することを特徴とするモータ制御装置。
A motor control device that detects rotation of a motor rotation shaft using two rotation sensors and performs operation control of the motor based on pulse signals respectively output from the rotation sensors,
A motor rotation number detector that calculates the rotation number of the motor based on the pulse signal;
A rotation number determination unit that compares the rotation number of the motor calculated by the motor rotation number detection unit with a predetermined threshold value and determines the level of the motor rotation number;
When the rotation speed determination unit determines that the motor is rotating at a predetermined rotation speed or higher, only one of the two rotation sensor pulse signals is input to the motor rotation speed detection unit. And a signal selection unit for restricting the input of the pulse signal to the motor rotation number detection unit,
The motor rotation number detection unit calculates the rotation number of the motor using only one of the pulse signals when the motor rotates at a predetermined rotation number or more. .
請求項1記載のモータ制御装置であって、前記信号選択部は、前記回転数判定部にて前記モータが所定の回転数未満で回転していると判定されたときは、前記モータ回転数検出部に前記2つの回転センサのパルス信号の両方が入力されるように、前記モータ回転数検出部に対する前記両パルス信号の入力を許容し、
前記モータ回転数検出部は、前記モータが所定の回転数未満で回転している場合、前記2つのパルス信号の両方を用いて前記モータの回転数を算出することを特徴とするモータ制御装置。
The motor control device according to claim 1, wherein the signal selection unit detects the motor rotation number when the rotation number determination unit determines that the motor is rotating below a predetermined rotation number. Allowing both of the pulse signals to be input to the motor rotation number detection unit so that both of the pulse signals of the two rotation sensors are input to the unit,
The motor control device according to claim 1, wherein the motor rotational speed detection unit calculates the rotational speed of the motor using both of the two pulse signals when the motor is rotating at a speed lower than a predetermined rotational speed.
請求項1又は2記載のモータ制御装置であって、当該モータ制御装置は、
前記パルス信号に基づいて前記モータ回転軸を反転させる反転タイミングを検出し、前記モータを反転駆動させる反転タイミング判定部をさらに有し、
前記信号選択部は、前記回転数判定部にて前記モータが所定の回転数未満で回転していると判定されたときは、前記反転タイミング判定部に前記2つの回転センサのパルス信号の両方が入力されるように、前記反転タイミング判定部に対する前記両パルス信号の入力し、
前記反転タイミング判定部は、前記2つのパルス信号の両方を用いて前記反転タイミングを検出することを特徴とするモータ制御装置。
The motor control device according to claim 1, wherein the motor control device includes:
An inversion timing determination unit for detecting inversion timing for inverting the motor rotation axis based on the pulse signal and for inverting driving the motor;
When the rotation number determination unit determines that the motor is rotating below a predetermined rotation number, the signal selection unit receives both the pulse signals of the two rotation sensors in the inversion timing determination unit. As input, both the pulse signal input to the inversion timing determination unit,
The inversion timing determination unit detects the inversion timing using both of the two pulse signals.
2つの回転センサを用いてモータ回転軸の回転を検出し、前記回転センサからそれぞれ出力されるパルス信号に基づいて当該モータの動作制御を行うモータ制御方法であって、
前記パルス信号に基づいて前記モータの回転数を算出すると共に、算出した前記モータの回転数と所定の閾値とを比較してモータ回転数の高低を判定し、
前記モータが所定の回転数以上で回転していると判定されたとき、前記2つの回転センサのパルス信号のうち一方のみを用いて前記モータの回転数を算出することを特徴とするモータ制御方法。
A motor control method for detecting rotation of a motor rotation shaft using two rotation sensors and performing operation control of the motor based on pulse signals output from the rotation sensors,
Calculating the number of rotations of the motor based on the pulse signal, comparing the calculated number of rotations of the motor with a predetermined threshold value to determine the level of the motor rotation number,
When it is determined that the motor is rotating at a predetermined rotation speed or more, the motor control method calculates the rotation speed of the motor using only one of the pulse signals of the two rotation sensors. .
請求項4記載のモータ制御方法であって、前記モータが所定の回転数未満で回転していると判定されたときは、前記2つの回転センサのパルス信号の両方を用いて前記モータの回転数を算出することを特徴とするモータ制御方法。   5. The motor control method according to claim 4, wherein when it is determined that the motor is rotating at a speed lower than a predetermined rotational speed, the rotational speed of the motor is determined using both pulse signals of the two rotational sensors. The motor control method characterized by calculating. 請求項4又は5記載のモータ制御方法であって、
前記パルス信号に基づいて前記モータ回転軸を反転させる反転タイミングを検出し、前記モータ本体を反転駆動させると共に、
前記モータ回転軸が所定の回転数未満で回転していると判定されたときは、前記2つの回転センサのパルス信号の両方を用いて前記反転タイミングを検出することを特徴とするモータ制御方法。
The motor control method according to claim 4 or 5,
Detecting a reversal timing for reversing the motor rotation axis based on the pulse signal, reversing the motor body,
When it is determined that the motor rotation shaft is rotating at less than a predetermined number of rotations, the inversion timing is detected using both pulse signals of the two rotation sensors.
JP2011121755A 2011-05-31 2011-05-31 Wiper motor control device and wiper motor control method Active JP5719696B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011121755A JP5719696B2 (en) 2011-05-31 2011-05-31 Wiper motor control device and wiper motor control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011121755A JP5719696B2 (en) 2011-05-31 2011-05-31 Wiper motor control device and wiper motor control method

Publications (2)

Publication Number Publication Date
JP2012249497A true JP2012249497A (en) 2012-12-13
JP5719696B2 JP5719696B2 (en) 2015-05-20

Family

ID=47469382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011121755A Active JP5719696B2 (en) 2011-05-31 2011-05-31 Wiper motor control device and wiper motor control method

Country Status (1)

Country Link
JP (1) JP5719696B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021083271A (en) * 2019-11-22 2021-05-27 株式会社ミツバ Motor drive device, motor drive system, and motor drive method
CN114414834A (en) * 2022-01-27 2022-04-29 沈畅 Flow velocity calculation and abnormity alarm method based on Hall pulse time difference method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001219613A (en) * 2000-02-09 2001-08-14 Seiko Epson Corp Apparatus and method for controlling motor
JP2004274804A (en) * 2003-03-05 2004-09-30 Mitsuba Corp Method and apparatus for controlling motor
JP2005333377A (en) * 2004-05-19 2005-12-02 Sharp Corp Image reading apparatus
JP2008160941A (en) * 2006-12-21 2008-07-10 Mitsuba Corp Wiper motor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001219613A (en) * 2000-02-09 2001-08-14 Seiko Epson Corp Apparatus and method for controlling motor
JP2004274804A (en) * 2003-03-05 2004-09-30 Mitsuba Corp Method and apparatus for controlling motor
JP2005333377A (en) * 2004-05-19 2005-12-02 Sharp Corp Image reading apparatus
JP2008160941A (en) * 2006-12-21 2008-07-10 Mitsuba Corp Wiper motor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021083271A (en) * 2019-11-22 2021-05-27 株式会社ミツバ Motor drive device, motor drive system, and motor drive method
CN114414834A (en) * 2022-01-27 2022-04-29 沈畅 Flow velocity calculation and abnormity alarm method based on Hall pulse time difference method

Also Published As

Publication number Publication date
JP5719696B2 (en) 2015-05-20

Similar Documents

Publication Publication Date Title
JP6565783B2 (en) Shift range control device
US10844952B2 (en) Shift range control apparatus
JP6572794B2 (en) Motor control device
US9325275B2 (en) Control apparatus and shift-by-wire system using the same
JP2013001237A (en) Wiper control device and wiper control method
US10088043B2 (en) Shift range control apparatus
JPWO2005097569A1 (en) Wiper device control method
CN109196253B (en) Shift gear control device
JP2014100041A (en) Motor controller
JP2015010656A (en) Shift-by-wire control device
JP5719696B2 (en) Wiper motor control device and wiper motor control method
JPWO2007052503A1 (en) Wiper control method and wiper control system
JP5563815B2 (en) Motor device and wiper device including the motor device
JP2017161455A (en) Control device
US10378648B2 (en) Shift range control apparatus
WO2018043405A1 (en) Brushless motor and control method
JP2011247391A (en) Range switching control device
US10454400B2 (en) Electromechanical device provided with controlled motor and rotation control method
JP6372958B2 (en) Wiper system
JP3888278B2 (en) Motor control device
JP3849629B2 (en) Motor control device
WO2024070464A1 (en) Motor control device
JP7236876B2 (en) Wiper device and wiper controller
JP7230674B2 (en) motor controller
JP2024048927A (en) Motor Control Device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141029

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141212

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150310

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150323

R150 Certificate of patent or registration of utility model

Ref document number: 5719696

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150