JP2008128760A - Rotation angle detecting apparatus - Google Patents

Rotation angle detecting apparatus Download PDF

Info

Publication number
JP2008128760A
JP2008128760A JP2006312642A JP2006312642A JP2008128760A JP 2008128760 A JP2008128760 A JP 2008128760A JP 2006312642 A JP2006312642 A JP 2006312642A JP 2006312642 A JP2006312642 A JP 2006312642A JP 2008128760 A JP2008128760 A JP 2008128760A
Authority
JP
Japan
Prior art keywords
light
detected
amount
rotation
threshold
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.)
Withdrawn
Application number
JP2006312642A
Other languages
Japanese (ja)
Inventor
Hisamitsu Tanihira
久光 谷平
Tatsuo Isa
達夫 伊佐
Kiichi Kushida
貴一 櫛田
Ikuro Ueno
郁朗 上野
Hidekazu Hoshino
英一 星野
Toshiyuki Murakami
俊幸 村上
Hideaki Yakushiji
英明 薬師寺
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.)
Alpine Electronics Inc
Original Assignee
Alpine Electronics Inc
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 Alpine Electronics Inc filed Critical Alpine Electronics Inc
Priority to JP2006312642A priority Critical patent/JP2008128760A/en
Publication of JP2008128760A publication Critical patent/JP2008128760A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Optical Transform (AREA)
  • Control Of Position Or Direction (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a rotation detecting apparatus which prevents any false detection of a rotation angle of a rotator. <P>SOLUTION: The rotation detecting apparatus 100 comprises: a reflecting plate 108 which rotates around a prescribed rotation axis in response to a rotation of a monitor being the rotator and is made up by equally dividing the principal plane radially and alternately arranging a plane having a first reflectivity and a plane having a second reflectivity; a photo reflector A 104 and a photo reflector B 106 for projecting light alternately toward the principal plane of the reflecting plate 108 and detecting light reflected by the principal plane of the reflecting plate 108; and a microcomputer 102 which acquires the amount of light detected by the photo reflector A 104 at a timing when the photo reflector A 104 projects the light, and the amount of light detected by the photo reflector B 106 at a timing when the photo reflector B 106 projects the light, and which detects a rotation angle of a display based on these amounts of light. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、回転体の回転角度を検出する回転検出装置に関する。   The present invention relates to a rotation detection device that detects a rotation angle of a rotating body.

カーナビゲーション装置には、いわゆるインダッシュ式の構造を有するものがある。このインダッシュ式のナビゲーション装置では、ディスプレイは、本体から水平方向に摺動して進出し、更にモータの駆動によって所定の回転軸を中心に回転して所定の回転角度となった場合に停止する。この際、ユーザが例えばディスプレイを見やすくするために、人手によってディスプレイの回転角度を調整する場合がある。このような場合、ディスプレイが再び本体に収納される際に、当該ディスプレイが水平方向となるように回転させるためには、人手によって調整された後のディスプレイの回転角度を検出しておき、その回転角度に応じてモータの駆動量を制御する必要がある。   Some car navigation devices have a so-called in-dash structure. In this in-dash type navigation device, the display slides horizontally from the main body and further stops when the motor is driven to rotate about a predetermined rotation axis and reach a predetermined rotation angle. At this time, for example, in order to make the display easy to see, the rotation angle of the display may be adjusted manually. In such a case, when the display is stored again in the main body, in order to rotate the display so as to be in the horizontal direction, the rotation angle of the display after being adjusted manually is detected and the rotation is performed. It is necessary to control the driving amount of the motor according to the angle.

例えば、特許文献1では、ディスプレイ等の回転体の回転に応じて所定の回転軸を中心に回転し、主面を放射状に等分割して反射率の異なる1つの面を交互に配置した反射板と、当該反射板に向けて光を照射するとともに、当該反射板で反射した光を検出する2つのフォトセンサとを用い、これら2つのフォトセンサにより検出された光の光量に基づいて、回転体の回転方向と回転角度とを検出する。
特許第2856026号公報
For example, in Patent Document 1, a reflecting plate that rotates about a predetermined rotation axis according to the rotation of a rotating body such as a display, and that has a main surface radially divided equally and has one surface having a different reflectance alternately disposed. And two photosensors for irradiating light toward the reflector and detecting the light reflected by the reflector, and based on the amount of light detected by the two photosensors, the rotating body The rotation direction and the rotation angle are detected.
Japanese Patent No. 2856026

上述した特許文献1に記載された技術では、2つのフォトセンサが用いられるため、一方のフォトセンサからの光が他方のフォトセンサにおいて検出され、その結果、回転体の回転方向や回転角度が誤って検出される場合がある。このような問題の対策としては、2つのフォトセンサの間に遮蔽板を配置することが考えられるが、反射板が回転することから当該反射板と遮蔽板との間に隙間を設ける必要があるため、完全な遮光は困難であり、また、コストも増加する。   In the technique described in Patent Document 1 described above, since two photosensors are used, light from one photosensor is detected by the other photosensor, and as a result, the rotation direction and rotation angle of the rotating body are incorrect. May be detected. As a countermeasure against such a problem, it is conceivable to arrange a shielding plate between two photosensors. However, since the reflecting plate rotates, it is necessary to provide a gap between the reflecting plate and the shielding plate. Therefore, complete shading is difficult and the cost increases.

本発明の目的は、上述した課題を解決するものであり、回転体の回転角度の誤検出を防止した回転検出装置を提供するものである。   An object of the present invention is to solve the above-described problem and to provide a rotation detection device that prevents erroneous detection of the rotation angle of a rotating body.

本発明は、回転体の回転に応じて所定の回転軸を中心に回転し、主面を放射状に等分割して第1の反射率の面と第2の反射率の面とを交互に配置した反射部材と、前記反射部材の主面に向けて交互に光を照射する第1及び第2の照射手段と、前記第1の照射手段に対応して設けられ、前記反射部材の主面で反射した光を検出する第1の光量検出手段と、前記第2の照射手段に対応して設けられ、前記反射部材の主面で反射した光を検出する第2の光量検出手段と、前記第1の照射手段により光が照射されているタイミングで前記第1の光量検出手段により検出された光の光量と、前記第2の照射手段により光が照射されているタイミングで前記第2の光量検出手段により検出された光の光量とを取得し、これらの光量に基づいて、前記回転体の回転角度を検出する回転角度検出手段とを有することを特徴とする。   The present invention rotates around a predetermined rotation axis according to the rotation of the rotating body, divides the main surface radially equally, and alternately arranges the first reflectance surface and the second reflectance surface. The reflecting member, the first and second irradiating means for alternately irradiating light toward the main surface of the reflecting member, and the first irradiating means corresponding to the first irradiating means. A first light quantity detecting means for detecting reflected light; a second light quantity detecting means provided corresponding to the second irradiating means for detecting the light reflected by the main surface of the reflecting member; The light quantity detected by the first light quantity detection means at the timing when the light is emitted by the first irradiation means and the second light quantity detection at the timing when the light is emitted by the second irradiation means. And the amount of light detected by the means, and based on these amounts of light, the rotating body And having a rotation angle detecting means for detecting a rotational angle.

この構成によれば、回転体の回転に応じて所定の回転軸を中心に回転する主反射率の異なる面が交互に配置された反射部材に対して、第1及び第2の照射手段によって交互に光が照射され、第1の照射手段により光が照射されているタイミングでは第1の光量検出手段により検出された光の光量が取得され、第2の照射手段により光が照射されているタイミングでは第2の光量検出手段により検出された光の光量が取得され、これらの光量に基づいて、回転体の回転角度が検出される。従って、第1及び第2の照射手段の双方が同時に光を照射することはなく、更には、第1の照射手段により光が照射されているタイミングで第2の光量検出手段により検出された光の光量、及び、第2の照射手段により光が照射されているタイミングで第1の光量検出手段により検出された光の光量は回転体の回転角度の検出には用いられないため、回転角度の誤検出が防止される。   According to this configuration, the first and second irradiating means alternate with respect to the reflecting member in which the surfaces having different main reflectivities that rotate about the predetermined rotation axis according to the rotation of the rotating body are alternately arranged. At the timing when the light is irradiated and the light is irradiated by the first irradiation means, the light amount detected by the first light amount detection means is acquired, and the light is irradiated by the second irradiation means Then, the light quantity of light detected by the second light quantity detection means is acquired, and the rotation angle of the rotating body is detected based on these light quantities. Therefore, both the first and second irradiating means do not irradiate light at the same time. Furthermore, the light detected by the second light quantity detecting means at the timing when the first irradiating means is irradiated with light. And the light amount of light detected by the first light amount detection means at the timing when the light is irradiated by the second irradiation means are not used for detecting the rotation angle of the rotating body. False detection is prevented.

また、本発明の回転検出装置は、前記回転角度検出手段が、前記第1の照射手段により光が照射されているタイミングで前記第1の光量検出手段により検出された光の光量と、前記第2の照射手段により光が照射されているタイミングで前記第2の光量検出手段により検出された光の光量とをそれぞれ複数取得し、これらの光量の増減に基づいて、前記回転体の回転角度を検出するようにしてもよい。   Further, the rotation detection device of the present invention is characterized in that the rotation angle detection unit detects the light amount detected by the first light amount detection unit at the timing when the first irradiation unit emits light, and the first light amount detection unit. A plurality of light amounts detected by the second light amount detection means at the timing when the light is irradiated by the second irradiation means, and based on the increase or decrease of these light amounts, the rotation angle of the rotating body is determined. You may make it detect.

この構成によれば、反射部材の回転に伴う反射光の光量の増減に基づいて、回転体の回転角度が得られる。   According to this configuration, the rotation angle of the rotating body can be obtained based on the increase or decrease in the amount of reflected light accompanying the rotation of the reflecting member.

同様の観点から本発明の回転検出装置は、前記第1の光量検出手段により検出される光の光量が、前記反射部材の第1の反射率の面及び第2の反射率の面のいずれかから反射した光の光量であるかを判定するための第1の閾値と、前記第2の光量検出手段により検出される光の光量が、前記反射部材の第1の反射率の面及び第2の反射率の面のいずれかから反射した光の光量であるかを判定するための第2の閾値とを有しており、前記第1の光量検出手段により前記第1の閾値を跨ぐ光量の変化が検出された場合に、前記第2の光量検出手段により直前に検出された光量と前記第2の閾値との大小関係に基づいて前記回転体の回転方向を判定し、前記第2の光量検出手段により前記第2の閾値を跨ぐ光量の変化が検出された場合に、前記第1の光量検出手段により直前に検出された光量と前記第1の閾値との大小関係に基づいて前記回転体の回転方向を判定し、前記回転体の回転方向に基づいて、前記回転体の回転角度を検出するようにしてもよい。   From the same point of view, in the rotation detection device of the present invention, the light amount detected by the first light amount detection means is either the first reflectance surface or the second reflectance surface of the reflecting member. The first threshold value for determining whether the amount of light reflected from the first light amount and the light amount of light detected by the second light amount detection means are the first reflectance surface of the reflecting member and the second light amount. And a second threshold value for determining whether the amount of light reflected from any one of the reflectance surfaces is, and the amount of light that crosses the first threshold value by the first light amount detection means. When a change is detected, the rotational direction of the rotating body is determined based on the magnitude relationship between the light amount detected immediately before by the second light amount detection means and the second threshold value, and the second light amount is determined. When a change in the amount of light across the second threshold is detected by the detection means, the first The rotational direction of the rotating body is determined based on the magnitude relationship between the light amount detected immediately before by the light amount detecting means and the first threshold, and the rotational angle of the rotating body is determined based on the rotational direction of the rotating body. You may make it detect.

更に、同様の観点から本発明の回転検出装置は、前記回転角度検出手段が、前記第1の光量検出手段により検出された第1の閾値を跨ぐ光量の変化が増加方向を示し、且つ、前記第2の光量検出手段により直前に検出された光量が第2の閾値未満である場合と、前記第1の光量検出手段により検出された第1の閾値を跨ぐ光量の変化が減少方向を示し、且つ、前記第2の光量検出手段により直前に検出された光量が第2の閾値以上である場合と、前記第2の光量検出手段により検出された第2の閾値を跨ぐ光量の変化が増加方向を示し、且つ、前記第1の光量検出手段により直前に検出された光量が第1の閾値以上である場合と、前記第2の光量検出手段により検出された第2の閾値を跨ぐ光量の変化が減少方向を示し、且つ、前記第1の光量検出手段により直前に検出された光量が第1の閾値未満である場合とにおいて、前記回転体の回転方向が第1の方向であると判定し、前記第1の光量検出手段により検出された第1の閾値を跨ぐ光量の変化が増加方向を示し、且つ、前記第2の光量検出手段により直前に検出された光量が第2の閾値以上である場合と、前記第1の光量検出手段により検出された第1の閾値を跨ぐ光量の変化が減少方向を示し、且つ、前記第2の光量検出手段により直前に検出された光量が第2の閾値未満である場合と、前記第2の光量検出手段により検出された第2の閾値を跨ぐ光量の変化が増加方向を示し、且つ、前記第1の光量検出手段により直前に検出された光量が第1の閾値未満である場合と、前記第2の光量検出手段により検出された第2の閾値を跨ぐ光量の変化が減少方向を示し、且つ、前記第1の光量検出手段により直前に検出された光量が第1の閾値以上である場合とにおいて、前記回転体の回転方向が前記第1の方向とは反対の第2の方向であると判定し、前記回転体の回転方向に基づいて、前記回転体の回転角度を検出するようにしてもよい。   Further, from the same viewpoint, in the rotation detection device of the present invention, the rotation angle detection unit indicates that the change in the light amount across the first threshold detected by the first light amount detection unit indicates an increasing direction, and When the light quantity detected immediately before by the second light quantity detection means is less than the second threshold value, the change in the light quantity across the first threshold value detected by the first light quantity detection means indicates a decreasing direction, In addition, when the light amount detected immediately before by the second light amount detection unit is equal to or greater than a second threshold value, the change in the light amount across the second threshold value detected by the second light amount detection unit increases. And the change of the light quantity straddling the second threshold detected by the second light quantity detection means when the light quantity detected immediately before by the first light quantity detection means is greater than or equal to the first threshold value Indicates a decreasing direction, and the first light When the light amount detected immediately before by the detection means is less than the first threshold, it is determined that the rotation direction of the rotating body is the first direction, and the first light amount detection means detected by the first light amount detection means. A change in the amount of light across the threshold value of 1 indicates an increasing direction, and the amount of light detected immediately before by the second light amount detection unit is greater than or equal to the second threshold value and detected by the first light amount detection unit A change in the amount of light that has crossed the first threshold value indicates a decreasing direction, and the amount of light detected immediately before by the second light amount detection means is less than the second threshold value, and the second light amount detection A change in the amount of light across the second threshold detected by the means indicates an increasing direction, and the amount of light detected immediately before by the first light amount detecting means is less than the first threshold; The second threshold detected by the light quantity detection means And the rotation direction of the rotating body is the first direction when the light amount detected immediately before by the first light amount detection means is greater than or equal to a first threshold value. It may be determined that the second direction is opposite to the direction, and the rotation angle of the rotating body may be detected based on the rotation direction of the rotating body.

また、本発明の回転検出装置は、前記回転角度検出手段が、カウンタを有し、前記回転体の回転方向が第1の方向である場合に前記カウンタの値を増加させ、前記回転体の回転方向が第2の方向である場合に前記カウンタの値を減少させ、前記カウンタの値に基づいて、前記回転体の回転角度を検出するようにしてもよい。   Further, in the rotation detection device of the present invention, the rotation angle detection unit includes a counter, and when the rotation direction of the rotating body is the first direction, the value of the counter is increased to rotate the rotating body. When the direction is the second direction, the value of the counter may be decreased, and the rotation angle of the rotating body may be detected based on the value of the counter.

この構成によれば、カウンタの値から回転体の回転角度を簡易に求めることができる。   According to this configuration, the rotation angle of the rotating body can be easily obtained from the value of the counter.

また、本発明の回転検出装置は、前記第1及び第2の照射手段が、前記第1の照射手段による光の照射方向が前記第1の反射率の面と第2の反射率の面との境界となる場合に、前記第2の照射手段による光の照射方向が前記第1の反射率の面又は第2の反射率の面の略中央部となる位置に配置されるようにしてもよい。   Further, in the rotation detection device of the present invention, the first and second irradiating means may be configured such that the light irradiation direction by the first irradiating means is the first reflectance surface and the second reflectance surface. The light irradiation direction by the second irradiation means may be arranged at a position where the first reflectance surface or the substantially central portion of the second reflectance surface is located. Good.

この構成によれば、第1及び第2の照射手段は、それぞれ光の照射方向が第1の反射率の面と第2の反射率の面との境界となる場合に光を照射することができ、光量の増減を的確に検出することができる。   According to this configuration, the first and second irradiating means irradiate light when the light irradiation direction is the boundary between the first reflectance surface and the second reflectance surface, respectively. It is possible to detect the increase or decrease of the light amount accurately.

本発明によれば、2つの照射手段の双方が同時に光を照射することはなく、回転角度の誤検出が防止される。   According to the present invention, both of the two irradiation means do not irradiate light at the same time, and erroneous detection of the rotation angle is prevented.

以下、本発明の実施の形態について、図面を参照して具体的に説明する。図1は、本発明の回転検出装置の構成を示す図である。図1に示す回転検出装置100は、回転角度検出手段としてのマイクロコンピュータ102と、第1の照射手段と当該第1の照射手段に対応する第1の光量検出手段としてのフォトリフレクタA104と、第2の照射手段及び当該第2の照射手段に対応する第2の光量検出手段としてのフォトリフレクタB106と、反射部材としての反射板108と、モータドライバ110とにより構成される。   Hereinafter, embodiments of the present invention will be specifically described with reference to the drawings. FIG. 1 is a diagram showing a configuration of a rotation detection device of the present invention. A rotation detection device 100 shown in FIG. 1 includes a microcomputer 102 as a rotation angle detection unit, a first irradiation unit, a photoreflector A104 as a first light amount detection unit corresponding to the first irradiation unit, 2 irradiating means, a photoreflector B106 as a second light quantity detecting means corresponding to the second irradiating means, a reflecting plate 108 as a reflecting member, and a motor driver 110.

この回転検出装置100は、車両に搭載されたインダッシュ式のナビゲーション装置における回転体であるディスプレイの回転角度(チルト角度)を検出するものである。図2は、回転検出装置100による回転角度検出の対象であるディスプレイを備えたナビゲーション装置の側面図である。図2において、ディスプレイ210は、未使用時には、カーナビゲーション装置の本体200に収容されている。一方、ディスプレイ210は、使用時には水平方向に摺動して本体200から引き出され、更に、図1に示すモータドライバ110の制御によりモータ120が駆動することによって、本体200との接続部分に設けられる回転軸212を中心に回転する。これにより、ディスプレイ210の画面の方向が調整される。また、ディスプレイ210の回転角度は、人手によっても調整される。   The rotation detection device 100 detects a rotation angle (tilt angle) of a display that is a rotating body in an in-dash navigation device mounted on a vehicle. FIG. 2 is a side view of a navigation device including a display that is a target of rotation angle detection by the rotation detection device 100. In FIG. 2, the display 210 is accommodated in the main body 200 of the car navigation device when not in use. On the other hand, the display 210 slides in the horizontal direction during use and is pulled out from the main body 200, and is further provided at a connection portion with the main body 200 by driving the motor 120 under the control of the motor driver 110 shown in FIG. It rotates around the rotation shaft 212. Thereby, the direction of the screen of the display 210 is adjusted. Further, the rotation angle of the display 210 is also adjusted manually.

再び、図1に戻って説明する。マイクロコンピュータ102は、回転検出装置100の全体、具体的には、フォトリフレクタA104及びフォトリフレクタB106と、モータドライバ110とを制御する。また、マイクロコンピュータ102は、カウンタ103を内蔵する。このカウンタ103は、カウント値が、図2におけるディスプレイ210のXの位置からの回転角度に比例して変化するものであり、ディスプレイ210がXの位置に存在する場合に初期値0が設定され、ディスプレイ210がYの方向に回転すると増加し、Zの方向に回転すると減少する。   Again, returning to FIG. The microcomputer 102 controls the entire rotation detection device 100, specifically, the photo reflector A 104 and the photo reflector B 106, and the motor driver 110. The microcomputer 102 has a built-in counter 103. The counter 103 changes in proportion to the rotation angle from the X position of the display 210 in FIG. 2, and when the display 210 exists at the X position, an initial value 0 is set. It increases when the display 210 rotates in the Y direction, and decreases when it rotates in the Z direction.

フォトリフレクタA104及びフォトリフレクタB106は、発光することによって反射板108に向けて光を照射し、当該反射板108で反射した光を受光してその光量を検出する。   The photo reflector A 104 and the photo reflector B 106 emit light to irradiate light toward the reflection plate 108, receive light reflected by the reflection plate 108, and detect the amount of light.

反射板108は、円盤形状を有している。図3は、反射板108の主面を示す図、図4は、反射板108の設置状態を示す図である。図3に示すように、反射板108は、主面を放射状に36度ずつ等分割した10個の領域が形成されている。この10個の領域には、第1の反射率の面である白色の面112と、第2の反射率の面である黒色の面114とが交互に配置される。また、図3に示すように、フォトリフレクタA104及びフォトリフレクタB106は、フォトリフレクタA104による光の照射方向が白色面112と黒色面114との境界となる場合に、フォトリフレクタB106による光の照射方向が黒色面114の略中央部となるような位置関係で配置される。   The reflector 108 has a disk shape. FIG. 3 is a diagram illustrating a main surface of the reflecting plate 108, and FIG. 4 is a diagram illustrating an installation state of the reflecting plate 108. As shown in FIG. 3, the reflector 108 is formed with 10 regions in which the main surface is radially divided by 36 degrees. In the ten regions, the white surface 112 that is the first reflectance surface and the black surface 114 that is the second reflectance surface are alternately arranged. Further, as shown in FIG. 3, the photo reflector A 104 and the photo reflector B 106 are arranged such that the light irradiation direction by the photo reflector B 106 is used when the light irradiation direction by the photo reflector A 104 is a boundary between the white surface 112 and the black surface 114. Are arranged in a positional relationship such that is a substantially central portion of the black surface 114.

また、図4に示すように、反射板108は、中心部に回転軸212が配置され、この回転軸212を中心として、ディスプレイ210の回転に伴って回転する。また、反射板108の主面の反対側の面には回転軸212と噛み合うギア214が設けられている。このギア214によって、ディスプレイ210の回転角度と反射板108の回転角度とを比例させることができる。例えば、ディスプレイ210が水平方向から104度回転する場合には、反射板108は907.2度(2.52回転)回転する。   As shown in FIG. 4, the reflecting plate 108 has a rotation shaft 212 disposed at the center, and rotates with the rotation of the display 210 around the rotation shaft 212. A gear 214 that meshes with the rotating shaft 212 is provided on the surface opposite to the main surface of the reflecting plate 108. The gear 214 can make the rotation angle of the display 210 proportional to the rotation angle of the reflector 108. For example, when the display 210 rotates 104 degrees from the horizontal direction, the reflector 108 rotates 907.2 degrees (2.52 rotations).

次に、回転検出装置100におけるディスプレイ210の回転検出の詳細について説明する。図5は、ディスプレイ210の回転検出の動作を示すフローチャートである。なお、図5に示す動作は、所定の時間間隔、具体的には、フォトリフレクタA104及びフォトリフレクタB106が、反射板108の回転に伴って光の照射方向に順次位置することになる白色面112及び黒色面のそれぞれに、少なくとも一度は光を照射することができるような時間間隔で繰り返される。   Next, details of rotation detection of the display 210 in the rotation detection device 100 will be described. FIG. 5 is a flowchart showing the operation of detecting the rotation of the display 210. The operation shown in FIG. 5 is performed at a predetermined time interval, specifically, the white surface 112 in which the photo reflector A 104 and the photo reflector B 106 are sequentially positioned in the light irradiation direction with the rotation of the reflecting plate 108. Each of the black surfaces is repeated at a time interval such that light can be irradiated at least once.

マイクロコンピュータ102は、前回取得した光量がフォトリフレクタA104からのものであるか否かを判定する(S101)。具体的には、マイクロコンピュータ102は、内蔵するレジスタ(図示せず)に、前回取得した光量がフォトリフレクタA104からのものである場合に「0」となり、前回取得した光量がフォトリフレクタB106からのものである場合に「1」となるフラグ(点灯フラグ)を保持しており、当該点灯フラグが「0」である場合には、前回取得した光量がフォトリフレクタA104からのものであると判定し、点灯フラグが「1」である場合には、前回取得した光量がフォトリフレクタB106からのものであると判定する。   The microcomputer 102 determines whether or not the amount of light acquired last time is from the photo reflector A104 (S101). Specifically, the microcomputer 102 sets “0” in a built-in register (not shown) when the previously acquired light amount is from the photo reflector A 104, and the previously acquired light amount is from the photo reflector B 106. If the lighting flag is “1” when it is, and the lighting flag is “0”, it is determined that the previously acquired light amount is from the photo reflector A104. When the lighting flag is “1”, it is determined that the light amount acquired last time is from the photo reflector B106.

前回取得した光量がフォトリフレクタA104からのものでない場合、換言すれば、前回取得した光量がフォトリフレクタB106からのものである場合、マイクロコンピュータ102は、フォトリフレクタA104を点灯させる制御を行う。フォトリフレクタA104は、この制御によって点灯し、反射板108の主面に向けて光を照射する(S102)。更に、フォトリフレクタA104は、当該反射板108の主面で反射した光を受け、当該光の光量を検出する。そして、マイクロコンピュータ102は、このフォトリフレクタA104によって検出された光量(検出光量)を取得する(S103)。その後、マイクロコンピュータ102は、フォトリフレクタA104を消灯させる制御を行う。フォトリフレクタA104は、この制御によって消灯する(S104)。   If the previously acquired light amount is not from the photo reflector A104, in other words, if the previously acquired light amount is from the photo reflector B106, the microcomputer 102 performs control to turn on the photo reflector A104. The photo reflector A104 is turned on by this control, and irradiates light toward the main surface of the reflecting plate 108 (S102). Further, the photo reflector A104 receives the light reflected by the main surface of the reflecting plate 108 and detects the amount of the light. Then, the microcomputer 102 acquires the light amount (detected light amount) detected by the photo reflector A104 (S103). Thereafter, the microcomputer 102 performs control to turn off the photo reflector A104. The photo reflector A104 is turned off by this control (S104).

一方、前回取得した光量がフォトリフレクタA104からのものである場合(S101で肯定判断の場合)、マイクロコンピュータ102は、フォトリフレクタB106を点灯させる制御を行う。フォトリフレクタB106は、この制御によって点灯し、反射板108の主面に向けて光を照射する(S105)。更に、フォトリフレクタB106は、当該反射板108の主面で反射した光を受け、当該光の光量を検出する。そして、マイクロコンピュータ102は、このフォトリフレクタB106によって検出された光量(検出光量)を取得する(S106)。その後、マイクロコンピュータ102は、フォトリフレクタB106を消灯させる制御を行う。フォトリフレクタB106は、この制御によって消灯する(S107)。   On the other hand, when the light quantity acquired last time is from the photo reflector A104 (in the case of an affirmative determination in S101), the microcomputer 102 performs control to turn on the photo reflector B106. The photo reflector B106 is turned on by this control and irradiates light toward the main surface of the reflecting plate 108 (S105). Further, the photo reflector B106 receives the light reflected by the main surface of the reflecting plate 108 and detects the amount of the light. Then, the microcomputer 102 acquires the light amount (detected light amount) detected by the photo reflector B106 (S106). Thereafter, the microcomputer 102 performs control to turn off the photo reflector B106. The photo reflector B106 is turned off by this control (S107).

S104におけるフォトリフレクタA104の消灯後、あるいは、S107におけるフォトリフレクタB106の消灯後、マイクロコンピュータ102は、内蔵するレジスタに保持されている点灯フラグを更新する(S108)。具体的には、マイクロコンピュータ102は、S102においてフォトリフレクタA104を点灯させ、S104において消灯させた場合には、点灯フラグを、前回取得した検出光量がフォトリフレクタA104からのものであることを示す「0」に設定する。これにより、次はフォトリフレクタB106を点灯させることが可能となる。また、マイクロコンピュータ102は、S105においてフォトリフレクタB106を点灯させ、S107において消灯させた場合には、点灯フラグを、前回取得した検出光量がフォトリフレクタB106からのものであることを示す「1」に設定する。これにより、次はフォトリフレクタA104を点灯させることが可能となる。   After the photoreflector A104 is turned off in S104 or after the photoreflector B106 is turned off in S107, the microcomputer 102 updates the lighting flag held in the built-in register (S108). Specifically, when the microcomputer 102 turns on the photoreflector A104 in S102 and turns it off in S104, the microcomputer 102 indicates a lighting flag indicating that the detected light quantity acquired last time is from the photoreflector A104. Set to “0”. As a result, the photo reflector B106 can be turned on next. When the microcomputer 102 turns on the photoreflector B106 in S105 and turns it off in S107, the microcomputer 102 sets the lighting flag to “1” indicating that the detected light quantity acquired last time is from the photoreflector B106. Set. This makes it possible to turn on the photo reflector A104 next time.

上述したS101乃至S108の動作が繰り返されることによってフォトリフレクタA104及びフォトリフレクタB106は、交互に点灯して反射板108の主面に光を照射することができ、双方が同時に光を照射することはない。   By repeating the operations of S101 to S108 described above, the photoreflector A104 and the photoreflector B106 can be alternately turned on to irradiate the main surface of the reflector 108, and both can irradiate light simultaneously. Absent.

図6は、フォトリフレクタA104及びフォトリフレクタB106の点灯、フォトリフレクタA104及びフォトリフレクタB106の光の照射方向に存在する反射板108の状態、及び、マイクロコンピュータ102におけるフォトリフレクタA104及びフォトリフレクタB106から取得した検出光量の対応関係を示すタイミングチャートである。   6 is obtained from the lighting of the photo reflector A104 and the photo reflector B106, the state of the reflector 108 existing in the light irradiation direction of the photo reflector A104 and the photo reflector B106, and the photo reflector A104 and the photo reflector B106 in the microcomputer 102. It is a timing chart which shows the correspondence of the detected light quantity.

図6に示すように、マイクロコンピュータ102の制御によって、フォトリフレクタA(FRA)104及びフォトリフレクタB(FRB)106は、交互に点灯して反射板108の主面に光を照射する。そして、マイクロコンピュータ102は、フォトリフレクタA104及びフォトリフレクタB106が点灯中に、当該フォトリフレクタA104及びフォトリフレクタB106が受けた光の光量を取得する。   As shown in FIG. 6, under the control of the microcomputer 102, the photo reflector A (FRA) 104 and the photo reflector B (FRB) 106 are alternately turned on to irradiate the main surface of the reflector 108. The microcomputer 102 acquires the amount of light received by the photoreflector A104 and the photoreflector B106 while the photoreflector A104 and the photoreflector B106 are turned on.

具体的には、フォトリフレクタA104による光の照射方向に反射率の大きい白色面112が存在する場合には、マイクロコンピュータ102が取得する検出光量は、検出光量303、304、307及び308に示すように大きくなる。一方、フォトリフレクタA104による光の照射方向に反射率の小さい黒色面114が存在する場合には、マイクロコンピュータ102が取得する検出光量は、検出光量301、302、305及び306に示すようには小さくなる。また、フォトリフレクB106による光の照射方向に反射率の大きい白色面112が存在する場合には、マイクロコンピュータ102が取得する検出光量は、検出光量311、3014、315及び318に示すように、取得光量は大きくなる。一方、フォトリフレクタB106による光の照射方向に反射率の小さい黒色面114が存在する場合には、マイクロコンピュータ102が取得する検出光量は、検出光量312、313、316及び317に示すように、取得光量は小さくなる。   Specifically, when the white surface 112 having a high reflectance exists in the light irradiation direction of the photo reflector A104, the detected light amounts acquired by the microcomputer 102 are as indicated by the detected light amounts 303, 304, 307, and 308. Become bigger. On the other hand, when the black surface 114 with a low reflectance exists in the light irradiation direction of the photo reflector A104, the detected light quantity acquired by the microcomputer 102 is small as shown in the detected light quantities 301, 302, 305 and 306. Become. In addition, when the white surface 112 having a high reflectance exists in the light irradiation direction of the photoreflect B 106, the detected light amount acquired by the microcomputer 102 is acquired as indicated by the detected light amounts 311, 3014, 315, and 318. The amount of light increases. On the other hand, when the black surface 114 with a low reflectance exists in the light irradiation direction of the photo reflector B106, the detected light amount acquired by the microcomputer 102 is acquired as shown in the detected light amounts 312, 313, 316 and 317. The amount of light decreases.

再び、図5に戻って説明する。S108における点灯フラグの更新後、マイクロコンピュータ102は、ディスプレイ120の回転角度を検出する(S109)。   Returning again to FIG. After updating the lighting flag in S108, the microcomputer 102 detects the rotation angle of the display 120 (S109).

図7は、図5のS101において前回取得した光量がフォトリフレクタA104からのものでないと判定され、S102におけるフォトリフレクタA104の点灯、S103におけるマイクロコンピュータ104によるフォトリフレクタA104からの検出光量の取得、S104におけるフォトリフレクタA104の消灯が行われた場合の回転角度検出の詳細な動作を示すフローチャートである。   7, it is determined that the light quantity acquired last time in S101 in FIG. 5 is not from the photo reflector A104, the photoreflector A104 is turned on in S102, the detected light quantity from the photoreflector A104 by the microcomputer 104 in S103, S104. 5 is a flowchart showing a detailed operation of rotation angle detection when the photo reflector A104 is turned off.

マイクロコンピュータ102は、フォトリフレクタA104から取得した検出光量が立ち上がりを示しているか否かを判定する(S201)。具体的には、マイクロコンピュータ102は、フォトリフレクタA104から最新に取得した検出光量と、1つ前に取得した検出光量とを随時内蔵するレジスタに保持しておく。そして、マイクロコンピュータ102は、最新に取得した検出光量が予め内蔵するレジスタに保持された第1閾値以上であって、1つ前に取得した検出光量が第1閾値未満である場合に、検出光量が立ち上がりを示していると判定する。例えば、図6において、最新に取得した検出光量が検出光量303であり、1つ前に取得した検出光量が検出光量302である場合には、マイクロコンピュータ102は、フォトリフレクタA104から取得した検出光量が立ち上がりを示していると判定する。   The microcomputer 102 determines whether or not the detected light amount acquired from the photoreflector A104 indicates a rise (S201). Specifically, the microcomputer 102 holds the detected light amount acquired most recently from the photoreflector A104 and the detected light amount acquired immediately before in a built-in register as needed. The microcomputer 102 detects the detected light amount when the latest detected light amount is equal to or greater than a first threshold value held in a built-in register and the previous detected light amount is less than the first threshold value. Is determined to indicate a rising edge. For example, in FIG. 6, when the detected light amount acquired most recently is the detected light amount 303 and the detected light amount acquired immediately before is the detected light amount 302, the microcomputer 102 detects the detected light amount obtained from the photoreflector A 104. Is determined to indicate a rising edge.

フォトリフレクタA104から取得した検出光量が立ち上がりを示している場合、次に、マイクロコンピュータ102は、フォトリフレクタB106から最新に取得した検出光量が、予め定められて内蔵するレジスタに保持された第2閾値以上であるか否かを判定する(S202)。例えば、図6において、フォトリフレクタA104から最新に取得した検出光量が検出光量303であり、1つ前に取得した検出光量が検出光量302であって、フォトリフレクタB106から最新に取得した検出光量が検出光量312である場合、マイクロコンピュータ102は、フォトリフレクタB106から最新に取得した検出光量が第2閾値未満であると判定する。一方、図6において、時間経過を右から左に見た場合、換言すれば、時間経過を左から右に見た場合とは反射板108の回転方向が反対の場合に、フォトリフレクタA104から最新に取得した検出光量が検出光量304であり、1つ前に取得した検出光量が検出光量305であって、フォトリフレクタB106から最新に取得した検出光量が検出光量314である場合、マイクロコンピュータ102は、フォトリフレクタB106から最新に取得した検出光量が第2閾値以上であると判定する。   If the detected light quantity acquired from the photoreflector A104 indicates a rising edge, the microcomputer 102 then determines the second threshold value in which the detected light quantity most recently acquired from the photoreflector B106 is stored in a predetermined register. It is determined whether or not this is the case (S202). For example, in FIG. 6, the latest detected light amount acquired from the photo reflector A104 is the detected light amount 303, the previous detected light amount is the detected light amount 302, and the detected light amount acquired from the photo reflector B106 is the latest. When the detected light quantity is 312, the microcomputer 102 determines that the latest detected light quantity acquired from the photo reflector B106 is less than the second threshold value. On the other hand, in FIG. 6, when the time passage is viewed from right to left, in other words, when the rotation direction of the reflector 108 is opposite to that when the time passage is viewed from left to right, the latest from the photoreflector A104. If the detected light quantity acquired in step S3 is the detected light quantity 304, the previous detected light quantity is the detected light quantity 305, and the detected light quantity most recently acquired from the photo reflector B106 is the detected light quantity 314, the microcomputer 102 Then, it is determined that the detected light amount acquired most recently from the photo reflector B106 is equal to or greater than the second threshold.

フォトリフレクタB106から最新に取得した検出光量が第2閾値未満である場合には、マイクロコンピュータ102は、ディスプレイ210が第1の方向(ここでは図2のYの方向)に回転していると判断し、内蔵するカウンタ103の値を1増加させる(S203)。一方、フォトリフレクタB106から最新に取得した検出光量が第2閾値以上である場合には、マイクロコンピュータ102は、ディスプレイ210が第1の方向とは反対の第2の方向(ここでは図2のZの方向)に回転していると判断し、内蔵するカウンタ103の値を1減少させる(S204)。   When the detected light amount acquired from the photoreflector B106 is less than the second threshold value, the microcomputer 102 determines that the display 210 is rotating in the first direction (here, the Y direction in FIG. 2). Then, the value of the built-in counter 103 is incremented by 1 (S203). On the other hand, if the detected light amount acquired from the photoreflector B106 is equal to or greater than the second threshold value, the microcomputer 102 indicates that the display 210 has a second direction opposite to the first direction (here, Z in FIG. 2). And the value of the built-in counter 103 is decreased by 1 (S204).

また、S201においてフォトリフレクタA104から取得した検出光量が立ち上がりを示していないと判定した場合には、マイクロコンピュータ102は、フォトリフレクタA104から取得した検出光量が立ち下がりを示しているか否かを判定する(S205)。具体的には、マイクロコンピュータ102は、レジスタに保持された最新に取得した検出光量が第1閾値未満であって、レジスタに保持された1つ前に取得した検出光量が第1閾値以上である場合に、検出光量が立ち下がりを示していると判定する。例えば、図6において、最新に取得した検出光量が検出光量305であり、1つ前に取得した検出光量が検出光量304である場合には、マイクロコンピュータ102は、フォトリフレクタA104から取得した検出光量が立ち下がりを示していると判定する。   If it is determined in step S201 that the detected light amount acquired from the photo reflector A104 does not indicate rising, the microcomputer 102 determines whether the detected light amount acquired from the photo reflector A104 indicates falling. (S205). Specifically, the microcomputer 102 detects that the latest acquired detected light amount held in the register is less than the first threshold value, and the detected light amount acquired immediately before held in the register is greater than or equal to the first threshold value. In this case, it is determined that the detected light quantity indicates a fall. For example, in FIG. 6, when the detected light amount 305 acquired most recently is the detected light amount 305 and the detected light amount acquired immediately before is the detected light amount 304, the microcomputer 102 detects the detected light amount acquired from the photo reflector A104. Is determined to indicate a falling edge.

フォトリフレクタA104から取得した検出光量が立ち下がりを示している場合、次に、マイクロコンピュータ102は、フォトリフレクタB106から最新に取得した検出光量が、予め定められて内蔵するレジスタに保持された第2閾値以上であるか否かを判定する(S206)。例えば、図6において、時間経過を右から左に見た場合、換言すれば、時間経過を左から右に見た場合とは反射板108の回転方向が反対の場合に、フォトリフレクタA104から最新に取得した検出光量が検出光量302であり、1つ前に取得した検出光量が検出光量303であって、フォトリフレクタB106から最新に取得した検出光量が検出光量312である場合、マイクロコンピュータ102は、フォトリフレクタB106から最新に取得した検出光量が第2閾値未満であると判定する。一方、図6において、フォトリフレクタA104から最新に取得した検出光量が検出光量305であり、1つ前に取得した検出光量が検出光量304であって、フォトリフレクタB106から最新に取得した検出光量が検出光量314である場合、マイクロコンピュータ102は、フォトリフレクタB106から最新に取得した検出光量が第2閾値以上であると判定する。   If the detected light quantity acquired from the photoreflector A104 indicates a fall, then the microcomputer 102 uses the second detected light quantity acquired from the photoreflector B106 to be stored in a predetermined internal register. It is determined whether or not the threshold value is exceeded (S206). For example, in FIG. 6, when the time passage is viewed from right to left, in other words, when the rotation direction of the reflector 108 is opposite to that when the time passage is viewed from left to right, the latest from the photo reflector A104. If the detected light amount 302 is the detected light amount 302, the previous detected light amount is the detected light amount 303, and the detected light amount most recently acquired from the photo reflector B106 is the detected light amount 312, the microcomputer 102 Then, it is determined that the latest detected light amount acquired from the photo reflector B106 is less than the second threshold value. On the other hand, in FIG. 6, the latest detected light amount acquired from the photoreflector A104 is the detected light amount 305, the previous detected light amount acquired is the detected light amount 304, and the detected light amount acquired from the photoreflector B106 is the latest. In the case of the detected light amount 314, the microcomputer 102 determines that the latest detected light amount acquired from the photo reflector B106 is greater than or equal to the second threshold value.

フォトリフレクタB106から最新に取得した検出光量が第2閾値未満である場合には、マイクロコンピュータ102は、ディスプレイ210が第2の方向(ここでは図2のZの方向)に回転していると判断し、内蔵するカウンタ103の値を1減少させる(S207)。一方、フォトリフレクタB106から最新に取得した検出光量が第2閾値以上である場合には、マイクロコンピュータ102は、ディスプレイ210が第2の方向とは反対の第1の方向(ここでは図2のYの方向)に回転していると判断し、内蔵するカウンタ103の値を1増加させる(S208)。   When the detected light amount acquired from the photoreflector B106 is less than the second threshold value, the microcomputer 102 determines that the display 210 is rotating in the second direction (here, the Z direction in FIG. 2). Then, the value of the built-in counter 103 is decreased by 1 (S207). On the other hand, if the detected light amount acquired from the photoreflector B106 is the second threshold value or more, the microcomputer 102 displays the display 210 in the first direction opposite to the second direction (here, Y in FIG. 2). The value of the built-in counter 103 is incremented by 1 (S208).

S203、S204、S207及びS208におけるカウント値の増減の後、マイクロコンピュータ102は、当該カウント値を回転角度に換算する(S209)。S203、S204、S207及びS208におけるカウント値の増減によって、カウント値は、図2におけるディスプレイ210のXの位置からの回転角度に比例して変化する。従って、マイクロコンピュータ102は、例えば、予めカウント値とディスプレイ210のXの位置からの回転角度との対応関係を表すテーブルを内蔵するレジスタに保持しておくことにより、その時点でのカウント値と当該テーブルとに基づいて、ディスプレイ210のXの位置からの回転角度を検出することができる。   After increasing or decreasing the count value in S203, S204, S207, and S208, the microcomputer 102 converts the count value into a rotation angle (S209). As the count value increases or decreases in S203, S204, S207, and S208, the count value changes in proportion to the rotation angle from the position X of the display 210 in FIG. Therefore, the microcomputer 102 holds, for example, a table representing a correspondence relationship between the count value and the rotation angle from the X position of the display 210 in advance in a built-in register. Based on the table, the rotation angle of the display 210 from the position X can be detected.

一方、S201においてフォトリフレクタA104から取得した検出光量が立ち上がりを示していないと判定され、更に、S205においてフォトリフレクタA104から取得した検出光量が立ち下がりを示していないと判定された場合には、回転角度の検出は行われず、一連の動作が終了する。   On the other hand, if it is determined in S201 that the detected light amount acquired from the photoreflector A104 does not indicate a rising edge, and if it is determined in S205 that the detected light amount acquired from the photoreflector A104 does not indicate a falling edge, the rotation is performed. The angle is not detected and a series of operations ends.

図8は、図5のS101において前回取得した光量がフォトリフレクタA104からのものであると判定され、S105におけるフォトリフレクタB106の点灯、S106におけるマイクロコンピュータ104によるフォトリフレクタB106からの検出光量の取得、S107におけるフォトリフレクタB106の消灯が行われた場合の回転角度検出の詳細な動作を示すフローチャートである。   8, it is determined that the light quantity acquired last time in S101 of FIG. 5 is from the photoreflector A104, the photoreflector B106 is turned on in S105, and the detected light quantity from the photoreflector B106 by the microcomputer 104 in S106. It is a flowchart which shows the detailed operation | movement of rotation angle detection when the light reflector B106 is turned off in S107.

マイクロコンピュータ102は、フォトリフレクタB106から取得した検出光量が立ち上がりを示しているか否かを判定する(S211)。具体的には、マイクロコンピュータ102は、フォトリフレクタB106から最新に取得した検出光量と、1つ前に取得した検出光量とを随時レジスタに保持しておく。そして、マイクロコンピュータ102は、最新に取得した検出光量が第2閾値以上であって、1つ前に取得した検出光量が第2閾値未満である場合に、検出光量が立ち上がりを示していると判定する。例えば、図6において、最新に取得した検出光量が検出光量314であり、1つ前に取得した検出光量が検出光量313である場合には、マイクロコンピュータ102は、フォトリフレクタB106から取得した検出光量が立ち上がりを示していると判定する。   The microcomputer 102 determines whether or not the detected light amount acquired from the photo reflector B106 indicates a rise (S211). Specifically, the microcomputer 102 holds the detected light amount acquired most recently from the photoreflector B106 and the detected light amount acquired immediately before in a register as needed. Then, the microcomputer 102 determines that the detected light amount indicates rising when the most recently acquired detected light amount is equal to or larger than the second threshold value and the previous detected light amount is less than the second threshold value. To do. For example, in FIG. 6, when the detected light amount 314 acquired most recently is the detected light amount 314, and the detected light amount acquired immediately before is the detected light amount 313, the microcomputer 102 detects the detected light amount obtained from the photoreflector B 106. Is determined to indicate a rising edge.

フォトリフレクタB106から取得した検出光量が立ち上がりを示している場合、次に、マイクロコンピュータ102は、フォトリフレクタA104から最新に取得した検出光量が、第1閾値以上であるか否かを判定する(S202)。例えば、図6において、時間経過を右から左に見た場合、換言すれば、時間経過を左から右に見た場合とは反射板108の回転方向が反対の場合に、フォトリフレクタB106から最新に取得した検出光量が検出光量315であり、1つ前に取得した検出光量が検出光量316であって、フォトリフレクタA104から最新に取得した検出光量が検出光量306である場合、マイクロコンピュータ102は、フォトリフレクタA104から最新に取得した検出光量が第1閾値未満であると判定する。一方、図6において、フォトリフレクタB106から最新に取得した検出光量が検出光量314であり、1つ前に取得した検出光量が検出光量313であって、フォトリフレクタA104から最新に取得した検出光量が検出光量304である場合、マイクロコンピュータ102は、フォトリフレクタA104から最新に取得した検出光量が第1閾値未満であると判定する。   If the detected light amount acquired from the photo reflector B106 indicates a rise, the microcomputer 102 then determines whether or not the detected light amount most recently acquired from the photo reflector A104 is greater than or equal to the first threshold (S202). ). For example, in FIG. 6, when the time passage is viewed from right to left, in other words, when the rotation direction of the reflector 108 is opposite to that when the time passage is viewed from left to right, the latest from the photo reflector B106. If the detected light amount 315 is the detected light amount 315, the previous detected light amount is the detected light amount 316, and the detected light amount most recently acquired from the photo reflector A104 is the detected light amount 306, the microcomputer 102 Then, it is determined that the detected light amount acquired most recently from the photo reflector A104 is less than the first threshold value. On the other hand, in FIG. 6, the detected light amount acquired from the photoreflector B106 is the detected light amount 314, the detected light amount acquired immediately before is the detected light amount 313, and the detected light amount acquired from the photoreflector A104 is the latest. If the detected light quantity 304 is detected, the microcomputer 102 determines that the detected light quantity acquired most recently from the photo reflector A104 is less than the first threshold value.

フォトリフレクタA104から最新に取得した検出光量が第1閾値未満である場合には、マイクロコンピュータ102は、ディスプレイ210が第2の方向(ここでは図2のZの方向)に回転していると判断し、内蔵するカウンタ103の値を1減少させる(S213)。一方、フォトリフレクタA104から最新に取得した検出光量が第1閾値以上である場合には、マイクロコンピュータ102は、ディスプレイ210が第2の方向とは反対の第1の方向(ここでは図2のYの方向)に回転していると判断し、内蔵するカウンタ103の値を1増加させる(S214)。   When the detected light amount acquired from the photoreflector A104 is less than the first threshold value, the microcomputer 102 determines that the display 210 is rotating in the second direction (here, the Z direction in FIG. 2). Then, the value of the built-in counter 103 is decreased by 1 (S213). On the other hand, when the detected light quantity acquired from the photoreflector A104 is the first threshold value or more, the microcomputer 102 displays the display 210 in the first direction opposite to the second direction (here, Y in FIG. 2). The value of the built-in counter 103 is incremented by 1 (S214).

また、S201においてフォトリフレクタB106から取得した検出光量が立ち上がりを示していないと判定した場合には、マイクロコンピュータ102は、フォトリフレクタB106から取得した検出光量が立ち下がりを示しているか否かを判定する(S215)。具体的には、マイクロコンピュータ102は、レジスタに保持された最新に取得した検出光量が第2閾値未満であって、レジスタに保持された1つ前に取得した検出光量が第2閾値以上である場合に、検出光量が立ち下がりを示していると判定する。例えば、図6において、最新に取得した検出光量が検出光量312であり、1つ前に取得した検出光量が検出光量311である場合には、マイクロコンピュータ102は、フォトリフレクタB106から取得した検出光量が立ち下がりを示していると判定する。   If it is determined in step S201 that the detected light amount acquired from the photo reflector B106 does not indicate rising, the microcomputer 102 determines whether the detected light amount acquired from the photo reflector B106 indicates falling. (S215). Specifically, in the microcomputer 102, the latest detected light amount held in the register is less than the second threshold value, and the previous detected light amount held in the register is greater than or equal to the second threshold value. In this case, it is determined that the detected light quantity indicates a fall. For example, in FIG. 6, when the detected light amount acquired latest is the detected light amount 312 and the detected light amount acquired immediately before is the detected light amount 311, the microcomputer 102 detects the detected light amount acquired from the photo reflector B 106. Is determined to indicate a falling edge.

フォトリフレクタB106から取得した検出光量が立ち下がりを示している場合、次に、マイクロコンピュータ102は、フォトリフレクタA104から最新に取得した検出光量が、第1閾値以上であるか否かを判定する(S216)。例えば、図6において、フォトリフレクタB106から最新に取得した検出光量が検出光量312であり、1つ前に取得した検出光量が検出光量311であって、フォトリフレクタA104から最新に取得した検出光量が検出光量302である場合、マイクロコンピュータ102は、フォトリフレクタA104から最新に取得した検出光量が第1閾値未満であると判定する。一方、図6において、時間経過を右から左に見た場合、換言すれば、時間経過を左から右に見た場合とは反射板108の回転方向が反対の場合に、フォトリフレクタB106から最新に取得した検出光量が検出光量313であり、1つ前に取得した検出光量が検出光量314であって、フォトリフレクタA104から最新に取得した検出光量が検出光量303である場合、マイクロコンピュータ102は、フォトリフレクタA104から最新に取得した検出光量が第1閾値以上であると判定する。   When the detected light quantity acquired from the photo reflector B106 indicates a fall, the microcomputer 102 next determines whether or not the detected light quantity most recently acquired from the photo reflector A104 is greater than or equal to the first threshold ( S216). For example, in FIG. 6, the detected light amount acquired most recently from the photo reflector B106 is the detected light amount 312, the detected light amount acquired immediately before is the detected light amount 311, and the detected light amount acquired from the photo reflector A104 is the latest. If the detected light quantity is 302, the microcomputer 102 determines that the latest detected light quantity acquired from the photoreflector A104 is less than the first threshold value. On the other hand, in FIG. 6, when the time passage is viewed from right to left, in other words, when the rotation direction of the reflector 108 is opposite to that when the time passage is viewed from left to right, the latest from the photo reflector B106. If the detected light amount 313 is the detected light amount 313, the previous detected light amount is the detected light amount 314, and the latest detected light amount acquired from the photo reflector A104 is the detected light amount 303, the microcomputer 102 Then, it is determined that the latest detected light amount acquired from the photo reflector A104 is greater than or equal to the first threshold value.

フォトリフレクタA106から最新に取得した検出光量が第1閾値未満である場合には、マイクロコンピュータ102は、ディスプレイ210が第1の方向(ここでは図2のYの方向)に回転していると判断し、内蔵するカウンタ103の値を1増加させる(S217)。一方、フォトリフレクタA104から最新に取得した検出光量が第1閾値以上である場合には、マイクロコンピュータ102は、ディスプレイ210が第1の方向とは反対の第2の方向(ここでは図2のZの方向)に回転していると判断し、内蔵するカウンタ103の値を1減少させる(S218)。   When the detected light amount acquired from the photoreflector A106 is less than the first threshold value, the microcomputer 102 determines that the display 210 is rotating in the first direction (here, the Y direction in FIG. 2). Then, the value of the built-in counter 103 is incremented by 1 (S217). On the other hand, if the detected light amount acquired from the photoreflector A104 is equal to or greater than the first threshold value, the microcomputer 102 determines that the display 210 is in the second direction opposite to the first direction (here, Z in FIG. 2). And the value of the built-in counter 103 is decreased by 1 (S218).

S213、S214、S217及びS218におけるカウント値の増減の後、マイクロコンピュータ102は、S209と同様の手順で、当該カウント値を回転角度に換算する(S219)。   After the increase / decrease of the count value in S213, S214, S217, and S218, the microcomputer 102 converts the count value into a rotation angle in the same procedure as in S209 (S219).

一方、S211においてフォトリフレクタB106から取得した検出光量が立ち上がりを示していないと判定され、更に、S215においてフォトリフレクタB106から取得した検出光量が立ち下がりを示していないと判定された場合には、回転角度の検出は行われず、一連の動作が終了する。   On the other hand, if it is determined in S211 that the detected light amount acquired from the photoreflector B106 does not indicate a rising edge, and further, it is determined in S215 that the detected light amount acquired from the photoreflector B106 does not indicate a falling edge, the rotation is performed. The angle is not detected and a series of operations ends.

再び、図5に戻って説明する。S109において回転角度が検出された後は、再び、前回取得した光量がフォトリフレクタA104からのものであるか否かの判定(S101)以降の動作が繰り返される。   Returning again to FIG. After the rotation angle is detected in S109, the operation after the determination (S101) after whether or not the previously acquired light amount is from the photo reflector A104 is repeated.

このように本実施形態の回転検出装置100では、フォトリフレクタA104とフォトリフレクタB106とが、回転体であるディスプレイ210の回転に応じて回転軸212を中心に回転する白色面と黒色面とが交互に配置された反射板108に対して、交互に光を照射し、マイクロコンピュータ102が、フォトリフレクタA104が光を照射するタイミングで当該フォトリフレクタA104が検出する反射板108で反射した光の光量と、フォトリフレクタB106が光を照射するタイミングで当該フォトリフレクタB106が検出する反射板108で反射した光の光量とに基づいて、ディスプレイ210の回転角度を検出する。従って、フォトリフレクタA104とフォトリフレクタB106とが、同時に光を照射することはなく、更には、フォトリフレクタA104が光を照射するタイミングでフォトリフレクタB106が反射板108で反射した光の光量を検出することはなく、フォトリフレクタB106が光を照射するタイミングでフォトリフレクタA104が反射板108で反射した光の光量を検出することはないため、これらの光量はディスプレイ210の回転角度の検出には用いられず、回転角度の誤検出が防止される。   As described above, in the rotation detection device 100 of the present embodiment, the photoreflector A104 and the photoreflector B106 alternate between the white surface and the black surface that rotate about the rotation axis 212 in accordance with the rotation of the display 210 that is a rotating body. And the microcomputer 102 irradiates light alternately, and the amount of light reflected by the reflector 108 detected by the photoreflector A104 at the timing when the photoreflector A104 irradiates the light. The rotation angle of the display 210 is detected based on the amount of light reflected by the reflector 108 detected by the photo reflector B106 at the timing when the photo reflector B106 emits light. Therefore, the photoreflector A104 and the photoreflector B106 do not irradiate light at the same time, and further, the light quantity of the light reflected by the photoreflector B106 at the reflector 108 is detected at the timing when the photoreflector A104 irradiates light. However, since the photoreflector A104 does not detect the amount of light reflected by the reflector 108 at the timing when the photoreflector B106 emits light, these amounts of light are used to detect the rotation angle of the display 210. Therefore, erroneous detection of the rotation angle is prevented.

なお、本発明は、上述した実施の形態に限定されるものではなく、必要に応じて種々の変更が可能である。例えば、上述した実施形態では、光の照射手段と、検出手段とが一体となったフォトリフレクタA104とフォトリフレクタB106とを用いたが、光の照射手段と、検出手段とは別体であってもよい。   In addition, this invention is not limited to embodiment mentioned above, A various change is possible as needed. For example, in the above-described embodiment, the photo reflector A104 and the photo reflector B106 in which the light irradiation means and the detection means are integrated are used. However, the light irradiation means and the detection means are separate. Also good.

以上、説明したように、本発明に係る回転検出装置は、回転体の回転角度の誤検出が防止され、回転検出装置として有用である。   As described above, the rotation detection device according to the present invention is useful as a rotation detection device because erroneous detection of the rotation angle of the rotating body is prevented.

回転検出装置の構成を示す図である。It is a figure which shows the structure of a rotation detection apparatus. ディスプレイを備えたナビゲーション装置の側面図である。It is a side view of the navigation apparatus provided with the display. 反射板の主面を示す図である。It is a figure which shows the main surface of a reflecting plate. 反射板の設置状態を示す図である。It is a figure which shows the installation state of a reflecting plate. ディスプレイの回転検出の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of rotation detection of a display. フォトリフレクタの点灯、フォトリフレクタの光の照射方向に存在する反射板の状態、及び、マイクロコンピュータにおけるフォトリフレクタから取得した検出光量の対応関係を示すタイミングチャートである。It is a timing chart which shows the correspondence of lighting of a photo reflector, the state of the reflecting plate which exists in the irradiation direction of the light of a photo reflector, and the detected light quantity acquired from the photo reflector in a microcomputer. 回転角度検出の詳細な動作を示す第1のフローチャートである。It is a 1st flowchart which shows the detailed operation | movement of a rotation angle detection. 回転角度検出の詳細な動作を示す第2のフローチャートである。It is a 2nd flowchart which shows the detailed operation | movement of rotation angle detection.

符号の説明Explanation of symbols

100 回転検出装置
102 マイクロコンピュータ
103 カウンタ
104 フォトリフレクタA
106 フォトリフレクタB
108 反射板
110 モータドライバ
112 白色板
114 黒色板
120 モータ
200 本体
210 ディスプレイ
212 回転軸
214 ギア
DESCRIPTION OF SYMBOLS 100 Rotation detection apparatus 102 Microcomputer 103 Counter 104 Photo reflector A
106 Photo reflector B
108 Reflector 110 Motor Driver 112 White Plate 114 Black Plate 120 Motor 200 Main Body 210 Display 212 Rotating Shaft 214 Gear

Claims (6)

回転体の回転に応じて所定の回転軸を中心に回転し、主面を放射状に等分割して第1の反射率の面と第2の反射率の面とを交互に配置した反射部材と、
前記反射部材の主面に向けて交互に光を照射する第1及び第2の照射手段と、
前記第1の照射手段に対応して設けられ、前記反射部材の主面で反射した光を検出する第1の光量検出手段と、
前記第2の照射手段に対応して設けられ、前記反射部材の主面で反射した光を検出する第2の光量検出手段と、
前記第1の照射手段により光が照射されているタイミングで前記第1の光量検出手段により検出された光の光量と、前記第2の照射手段により光が照射されているタイミングで前記第2の光量検出手段により検出された光の光量とを取得し、これらの光量に基づいて、前記回転体の回転角度を検出する回転角度検出手段とを有することを特徴とする回転検出装置。
A reflecting member that rotates about a predetermined rotation axis according to the rotation of the rotating body, divides the main surface radially equally, and alternately arranges the first reflectance surface and the second reflectance surface; ,
First and second irradiation means for alternately irradiating light toward the main surface of the reflecting member;
First light quantity detection means provided corresponding to the first irradiation means for detecting light reflected by the main surface of the reflection member;
Second light quantity detection means provided corresponding to the second irradiation means and detecting light reflected by the main surface of the reflection member;
The light quantity detected by the first light quantity detection means at the timing when the first irradiation means is irradiated with the light and the second light quantity when the light is emitted by the second irradiation means. A rotation detection apparatus comprising: a rotation angle detection unit that acquires a light amount of light detected by the light amount detection unit and detects a rotation angle of the rotating body based on the light amount.
前記回転角度検出手段は、前記第1の照射手段により光が照射されているタイミングで前記第1の光量検出手段により検出された光の光量と、前記第2の照射手段により光が照射されているタイミングで前記第2の光量検出手段により検出された光の光量とをそれぞれ複数取得し、これらの光量の増減に基づいて、前記回転体の回転角度を検出することを特徴とする請求項1に記載の回転検出装置。   The rotation angle detection unit is configured to detect the amount of light detected by the first light amount detection unit at the timing when the first irradiation unit is irradiated with light and the second irradiation unit to receive light. 2. A plurality of light amounts detected by the second light amount detecting means are acquired at a predetermined timing, and a rotation angle of the rotating body is detected based on increase / decrease of these light amounts. The rotation detection device described in 1. 前記回転角度検出手段は、
前記第1の光量検出手段により検出される光の光量が、前記反射部材の第1の反射率の面及び第2の反射率の面のいずれかから反射した光の光量であるかを判定するための第1の閾値と、前記第2の光量検出手段により検出される光の光量が、前記反射部材の第1の反射率の面及び第2の反射率の面のいずれかから反射した光の光量であるかを判定するための第2の閾値とを有しており、
前記第1の光量検出手段により前記第1の閾値を跨ぐ光量の変化が検出された場合に、前記第2の光量検出手段により直前に検出された光量と前記第2の閾値との大小関係に基づいて前記回転体の回転方向を判定し、
前記第2の光量検出手段により前記第2の閾値を跨ぐ光量の変化が検出された場合に、前記第1の光量検出手段により直前に検出された光量と前記第1の閾値との大小関係に基づいて前記回転体の回転方向を判定し、
前記回転体の回転方向に基づいて、前記回転体の回転角度を検出することを特徴とする請求項2に記載の回転検出装置。
The rotation angle detection means includes
It is determined whether the amount of light detected by the first light amount detection means is the amount of light reflected from either the first reflectance surface or the second reflectance surface of the reflecting member. The first threshold value for the light and the light amount detected by the second light amount detecting means are reflected from either the first reflectance surface or the second reflectance surface of the reflecting member. And a second threshold for determining whether the amount of light is
When a change in the light quantity across the first threshold is detected by the first light quantity detection means, the magnitude relationship between the light quantity detected immediately before by the second light quantity detection means and the second threshold value is established. Based on the rotation direction of the rotating body,
When a change in the light quantity across the second threshold is detected by the second light quantity detection means, the magnitude relationship between the light quantity detected immediately before by the first light quantity detection means and the first threshold value is established. Based on the rotation direction of the rotating body,
The rotation detection device according to claim 2, wherein a rotation angle of the rotating body is detected based on a rotating direction of the rotating body.
前記回転角度検出手段は、
前記第1の光量検出手段により検出された第1の閾値を跨ぐ光量の変化が増加方向を示し、且つ、前記第2の光量検出手段により直前に検出された光量が第2の閾値未満である場合と、
前記第1の光量検出手段により検出された第1の閾値を跨ぐ光量の変化が減少方向を示し、且つ、前記第2の光量検出手段により直前に検出された光量が第2の閾値以上である場合と、
前記第2の光量検出手段により検出された第2の閾値を跨ぐ光量の変化が増加方向を示し、且つ、前記第1の光量検出手段により直前に検出された光量が第1の閾値以上である場合と、
前記第2の光量検出手段により検出された第2の閾値を跨ぐ光量の変化が減少方向を示し、且つ、前記第1の光量検出手段により直前に検出された光量が第1の閾値未満である場合とにおいて、前記回転体の回転方向が第1の方向であると判定し、
前記第1の光量検出手段により検出された第1の閾値を跨ぐ光量の変化が増加方向を示し、且つ、前記第2の光量検出手段により直前に検出された光量が第2の閾値以上である場合と、
前記第1の光量検出手段により検出された第1の閾値を跨ぐ光量の変化が減少方向を示し、且つ、前記第2の光量検出手段により直前に検出された光量が第2の閾値未満である場合と、
前記第2の光量検出手段により検出された第2の閾値を跨ぐ光量の変化が増加方向を示し、且つ、前記第1の光量検出手段により直前に検出された光量が第1の閾値未満である場合と、
前記第2の光量検出手段により検出された第2の閾値を跨ぐ光量の変化が減少方向を示し、且つ、前記第1の光量検出手段により直前に検出された光量が第1の閾値以上である場合とにおいて、前記回転体の回転方向が前記第1の方向とは反対の第2の方向であると判定し、
前記回転体の回転方向に基づいて、前記回転体の回転角度を検出することを特徴とする請求項3に記載の回転検出装置。
The rotation angle detection means includes
The change in the light quantity across the first threshold detected by the first light quantity detection means indicates an increasing direction, and the quantity of light detected immediately before by the second light quantity detection means is less than the second threshold. If and
A change in the amount of light across the first threshold detected by the first light amount detector indicates a decreasing direction, and the amount of light detected immediately before by the second light amount detector is greater than or equal to the second threshold. If and
A change in the amount of light across the second threshold detected by the second light amount detection means indicates an increasing direction, and the amount of light detected immediately before by the first light amount detection means is greater than or equal to the first threshold. If and
A change in the amount of light across the second threshold detected by the second light amount detection means indicates a decreasing direction, and the amount of light detected immediately before by the first light amount detection means is less than the first threshold. And determining that the rotation direction of the rotating body is the first direction,
A change in the amount of light across the first threshold detected by the first light amount detector indicates an increasing direction, and the amount of light detected immediately before by the second light amount detector is greater than or equal to the second threshold. If and
A change in the amount of light across the first threshold detected by the first light amount detector indicates a decreasing direction, and the amount of light detected immediately before by the second light amount detector is less than the second threshold. If and
A change in the amount of light across the second threshold detected by the second light amount detector indicates an increasing direction, and the amount of light detected immediately before by the first light amount detector is less than the first threshold. If and
A change in the amount of light across the second threshold detected by the second light amount detector indicates a decreasing direction, and the amount of light detected immediately before by the first light amount detector is greater than or equal to the first threshold. And determining that the rotation direction of the rotating body is a second direction opposite to the first direction,
The rotation detection device according to claim 3, wherein a rotation angle of the rotating body is detected based on a rotating direction of the rotating body.
前記回転角度検出手段は、カウンタを有し、前記回転体の回転方向が第1の方向である場合に前記カウンタの値を増加させ、前記回転体の回転方向が第2の方向である場合に前記カウンタの値を減少させ、前記カウンタの値に基づいて、前記回転体の回転角度を検出することを特徴とする請求項4に記載の回転検出装置。   The rotation angle detection means includes a counter, and increases the value of the counter when the rotation direction of the rotation body is the first direction, and when the rotation direction of the rotation body is the second direction. The rotation detection device according to claim 4, wherein a value of the counter is decreased and a rotation angle of the rotating body is detected based on the value of the counter. 前記第1及び第2の照射手段は、前記第1の照射手段による光の照射方向が前記第1の反射率の面と第2の反射率の面との境界となる場合に、前記第2の照射手段による光の照射方向が前記第1の反射率の面又は第2の反射率の面の略中央部となる位置に配置されることを特徴とする請求項2乃至5のいずれかに記載の回転検出装置。   The first and second irradiating means may be configured such that the light irradiation direction of the first irradiating means is a boundary between the first reflectance surface and the second reflectance surface. The light irradiation direction by the irradiation means is arranged at a position that is substantially the center of the first reflectance surface or the second reflectance surface. The rotation detection device described.
JP2006312642A 2006-11-20 2006-11-20 Rotation angle detecting apparatus Withdrawn JP2008128760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006312642A JP2008128760A (en) 2006-11-20 2006-11-20 Rotation angle detecting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006312642A JP2008128760A (en) 2006-11-20 2006-11-20 Rotation angle detecting apparatus

Publications (1)

Publication Number Publication Date
JP2008128760A true JP2008128760A (en) 2008-06-05

Family

ID=39554739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006312642A Withdrawn JP2008128760A (en) 2006-11-20 2006-11-20 Rotation angle detecting apparatus

Country Status (1)

Country Link
JP (1) JP2008128760A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425142A (en) * 2012-05-04 2013-12-04 通用汽车环球科技运作有限责任公司 Determination of sun rays inside a vehicle
JP2017083742A (en) * 2015-10-30 2017-05-18 セイコーエプソン株式会社 Head-mounted display

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425142A (en) * 2012-05-04 2013-12-04 通用汽车环球科技运作有限责任公司 Determination of sun rays inside a vehicle
JP2017083742A (en) * 2015-10-30 2017-05-18 セイコーエプソン株式会社 Head-mounted display

Similar Documents

Publication Publication Date Title
JP5210614B2 (en) Pointer illumination device
JP4486822B2 (en) Meter panel and device having meter panel
KR20050046967A (en) 3 dimensional location measurement sensor
EP1321739B1 (en) Position measuring instrument
JP2011112503A (en) Object detection system
JP2010085385A (en) Method for measuring eccentricity of rotary disc, rotary encoder, and rotor controller
US20140340668A1 (en) Apparatus for measuring distance
JP6173067B2 (en) Laser surveyor
KR101399211B1 (en) A sensor performance test apparatus and a control method thereof
JP2008128760A (en) Rotation angle detecting apparatus
US10542948B2 (en) Mobile X-ray imaging apparatus
EP3151054B1 (en) Three-dimensional drive device
US20230045270A1 (en) Image display device using sensor
JP2010003795A (en) Substrate position detector and substrate position detecting method
JP2007017410A (en) Luminescence pointer for measuring instrument and measuring instrument provided with it
JP2008249426A (en) Pointer meter
JP6942747B2 (en) Vehicle display device
JP7283244B2 (en) Radar mounted lighting unit
JP6306290B2 (en) Lighting device
JP2019158989A (en) Head-up display device
EP2848450A2 (en) Instrument panel with pointer position detection and pointer back illumination
US20100296263A1 (en) Display device for vehicle
JP2010112835A (en) Vehicle fixing device
JP2006078178A (en) Encoder device and measuring device
CN108168471A (en) Polarize the installation parallelism detection method of robot scaling equipment

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100202