[go: up one dir, main page]

JPH09249186A - Gear pulse counting method and gear position detecting method - Google Patents

Gear pulse counting method and gear position detecting method

Info

Publication number
JPH09249186A
JPH09249186A JP8061393A JP6139396A JPH09249186A JP H09249186 A JPH09249186 A JP H09249186A JP 8061393 A JP8061393 A JP 8061393A JP 6139396 A JP6139396 A JP 6139396A JP H09249186 A JPH09249186 A JP H09249186A
Authority
JP
Japan
Prior art keywords
gear
rotation
motor
pulse
count value
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.)
Pending
Application number
JP8061393A
Other languages
Japanese (ja)
Inventor
Shinya Kobayashi
真也 小林
Mitsuaki Ito
光昭 伊藤
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.)
Jeco Corp
Original Assignee
Jeco 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 Jeco Corp filed Critical Jeco Corp
Priority to JP8061393A priority Critical patent/JPH09249186A/en
Publication of JPH09249186A publication Critical patent/JPH09249186A/en
Pending legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PROBLEM TO BE SOLVED: To simply improve the detection resolution of a gear position by the gear pulse counting method and gear position setting method used when the pulses generated in response to the rotation of a gear are counted to detect the rotation position of the gear. SOLUTION: The rotating direction of a motor 3 is determined by a rotating direction detecting means 8e. When the motor 3 is rotated in the positive rotating direction, '+1' is added to the count value at the leading edge and trailing edge of the pulse signal generated by a rotation detection section 6. When the motor 3 is rotated in the reverse rotating direction, '-1' is added to the count value at the leading edge and trailing edge of the pulse signal generated by the rotation detection section 6.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はギアパルスカウント
方法及びギア位置検出方法に係り、特に、ギアの回転位
置をギアの回転に応じて発生するパルスをカウントする
ことにより検出するときに用いられるギアパルスカウン
ト方法及びギア位置検出方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a gear pulse counting method and a gear position detecting method, and more particularly to a gear used when the rotational position of a gear is detected by counting pulses generated according to the rotation of the gear. The present invention relates to a pulse counting method and a gear position detecting method.

【0002】[0002]

【従来の技術】近年、自転車に搭載された変速装置を自
動化するアクチュエータが開発されている。このアクチ
ュエータは自転車に搭載された変速装置で変速操作を行
うワイヤの引き位置を車輪のトルクや回転速度等に応じ
て制御することにより変速操作を自動化している。
2. Description of the Related Art In recent years, actuators for automating transmissions mounted on bicycles have been developed. This actuator automates the gear shifting operation by controlling the pulling position of the wire that performs the gear shifting operation in the gearbox mounted on the bicycle in accordance with the wheel torque, rotation speed, and the like.

【0003】この種のアクチュエータではモータにより
ワイヤを操作して変速装置の変速段数を制御しており、
モータの駆動力は減速ギア群、伝達機構を介してワイヤ
に伝達される。このとき、減速ギア群の出力ギアの回転
量を検出してモータの回転を制御することによりワイヤ
の操作量を制御していた。
In this type of actuator, the number of gears of the transmission is controlled by operating the wire by the motor.
The driving force of the motor is transmitted to the wire via a reduction gear group and a transmission mechanism. At this time, the operation amount of the wire is controlled by detecting the rotation amount of the output gear of the reduction gear group and controlling the rotation of the motor.

【0004】出力ギアの回転量の検出は出力軸に回転検
出用のギアを設け、このギアにギアの凹凸によりスイッ
チングされるマイクロスイッチを設け、マイクロスイッ
チのオン/オフに応じてハイ/ローレベルとなるパルス
を発生し、このパルスの立ち上がりをカウントすること
により出力ギアの回転量を検出し、ワイヤの移動量を検
出していた。
To detect the amount of rotation of the output gear, a gear for rotation detection is provided on the output shaft, and a micro switch that is switched by the unevenness of the gear is provided on this gear, and a high / low level is set according to ON / OFF of the micro switch. Therefore, the rotation amount of the output gear is detected by counting the rising edge of this pulse, and the movement amount of the wire is detected.

【0005】図11に従来のアクチュエータの一例の構
成図を示す。従来のアクチュエータ51は、駆動力を発
生するモータ52、モータ52の回転駆動力を減速する
減速ギア群53、減速ギア群53で減速された回転を変
速装置55に伝達する伝達機構54、減速ギア群53の
回転を検出する回転検出部56、回転検出部56で検出
された回転量に応じてモータ52の回転を制御する制御
部57より構成されている。
FIG. 11 shows a block diagram of an example of a conventional actuator. A conventional actuator 51 includes a motor 52 that generates a driving force, a reduction gear group 53 that reduces the rotational driving force of the motor 52, a transmission mechanism 54 that transmits the rotation reduced by the reduction gear group 53 to a transmission 55, a reduction gear. The group 53 includes a rotation detector 56 that detects the rotation of the group 53, and a controller 57 that controls the rotation of the motor 52 according to the rotation amount detected by the rotation detector 56.

【0006】制御部57は、回転検出部56で検出され
たパルス信号をカウントするアップダウンカウンタ57
a、自転車の後輪のトルクを検出するトルク検出部57
b、トルク検出部57bで検出されたトルクに応じて変
速段数を設定し、アップダウンカウンタ57aでカウン
トされたカウント値に応じて伝達機構54の駆動量が設
定された段数に対応した位置となるようにモータ52を
駆動する駆動制御信号を生成する回転制御手段57c、
設定段数にするためのモータ52の回転方向を検出し、
アップダウンカウンタ57aのカウント方向を設定する
端子に供給する回転方向検出手段57d、モータ52に
駆動電源を供給する電源ユニット57e、回転制御手段
57cで生成された駆動制御信号に応じて電源ユニット
57eからモータ52に供給する駆動電源を制御するモ
ータ駆動回路57fより構成される。
The control unit 57 is an up / down counter 57 for counting the pulse signals detected by the rotation detection unit 56.
a, a torque detector 57 for detecting the torque of the rear wheel of the bicycle
b, the number of shift stages is set according to the torque detected by the torque detector 57b, and the drive amount of the transmission mechanism 54 is at a position corresponding to the set number of stages according to the count value counted by the up / down counter 57a. Rotation control means 57c for generating a drive control signal for driving the motor 52,
The rotation direction of the motor 52 for setting the number of steps is detected,
From the power supply unit 57e according to the drive control signal generated by the rotation direction detecting means 57d for supplying the power supply to the motor 52, the rotation direction detecting means 57d for supplying the terminal for setting the counting direction of the up / down counter 57a, and the rotation control means 57c. The motor drive circuit 57f is configured to control the drive power supply to the motor 52.

【0007】図12に従来の一例の変速位置検出方法の
動作説明図を示す。図12(A)は回転検出部56で生
成されるパルスの波形、図12(B)は回転方向検出手
段57dにより検出されたモータ52の回転方向、図1
2(C)はアップダウンカウンタ57aの出力カウント
値を示す。
FIG. 12 shows an operation explanatory diagram of a conventional shift position detecting method. 12A is a waveform of a pulse generated by the rotation detection unit 56, FIG. 12B is a rotation direction of the motor 52 detected by the rotation direction detection unit 57d, and FIG.
2 (C) shows the output count value of the up / down counter 57a.

【0008】時刻t1で図12(A)に示す回転検出部
56で生成されたパルス信号が立ち上がると、このと
き、モータ52の回転方向は図12(B)に示すように
正回転方向であるため、カウント値C0に’1’が加算
され、カウント値はC1になる。
When the pulse signal generated by the rotation detector 56 shown in FIG. 12 (A) rises at time t1, the rotation direction of the motor 52 at this time is the forward rotation direction as shown in FIG. 12 (B). Therefore, "1" is added to the count value C0, and the count value becomes C1.

【0009】次に時刻t2で図12(A)に示す回転検
出部56で生成されたパルス信号が立ち上がるとこのと
きのモータ52の回転方向は図12(B)に示すように
正回転方向であるため、カウント値C1に’1’が加算
され、カウント値はC2になる。同様にして時刻t2で
図12(A)に示す回転検出部56で生成されたパルス
信号が立ち上がるとこのときのモータ52の回転方向は
図12(B)に示すように正回転方向であるため、カウ
ント値C2に’1’が加算され、カウント値はC3にな
る。
Next, at time t2, when the pulse signal generated by the rotation detector 56 shown in FIG. 12 (A) rises, the rotation direction of the motor 52 at this time is the forward rotation direction as shown in FIG. 12 (B). Therefore, "1" is added to the count value C1 and the count value becomes C2. Similarly, when the pulse signal generated by the rotation detection unit 56 shown in FIG. 12A rises at time t2, the rotation direction of the motor 52 at this time is the forward rotation direction as shown in FIG. 12B. , "1" is added to the count value C2, and the count value becomes C3.

【0010】時刻t4でモータ52の回転方向が反転さ
れ、次の時刻t5では図12(A)に示す回転検出部5
6で生成されたパルス信号が立ち上がると、このとき、
モータ3の回転方向は図12(B)に示すように逆回転
方向であるため、カウント値C3から’1’が減算さ
れ、カウント値はC2になる。
At time t4, the rotation direction of the motor 52 is reversed, and at the next time t5, the rotation detector 5 shown in FIG.
When the pulse signal generated in 6 rises,
Since the rotation direction of the motor 3 is the reverse rotation direction as shown in FIG. 12B, "1" is subtracted from the count value C3, and the count value becomes C2.

【0011】次の時刻t6で図12(A)に示す回転検
出部56で生成されたパルス信号が立ち上がるとこのと
きのモータ52の回転方向は図12(B)に示すように
逆回転方向であるため、カウント値C2から’1’が減
算され、カウント値はC1になる。同様にして時刻t7
で図12(A)に示す回転検出部56で生成されたパル
ス信号が立ち上がるとこのときのモータ52の回転方向
は図12(B)に示すように逆回転方向であるため、カ
ウント値C1から’1’が減算され、カウント値はC0
になる。
At the next time t6, when the pulse signal generated by the rotation detector 56 shown in FIG. 12 (A) rises, the rotation direction of the motor 52 at this time is the reverse rotation direction as shown in FIG. 12 (B). Therefore, "1" is subtracted from the count value C2, and the count value becomes C1. Similarly, time t7
When the pulse signal generated by the rotation detector 56 shown in FIG. 12A rises, the rotation direction of the motor 52 at this time is the reverse rotation direction as shown in FIG. "1" is subtracted and the count value is C0
become.

【0012】[0012]

【発明が解決しようとする課題】しかるに、従来のアク
チュエータでは、出力位置を検出するときに減速機構の
出力軸の回転量を検出するときに、出力軸の回転に応じ
て発生されるパルスの立ち上がりだけをカウントして位
置を検出していたため、カウント値を大きく取れず分解
能が良くない等の問題点があった。
However, in the conventional actuator, when detecting the output amount of the output shaft of the reduction mechanism when detecting the output position, the rise of the pulse generated according to the rotation of the output shaft is detected. Since the position is detected by counting only the number, there is a problem that the count value cannot be large and the resolution is not good.

【0013】本発明は上記の点に鑑みてなされたもの
で、簡単にギヤ位置の検出の分解能を向上させることが
できるギアパルスカウント方法及びギア位置検出方法を
提供することを目的とする。
The present invention has been made in view of the above points, and it is an object of the present invention to provide a gear pulse counting method and a gear position detecting method which can easily improve the resolution of gear position detection.

【0014】[0014]

【課題を解決するための手段】本発明の請求項1は、ギ
アの回転に応じた周期で生成されるパルスをカウントす
るパルスカウント方法において、前記パルスの立ち上が
り及び立ち下がりを検出する第1の手順と、前記第1の
手順で検出された前記パルスの立ち上がり及び立ち下が
りの両方をカウントする第2の手順とを有することを特
徴とする。
According to a first aspect of the present invention, in a pulse counting method for counting pulses generated in a cycle according to rotation of a gear, a first rising edge and a falling edge of the pulse are detected. It is characterized by including a procedure and a second procedure of counting both the rising and falling edges of the pulse detected in the first procedure.

【0015】請求項1によれば、ギアの回転に応じた周
期で生成されるパルスの立ち上がり及び立ち下がりの両
方をカウントすることにより立ち上がり又は立ち下がり
のどちらか一方を検出する場合に比べて2倍の分解能で
ギアの回転を検出できる。請求項2は、前記ギアの回転
方向を検出する第3の手順を有し、前記第2の手順は、
前記第3の手順で検出された前記ギアの回転方向に応じ
てカウント方向を設定することを特徴とする。
According to the first aspect of the present invention, as compared with the case where either the rising edge or the falling edge is detected by counting both the rising edge and the falling edge of the pulse generated in the cycle corresponding to the rotation of the gear, Gear rotation can be detected with double the resolution. Claim 2 has a third procedure for detecting the rotation direction of the gear, and the second procedure comprises:
The count direction is set according to the rotation direction of the gear detected in the third procedure.

【0016】請求項2によれば、ギアの回転方向に応じ
てカウント値がアップダウンされるため、ギア位置を高
い分解能で自由に設定することができる。請求項3は、
前記第2の手順でカウントされたカウント値に応じて
前記ギアの位置を設定する第4の手順を有することを特
徴とする。
According to the second aspect, since the count value is increased or decreased according to the rotation direction of the gear, the gear position can be freely set with high resolution. Claim 3
It is characterized by having a fourth procedure for setting the position of the gear according to the count value counted in the second procedure.

【0017】請求項3によれば、カウント値に応じてギ
アの回転位置決めを行うことにより、高い分解能で検出
できる。
According to the third aspect, by performing the rotational positioning of the gear according to the count value, it is possible to detect with high resolution.

【0018】[0018]

【発明の実施の形態】次に本発明の実施例を説明する。
実施例として自転車の自動変速装置について説明する。
図1に本発明の一実施例のブロック構成図を示す。
Next, embodiments of the present invention will be described.
An automatic transmission for a bicycle will be described as an example.
FIG. 1 shows a block diagram of an embodiment of the present invention.

【0019】本実施例の自動変速装置1は、変速を行う
変速装置2aと変速操作を行うチェンジレバー2bとの
間にワイヤW1、W2を介して接続されており、自動変
速を行うための駆動力を発生するためのモータ3、モー
タ3の回転駆動力を減速する減速ギア群4、減速ギア群
4で減速された回転を変速装置2に伝達する伝達機構
5、減速ギア群4から伝達機構5に伝達される回転量を
検出する回転検出部6、車輪の回転トルク及び回転速度
を検出するトルク検出部7、回転検出部6及びトルク検
出部7の検出結果に応じてモータ3の回転を制御する制
御部8、駆動電源を供給する電源ユニット9より構成さ
れている。
The automatic transmission 1 according to the present embodiment is connected via a wire W1 and a wire W2 between a transmission 2a for performing a gear shift and a change lever 2b for performing a gear shift operation. A motor 3 for generating force, a reduction gear group 4 for reducing the rotational driving force of the motor 3, a transmission mechanism 5 for transmitting the rotation reduced by the reduction gear group 4 to the transmission 2, and a transmission mechanism from the reduction gear group 4 The rotation detection unit 6 that detects the amount of rotation transmitted to the motor 5, the torque detection unit 7 that detects the rotation torque and the rotation speed of the wheel, the rotation detection unit 6, and the rotation of the motor 3 according to the detection results of the torque detection unit 7. The control unit 8 for controlling and a power supply unit 9 for supplying driving power are included.

【0020】変速装置2aは自転車の後輪軸受け部に内
装して設けられ、ワイヤW1を張引することにより4段
変速が可能な構成とされた、いわゆる、内装型4段変速
の変速装置である。変速装置2aは、ワイヤW1を張引
しない状態で1段、所定の量張引した状態で2段、2段
の状態からさらに所定量張引した状態で3段、3段の状
態からさらに所定量張引した状態で4段とされる。
The transmission 2a is a so-called internal type four-speed transmission which is provided internally in the rear wheel bearing portion of the bicycle and has a structure capable of four-speed shifting by pulling the wire W1. is there. The transmission 2a has one step without pulling the wire W1, two steps with a predetermined amount of pulling, and three steps with a predetermined amount of pulling with a predetermined amount. There are 4 stages with a certain amount of tension.

【0021】モータ3は、直流(DC)モータよりな
り、制御部8と接続され、制御部8から供給される駆動
信号に応じて正回転、逆回転方向に回転する。モータ3
の出力軸は減速ギア群4に接続される。減速ギア群4は
モータ3の出力軸から供給される回転駆動力を減速し、
伝達機構5に供給する。
The motor 3 is composed of a direct current (DC) motor, is connected to the control unit 8, and rotates in a forward rotation direction or a reverse rotation direction according to a drive signal supplied from the control unit 8. Motor 3
The output shaft of is connected to the reduction gear group 4. The reduction gear group 4 reduces the rotational driving force supplied from the output shaft of the motor 3,
Supply to the transmission mechanism 5.

【0022】伝達機構5は、変速装置2aとチェンジレ
バー2bとの間にワイヤW1、W2により接続され、減
速ギア群4から伝達された駆動力により変速装置2に接
続されたワイヤW1を駆動すると共にチェンジレバー2
bの操作に応じて変速装置2に接続されたワイヤW1を
駆動し、変速装置2aの変速動作を自動及び手動で行え
るように構成されている。
The transmission mechanism 5 is connected by wires W1 and W2 between the transmission 2a and the change lever 2b, and drives the wire W1 connected to the transmission 2 by the driving force transmitted from the reduction gear group 4. With change lever 2
The wire W1 connected to the transmission 2 is driven according to the operation of b, and the transmission 2a can be automatically and manually operated for shifting.

【0023】回転検出部6は減速ギア群4の出力軸に設
けられ、減速ギア群4の出力軸の回転に応じた周期のパ
ルス信号を出力する。図2に本発明の一実施例の回転検
出部の構成及び動作説明図を示す。回転検出部6は、周
囲にギアが形成された回転検出用ギア6a、可動接点が
回転検出用ギア6aの周囲に固定されたマイクロスイッ
チ6bより構成される。
The rotation detector 6 is provided on the output shaft of the reduction gear group 4 and outputs a pulse signal having a cycle corresponding to the rotation of the output shaft of the reduction gear group 4. FIG. 2 is a diagram showing the configuration and operation of the rotation detector of one embodiment of the present invention. The rotation detection unit 6 is composed of a rotation detection gear 6a having gears formed around it, and a microswitch 6b having movable contacts fixed around the rotation detection gear 6a.

【0024】図2(A)はマクロスイッチ6bがオフの
ときの状態、図2(B)はマイクロスイッチ6bがオン
のときの状態を示す。回転検出用ギア6aの周囲には伝
達機構5の検出移動量に応じたピッチ(角度)で歯部6
cが形成されている。マイクロスイッチ6bはスイッチ
を駆動するための凸部6dがケース6eから突出した構
成とされている。マイクロスイッチ6bは、凸部6dが
回転検出用ギア6aの歯部6c形成面に当接されるよう
に回転検出用ギア6aに近接して配置されている。
2A shows the state when the macro switch 6b is off, and FIG. 2B shows the state when the micro switch 6b is on. Around the rotation detection gear 6a, the tooth portions 6 are arranged at a pitch (angle) corresponding to the detected movement amount of the transmission mechanism 5.
c is formed. The micro switch 6b has a structure in which a convex portion 6d for driving the switch is projected from the case 6e. The micro switch 6b is arranged close to the rotation detecting gear 6a so that the convex portion 6d is brought into contact with the tooth portion 6c forming surface of the rotation detecting gear 6a.

【0025】凸部6dはケース6eから突出する方向
(矢印A1 方向)にバネなどにより付勢されており、回
転検出用ギア6aの歯部6cの形成面に所定の圧力で押
圧されている。図2(A)に示すように凸部6dが歯部
6cの間にあるときには凸部6dはケース6eから矢印
1 方向に延出された状態とされ、マイクロスイッチ6
bをオフする。
The convex portion 6d is biased by a spring or the like in a direction projecting from the case 6e (direction of arrow A 1 ) and is pressed against the surface of the rotation detecting gear 6a where the tooth portion 6c is formed with a predetermined pressure. . As shown in FIG. 2A, when the convex portion 6d is between the tooth portions 6c, the convex portion 6d is extended from the case 6e in the direction of the arrow A 1 , and the micro switch 6
Turn off b.

【0026】また、図2(A)の状態からモータ3が回
転し、回転検出用ギア6aが矢印B方向に角度θだけ回
転されると、図2(B)に示されるように回転検出用ギ
ア6aの歯部6cの位置にマイクロスイッチ6bの凸部
6dが位置し、マイクロスイッチ6bの凸部6dが矢印
2 方向に押し込まれマイクロスイッチ6bはオンす
る。
When the motor 3 rotates from the state of FIG. 2A and the rotation detecting gear 6a is rotated in the direction of arrow B by an angle θ, the rotation detecting gear 6a is rotated as shown in FIG. 2B. protrusion 6d of the micro switch 6b to the position of the teeth portion 6c of the gear 6a is located, the microswitch 6b protrusion 6d of the micro switch 6b is pushed in the arrow a 2 direction is turned on.

【0027】このように、モータ3の回転により回転検
出用ギア6aが回転されると、マイクロスイッチ6bは
回転検出用ギア6aの歯部6cによりオン/オフが繰り
返される。マイクロスイッチ6bには、一定の電源が供
給され、マイクロスイッチ6bがオンするとローレベ
ル、マイクロスイッチ6bがオフするとハイレベルとな
るパルス信号が生成される。マイクロスイッチ6bで生
成されたパルス信号は、制御部8に供給される。
In this way, when the rotation detecting gear 6a is rotated by the rotation of the motor 3, the micro switch 6b is repeatedly turned on / off by the tooth portion 6c of the rotation detecting gear 6a. A constant power is supplied to the micro switch 6b, and a pulse signal that is low level when the micro switch 6b is turned on and is high level when the micro switch 6b is turned off is generated. The pulse signal generated by the micro switch 6b is supplied to the control unit 8.

【0028】トルク検出部7は自転車の後輪に取り付け
られ、後輪に発生するトルク及び回転速度を検出する。
トルク検出部7で検出されたトルク及び回転速度は制御
部8に供給される。制御部8は回転検出部6で検出され
たパルスに応じてモータ3の駆動量を制御すると共に、
トルク検出部7で検出されたトルク及び回転速度により
変速装置2の変速段数を決定し、モータ3を駆動する。
The torque detector 7 is attached to the rear wheel of the bicycle and detects the torque and the rotational speed generated in the rear wheel.
The torque and the rotation speed detected by the torque detection unit 7 are supplied to the control unit 8. The control unit 8 controls the drive amount of the motor 3 according to the pulse detected by the rotation detection unit 6, and
The number of shift stages of the transmission 2 is determined based on the torque and the rotation speed detected by the torque detector 7, and the motor 3 is driven.

【0029】図3に本発明の一実施例の制御部のブロッ
ク構成図を示す。制御部8は回転検出部6で生成された
パルスを4ms毎のサンプリングし、カウントするギア
パルスカウント手段8a、ギアパルスカウント手段8a
のカウント値に応じた変速段数の位置を記憶したメモリ
8b、ギアパルスカウント手段8aでカウントされたカ
ウント値をメモリ8bの値と比較して所定の変速段数の
カウント値との差を検出する比較手段8c、トルク検出
部7で検出されたトルク及び回転速度に応じて変速段数
を決定し、比較手段8cで求められた所定の変速段数ま
でのカウント値の差に応じて変速装置2の変速段数が決
定された変速段数になるようにモータ3に駆動制御信号
を供給するモータ回転制御手段8d、モータ回転制御手
段8dで生成されたモータ駆動制御信号からモータ3の
回転方向を検出し、ギアパルスカウント手段8aにモー
タ3の回転方向に関する情報を供給する回転方向検出手
段8e、モータ回転制御手段8dからのモータ駆動制御
信号に応じてモータ3への電源の供給を制御するモータ
駆動回路8fより構成される。
FIG. 3 shows a block diagram of a control unit according to an embodiment of the present invention. The control unit 8 samples the pulse generated by the rotation detection unit 6 every 4 ms, and counts the gear pulse counting unit 8a and the gear pulse counting unit 8a.
Of the memory 8b storing the position of the gear number corresponding to the count value of the gear 8 and the count value counted by the gear pulse counting means 8a is compared with the value of the memory 8b to detect a difference from the count value of the predetermined gear number. The gear shift stage number is determined according to the torque and the rotational speed detected by the means 8c and the torque detection unit 7, and the gear shift stage number of the transmission 2 is determined according to the difference between the count values up to the predetermined gear shift stage determined by the comparison means 8c. The motor rotation control means 8d for supplying the drive control signal to the motor 3 so that the number of gears is determined, and the rotation direction of the motor 3 is detected from the motor drive control signal generated by the motor rotation control means 8d, and the gear pulse is detected. In accordance with the motor drive control signal from the rotation direction detection means 8e and the motor rotation control means 8d, which supply the information about the rotation direction of the motor 3 to the counting means 8a. Composed of the motor driving circuit 8f which controls the supply of power to 3.

【0030】ギアパルスカウント手段8aは回転検出部
6から供給されたパルスの立ち上がり及び立ち下がりの
両方を検出してカウントを行う。図4に本発明の一実施
例のギアパルスカウント手段の動作フローチャートを示
す。
The gear pulse counting means 8a detects both the rising and falling edges of the pulse supplied from the rotation detecting section 6 and counts. FIG. 4 shows an operation flowchart of the gear pulse counting means of one embodiment of the present invention.

【0031】ギアパルスカウント手段8aはまず回転方
向検出手段8eからのモータ3の回転方向を決定する情
報からモータ3が正回転方向に回転しているか否かを判
断する(ステップS1−1)。ステップS1−1で、モ
ータ3の回転が正回転方向のときには次に回転検出部6
で生成されたパルス信号から立ち上がりを検出する(ス
テップS1−2)。
The gear pulse counting means 8a first determines whether or not the motor 3 is rotating in the forward rotation direction from the information for determining the rotation direction of the motor 3 from the rotation direction detecting means 8e (step S1-1). In step S1-1, when the rotation of the motor 3 is in the forward rotation direction, the rotation detection unit 6
The rising edge is detected from the pulse signal generated in (step S1-2).

【0032】ステップS1−2で、回転検出部6で生成
されたパルス信号から立ち上がりを検出すると、カウン
ト値を’+1’する(ステップS1−3)。また、ステ
ップS1−2で回転検出部6で生成されたパルス信号か
ら立ち上がりが検出されなかった場合には、次に、回転
検出部6で生成されたパルス信号から立ち下がりを検出
する(ステップS1−4)。
In step S1-2, when the rising edge is detected from the pulse signal generated by the rotation detector 6, the count value is incremented by "+1" (step S1-3). If the rising edge is not detected from the pulse signal generated by the rotation detecting section 6 in step S1-2, then the falling edge is detected from the pulse signal generated by the rotation detecting section 6 (step S1). -4).

【0033】ステップS1−4で、回転検出部6で生成
されたパルス信号から立ち下がりを検出すると、カウン
ト値を’+1’する(ステップS1−3)。また、ステ
ップS1−1で、モータ3の回転が逆回転方向のときに
は次に回転検出部6で生成されたパルス信号から立ち上
がりを検出する(ステップS1−5)。
When the trailing edge is detected from the pulse signal generated by the rotation detector 6 in step S1-4, the count value is incremented by "+1" (step S1-3). When the rotation of the motor 3 is in the reverse rotation direction in step S1-1, the rising edge is detected from the pulse signal generated by the rotation detection unit 6 next (step S1-5).

【0034】ステップS1−5で、回転検出部6で生成
されたパルス信号から立ち上がりを検出すると、カウン
ト値を’−1’する(ステップS1−6)。また、ステ
ップS1−5で回転検出部6で生成されたパルス信号か
ら立ち上がりが検出されなかった場合には、次に、回転
検出部6で生成されたパルス信号から立ち下がりを検出
する(ステップS1−7)。
In step S1-5, when the rising edge is detected from the pulse signal generated by the rotation detector 6, the count value is decremented by "-1" (step S1-6). If the rising edge is not detected from the pulse signal generated by the rotation detecting section 6 in step S1-5, then the falling edge is detected from the pulse signal generated by the rotation detecting section 6 (step S1). -7).

【0035】ステップS1−7で、回転検出部6で生成
されたパルス信号から立ち下がりを検出すると、カウン
ト値を’−1’する(ステップS1−6)。ギアパルス
カウント手段8aでは以上のようにしてカウント値を決
定する。すなわち、モータ3が正回転方向に回転してい
るときには、パルス信号の立ち上がり及び立ち下がりの
両方でカウント値をカウントアップし、モータ3が逆回
転方向に回転しているときには、パルス信号の立ち上が
り及び立ち下がりの両方でカウント値を減算する。
When the trailing edge is detected from the pulse signal generated by the rotation detector 6 in step S1-7, the count value is incremented by "-1" (step S1-6). The gear pulse counting means 8a determines the count value as described above. That is, when the motor 3 is rotating in the forward rotation direction, the count value is counted up at both the rising and falling edges of the pulse signal, and when the motor 3 is rotating in the reverse rotation direction, the rising and falling edges of the pulse signal are increased. The count value is subtracted at both the falling edges.

【0036】従って、カウント値を監視することにより
移動位置を監視できる。すなわち、変速装置2が1段の
状態のカウント値を’0’に設定する。これは電源投入
時などに必ず1段に設定され、カウント値が’0’にリ
セットされて自動変速が実行される。
Therefore, the moving position can be monitored by monitoring the count value. That is, the transmission 2 sets the count value in the one-stage state to "0". This is always set to one stage when the power is turned on, the count value is reset to "0", and the automatic shift is executed.

【0037】図5に本発明の一実施例のギアパルスカウ
ント手段の動作説明図を示す。図5(A)はマイクロス
イッチ6bにより生成されたパルス信号の波形、図5
(B)は回転方向検出手段8eから供給される回転状
態、図5(C)はカウント値の状態を示す。
FIG. 5 shows an explanatory view of the operation of the gear pulse counting means of one embodiment of the present invention. FIG. 5A shows the waveform of the pulse signal generated by the microswitch 6b, and FIG.
5B shows the rotation state supplied from the rotation direction detecting means 8e, and FIG. 5C shows the state of the count value.

【0038】時刻t1で図5(A)に示す回転検出部6
で生成されたパルス信号が立ち上がると、このとき、モ
ータ3の回転方向は図5(B)に示すように正回転方向
であるため、カウント値C0に’1’が加算され、カウ
ント値はC1になる。次に時刻t2で図5(A)に示す
回転検出部6で生成されたパルス信号が立ち下がるとこ
のときのモータ3の回転方向は図5(B)に示すように
正回転方向であるため、カウント値C1に’1’が加算
され、カウント値はC2になる。同様にしてパルスが立
ち上がり及び立ち下がる時刻t3、t4、t5、t6で
カウント値に’1’が加算され、時刻t6ではカウント
値はC6とされる。
At time t1, the rotation detector 6 shown in FIG. 5 (A).
When the pulse signal generated in step S3 rises, the rotation direction of the motor 3 is a positive rotation direction as shown in FIG. 5B, so that "1" is added to the count value C0 and the count value is C1. become. Next, at time t2, when the pulse signal generated by the rotation detection unit 6 shown in FIG. 5A falls, the rotation direction of the motor 3 at this time is the normal rotation direction as shown in FIG. 5B. , "1" is added to the count value C1, and the count value becomes C2. Similarly, "1" is added to the count value at times t3, t4, t5, and t6 when the pulse rises and falls, and the count value is set to C6 at time t6.

【0039】時刻t7でモータ3の回転方向が反転され
ると、次の時刻t8では図5(A)に示す回転検出部6
で生成されたパルス信号が立ち上がった場合、このと
き、モータ3の回転方向は図5(B)に示すように逆回
転方向であるため、カウント値C6から’1’が減算さ
れ、カウント値はC5になる。
When the rotation direction of the motor 3 is reversed at time t7, at the next time t8, the rotation detector 6 shown in FIG. 5 (A).
When the pulse signal generated in step 1 rises, since the rotation direction of the motor 3 is the reverse rotation direction as shown in FIG. 5B at this time, “1” is subtracted from the count value C6 and the count value is It becomes C5.

【0040】次の時刻t9で図5(A)に示す回転検出
部6で生成されたパルス信号が立ち下がるとこのときの
モータ3の回転方向は図5(B)に示すように逆回転方
向であるため、カウント値C5から’1’が減算され、
カウント値はC4になる。同様にしてパルスが立ち上が
り及び立ち下がる時刻t10、t11、t12、t13でカウン
ト値に’1’が減算され、時刻t13ではカウント値はC
0とされる。
At the next time t9, when the pulse signal generated by the rotation detector 6 shown in FIG. 5 (A) falls, the rotation direction of the motor 3 at this time is reverse rotation direction as shown in FIG. 5 (B). Therefore, "1" is subtracted from the count value C5,
The count value becomes C4. Similarly, "1" is subtracted from the count value at times t10, t11, t12, and t13 when the pulse rises and falls, and the count value is C at time t13.
It is set to 0.

【0041】以上のように回転検出部6から供給される
パルスの立ち上がり及び立ち下がりでカウントが行わ
れ、カウント値が増減される、すなわち、図2で回転検
出用ギア6aの角度がθだけ回転する度にカウント値が
増減することになり、従って、回転角度θの分解能で回
転軸の角度を検出できることになる。
As described above, counting is performed at the rising and falling edges of the pulse supplied from the rotation detecting unit 6 and the count value is increased or decreased, that is, the angle of the rotation detecting gear 6a rotates by θ in FIG. Each time, the count value increases or decreases, so that the angle of the rotation axis can be detected with the resolution of the rotation angle θ.

【0042】このため、パルスの立ち上がりでカウント
するだけに比べて2倍の分解能で回転検出用ギア6aの
回転角度を検出できる。図6に本発明の一実施例の自動
変速装置が搭載された自転車の外観図を示す。自転車2
1は、内装型の変速装置2a、変速装置2aを自動変速
する自動変速ユニット1a、自動変速ユニット1aとと
もに自動変速装置1を形成し、電源を供給する電源ユニ
ット9とが搭載されている。
Therefore, the rotation angle of the rotation detecting gear 6a can be detected with a resolution twice as high as that obtained by counting only at the rising edge of the pulse. FIG. 6 shows an external view of a bicycle equipped with an automatic transmission according to an embodiment of the present invention. Bicycle 2
1 includes an internal transmission 2a, an automatic transmission unit 1a that automatically shifts the transmission 2a, an automatic transmission 1 that forms an automatic transmission 1 together with the automatic transmission unit 1a, and a power supply unit 9 that supplies power.

【0043】自動変速ユニット1a及び電源ユニット9
はフレーム22に固定され、導電ケーブル23により接
続される。変速装置2aは例えば、自転車21の後輪2
4の軸受け部25に内装されており、ワイヤW1により
自動変速ユニット1aに接続される。
Automatic transmission unit 1a and power supply unit 9
Are fixed to the frame 22 and connected by a conductive cable 23. The transmission 2a is, for example, the rear wheel 2 of the bicycle 21.
It is built in the bearing portion 25 of No. 4 and is connected to the automatic transmission unit 1a by the wire W1.

【0044】また、自動変速ユニット1aは、ハンドル
26に固定されたチェンジレバー2bとワイヤw2によ
り接続されている。図7に自動変速ユニットの構成図を
示す。自動変速ユニット1aは、ケース27内に前述し
たモータ3、減速ギア群4、伝達機構5、回転検出部
6、制御部8を内蔵した構成とされている。伝達機構5
はケース27の矢印D1 方向の半体に内蔵され、制御部
8を形成する回路基板はケース27の矢印D2 方向の半
体に内蔵されている。
The automatic transmission unit 1a is connected to the change lever 2b fixed to the handle 26 by a wire w2. FIG. 7 shows a block diagram of the automatic transmission unit. The automatic transmission unit 1a has a configuration in which the motor 3, the reduction gear group 4, the transmission mechanism 5, the rotation detection unit 6, and the control unit 8 described above are housed in the case 27. Transmission mechanism 5
Is built in the half body of the case 27 in the direction of arrow D1, and the circuit board forming the control unit 8 is built in the half body of the case 27 in the direction of arrow D2.

【0045】伝達機構5はケース27の矢印D1 方向半
体に矢印D2 方向から第1の回転体28、第2の回転体
29、第3の回転体30の順で重ねて配設されている。
ワイヤW2はケース27の矢印D1 方向の半体に第3の
回転体30の端面と一致する位置で保持され、ワイヤW
1はケース27の矢印D1 方向の半体に第2の回転体2
9の端面と一致する位置で固定され、ワイヤW1、W2
と第2及び第3の回転体29、30との接続を容易にし
ている。
The transmission mechanism 5 is arranged so that the first rotating body 28, the second rotating body 29, and the third rotating body 30 are stacked in this order from the direction of the arrow D2 on the half body of the case 27 in the direction of the arrow D1. .
The wire W2 is held by the half body of the case 27 in the direction of the arrow D1 at a position corresponding to the end surface of the third rotating body 30.
1 is the second rotating body 2 in the half body of the case 27 in the direction of arrow D1.
The wire W1, W2 is fixed at a position corresponding to the end face of the wire 9.
And the second and third rotating bodies 29 and 30 are easily connected.

【0046】また、減速ギア群4はモータ3の出力軸3
aに固定されたウォームギア31、入力ギア32、減速
ギア33、出力ギア34より構成される。出力ギア34
の回転を検出する回転検出用ギア6aは減速ギア33と
共通化された回転軸35に固定され、減速ギア33及び
出力ギア34とともに回転される。入力ギア32の回転
軸36は伝達機構5の回転軸37と同一軸上に植設され
ている。
The reduction gear group 4 is composed of the output shaft 3 of the motor 3.
It is composed of a worm gear 31, which is fixed to a, an input gear 32, a reduction gear 33, and an output gear 34. Output gear 34
The rotation detecting gear 6a for detecting the rotation of the is fixed to the rotating shaft 35 which is also used as the reduction gear 33, and is rotated together with the reduction gear 33 and the output gear 34. The rotation shaft 36 of the input gear 32 is planted on the same axis as the rotation shaft 37 of the transmission mechanism 5.

【0047】モータ3はケース27内に回転軸3aが矢
印E方向に延在するように配置される。ウォームギア3
1は入力ギア32に噛合し、入力ギア32は減速ギア3
3に噛合し、出力ギア34はケース27半体の矢印D1
方向に突出しており、ケース27半体の矢印D1 方向に
格納された伝達機構5の第1の回転体28に噛合してい
る。
The motor 3 is arranged in the case 27 so that the rotating shaft 3a extends in the direction of arrow E. Worm gear 3
1 meshes with the input gear 32, and the input gear 32 is the reduction gear 3
3, the output gear 34 is an arrow D1 of the case 27 half body.
And is meshed with the first rotating body 28 of the transmission mechanism 5 which is housed in the direction of the arrow D1 of the case 27 half body.

【0048】図8に伝達機構の分解斜視図を示す。本実
施例の伝達機構5は、出力ギア34から供給される駆動
力によって回動する第1の回転体28と、第1の回転体
28及び変速装置2aと係合し、第1の回転体28の回
転駆動力を変速機に伝達する第2の回転体29と、第2
の回転体29及びチェンジレバーと係合し、チェンジレ
バーからの供給された駆動力によって回転し、チェンジ
レバーからの回転駆動力を第2の回転体29に伝達する
第3の回転体30とから構成される。
FIG. 8 shows an exploded perspective view of the transmission mechanism. The transmission mechanism 5 of the present embodiment engages with the first rotating body 28 that rotates by the driving force supplied from the output gear 34, the first rotating body 28, and the transmission 2a, and the first rotating body A second rotary body 29 for transmitting the rotational driving force of the second rotary transmission 28 to the transmission;
From the third rotating body 30 that engages with the rotating body 29 and the change lever, rotates by the driving force supplied from the change lever, and transmits the rotational driving force from the change lever to the second rotating body 29. Composed.

【0049】第1の回転体28は、円盤状をなし、その
中心部には軸受け部28aが形成されている。軸受け部
28aは、回転軸37に係合し、第1の回転体28を回
転軸37を中心に回転自在に保持する。外周端部にはギ
ア28bが形成されている。ギア28bは、自動変速装
置と噛合し自動変速装置から駆動力が伝達される。
The first rotating body 28 has a disk shape, and a bearing portion 28a is formed at the center thereof. The bearing portion 28 a engages with the rotating shaft 37 and holds the first rotating body 28 rotatably around the rotating shaft 37. A gear 28b is formed at the outer peripheral end. The gear 28b meshes with the automatic transmission, and the driving force is transmitted from the automatic transmission.

【0050】第1の回転体28の回転中心P0 から半径
Rの位置には回転中心P0 を中心に所定の角度θ0 にわ
たって第1の溝部28cが形成されている。第1の溝部
28cは第2の回転体29と係合して、第1の回転体2
8に自動変速装置から伝達された回転駆動力を第2の回
転体29に伝達する。
A first groove 28c is formed at a radius R from the rotation center P0 of the first rotating body 28 and extends at a predetermined angle .theta.0 about the rotation center P0. The first groove 28c engages with the second rotating body 29, and the first rotating body 2
The rotary driving force transmitted from the automatic transmission 8 is transmitted to the second rotating body 29.

【0051】第2の回転体29は、円盤状をなし、その
中心には軸受け部29aが形成されている。軸受け部2
9aは回転軸37に係合し、第2の回転体29を回転軸
37を中心に回転自在に保持する。また、第2の回転体
29の外周端部には変速装置2aに接続されたワイヤW
1を接続する係合部29b及びワイヤW1をガイドする
ガイド溝29cが形成されている。係合部29bにはワ
イヤW1の先端に形成された接続部38が係合され、ワ
イヤW1と第2の回転体29とが固定される。
The second rotating body 29 has a disk shape, and a bearing portion 29a is formed at the center thereof. Bearing part 2
9a engages with the rotating shaft 37 and holds the second rotating body 29 rotatably around the rotating shaft 37. In addition, a wire W connected to the transmission 2a is attached to the outer peripheral end of the second rotating body 29.
An engaging portion 29b for connecting 1 and a guide groove 29c for guiding the wire W1 are formed. The connecting portion 38 formed at the tip of the wire W1 is engaged with the engaging portion 29b, and the wire W1 and the second rotating body 29 are fixed.

【0052】ガイド溝29cは第2の回転体29の外周
端部全周にわたって形成されている。ガイド溝29cに
は係合部29bに固定されたワイヤW1が係合し、ワイ
ヤW1の経路を所定の経路となるようにガイドする。ま
た、第2の回転体29の回転中心P1 から半径Rの位置
には回転中心P1 を中心に所定の角度θ0 にわたって第
2の溝部29dが形成されている。第2の溝部29d
は、第3の回転体30に対向する面に形成され、第3の
回転体30と係合して、第3の回転体30にチェンジレ
バー2bから伝達された回転駆動力が第2の回転体29
に伝達される。なお、第2の溝部29dは、第2の回転
体29を貫通して形成しても良い。
The guide groove 29c is formed over the entire circumference of the outer peripheral end portion of the second rotating body 29. The wire W1 fixed to the engaging portion 29b engages with the guide groove 29c and guides the path of the wire W1 to a predetermined path. A second groove 29d is formed at a position of radius R from the rotation center P1 of the second rotating body 29, centering on the rotation center P1 and extending over a predetermined angle .theta.0. Second groove 29d
Is formed on the surface facing the third rotating body 30, engages with the third rotating body 30, and the rotational driving force transmitted from the change lever 2b to the third rotating body 30 is the second rotation. Body 29
Is transmitted to The second groove 29d may be formed so as to penetrate the second rotating body 29.

【0053】さらに、第2の回転体29の第1の回転体
28に対向する面には、第2の回転体29の回転中心P
1 から半径Rの位置に第1の回転体28に形成された第
1の溝部28cと係合する第1の凸部29eが形成され
ている。第1の凸部29eは、第1の回転体28に形成
された第1の溝部28cに係合し、第1の回転体28の
回転により第1の溝部28cの端部に当接し、第2の回
転体29に回転駆動力を伝達する。
Further, on the surface of the second rotary body 29 facing the first rotary body 28, the rotation center P of the second rotary body 29 is formed.
A first convex portion 29e that engages with a first groove portion 28c formed in the first rotating body 28 is formed at a position having a radius R from 1. The first convex portion 29e engages with the first groove portion 28c formed in the first rotating body 28, contacts the end portion of the first groove portion 28c by the rotation of the first rotating body 28, and The rotational driving force is transmitted to the second rotating body 29.

【0054】第3の回転体30は、円盤状をなし、その
中心には軸受け部30aが形成されている。軸受け部3
0aは回転軸37に係合し、第3の回転体30を回転軸
37を中心に回転自在に保持する。また、第3の回転体
30の外周端部にはチェンジレバー2bに接続されたワ
イヤW2を接続する係合部30b及びワイヤW2をガイ
ドするガイド溝30cが形成されている。係合部30b
にはワイヤW2の先端に固定された接続ネジ39が係合
され、ワイヤW2と第3の回転体30とが固定される。
The third rotating body 30 has a disk shape, and a bearing portion 30a is formed at the center thereof. Bearing part 3
0a engages with the rotating shaft 37 and holds the third rotating body 30 rotatably around the rotating shaft 37. An engaging portion 30b for connecting the wire W2 connected to the change lever 2b and a guide groove 30c for guiding the wire W2 are formed on the outer peripheral end of the third rotating body 30. Engaging part 30b
A connection screw 39 fixed to the tip of the wire W2 is engaged with the wire W2 to fix the wire W2 and the third rotating body 30.

【0055】ガイド溝30cは第3の回転体30の外周
端部全周にわたって形成されている。ガイド溝30cに
は接続ネジ39に固定されたワイヤW2が係合し、ワイ
ヤW2の経路を所定の経路となるようにガイドする。第
3の回転体30はワイヤW2を介してチェンジレバー2
bから伝達された駆動力により回転される。第3の回転
体30が回転駆動されると第3の回転体30に形成され
た第2の凸部30dが第2の回転体29の第2の溝部2
9dの端部に当接して、第2の回転体29を回転させ、
変速機に接続されたワイヤW1を駆動する。
The guide groove 30c is formed over the entire circumference of the outer peripheral end of the third rotating body 30. The wire W2 fixed to the connection screw 39 is engaged with the guide groove 30c and guides the path of the wire W2 to a predetermined path. The third rotating body 30 is connected to the change lever 2 via the wire W2.
It is rotated by the driving force transmitted from b. When the third rotating body 30 is rotationally driven, the second convex portion 30d formed on the third rotating body 30 causes the second groove portion 2 of the second rotating body 29 to move.
The second rotating body 29 is rotated by contacting the end of 9d,
The wire W1 connected to the transmission is driven.

【0056】次に、伝達機構5の動作を説明する。変速
装置2aは、ワイヤW1をバネにより変速装置2a方向
に付勢している。ワイヤW1は、伝達機構5により張引
され、変速装置2aはワイヤW1の張引量に応じて変速
位置が変更される。変速装置2aは、4つの変速状態を
有し、ワイヤW1が伝達機構5から最も引き出された状
態で1速、1速の状態から長さDだけ引き込まれたとき
には2速、2速の状態から更に長さDだけ引き込まれる
と3速、3速の状態から更に長さDだけ引き込まれ、伝
達機構1に最も引き込まれた状態となると4速となる。
Next, the operation of the transmission mechanism 5 will be described. The transmission 2a biases the wire W1 toward the transmission 2a with a spring. The wire W1 is pulled by the transmission mechanism 5, and the speed change device 2a changes the gear shift position according to the amount of pulling of the wire W1. The speed change device 2a has four speed change states, and when the wire W1 is pulled out from the transmission mechanism 5 most, it is changed from the first speed and the first speed to the length D from the second speed and the second speed. When the length D is further retracted, the third speed and the third speed are further retracted by the length D, and when the transmission mechanism 1 is most retracted, the fourth speed is achieved.

【0057】チェンジレバー2bは、伝達機構5の第3
の回転体30に接続されたワイヤW2の他端に接続さ
れ、ワイヤW2の引き出し量を4段階に制御する。チェ
ンジレバー2bを1段に設定すると、ワイヤW2がチェ
ンジレバー2bから最も引き出された状態となり、伝達
機構5の第3の回転体30が矢印B1方向に回動され、
これにより第2の回転体29が矢印B1 方向に回動さ
れ、ワイヤW1が矢印B1方向に引き出され変速装置2
aの変速位置が1速に設定される。また、チェンジレバ
ー2bを2段に設定すると、ワイヤW2が長さDだけ矢
印B2方向に引き込まれて、第3の回転体30を矢印B
2方向に回動され、第2の回転体29が矢印B2方向に
回動され、ワイヤW1が矢印B2方向に長さDだけ引き
込み、変速装置2aの変速位置を2速にする。
The change lever 2b is the third member of the transmission mechanism 5.
Is connected to the other end of the wire W2 connected to the rotating body 30 and controls the amount of pulling out the wire W2 in four steps. When the change lever 2b is set to the first stage, the wire W2 is most pulled out from the change lever 2b, the third rotating body 30 of the transmission mechanism 5 is rotated in the arrow B1 direction,
As a result, the second rotating body 29 is rotated in the arrow B1 direction, the wire W1 is pulled out in the arrow B1 direction, and the transmission 2
The shift position of a is set to the first speed. Further, when the change lever 2b is set in two stages, the wire W2 is pulled in the direction of the arrow B2 by the length D, and the third rotating body 30 is moved to the arrow B.
It is rotated in two directions, the second rotating body 29 is rotated in the direction of arrow B2, the wire W1 is pulled in the direction of arrow B2 by the length D, and the gear shift position of the transmission 2a is set to the second speed.

【0058】同様に、チェンジレバー2bを3段に設定
すると、ワイヤW2が更に長さDだけ矢印B2方向に引
き込まれて、第3の回転体30が矢印B2方向に回動さ
れ、第2の回転体29が矢印B2方向に回動され、ワイ
ヤW1を更に矢印B2方向に長さDだけ引き込み、変速
装置2aの変速位置を3速に設定する。さらに、チェン
ジレバー2bを4段に設定すると、ワイヤW2が更に長
さDだけ矢印B2方向に引き込まれて、第3の回転体3
0を矢印B2方向が回動され、第2の回転体29が矢印
B2 方向に回動され、ワイヤW1を更に矢印B2方向に
長さDだけ引き込み、変速装置2aの変速位置を4速に
設定する。
Similarly, when the change lever 2b is set to three steps, the wire W2 is further pulled in the direction of the arrow B2 by the length D, and the third rotating body 30 is rotated in the direction of the arrow B2, and the second rotating body 30 is rotated. The rotator 29 is rotated in the arrow B2 direction, the wire W1 is further drawn in the arrow B2 direction by the length D, and the shift position of the transmission 2a is set to the third speed. Further, when the change lever 2b is set to four steps, the wire W2 is further pulled in the direction of the arrow B2 by the length D, and the third rotating body 3
0 is rotated in the direction of the arrow B2, the second rotating body 29 is rotated in the direction of the arrow B2, and the wire W1 is further drawn in the direction of the arrow B2 by the length D to set the shift position of the transmission 2a to the fourth speed. To do.

【0059】自動変速時に第1の回転体28の溝部28
C端部が第2の回転体29の凸部29eに当接し、第1
の回転体28を拘束したとき、上記自動変速装置1又は
21を用いることにより確実にモータ3のロック状態を
検出できるため、電源ユニット9における電力の消費を
抑制でき電池の寿命を延ばすことができる。
The groove 28 of the first rotating body 28 during automatic shifting
The C end contacts the convex portion 29e of the second rotating body 29, and
When the rotating body 28 is restrained, the locked state of the motor 3 can be reliably detected by using the automatic transmission 1 or 21, so that the power consumption of the power supply unit 9 can be suppressed and the life of the battery can be extended. .

【0060】なお、上記実施例ではパルスカウント手段
8aをマイコンの処理により実現したがこれに限ること
はなく、ハードウェアで処理することもできる。図9に
本発明の一実施例の変形例のパルスカウント手段のブロ
ック構成図を示す。
In the above embodiment, the pulse counting means 8a is realized by the processing of the microcomputer, but the present invention is not limited to this, and it may be processed by hardware. FIG. 9 shows a block diagram of a pulse counting means of a modified example of the embodiment of the present invention.

【0061】本変形例のパルスカウント手段40は、回
転検出部6からのパルスをラッチするフリップフロップ
40a、回転検出部6からのパルスを反転するインバー
タ40b、インバータ40bで反転されたパルスをラッ
チするフリップフロップ40c、フリップフロップ40
a、40cでラッチされたパルスの排他的論理和を取る
排他的論理和(EXOR)ゲート40d、排他的論理和
(EXOR)ゲート40dの出力パルスの立ち上がりを
カウントするアップダウンカウンタ40eより構成され
る。
The pulse counting means 40 of the present modification example latches the flip-flop 40a that latches the pulse from the rotation detection unit 6, the inverter 40b that inverts the pulse from the rotation detection unit 6, and the pulse that is inverted by the inverter 40b. Flip-flop 40c, flip-flop 40
an exclusive-OR (EXOR) gate 40d that takes an exclusive-OR of the pulses latched by a and 40c, and an up-down counter 40e that counts the rising edge of the output pulse of the exclusive-OR (EXOR) gate 40d. .

【0062】図10に本発明の一実施例の変形例のパル
スカウント手段の動作波形図を示す。図10(A)は回
転検出部6から供給されるパルスの波形、図10(B)
はフリップフロップ40aの出力パルスの波形、図10
(C)はインバータ40bの出力パルスの波形、図10
(D)はフリップフロップ40cの出力パルスの波形、
図10(E)は排他的論理和ゲート40dの出力パルス
の波形、図10(F)は回転方向検出部8eの検出結
果、図10(G)はアップダウンカウンタ40eの出力
カウント値を示す。
FIG. 10 shows an operation waveform diagram of the pulse counting means of a modification of the embodiment of the present invention. FIG. 10 (A) shows the waveform of the pulse supplied from the rotation detector 6, FIG. 10 (B).
Is the waveform of the output pulse of the flip-flop 40a, FIG.
(C) is the waveform of the output pulse of the inverter 40b, FIG.
(D) is the waveform of the output pulse of the flip-flop 40c,
10E shows the waveform of the output pulse of the exclusive OR gate 40d, FIG. 10F shows the detection result of the rotation direction detection unit 8e, and FIG. 10G shows the output count value of the up / down counter 40e.

【0063】時刻t1で図10(A)に示す回転検出部
6からの供給されるパルスが立ち上がると、フリップフ
ロップ40aがこれを検出して、図10(B)に示すよ
うに出力パルスを立ち上げる。このとき、インバータ4
0bの出力は図10(C)に示すように立ち下がるた
め、フリップフロップ40cの出力はローレベルを保持
する。このため、排他的論理和ゲート40dの出力は立
ち上がる。
When the pulse supplied from the rotation detector 6 shown in FIG. 10 (A) rises at time t1, the flip-flop 40a detects this and outputs an output pulse as shown in FIG. 10 (B). increase. At this time, the inverter 4
Since the output of 0b falls as shown in FIG. 10C, the output of the flip-flop 40c holds the low level. Therefore, the output of the exclusive OR gate 40d rises.

【0064】排他的論理和ゲート40dの出力は立ち上
がると、このとき、回転方向検出部8eからはモータ3
を正回転方向に回転させる情報が供給されているため、
アップダウンカウンタ40eはアップ方向にカウント行
うので、アップダウンカウンタ40eの出力カウント値
はC0に’1’を加算したC1となる。
When the output of the exclusive OR gate 40d rises, at this time, the rotation direction detector 8e causes the motor 3
Since the information for rotating the
Since the up / down counter 40e counts in the up direction, the output count value of the up / down counter 40e is C1 obtained by adding "1" to C0.

【0065】時刻t2で図10(A)に示す回転検出部
6からの供給されるパルスが立ち下がると、フリップフ
ロップ40aは反転せず、、図10(B)に示すように
ローレベルを保持する。このとき、インバータ40bの
出力は図10(C)に示すように立ち上がるため、フリ
ップフロップ40cはこれを検出し、出力をハイレベル
に反転する。このため、排他的論理和ゲート40dの出
力は立ち上がる。
When the pulse supplied from the rotation detector 6 shown in FIG. 10 (A) falls at time t2, the flip-flop 40a does not invert and the low level is maintained as shown in FIG. 10 (B). To do. At this time, the output of the inverter 40b rises as shown in FIG. 10C, so the flip-flop 40c detects this and inverts the output to the high level. Therefore, the output of the exclusive OR gate 40d rises.

【0066】排他的論理和ゲート40dの出力は立ち上
がると、このとき、回転方向検出部8eからはモータ3
を正回転方向に回転させる情報が供給されているため、
アップダウンカウンタ40eはアップ方向にカウント行
うので、アップダウンカウンタ40eの出力カウント値
はC1に’1’を加算したC2となる。
When the output of the exclusive OR gate 40d rises, at this time, the motor 3 is detected by the rotation direction detection unit 8e.
Since the information for rotating the
Since the up / down counter 40e counts in the up direction, the output count value of the up / down counter 40e is C2 which is obtained by adding "1" to C1.

【0067】モータ3が正回転方向である時刻t3、t
4でも同様にしてアップダウンカウンタ40eの出力カ
ウント値がアップカウントされ、時刻t4ではカウント
値はC4にされる。次に、時刻t5でモータ3の回転方
向が逆回転方向に反転された後、時刻t6で図10
(A)に示す回転検出部6からの供給されるパルスが立
ち上がると、フリップフロップ40aがこれを検出し
て、図10(B)に示すように出力パルスを立ち上げ
る。このとき、インバータ40bの出力は図10(C)
に示すように立ち下がるため、フリップフロップ40c
の出力はローレベルを保持する。このため、排他的論理
和ゲート40dの出力は立ち上がる。
At times t3 and t when the motor 3 is in the forward rotation direction.
Similarly, in 4, the output count value of the up / down counter 40e is up-counted, and the count value is set to C4 at time t4. Next, at time t5, the rotation direction of the motor 3 is reversed to the reverse rotation direction, and then at time t6, as shown in FIG.
When the pulse supplied from the rotation detection unit 6 shown in (A) rises, the flip-flop 40a detects this and raises the output pulse as shown in FIG. 10 (B). At this time, the output of the inverter 40b is as shown in FIG.
Flip-flop 40c
The output of keeps low level. Therefore, the output of the exclusive OR gate 40d rises.

【0068】排他的論理和ゲート40dの出力は立ち上
がると、このとき、回転方向検出部8eからはモータ3
を逆回転方向に回転させる情報が供給されているため、
アップダウンカウンタ40eはダウン方向にカウント行
うので、アップダウンカウンタ40eの出力カウント値
はC4から’1’を減算したC3となる。
When the output of the exclusive OR gate 40d rises, at this time, the rotation direction detector 8e causes the motor 3 to move.
Since the information to rotate the reverse direction is supplied,
Since the up / down counter 40e counts in the down direction, the output count value of the up / down counter 40e is C3 obtained by subtracting "1" from C4.

【0069】時刻t7で図10(A)に示す回転検出部
6からの供給されるパルスが立ち下がると、フリップフ
ロップ40aは反転せず、、図10(B)に示すように
ローレベルを保持する。このとき、インバータ40bの
出力は図10(C)に示すように立ち上がるため、フリ
ップフロップ40cはこれを検出し、出力をハイレベル
に反転する。このため、排他的論理和ゲート40dの出
力は立ち上がる。
When the pulse supplied from the rotation detector 6 shown in FIG. 10 (A) falls at time t7, the flip-flop 40a does not invert and the low level is maintained as shown in FIG. 10 (B). To do. At this time, the output of the inverter 40b rises as shown in FIG. 10C, so the flip-flop 40c detects this and inverts the output to the high level. Therefore, the output of the exclusive OR gate 40d rises.

【0070】排他的論理和ゲート40dの出力は立ち上
がると、このとき、回転方向検出部8eからはモータ3
を逆回転方向に回転させる情報が供給されているため、
アップダウンカウンタ40eはダウン方向にカウント行
うので、アップダウンカウンタ40eの出力カウント値
はC3から’1’を減算したC2となる。
When the output of the exclusive OR gate 40d rises, at this time, the rotation direction detector 8e causes the motor 3
Since the information to rotate the reverse direction is supplied,
Since the up / down counter 40e counts in the down direction, the output count value of the up / down counter 40e is C2 obtained by subtracting "1" from C3.

【0071】モータ3が逆回転方向である時刻t8、t
9でも同様にしてアップダウンカウンタ40eの出力カ
ウント値がダウンカウントされ、時刻t9ではカウント
値はC0にされる。このようにして、図4と同様なカウ
ント値が得られ、パルスの立ち上がりでカウントするだ
けに比べて2倍の分解能で回転検出用ギア6aの回転角
度を検出できるようになる。
Times t8 and t when the motor 3 is in the reverse rotation direction
Similarly, in 9, the output count value of the up / down counter 40e is down-counted, and the count value is set to C0 at time t9. In this way, the same count value as in FIG. 4 is obtained, and the rotation angle of the rotation detection gear 6a can be detected with a resolution twice as high as that obtained by counting at the rising edge of the pulse.

【0072】[0072]

【発明の効果】上述の如く、本発明の請求項1によれ
ば、ギアの回転に応じた周期で生成されるパルスの立ち
上がり及び立ち下がりの両方をカウントすることにより
立ち上がり又は立ち下がりのどちらか一方を検出する場
合に比べて2倍の分解能でギアの回転を検出できる等の
特長を有する。
As described above, according to the first aspect of the present invention, by counting both the rising edge and the falling edge of the pulse generated in the cycle corresponding to the rotation of the gear, either the rising edge or the falling edge is counted. It has the feature that the rotation of the gear can be detected with twice the resolution as compared with the case of detecting one.

【0073】請求項2によれば、ギアの回転方向に応じ
てカウント値がアップダウンされ、ため、ギア位置を高
い分解能で自由に設定することができる等の特長を有す
る。請求項3によれば、カウント値に応じてギアの回転
位置決めを行うことにより、高い分解能で検出できる等
の特長を有する。
According to the second aspect, since the count value is increased or decreased according to the rotation direction of the gear, the gear position can be freely set with high resolution. According to the third aspect, the rotational positioning of the gear is performed according to the count value, so that the gear can be detected with high resolution.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例のブロック構成図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】本発明の一実施例の回転検出部の構成及び動作
説明図である。
FIG. 2 is a diagram illustrating the configuration and operation of a rotation detection unit according to an embodiment of the present invention.

【図3】本発明の一実施例の制御部のブロック構成図で
ある。
FIG. 3 is a block configuration diagram of a control unit according to an embodiment of the present invention.

【図4】本発明の一実施例の制御部の回転パルスカウン
ト動作のフローチャートである。
FIG. 4 is a flowchart of a rotation pulse counting operation of the control unit according to the embodiment of the present invention.

【図5】本発明の一実施例の制御部のパルスカウント動
作の動作説明図である。
FIG. 5 is an operation explanatory diagram of a pulse counting operation of the control unit according to the embodiment of the present invention.

【図6】本発明の一実施例の自動変速装置を搭載した自
転車の概略構成図である。
FIG. 6 is a schematic configuration diagram of a bicycle equipped with an automatic transmission according to an embodiment of the present invention.

【図7】本発明の一実施例の自動変速ユニットの構成図
である。
FIG. 7 is a configuration diagram of an automatic transmission unit according to an embodiment of the present invention.

【図8】本発明の一実施例の伝達機構の斜視図である。FIG. 8 is a perspective view of a transmission mechanism according to an embodiment of the present invention.

【図9】本発明の一実施例のパルスカウント手段の変形
例のブロック構成図である。
FIG. 9 is a block configuration diagram of a modified example of the pulse counting means of the embodiment of the present invention.

【図10】本発明の一実施例のパルスカウント手段の変
形例の動作波形図である。
FIG. 10 is an operation waveform diagram of a modified example of the pulse counting means of the embodiment of the present invention.

【図11】従来の一例のブロック構成図である。FIG. 11 is a block diagram illustrating an example of a related art.

【図12】従来の一例の動作波形図である。FIG. 12 is an operation waveform diagram of a conventional example.

【符号の説明】[Explanation of symbols]

1 自動変速装置 2a 変速装置 2b チェンジレバー 3 モータ 4 減速ギア群 5 伝達機構 6 回転検出部 7 トルク検出部 8 制御部 9 電源ユニット 1 Automatic Transmission 2a Transmission 2b Change Lever 3 Motor 4 Reduction Gear Group 5 Transmission Mechanism 6 Rotation Detecting Section 7 Torque Detecting Section 8 Control Section 9 Power Supply Unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ギアの回転に応じた周期で生成されるパ
ルスをカウントするパルスカウント方法において、 前記パルスの立ち上がり及び立ち下がりを検出する第1
の手順と、 前記第1の手順で検出された前記パルスの立ち上がり及
び立ち下がりの両方をカウントする第2の手順とを有す
ることを特徴とするギアパルスカウント方法。
1. A pulse counting method for counting pulses generated in a cycle according to rotation of a gear, wherein a first rising edge and a falling edge of the pulse are detected.
And a second procedure for counting both rising and falling edges of the pulse detected in the first procedure.
【請求項2】 前記ギアの回転方向を検出する第3の手
順を有し、 前記第2の手順は、前記第3の手順で検出された前記ギ
アの回転方向に応じてカウント方向を設定することを特
徴とする請求項1記載のギアパルスカウント方法。
2. A third step of detecting the rotation direction of the gear, wherein the second step sets a count direction according to the rotation direction of the gear detected in the third step. The gear pulse counting method according to claim 1, wherein:
【請求項3】 前記第2の手順でカウントされたカウ
ント値に応じて前記ギアの位置を設定する第4の手順を
有することを特徴とする請求項1又は2記載のギアパル
スカウント方法を用いたギア位置検出方法。
3. The gear pulse counting method according to claim 1, further comprising a fourth step of setting the position of the gear according to the count value counted in the second step. The gear position detection method used.
JP8061393A 1996-03-18 1996-03-18 Gear pulse counting method and gear position detecting method Pending JPH09249186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8061393A JPH09249186A (en) 1996-03-18 1996-03-18 Gear pulse counting method and gear position detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8061393A JPH09249186A (en) 1996-03-18 1996-03-18 Gear pulse counting method and gear position detecting method

Publications (1)

Publication Number Publication Date
JPH09249186A true JPH09249186A (en) 1997-09-22

Family

ID=13169880

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8061393A Pending JPH09249186A (en) 1996-03-18 1996-03-18 Gear pulse counting method and gear position detecting method

Country Status (1)

Country Link
JP (1) JPH09249186A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002310610A (en) * 2001-04-17 2002-10-23 Massuru Kk Position detection method and position detector
JP2004352227A (en) * 2003-05-05 2004-12-16 Campagnolo Spa Electronically servo-assisted bicycle gearshift and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002310610A (en) * 2001-04-17 2002-10-23 Massuru Kk Position detection method and position detector
JP2004352227A (en) * 2003-05-05 2004-12-16 Campagnolo Spa Electronically servo-assisted bicycle gearshift and method
US7630810B2 (en) 2003-05-05 2009-12-08 Campagnolo S.R.L. Electronically servo-assisted bicycle gearshift and related method

Similar Documents

Publication Publication Date Title
JP2005066785A (en) Power tool
JP3323686B2 (en) Moving object position detection device
KR102360997B1 (en) Electronic transmission system
US5862705A (en) Speed transferring system for a lathe
JPH09249186A (en) Gear pulse counting method and gear position detecting method
JPH10283741A (en) Slide feed mechanism using worm gear
KR102348885B1 (en) Actuator for a vehicle
CN111336250B (en) Parking actuator position learning method
CN1179811C (en) Electric tool
JP2001193353A (en) Opening and closing control device for electric sliding door
US6654335B2 (en) Optical drive loader with a manual disk ejecting mechanism
JPH10181671A (en) Automatic transmission
CN219884026U (en) Gear shifting mechanism and internal speed change hub
JPH09251321A (en) Position control method
JPH09261984A (en) Rotation detecting method and apparatus
JPH10181670A (en) Automatic transmission
JP3315771B2 (en) Screw feed mechanism
US5852537A (en) Magnetic recording and reproduction apparatus
JPH10151577A (en) Rotary tool with transmission
JP2004110923A (en) Openable/closable cover mechanism and electronic apparatus
JPS60168215A (en) Fine adjusting mechanism of moving object transfer device
JP3434323B2 (en) Operation mode switching mechanism of tape recorder
JP2005313302A (en) Electric rotary actuator
KR0133720Y1 (en) Master gear operating device of tape recorder
KR0123064Y1 (en) Pick-up tilt device for optical disc players

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080703

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090703

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090703

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20100703

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20100703

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110703

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110703

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20120703

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130703

Year of fee payment: 15