[go: up one dir, main page]

JP2012221115A - Coordinate input device, control method therefor, and program - Google Patents

Coordinate input device, control method therefor, and program Download PDF

Info

Publication number
JP2012221115A
JP2012221115A JP2011084767A JP2011084767A JP2012221115A JP 2012221115 A JP2012221115 A JP 2012221115A JP 2011084767 A JP2011084767 A JP 2011084767A JP 2011084767 A JP2011084767 A JP 2011084767A JP 2012221115 A JP2012221115 A JP 2012221115A
Authority
JP
Japan
Prior art keywords
light
information
coordinate input
identification information
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011084767A
Other languages
Japanese (ja)
Other versions
JP5717514B2 (en
JP2012221115A5 (en
Inventor
Atsushi Tanaka
淳 田中
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2011084767A priority Critical patent/JP5717514B2/en
Publication of JP2012221115A publication Critical patent/JP2012221115A/en
Publication of JP2012221115A5 publication Critical patent/JP2012221115A5/ja
Application granted granted Critical
Publication of JP5717514B2 publication Critical patent/JP5717514B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To accurately detect coordinate inputs by plural indicators.SOLUTION: Each of plural indicators stores unique identification information for identifying each other, and generates a transmission signal including switch information indicating the states of plural pieces of switch means and the identification information at a repetition period uniquely set for the identification information. A coordinate input device receives the generated transmission signal, specifies the repetition period of the received signal based on the identification information detected from the received transmission signal, and generates timing information on the transmission signal from an indicator corresponding to the identification information synchronized with the repetition period.

Description

本発明は、座標入力有効領域に対する複数の指示具によるそれぞれの位置座標を算出する座標入力装置及びその制御方法、プログラムに関するものである。   The present invention relates to a coordinate input device, a control method thereof, and a program for calculating respective position coordinates by a plurality of pointing tools with respect to a coordinate input effective area.

座標入力面に、指示具(例えば、専用入力ペン、指等)によって指示して座標を入力することにより、接続されたコンピュータを制御したり、文字や図形等を書き込むために用いられる座標入力装置が存在する。   A coordinate input device used to control a connected computer or to write characters, figures, etc. by instructing the coordinate input surface with an indicator (for example, a dedicated input pen, a finger, etc.) and inputting coordinates. Exists.

従来より、この種の座標入力装置としては、タッチパネルとして、各種方式のものが提案、または製品化されており、特殊な器具などを用いずに、画面上でパーソナルコンピュータ等の端末の操作が簡単にできるため、広く用いられている。   Conventionally, as this type of coordinate input device, various types of touch panels have been proposed or commercialized, and it is easy to operate terminals such as personal computers on the screen without using special equipment. Since it can be used, it is widely used.

座標入力方式としては、抵抗膜を用いたもの、また、超音波を用いたものなど、様々なものがあるが、光を用いたものとして、例えば、特許文献1がある。この特許文献1では、座標入力領域の外側に再帰性反射シートを設けて、座標入力領域の角端部に配置された光を照明する照明部と光を受光する受光部とにより、座標入力領域内において指等の光を遮蔽する遮蔽物と受光部間の角度を検出する。そして、特許文献1では、その検出結果に基づいて、その遮蔽物の指示位置を決定する構成が開示されている。   There are various coordinate input methods such as those using a resistive film and those using ultrasonic waves. For example, Patent Document 1 discloses a method using light. In Patent Document 1, a retroreflective sheet is provided outside the coordinate input area, and the coordinate input area includes an illuminating unit that illuminates light disposed at a corner end of the coordinate input area and a light receiving unit that receives the light. An angle between a light shielding unit and a light shielding unit that shields light such as a finger is detected. And in patent document 1, the structure which determines the instruction | indication position of the shield based on the detection result is disclosed.

また、同様の構成を持つものとして、特許文献2や3等にあるように、再帰反射部材を座標入力領域周辺に構成し、再帰反射光が遮光される部分(遮光部分)の座標を検出する座標入力装置が開示されている。   Further, as having the same configuration, as described in Patent Documents 2 and 3, etc., a retroreflective member is configured around the coordinate input area, and the coordinates of a portion where the retroreflected light is shielded (the light shielding portion) are detected. A coordinate input device is disclosed.

これらの装置において、例えば、特許文献2では、微分等の波形処理演算によって受光部が受光する遮蔽物による遮光部分のピークを検出することにより、受光部に対する遮光部分の角度を検出し、その検出結果からその遮蔽物の座標を算出している。また、特許文献3では、特定のレベルパターンとの比較によって遮光部位の一方の端と他方の端を検出し、それらの座標の中心を検出する構成が示されている。   In these apparatuses, for example, in Patent Document 2, the angle of the light-shielding part relative to the light-receiving part is detected by detecting the peak of the light-shielding part by the shielding object received by the light-receiving part by waveform processing calculation such as differentiation, and the detection The coordinates of the shielding object are calculated from the result. Patent Document 3 discloses a configuration in which one end and the other end of a light shielding part are detected by comparison with a specific level pattern, and the center of those coordinates is detected.

ここで、特許文献1乃至3のような、遮光位置を検出して座標を算出する方式を、以下、遮光方式と称する。   Here, a method of detecting coordinates and calculating coordinates as in Patent Documents 1 to 3 is hereinafter referred to as a light shielding method.

このような遮光方式の座標入力装置をリアプロジェクタやプラズマディスプレイパネル等の表面に実装し、PCの画面等に表示する。これにより、指や指示具等でPCの操作ができたり、手書きの軌跡を入力することが可能な大型のインタラクティブディスプレイを構成することが可能になる。   Such a light-shielding coordinate input device is mounted on the surface of a rear projector, a plasma display panel, or the like and displayed on a PC screen or the like. As a result, it is possible to configure a large interactive display capable of operating the PC with a finger or an indicator or inputting a handwritten locus.

このような大型の装置において、例えば、ディスプレイに接続されたPCにて、描画軌跡を表示するようなアプリケーションを起動しておき、指や指示具等で入力した軌跡を表示し、所謂ホワイトボードのような使い方が想定されている。   In such a large apparatus, for example, an application that displays a drawing trajectory is started on a PC connected to a display, and a trajectory input with a finger or an indicator is displayed. Such usage is assumed.

ホワイトボードのような使い方では、文字や絵を書くのが主たる使い方になり、そのような場合、入力には、ペンを模した指示具が用いられる場合が多い。   In usage like a whiteboard, writing is mainly used for writing characters and pictures. In such cases, an input tool that simulates a pen is often used for input.

このような指示具は、ペン先にスイッチ部が設けられており、筆記動作の折に、指示具の先端が入力領域に接触したときにスイッチが導通し、ペンダウンの状態を報知するように構成されている。そして、このペンダウンの信号に応じて、描画がなされ、普通のペンの感覚で筆記や描画を行うことができる。   Such an indicator is provided with a switch portion at the pen tip, and is configured such that when the tip of the indicator comes into contact with the input area during a writing operation, the switch is turned on to notify the pen-down state. Has been. Then, drawing is performed according to the pen-down signal, and writing and drawing can be performed in the sense of a normal pen.

また、指示具の側面(ペンサイド)にも、マウスの右ボタンや、ページ送り等の機能を割り当てられたスイッチ部が設けられている場合が多い。   In many cases, the side surface (pen side) of the pointing tool is also provided with a right mouse button and a switch unit to which functions such as page turning are assigned.

また、更に、このホワイトボードのような利用形態の場合には、複数の操作者が同時に入力することを許容して、利便性を向上し、より効率的な会議等の用途での要求がある。そのため、複数の同時入力に対応する座標入力装置が考案されている。   Furthermore, in the case of a usage form such as this whiteboard, it is possible to allow a plurality of operators to input simultaneously, improving convenience, and demands for more efficient applications such as meetings. . Therefore, a coordinate input device corresponding to a plurality of simultaneous inputs has been devised.

複数の操作者が同時に入力する場合に、懸念される課題の一つとして、遮光部分の重なりに対するものがある。例えば、図27にあるように、一方の受光検出部S1から見た場合に、両者の影が重なってしまい、遮光部分の中心位置からは、正確な座標値が得られないような場合がある。   When a plurality of operators input at the same time, one of the problems to be concerned is with respect to the overlap of light shielding portions. For example, as shown in FIG. 27, when viewed from one light receiving detection unit S1, the shadows of both overlap, and an accurate coordinate value may not be obtained from the center position of the light shielding portion. .

これらに対して、特許文献4において、複数の指示具による遮光部分が重なったような場合にも、高精度に座標入力が可能な座標入力装置の提案が成されている。具体的には、一つの受光検出部に、一対の受光部を設けることで、一方の指示具の影にもう一方の影が隠れるような状況を排し、さらに、遮光部分の一方の端部情報を用いて、指示具の座標値を算出している。   On the other hand, Patent Document 4 proposes a coordinate input device capable of inputting coordinates with high accuracy even when light shielding portions by a plurality of pointing tools overlap. Specifically, by providing a pair of light receiving units in one light receiving detection unit, the situation in which the other shadow is hidden behind the shadow of one pointing tool is eliminated, and further, one end of the light shielding part The coordinate value of the pointing tool is calculated using the information.

複数の座標を同時に入力する際に、更に問題になるのが、座標値の連続性である。例えば、第1の指示具で文字等を入力している際に、第2の指示具での入力がなされたときに、第1の指示具の座標値と第2の指示具の座標値が交互に出力されるような場合には、両指示点間を交互に線でつないでしまうような事態が発生しかねない。これを避けるために、特許文献5では、最初に検出されたデータと、次に検出された入力に対して、夫々の座標値に、連続性を表す識別子を付与して座標値を送信する構成が提案されている。   A further problem in inputting a plurality of coordinates simultaneously is the continuity of coordinate values. For example, when a character or the like is input with the first indicator, and the input with the second indicator is made, the coordinate value of the first indicator and the coordinate value of the second indicator are When the signals are output alternately, a situation may occur in which the two pointing points are alternately connected by a line. In order to avoid this, in Patent Document 5, a configuration in which an identifier indicating continuity is assigned to each coordinate value and the coordinate value is transmitted to the first detected data and the next detected input. Has been proposed.

米国特許第4507557号公報U.S. Pat. No. 4,507,557 特開2000−105671号公報JP 2000-105671 A 特開2001−142642号公報JP 2001-142642 A 特開2004−069483号公報JP 2004-069483 A 特開2001−084017号公報JP 2001-084017 A

しかしながら、特許文献5のように、検出された順番で座標値の識別子を付与する構成の場合には、ペンダウンからペンアップまでの一筆での連続性は確保されるものの、アップ後の入力の順番によっては、異なる識別子が割り当てられることになる。   However, in the case of the configuration in which the identifiers of the coordinate values are given in the detected order as in Patent Document 5, the continuity with one stroke from the pen down to the pen up is ensured, but the input order after the up Depending on the case, a different identifier is assigned.

ホワイトボードのようなアプリケーションの際に、それぞれの指示具に、色の属性等を割り当てて、異なる色での描画を許容するような場合には、一筆の連続性だけでなく、指示具毎に連続性を確保することが望ましい。   In the case of an application such as a whiteboard, when assigning color attributes to each indicator and allowing drawing in different colors, not only the continuity of one stroke but also each indicator It is desirable to ensure continuity.

そのために、各指示具に異なる識別子を付与し、指示具のスイッチ情報と共に、ID情報(識別情報)を本体(座標入力装置)に対して送信する構成が考えられる。   For this purpose, a configuration is conceivable in which different identifiers are assigned to the respective indicators and ID information (identification information) is transmitted to the main body (coordinate input device) together with the switch information of the indicators.

通信には、電波や赤外線等を用いた無線通信が考えられるが、複数の指示具を同時に利用するため、信号の衝突(コリジョン)が発生することが容易に想定される。そして、この衝突による、誤検出を回避し、確実に複数の指示具のID情報とスイッチ情報を検出する必要がある。   As communication, wireless communication using radio waves, infrared rays, or the like is conceivable. However, since a plurality of indicators are used at the same time, it is easily assumed that a signal collision occurs. And it is necessary to avoid erroneous detection due to this collision and to reliably detect the ID information and switch information of a plurality of pointing devices.

本発明は上記の課題を解決するためになされたものであり、複数の指示具による座標入力を高精度に検出することができる座標入力装置及びその制御方法、プログラムを提供することを目的とする。   The present invention has been made to solve the above-described problem, and an object of the present invention is to provide a coordinate input device, a control method thereof, and a program that can detect coordinate input by a plurality of pointing tools with high accuracy. .

上記の目的を達成するための本発明による座標入力装置は以下の構成を備える。即ち、
座標入力有効領域に対する複数の指示具によるそれぞれの位置座標を算出する座標入力装置であって、
前記複数の指示具それぞれは、
複数のスイッチ手段と、
前記複数の指示具との間で互いに識別するための固有の識別情報を記憶する記憶手段と、
前記複数のスイッチ手段の状態を示すスイッチ情報と前記識別情報を含む送信信号を、該識別情報に固有に設定されている繰返周期で生成する生成手段とを備え、
前記座標入力装置は、
前記生成手段で生成された送信信号を受信する受信手段と、
前記受信手段で受信した送信信号から検出される識別情報に基づいて、該受信した信号の繰返周期を特定し、該繰返周期に同期した、該識別情報に対応する指示具からの送信信号のタイミング情報を生成するタイミング情報生成手段と
を備える。
In order to achieve the above object, a coordinate input device according to the present invention comprises the following arrangement. That is,
A coordinate input device that calculates each position coordinate by a plurality of pointing tools for a coordinate input effective area,
Each of the plurality of indicators is
A plurality of switch means;
Storage means for storing unique identification information for mutually identifying the plurality of pointing devices;
Generating means for generating switch information indicating a state of the plurality of switch means and a transmission signal including the identification information at a repetition period that is uniquely set in the identification information;
The coordinate input device includes:
Receiving means for receiving the transmission signal generated by the generating means;
Based on the identification information detected from the transmission signal received by the receiving means, the repetition period of the received signal is specified, and the transmission signal from the indicator corresponding to the identification information is synchronized with the repetition period Timing information generating means for generating the timing information.

本発明によれば、複数の指示具による座標入力を高精度に検出することができる座標入力装置及びその制御方法、プログラムを提供できる。   ADVANTAGE OF THE INVENTION According to this invention, the coordinate input device which can detect the coordinate input by a some indicating tool with high precision, its control method, and a program can be provided.

本発明の実施形態の遮光方式の座標入力装置の概略構成を示す図である。It is a figure which shows schematic structure of the coordinate input device of the light-shielding system of embodiment of this invention. 本発明の実施形態のセンサユニットの詳細構成を示す図である。It is a figure which shows the detailed structure of the sensor unit of embodiment of this invention. 本発明の実施形態のセンサユニットの光学的配置図である。It is an optical layout of the sensor unit of the embodiment of the present invention. 本発明の実施形態のセンサユニットの光学的配置図である。It is an optical layout of the sensor unit of the embodiment of the present invention. 本発明の実施形態のセンサユニットの光学的配置図である。It is an optical layout of the sensor unit of the embodiment of the present invention. 本発明の実施形態の制御・演算ユニットの詳細構成を示すブロック図である。It is a block diagram which shows the detailed structure of the control and arithmetic unit of embodiment of this invention. 本発明の実施形態の制御信号のタイミングチャートである。It is a timing chart of a control signal of an embodiment of the present invention. 本発明の実施形態のセンサユニットが検出する光量分布を説明するための図である。It is a figure for demonstrating the light quantity distribution which the sensor unit of embodiment of this invention detects. 本発明の実施形態のセンサユニットが検出する光量分布を説明するための図である。It is a figure for demonstrating the light quantity distribution which the sensor unit of embodiment of this invention detects. 本発明の実施形態の信号読出のタイミングチャートである。It is a timing chart of signal reading of an embodiment of the present invention. 本発明の実施形態の座標入力有効領域上に定義する座標とセンサユニット1L及び1Lとの位置関係を示す図である。It is a figure which shows the positional relationship of the coordinate defined on the coordinate input effective area | region of embodiment of this invention, and sensor units 1L and 1L. 本発明の実施形態の受光部を複数有するセンサユニットにおける座標算出を説明するための図である。It is a figure for demonstrating the coordinate calculation in the sensor unit which has multiple light-receiving parts of embodiment of this invention. 本発明の実施形態の複数の指示具からの入力動作における位置関係及び検出信号の一例を示す図である。It is a figure which shows an example of the positional relationship and detection signal in the input operation | movement from the some indicator of embodiment of this invention. 本発明の実施形態の虚実判定を説明するための図である。It is a figure for demonstrating the truth determination of embodiment of this invention. 本発明の実施形態の遮光範囲の端部情報による座標算出の一例を説明するための図である。It is a figure for demonstrating an example of the coordinate calculation by the edge part information of the light-shielding range of embodiment of this invention. 本発明の実施形態の遮光範囲の端部情報(角度)の重なり部分の2等分線と座標値の関係を説明するための図である。It is a figure for demonstrating the relationship between the bisector of the overlap part of the edge part information (angle) of the light-shielding range of embodiment of this invention, and a coordinate value. 本発明の実施形態の遮光範囲の端部情報による座標算出の詳細を説明するための図である。It is a figure for demonstrating the detail of the coordinate calculation by the edge part information of the light-shielding range of embodiment of this invention. 本発明の実施形態の座標入力装置が実行する座標算出処理および虚実判定を示すフローチャートである。It is a flowchart which shows the coordinate calculation process and truth determination which the coordinate input device of embodiment of this invention performs. 本発明の実施形態の指示具の構成を示す図である。It is a figure which shows the structure of the indicator of embodiment of this invention. 本発明の実施形態の指示具の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the indicator of embodiment of this invention. 本発明の実施形態の指示具から出力される信号の例を示す図である。It is a figure which shows the example of the signal output from the indicator of embodiment of this invention. 本発明の実施形態の指示具から出力された信号の復調された状態を説明する図である。It is a figure explaining the state by which the signal output from the indicator of embodiment of this invention was demodulated. 本発明の実施形態の複数の指示具の出力の周期設定の説明図である。It is explanatory drawing of the period setting of the output of the some indicator of embodiment of this invention. 本発明の実施形態の指示具の制御のフローチャートである。It is a flowchart of control of the indicator of the embodiment of the present invention. 本発明の実施形態の指示具からの信号受信部の構成を示す図である。It is a figure which shows the structure of the signal receiving part from the indicator of embodiment of this invention. 本発明の実施形態の発光信号に対するゲート信号の例を示す図である。It is a figure which shows the example of the gate signal with respect to the light emission signal of embodiment of this invention. 本発明の実施形態の信号受信制御部の制御を示すフローチャートである。It is a flowchart which shows control of the signal reception control part of embodiment of this invention. 本発明の実施形態の信号受信制御部の制御を示すフローチャートである。It is a flowchart which shows control of the signal reception control part of embodiment of this invention. 従来技術における遮光範囲の重なり時の説明図である。It is explanatory drawing at the time of the overlap of the light-shielding range in a prior art.

以下、本発明の実施の形態について図面を用いて詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

<装置構成の概略説明>
まず、図1を用いて、座標入力装置全体の概略構成を説明する。
<Overview of device configuration>
First, the overall configuration of the coordinate input device will be described with reference to FIG.

図1は本発明の実施形態の遮光方式の座標入力装置の概略構成を示す図である。   FIG. 1 is a diagram showing a schematic configuration of a light shielding type coordinate input apparatus according to an embodiment of the present invention.

図1において、1L、1Rは投光部および受光部を有するセンサユニットであり、本実施形態の場合、図示の如く座標入力面であるところの座標入力有効領域3のX軸に平行に、かつY軸に対称な位置に、所定距離離れて配置されている。センサユニット1L及び1Rは、制御・演算ユニット2に接続され、制御信号を制御・演算ユニット2から受信すると共に、検出した信号を制御・演算ユニット2に送信する。   In FIG. 1, reference numerals 1L and 1R denote sensor units having a light projecting part and a light receiving part. In the case of this embodiment, as shown in FIG. 1, parallel to the X axis of the coordinate input effective area 3 which is a coordinate input surface, and They are arranged at a position symmetric with respect to the Y-axis and separated by a predetermined distance. The sensor units 1L and 1R are connected to the control / arithmetic unit 2, receive a control signal from the control / arithmetic unit 2, and transmit the detected signal to the control / arithmetic unit 2.

4は入射光を到来方向に反射する再帰反射面を有する再帰反射部であり、座標入力有効領域3の外側3辺に配置され、左右それぞれのセンサユニット1L及び1Rから略90°範囲に投光された光を、センサユニット1L及び1Rに向けて再帰反射する。   Reference numeral 4 denotes a retroreflective portion having a retroreflective surface that reflects incident light in the direction of arrival, and is disposed on the outer three sides of the coordinate input effective area 3 so as to project from the left and right sensor units 1L and 1R within a range of approximately 90 °. The reflected light is retroreflected toward the sensor units 1L and 1R.

尚、再帰反射部4は、ミクロ的に見て3次元的な構造を有し、現在では、主にビーズタイプの再帰反射テープ、或いはコーナキューブを機械加工等により規則正しく配列することで再帰現象を起こす再帰反射テープが知られている。   Incidentally, the retroreflective portion 4 has a three-dimensional structure when viewed microscopically. At present, the retroreflective phenomenon is mainly achieved by regularly arranging bead-type retroreflective tape or corner cubes by machining or the like. Retroreflective tape to wake up is known.

再帰反射部4で再帰反射された光は、センサユニット1L及び1Rによって1次元的に検出され、その光量分布が制御・演算ユニット2に送信される。   The light retroreflected by the retroreflecting unit 4 is detected one-dimensionally by the sensor units 1L and 1R, and the light quantity distribution is transmitted to the control / arithmetic unit 2.

座標入力有効領域3は、PDPやリアプロジェクタ、LCDパネルなどの表示装置の表示画面で構成することで、インタラクティブな入力装置として、利用可能となっている。   The coordinate input effective area 3 is configured as a display screen of a display device such as a PDP, a rear projector, or an LCD panel, and can be used as an interactive input device.

このような構成において、座標入力有効領域3に指示具による入力指示がなされると、センサユニット1L及び1Rの投光部から投光された光が遮られる(遮光部分)。この場合、センサユニット1L及び1Rの受光部ではその遮光部分の光(再帰反射による反射光)を検出できないので、その結果、どの方向からの光が検出できなかったかを判別することが可能となる。   In such a configuration, when an input instruction is given to the coordinate input effective area 3 by the pointing tool, the light projected from the light projecting portions of the sensor units 1L and 1R is blocked (a light shielding portion). In this case, the light receiving portions of the sensor units 1L and 1R cannot detect the light of the light shielding portion (reflected light due to retroreflection), and as a result, it is possible to determine from which direction the light could not be detected. .

そこで、制御・演算ユニット2は、左右のセンサユニット1L及び1Rが検出する光量変化から、指示具によって入力指示された部分の複数の遮光範囲を検出する。そして、その遮光範囲の端部情報から、センサユニット1L及び1Rそれぞれに対する遮光範囲の端部の方向(角度)をそれぞれ算出する。   Therefore, the control / arithmetic unit 2 detects a plurality of light-shielding ranges of the portion instructed to be input by the pointing tool from the light amount change detected by the left and right sensor units 1L and 1R. And the direction (angle) of the edge part of the light shielding range with respect to each of the sensor units 1L and 1R is calculated from the edge part information of the light shielding range.

そして、検出された遮光範囲の数に基づいて、座標算出に用いる遮光範囲から得られるデータを決定し、それぞれ算出された方向(角度)、及びセンサユニット1L及び1R間の距離情報等から、座標入力有効領域3上の指示具の遮光位置を幾何学的に算出する。   Then, based on the number of detected light-shielding ranges, data obtained from the light-shielding ranges used for coordinate calculation is determined, and coordinates are calculated from the calculated direction (angle), distance information between the sensor units 1L and 1R, and the like. The light shielding position of the pointing tool on the input effective area 3 is calculated geometrically.

指示具からのスイッチ情報およびID情報(識別情報)はペン信号(送信信号)として、信号受信部5にて検出され、ペン信号を復調したデジタル信号が出力される。次に、信号受信制御部としてのサブCPU24(図4)に入力され、ペン信号が解析された後、その解析結果としてのスイッチ情報とID情報が演算制御回路(CPU)21に出力される。   The switch information and the ID information (identification information) from the pointing tool are detected by the signal receiving unit 5 as a pen signal (transmission signal), and a digital signal obtained by demodulating the pen signal is output. Next, the signal is input to the sub CPU 24 (FIG. 4) serving as a signal reception control unit, and the pen signal is analyzed. Then, switch information and ID information as the analysis result are output to the arithmetic control circuit (CPU) 21.

演算制御回路21では、算出された座標値と、スイッチ情報とID情報を組にして、表示装置に接続されているホストコンピュータ等の外部端末に、インタフェース7(例えば、USB、IEEE1394等)を経由してその座標値を出力する。   In the arithmetic and control circuit 21, the calculated coordinate value, the switch information and the ID information are paired, and an external terminal such as a host computer connected to the display device is connected via the interface 7 (for example, USB, IEEE1394, etc.). And output the coordinate value.

このようにして、指示具によって、画面上に線を描画したり、表示装置に表示されるアイコンを操作する等の外部端末の操作が可能になる。   In this way, the operation of the external terminal such as drawing a line on the screen or operating an icon displayed on the display device can be performed by the pointing tool.

<センサユニット1の詳細説明>
次に、センサユニット1L及び1R内の構成について、図2を用いて説明する。尚、センサユニット1L及び1Rは、大きく分けて投光部と受光部から構成される。
<Detailed description of sensor unit 1>
Next, the configuration in the sensor units 1L and 1R will be described with reference to FIG. The sensor units 1L and 1R are roughly divided into a light projecting unit and a light receiving unit.

図2は本発明の実施形態のセンサユニットの詳細構成を示す図である。   FIG. 2 is a diagram showing a detailed configuration of the sensor unit according to the embodiment of the present invention.

図2において、101A及び101Bは、赤外光を発する赤外LEDであり、各々投光レンズ102A及び102Bによって、再帰反射部4に向けて略90°範囲に光を投光する。ここで、センサユニット1L及び1R中の投光部は、この赤外LED101A及び101Bと、投光レンズ102A及び102Bによって実現される。これにより、センサユニット1L及び1Rには、それぞれ2つの投光部が構成されることになる。   In FIG. 2, 101A and 101B are infrared LEDs that emit infrared light, and project light in a range of approximately 90 ° toward the retroreflective portion 4 by light projecting lenses 102A and 102B, respectively. Here, the light projecting units in the sensor units 1L and 1R are realized by the infrared LEDs 101A and 101B and the light projecting lenses 102A and 102B. Thereby, each of the sensor units 1L and 1R includes two light projecting units.

そして、投光部より投光された赤外光は、再帰反射部4により到来方向に再帰反射され、センサユニット1L及び1R中の受光部によって、その光を検出する。   Then, the infrared light projected from the light projecting unit is retroreflected in the arrival direction by the retroreflecting unit 4, and the light is detected by the light receiving units in the sensor units 1L and 1R.

受光部は、光線の視野を制限すると共に電気的なシールドをになうシールド部材105を設けた1次元のラインCCD104、集光光学系としての受光用レンズ106A及び106Bを備える。更に、受光部は、入射光の入射方向を概略制限する絞り108A及び108B、及び可視光等の余分な光(外乱光)の入射を防止する赤外フィルター107A及び107Bを備える。   The light receiving unit includes a one-dimensional line CCD 104 provided with a shield member 105 that restricts the field of view of the light and provides an electrical shield, and light receiving lenses 106A and 106B as a condensing optical system. Furthermore, the light receiving unit includes diaphragms 108A and 108B that roughly limit the incident direction of incident light, and infrared filters 107A and 107B that prevent extraneous light (disturbance light) such as visible light from entering.

そして、再帰反射部4によって反射された光は、赤外フィルター107A及び107B、絞り108A及び108Bを抜けて受光用レンズ106A及び106Bによって、ラインCCD104の検出素子110面上に集光される。これにより、センサユニット1L及び1Rには、それぞれ2つの受光部が構成されることになる。   The light reflected by the retroreflecting unit 4 passes through the infrared filters 107A and 107B and the stops 108A and 108B, and is collected on the detection element 110 surface of the line CCD 104 by the light receiving lenses 106A and 106B. Thereby, each of the sensor units 1L and 1R includes two light receiving units.

部材103及び部材109は、投光部及び受光部を構成する光学部品を配置するとともに、投光部で投光した光が直接受光部に入射することを防ぐ、あるいは外来光をカットするための上フード103、下フード109として機能する。   The member 103 and the member 109 are arranged to dispose the optical components constituting the light projecting unit and the light receiving unit, and prevent light projected by the light projecting unit from directly entering the light receiving unit, or to cut off external light. It functions as an upper hood 103 and a lower hood 109.

尚、本実施形態においては、絞り108A及び108Bは下フード109に一体で成型されているが、別部品であってもよいことはいうまでもない。さらには、上フード103側に、絞り108A及び108Bと受光用レンズ106A及び106Bの位置決め部を設けることで、投光部の発光中心に対する受光部の位置決めを容易にする構成に実現することも可能である。つまり、上フード103のみで、すべての主要な光学部品が配置される構成に実現することも可能である。   In the present embodiment, the apertures 108A and 108B are formed integrally with the lower hood 109, but it goes without saying that they may be separate parts. Furthermore, by providing the apertures 108A and 108B and the light receiving lenses 106A and 106B on the upper hood 103 side, it is possible to realize a configuration that facilitates positioning of the light receiving unit with respect to the light emission center of the light projecting unit. It is. That is, it is also possible to realize a configuration in which all the main optical components are arranged with only the upper hood 103.

図3Aは、図2の状態のセンサユニット1L(1R)を組み上げた状態を、正面方向(座標入力面に対し垂直方向)から見た図である。図3Aに示すように、センサユニット1L(1R)中の2つの投光部は所定距離d離れた状態で、それぞれの主光線方向が略平行となるように配置され、各々の投光レンズ102A及び102Bによってそれぞれ略90°範囲に光を投光するように構成している。   3A is a view of the assembled state of the sensor unit 1L (1R) in the state of FIG. 2 as viewed from the front direction (perpendicular to the coordinate input surface). As shown in FIG. 3A, the two light projecting portions in the sensor unit 1L (1R) are arranged so that their principal ray directions are substantially parallel with a predetermined distance d apart, and each light projecting lens 102A is disposed. And 102B are configured to project light in a range of approximately 90 °.

図3Bは、図3Aの太矢印で示される部分の断面図であり、赤外LED101A(101B)からの光は、投光レンズ102A(102B)により、座標入力面に略平行に制限された光束として、主に再帰反射部4に対して光が投光されるように構成している。   FIG. 3B is a cross-sectional view of the portion indicated by the thick arrow in FIG. 3A, and the light from the infrared LED 101A (101B) is a light beam limited substantially parallel to the coordinate input surface by the projection lens 102A (102B). As described above, the light is projected mainly on the retroreflective portion 4.

一方、図3Cは、図3Aにおける赤外LED101A及び101B、投光レンズ102A及び102B、上フード103を取り除いた状態を、正面方向(座標入力面に対し垂直方向)から見た図である。   On the other hand, FIG. 3C is a view of the state in which the infrared LEDs 101A and 101B, the projection lenses 102A and 102B, and the upper hood 103 in FIG. 3A are removed, as viewed from the front direction (perpendicular to the coordinate input surface).

ここで、本実施形態の場合、投光部と受光部は、座標入力面である座標入力有効領域3の垂直方向に対し重ねた配置構成(図3B参照)となっている。そして、正面方向(座標入力面に対し垂直方向)から見て、投光部の発光中心と受光部の基準位置が一致する構造となっている。つまり、投光部の発光中心と受光部の基準位置が、角度を計測するための基準点位置に相当し、本実施形態にあっては絞り108A(108B)の位置であって、図中の光線が交差する点となる。   Here, in the case of the present embodiment, the light projecting unit and the light receiving unit have an arrangement configuration (see FIG. 3B) that overlaps the vertical direction of the coordinate input effective area 3 that is the coordinate input surface. Then, when viewed from the front direction (perpendicular to the coordinate input surface), the light emission center of the light projecting unit matches the reference position of the light receiving unit. That is, the light emission center of the light projecting unit and the reference position of the light receiving unit correspond to the reference point position for measuring the angle, and in this embodiment, the position of the stop 108A (108B), This is the point where the rays intersect.

従って、前述した通り、2つの投光部は所定距離d離れた状態で、それぞれの主光線方向略平行となるように配置されているので、2つの受光部も同様に所定距離d離れた状態で、かつ各々の光軸(光学的な対称軸)が略平行となるように構成されている。   Therefore, as described above, since the two light projecting portions are arranged so as to be substantially parallel to each other in the principal ray direction with a predetermined distance d apart, the two light receiving portions are similarly separated by the predetermined distance d. And each optical axis (optical symmetry axis) is substantially parallel.

また、投光部により投光された座標入力面に略平行な光束であって、面内方向に略90°方向に投光されている光は、再帰反射部4により光の到来方向に再帰反射される。そして、その光は、赤外フィルター107A(107B)、絞り108A(108B)、受光用レンズ106A(106B)を経て、ラインCCD104の検出素子110面上に集光、結像することになる。   In addition, light that is approximately parallel to the coordinate input surface projected by the light projecting unit and is projected in a direction of approximately 90 ° in the in-plane direction is recursed in the light arrival direction by the retroreflecting unit 4. Reflected. Then, the light passes through the infrared filter 107A (107B), the stop 108A (108B), and the light receiving lens 106A (106B), and is condensed and imaged on the detection element 110 surface of the line CCD 104.

従って、ラインCCD104の出力信号は、反射光の入射角に応じた光量分布を出力することになるので、ラインCCD104を構成する各画素の画素番号が角度情報を示すことになる。   Accordingly, since the output signal of the line CCD 104 outputs a light amount distribution corresponding to the incident angle of the reflected light, the pixel number of each pixel constituting the line CCD 104 indicates angle information.

尚、図3Bに示す投光部と受光部の距離Lは、投光部から再帰反射部4までの距離に比べて十分に小さな値であり、距離Lを有していても十分な再帰反射光を受光部で検出することが可能な構成となっている。   Note that the distance L between the light projecting unit and the light receiving unit shown in FIG. 3B is sufficiently smaller than the distance from the light projecting unit to the retroreflective unit 4, and sufficient retroreflection is possible even if the distance L is present. The light can be detected by the light receiving unit.

以上説明したように、センサユニット1L(1R)は、少なくとも2つの投光部と、各々の投光部で投光された光を各々検出する2つの受光部(本実施形態の場合、投光部が2組、受光部が2組)を有する構成である。   As described above, the sensor unit 1L (1R) includes at least two light projecting units and two light receiving units that detect the light projected by each light projecting unit (in the case of the present embodiment, the light projecting unit). Part has two sets and the light receiving part has two sets).

また、本実施形態にあっては、受光部の一部であるラインCCD104におけるライン状に配置された検出素子110の左側部分を第1受光部の集光領域、右側部分を第2受光部の集光領域とする。これにより、部品の共通化を図っているが、これに限定されるものでなく、各受光部毎に個別にラインCCDを設けてもよいことは言うまでもない。   Further, in the present embodiment, the left side portion of the detection elements 110 arranged in a line in the line CCD 104 which is a part of the light receiving portion is the condensing region of the first light receiving portion, and the right portion is the second light receiving portion. Let it be a light collection area. Thus, the parts are shared, but the present invention is not limited to this. Needless to say, a line CCD may be provided for each light receiving unit.

<制御・演算ユニットの説明>
制御・演算ユニット2とセンサユニット1L及び1Rの間では、主に、受光部内のラインCCD104用のCCD制御信号、CCD用クロック信号と出力信号、及び投光部内の赤外LED101A及び101Bの駆動信号がやり取りされている。
<Description of control / arithmetic unit>
Between the control / arithmetic unit 2 and the sensor units 1L and 1R, the CCD control signal for the line CCD 104 in the light receiving unit, the CCD clock signal and output signal, and the drive signals for the infrared LEDs 101A and 101B in the light projecting unit are mainly used. Are being exchanged.

ここで、制御・演算ユニット2の詳細構成について、図4を用いて説明する。   Here, a detailed configuration of the control / arithmetic unit 2 will be described with reference to FIG.

図4は本発明の実施形態の制御・演算ユニットの詳細構成を示すブロック図である。   FIG. 4 is a block diagram showing a detailed configuration of the control / arithmetic unit of the embodiment of the present invention.

CCD制御信号は、ワンチップマイコン等で構成される演算制御回路(CPU)21から出力され、ラインCCD104のシャッタタイミングやデータの出力制御等が行われる。   The CCD control signal is output from an arithmetic control circuit (CPU) 21 constituted by a one-chip microcomputer or the like, and shutter timing of the line CCD 104, data output control, and the like are performed.

尚、この演算制御回路21は、クロック発生回路(CLK)22からのクロック信号に従って動作する。また、CCD用のクロック信号は、クロック発生回路(CLK)22からセンサユニット1L及び1Rに送信されると共に、各センサユニット内部のラインCCD104との同期をとって各種制御を行うために、演算制御回路21にも入力されている。   The arithmetic control circuit 21 operates in accordance with the clock signal from the clock generation circuit (CLK) 22. The clock signal for the CCD is transmitted from the clock generation circuit (CLK) 22 to the sensor units 1L and 1R, and arithmetic control is performed to perform various controls in synchronization with the line CCD 104 in each sensor unit. It is also input to the circuit 21.

投光部の赤外LED101A及び101Bを駆動するためのLED駆動信号は、演算制御回路21からLED駆動回路(不図示)を介して、対応するセンサユニット1L及び1Rの投光部内の赤外LED101A及び101Bに供給されている。   The LED drive signal for driving the infrared LEDs 101A and 101B of the light projecting unit is sent from the arithmetic control circuit 21 via the LED drive circuit (not shown) to the infrared LEDs 101A in the light projecting units of the corresponding sensor units 1L and 1R. And 101B.

センサユニット1L及び1Rそれぞれの受光部内のラインCCD104からの検出信号は、A/Dコンバータ23に入力され、演算制御回路21からの制御によって、デジタル値に変換される。この変換されたデジタル値は、メモリ132に記憶され、指示具の角度計算に用いられる。そして、この計算された角度から座標値が算出され、外部端末にインタフェース7(例えば、USB、IEEE1394、RS232Cインタフェース等)を介して出力される。   Detection signals from the line CCDs 104 in the light receiving portions of the sensor units 1L and 1R are input to the A / D converter 23 and converted into digital values under the control of the arithmetic control circuit 21. The converted digital value is stored in the memory 132 and used for calculating the angle of the pointing tool. Then, a coordinate value is calculated from the calculated angle, and is output to the external terminal via the interface 7 (for example, USB, IEEE1394, RS232C interface, etc.).

また、指示具としてペンを用いる場合、ペンからのペン信号を受信する信号受信部5からは、ペン信号を復調したデジタル信号が出力され、ペン信号検出回路としてのサブCPU24に入力され、ペン信号が解析される。その後、その解析結果が演算制御回路21に出力される。   When a pen is used as the pointing tool, a digital signal obtained by demodulating the pen signal is output from the signal receiving unit 5 that receives a pen signal from the pen, and is input to the sub CPU 24 serving as a pen signal detection circuit. Is analyzed. Thereafter, the analysis result is output to the arithmetic control circuit 21.

<光量分布検出の説明>
図5は本発明の実施形態の制御信号のタイミングチャートである。
<Explanation of light intensity distribution detection>
FIG. 5 is a timing chart of control signals according to the embodiment of the present invention.

特に、図5では、センサユニット1L(1R)中の一つの受光部およびそれに対応する照明としての赤外LED101A(101B)への制御信号のタイミングチャートを示している。   In particular, FIG. 5 shows a timing chart of control signals to one light receiving portion in the sensor unit 1L (1R) and the infrared LED 101A (101B) as illumination corresponding thereto.

71、72はCCD制御用の制御信号であり、SH信号71の間隔で、ラインCCD104のシャッタ開放時間が決定される。ICG信号72はセンサユニット1L(1R)へのゲート信号であり、内部のラインCCD104の光電変換部の電荷を読出部へ転送する信号である。   71 and 72 are control signals for CCD control, and the shutter opening time of the line CCD 104 is determined by the interval of the SH signal 71. The ICG signal 72 is a gate signal to the sensor unit 1L (1R), and is a signal for transferring the charge of the photoelectric conversion unit of the internal line CCD 104 to the reading unit.

73は赤外LED101A(101B)の駆動信号であり、ここで、SH信号71の周期で、赤外LED101A(101B)を点灯するために、LED信号73が赤外LED101A(101B)に供給される。   Reference numeral 73 denotes a drive signal for the infrared LED 101A (101B). Here, the LED signal 73 is supplied to the infrared LED 101A (101B) in order to turn on the infrared LED 101A (101B) in the cycle of the SH signal 71. .

そして、センサユニット1L及び1Rの双方の投光部の駆動が終了した後に、センサユニット1L及び1Rの双方の受光部(ラインCCD104)の検出信号が読み出される。   Then, after the driving of the light projecting units of both the sensor units 1L and 1R is completed, the detection signals of the light receiving units (line CCD 104) of both the sensor units 1L and 1R are read out.

ここで、センサユニット1L及び1Rの双方から読み出される検出信号は、座標入力有効領域3への指示具による入力がない場合には、それぞれのセンサユニットからの出力として、図6のような光量分布が得られる。もちろん、このような光量分布がどのシステムでも必ず得られるわけではなく、再帰反射部4の再帰反射特性や投光部の特性、また、経時変化(反射面の汚れなど)によって、光量分布は変化する。   Here, the detection signals read from both of the sensor units 1L and 1R are output from the respective sensor units when there is no input to the coordinate input effective area 3 by the pointing tool, as shown in FIG. Is obtained. Of course, such a light quantity distribution is not necessarily obtained in any system, and the light quantity distribution changes depending on the retroreflective characteristics of the retroreflecting part 4 and the characteristics of the light projecting part, and changes with time (such as dirt on the reflecting surface). To do.

図6においては、レベルAが最大光量であり、レベルBが最低光量となっている。   In FIG. 6, level A is the maximum light amount and level B is the minimum light amount.

つまり、再帰反射部4からの反射光がない状態では、センサユニット1L及び1Rで得られる光量レベルがレベルB付近になり、反射光量が増えるほど、レベルAに光量レベルが遷移する。このようにして、センサユニット1L及び1Rから出力された検出信号は、逐次、対応するA/Dコンバータ23でA/D変換され、演算制御回路21にデジタルデータとして取り込まれる。   That is, in a state where there is no reflected light from the retroreflecting unit 4, the light amount level obtained by the sensor units 1L and 1R is near level B, and the light amount level transitions to level A as the reflected light amount increases. In this way, the detection signals output from the sensor units 1L and 1R are sequentially A / D converted by the corresponding A / D converter 23 and taken into the arithmetic control circuit 21 as digital data.

これに対し、座標入力有効領域3への指示具による入力がある場合には、センサユニット1L及び1Rからの出力として、図7のような光量分布が得られる。   On the other hand, when there is an input to the coordinate input effective area 3 by the pointing tool, a light amount distribution as shown in FIG. 7 is obtained as an output from the sensor units 1L and 1R.

この光量分布のC1及びC2部分では、指示具によって再帰反射部4からの反射光が遮られているため、その部分(遮光範囲)のみ反射光量が低下していることがわかる。特に、図7では、複数の指示具によって、指示具によって再帰反射部4からの反射光が遮られているため、複数の遮光範囲が検出される。   In the C1 and C2 portions of this light amount distribution, the reflected light from the retroreflecting unit 4 is blocked by the pointing tool, so that it can be seen that the reflected light amount is reduced only in that portion (light shielding range). In particular, in FIG. 7, since the reflected light from the retroreflecting unit 4 is blocked by the plurality of pointing tools, a plurality of light shielding ranges are detected.

そして、本実施形態では、指示具による入力がない場合の図6の光量分布と、指示具による入力がある場合の図7の光量分布の変化に基づいて、センサユニット1L及び1Rに対する指示具の角度を算出する。   And in this embodiment, based on the change of the light quantity distribution of FIG. 6 when there is no input by the pointing tool and the change of the light quantity distribution of FIG. 7 when there is an input by the pointing tool, the pointing tool for the sensor units 1L and 1R is changed. Calculate the angle.

具体的には、図6の光量分布として、投光部による投光(照明)がない状態の光量分布データ81と、投光(照明)中で指示具による入力がない(遮蔽物がない状態)状態の光量分布82を初期状態として予めメモリ132に記憶しておく。   Specifically, as the light quantity distribution of FIG. 6, there is no light quantity distribution data 81 in the state where there is no light projection (illumination) by the light projecting unit, and no input by the pointing tool in the light projection (lighting) (the state where there is no shielding object) ) State light quantity distribution 82 is stored in the memory 132 in advance as an initial state.

そして、センサユニット1L及び1Rそれぞれの検出信号のサンプル期間に、図7のような光量分布の変化があるか否かを、そのサンプル期間中の光量分布と、メモリ132に記憶されている初期状態の光量分布との差分によって検出する。そして、光量分布に変化がある場合には、その変化部分を指示具の入力点として、その入力角度を決定する(遮光範囲の端部を決定する)演算を行う。   Then, whether or not there is a change in the light amount distribution as shown in FIG. 7 in the sample period of the detection signals of the sensor units 1L and 1R, the light amount distribution during the sample period and the initial state stored in the memory 132. It is detected by the difference with the light quantity distribution. If there is a change in the light amount distribution, the input angle is determined (the end of the light shielding range is determined) using the changed portion as the input point of the pointing tool.

上述したように、本願発明では、1つのラインCCD104に対して、複数の受光部が設けられ、その各々に対して投光部が設けられている。従って、各々の受光部(もしくは投光部)を別のタイミングで駆動する場合には、各々を上記のような信号タイミングで駆動すればよい。   As described above, in the present invention, a plurality of light receiving portions are provided for one line CCD 104, and a light projecting portion is provided for each of them. Therefore, when each light receiving unit (or light projecting unit) is driven at a different timing, each may be driven at the above signal timing.

図8はその信号のタイミングチャート例である。まず、センサユニット1L中のラインCCD104の読出先頭側で、センサユニット1L中の一方の受光部による検出を行うために、61信号に対して、信号63のタイミングで、赤外LED(例えば、赤外LED101A)が駆動される。信号ICG62によって、ラインCCD104の信号が読み出されるが、このときは、ラインCCDの先頭側の受光範囲の画素データが読み出される(信号65中のA部分)。   FIG. 8 is a timing chart example of the signal. First, in order to perform detection by one light receiving unit in the sensor unit 1L on the reading head side of the line CCD 104 in the sensor unit 1L, an infrared LED (for example, a red LED) at the timing of the signal 63 with respect to 61 signals. The outer LED 101A) is driven. The signal ICG62 reads the signal of the line CCD 104. At this time, the pixel data of the light receiving range on the head side of the line CCD is read (A portion in the signal 65).

次に、同じ、ラインCCD104に対して、SH信号61が与えられ、センサユニット1L中の他方の受光部により検出を行うために、赤外LED(例えば、赤外LED101B)に駆動信号64が供給される。この出力は、信号65のB部分のように、先に検出した先頭部分の信号(破線部)と重ならない領域に、受光された信号が出力される。   Next, the SH signal 61 is given to the same line CCD 104, and the drive signal 64 is supplied to the infrared LED (for example, the infrared LED 101B) for detection by the other light receiving unit in the sensor unit 1L. Is done. As for this output, the received signal is output to an area that does not overlap with the signal (broken line part) of the head part detected earlier, such as the B part of the signal 65.

別のタイミングで、もう一方のセンサユニット1Rを同様に駆動することで、CCDの信号が各々のセンサから読み出され、本願発明では、最大4つの受光部による検出信号を取得することになる。   By driving the other sensor unit 1R in the same way at different timings, the CCD signals are read from the respective sensors, and in the present invention, detection signals from a maximum of four light receiving units are acquired.

尚、本実施形態では、左右のセンサユニット1L及び1Rで合わせて4つの受光部に対して、別々のタイミングで駆動しているが、これに限定されるものではない。お互いの発光が影響しないのであれば、同時に駆動してもかまわないし、各々の任意の組み合わせで駆動してもかまわない。   In the present embodiment, the left and right sensor units 1L and 1R drive the four light receiving units at different timings, but the present invention is not limited to this. If the light emission of each other does not affect, they may be driven at the same time or may be driven in any combination.

<角度計算出の説明>
センサユニット1L及び1Rに対する指示具の角度計算にあたっては、まず、指示具による遮光範囲を検出する必要がある。
<Explanation of angle calculation>
In calculating the angle of the pointing tool with respect to the sensor units 1L and 1R, first, it is necessary to detect a light shielding range by the pointing tool.

以下、センサユニット1L及び1Rの一方(例えば、センサユニット1L)による指示具の角度計算について説明するが、他方(センサユニット1R)でも同様の角度計算を行うことは言うまでもない。   Hereinafter, although the angle calculation of the pointing tool by one of the sensor units 1L and 1R (for example, the sensor unit 1L) will be described, it goes without saying that the same angle calculation is performed by the other (the sensor unit 1R).

電源投入時の光量分布として、図6の光量分布データ81及び光量分布データ82をメモリ132に記憶しておき、その信号と、実際の指示具による入力によって得られる光量分布との比較から、指示具の入力範囲(遮光範囲)を検出する。   The light amount distribution data 81 and the light amount distribution data 82 of FIG. 6 are stored in the memory 132 as the light amount distribution at the time of power-on, and the instruction is obtained by comparing the signal with the light amount distribution obtained by the input by the actual pointing tool. The input range (shading range) of the tool is detected.

図7のように、C1、C2を有する光量分布からなる入力がある場合は、その光量分布と、メモリ132に記憶されている光量分布データ82との差を計算する。そして、その計算結果と、光量分布データ82と光量分布データ81の光量差を用いて、遮光(入力)がない場合との光量変化率を計算する。このように、光量変化率を計算することによって、部分的な光量分布の不均一等の影響を除去できる。   As shown in FIG. 7, when there is an input consisting of a light amount distribution having C 1 and C 2, the difference between the light amount distribution and the light amount distribution data 82 stored in the memory 132 is calculated. Then, using the calculation result and the light amount difference between the light amount distribution data 82 and the light amount distribution data 81, the light amount change rate when there is no light shielding (input) is calculated. Thus, by calculating the light quantity change rate, it is possible to remove the influence such as partial unevenness of the light quantity distribution.

計算された光量変化率に対して、閾値を用いて、光量が変化しているラインCCD104上の画素番号を特定する。この時、検出信号レベルの情報等を用いることで、画素番号より細かい画素情報が特定可能になる。これらの画素番号から、遮光範囲の端部を決定でき、例えば、その遮光範囲の中央値(ラインCCD104の画素番号)を指示具の角度情報として導出する。   The pixel number on the line CCD 104 where the light amount is changed is specified using a threshold value with respect to the calculated light amount change rate. At this time, pixel information finer than the pixel number can be specified by using information on the detection signal level. From these pixel numbers, the end portion of the light shielding range can be determined. For example, the median value of the light shielding range (pixel number of the line CCD 104) is derived as the angle information of the pointing tool.

得られた画素番号から、実際の座標値を計算するためには、角度情報(θ)に変換する必要がある。角度情報への変換は、例えば、多項式を用いて実現することができる。例えば、CCD画素番号をe、次数をn、各次数の係数をTnとすると、角度θは、
θ =Tn・en+T(n-1)・e(n-1)+T(n-2)・e(n-2)+、・・・、+T0 (1)
のようにして、算出することができる。
In order to calculate an actual coordinate value from the obtained pixel number, it is necessary to convert it into angle information (θ). The conversion into angle information can be realized using, for example, a polynomial. For example, if the CCD pixel number is e, the order is n, and the coefficient of each order is Tn, the angle θ is
θ = Tn · e n + T (n-1) · e (n-1) + T (n-2) · e (n-2) +, ..., + T0 (1)
In this way, it can be calculated.

尚、各次数の係数は、実測値や設計値等から決定できる。また、次数は必要とされる座標精度等を鑑みて決定すれば良い。   The coefficient of each order can be determined from an actual measurement value, a design value, or the like. The order may be determined in view of the required coordinate accuracy and the like.

<座標算出方法の説明>
次に、画素番号から変換された角度情報(θ)から、指示具の位置座標を算出する座標算出方法について説明する。
<Description of coordinate calculation method>
Next, a coordinate calculation method for calculating the position coordinates of the pointing tool from the angle information (θ) converted from the pixel number will be described.

尚、指示具の入力が1点である場合には、センサユニット1L及び1Rの出力結果に基づいて得られる遮光範囲の中央の角度を用いることで座標算出が可能である。   When the input of the pointing tool is one point, coordinates can be calculated by using the center angle of the light shielding range obtained based on the output results of the sensor units 1L and 1R.

ここで、座標入力有効領域3上に定義する座標とセンサユニット1L及び1Lとの位置関係及び座標系について、図9を用いて説明する。   Here, the positional relationship between the coordinates defined on the coordinate input effective area 3 and the sensor units 1L and 1L and the coordinate system will be described with reference to FIG.

図9は本発明の実施形態の座標入力有効領域上に定義する座標とセンサユニット1L及び1Lとの位置関係を示す図である。   FIG. 9 is a diagram showing the positional relationship between the coordinates defined on the coordinate input effective area and the sensor units 1L and 1L according to the embodiment of the present invention.

図9では、座標入力有効領域3の水平方向にX軸、垂直方向にY軸を定義し、座標入力有効領域3の中央を原点位置O(0,0)に定義している。そして、座標入力有効領域3の座標入力範囲の上辺左右に、それぞれのセンサユニット1L及び1RをY軸に対称に取り付け、その間の距離はDLRである。   In FIG. 9, the X axis is defined in the horizontal direction and the Y axis is defined in the vertical direction of the coordinate input effective area 3, and the center of the coordinate input effective area 3 is defined as the origin position O (0, 0). The sensor units 1L and 1R are attached symmetrically to the Y axis on the left and right sides of the coordinate input range of the coordinate input effective area 3, and the distance between them is DLR.

また、センサユニット1L及び1Rそれぞれの受光面は、その法線方向がX軸と45度の角度を成すように配置され、その法線方向を0度と定義している。   The light receiving surfaces of the sensor units 1L and 1R are arranged such that the normal direction forms an angle of 45 degrees with the X axis, and the normal direction is defined as 0 degrees.

この時、角度の符号は、左側に配置されたセンサユニット1Lの場合には、時計回りの方向を『+』方向に、また、右側に配置されたセンサユニット1Rの場合には、反時計回りの方向を『+』方向と定義している。   At this time, the sign of the angle is the clockwise direction in the case of the sensor unit 1L arranged on the left side, and the counterclockwise direction in the case of the sensor unit 1R arranged on the right side. Is defined as the “+” direction.

さらには、P0はセンサユニット1L及び1Rの法線方向の交点位置、つまり、基準角度の交点となる。また、センサユニット1L(1R)の位置から原点までのY座標距離をDYとする。この時、基準角度から、それぞれのセンサユニット1L及び1Rで得られた角度をθL、θRとすると、検出すべき点Pの座標P(x,y)は、tanθL、tanθRを用いて、
x = DLR/2 * (tanθL+ tanθR) / (1+( tanθL * tanθR) ) (2)
y = DLR/2* ((1+tanθL)(1+ tanθR)) / (1+( tanθL * tanθR))-DY (3)
で計算される。
Furthermore, P0 is the intersection position of the sensor units 1L and 1R in the normal direction, that is, the intersection of the reference angles. Further, the Y coordinate distance from the position of the sensor unit 1L (1R) to the origin is DY. At this time, if the angles obtained by the respective sensor units 1L and 1R from the reference angle are θL and θR, the coordinates P (x, y) of the point P to be detected are expressed as tanθL and tanθR.
x = DLR / 2 * (tanθL + tanθR) / (1+ (tanθL * tanθR)) (2)
y = DLR / 2 * ((1 + tanθL) (1+ tanθR)) / (1+ (tanθL * tanθR))-DY (3)
Calculated by

ここでの、角度データのとり方は、基準角度からの角度としている。これは、このように角度を設定することで、tanθのとる値が±π/4の範囲にあるため、座標算出が不安定にならないという効果がある。他の算出において、θの値がπ/2値をとっても、不安定ならないようであれば、同一高さ(同一レベル)にある、受光部を結ぶラインに対する角度を用いて、算出を行っても良い。例えば、以下に示す補正計算に関しては、そのような角度定義で計算することができる。   Here, the angle data is taken from the reference angle. By setting the angle in this way, there is an effect that coordinate calculation does not become unstable because the value taken by tan θ is in the range of ± π / 4. In other calculations, even if the value of θ takes a value of π / 2, if it does not become unstable, the calculation may be performed using the angle with respect to the line connecting the light receiving parts at the same height (same level). good. For example, the correction calculation shown below can be calculated with such an angle definition.

ここで、各センサユニット1L(R)の2つの受光部は、実際には座標入力領域に対して同一ライン上には設けられていない。そのため、座標算出時に、異なる位置の受光部のデータを用いる場合には、この位置のずれ分の補正を行う必要がある。   Here, the two light receiving portions of each sensor unit 1L (R) are not actually provided on the same line with respect to the coordinate input area. For this reason, when the data of the light receiving portions at different positions is used at the time of coordinate calculation, it is necessary to correct the deviation of the position.

図10に示すように、センサユニット1Lの2つの受光部の瞳位置をそれぞれL1及びL2、センサユニット1Rの2つの受光部の瞳位置をそれぞれR1、R2とする。また、L1とL2とのx軸方向の差であるx軸方向距離Δxs、L1とL2とのy軸方向の差であるy軸方向距離Δysとする。   As shown in FIG. 10, the pupil positions of the two light receiving portions of the sensor unit 1L are L1 and L2, respectively, and the pupil positions of the two light receiving portions of the sensor unit 1R are R1 and R2, respectively. Further, an x-axis direction distance Δxs that is a difference in the x-axis direction between L1 and L2 and a y-axis direction distance Δys that is a difference in the y-axis direction between L1 and L2.

L2で検出されたデータがθL2である場合、X軸方向にR1と同一高さで見ると、仮想的にVL2の位置にセンサユニット1Lがあるとして、ΔvxsをθL2を用いて算出することができる。   When the data detected at L2 is θL2, when viewed at the same height as R1 in the X-axis direction, Δvxs can be calculated using θL2 assuming that the sensor unit 1L is virtually at the position of VL2. .

そして、R1と同一高さに換算するには、高さ方向の距離Δysと得られた角度θL2とから、
Δvxs=Δys/tanθL2
となる。
And in order to convert to the same height as R1, from the distance Δys in the height direction and the obtained angle θL2,
Δvxs = Δys / tan θL2
It becomes.

よって、式(2)、(3)のセンサユニット間距離DLRを、受光部の瞳位置L1及びL2間のX方向距離Δxsと、算出されたΔvxsで補正し、仮の座標値を計算することが可能となる。計算されたこの仮の座標値におけるx座標は、VL2とR1の中間を原点として計算されるので、そのX座標から(Δxs+Δvxs)/2をさらに補正すれば、異なる位置にある受光部のデータを用いて座標算出が可能になる。   Therefore, the inter-sensor unit distance DLR in the equations (2) and (3) is corrected by the X-direction distance Δxs between the pupil positions L1 and L2 of the light receiving unit and the calculated Δvxs, and a temporary coordinate value is calculated. Is possible. Since the calculated x-coordinate in the temporary coordinate value is calculated with the intermediate point between VL2 and R1 as the origin, if (Δxs + Δvxs) / 2 is further corrected from the X-coordinate, the data of the light receiving units at different positions can be obtained. Using this, coordinates can be calculated.

入力が一点であるような場合には、遮光幅(遮光範囲)の中央の角度を用いても座標算出が可能である。但し、図11の上部のように、複数の指示具からの入力があり、受光部と複数の指示具の位置関係が、センサユニット1L中の2つの受光部での検出信号(光量分布(遮光範囲))が共に重なってしまうような場合には、このような方法では計算できない。   When the input is a single point, coordinates can be calculated using the central angle of the light shielding width (light shielding range). However, as shown in the upper part of FIG. 11, there are inputs from a plurality of pointing tools, and the positional relationship between the light receiving unit and the plurality of pointing tools indicates that the detection signals (light quantity distribution (light shielding) of the two light receiving units in the sensor unit 1L When the range)) overlaps, it cannot be calculated by this method.

例えば、図11の上部での状態では、センサユニット1L中の図面左側の受光部L1では、指示具Bは指示具Aの影に完全に隠れてしまっており、またもう一方の受光部L2では、指示具Bと指示具Aの遮光範囲が連続してしまっている。   For example, in the state in the upper part of FIG. 11, in the light receiving part L1 on the left side of the drawing in the sensor unit 1L, the pointing tool B is completely hidden behind the shadow of the pointing tool A, and in the other light receiving part L2, The light shielding range of the indicator B and the indicator A is continuous.

そして、図11の下部はその時の出力信号であり、受光部L1での出力信号は指示具Aの遮光範囲(A)のみで構成され、受光部L2での出力信号は、指示具Aと指示具Bの遮光範囲(A+B)がつながった状態として出力される。このような場合には、遮光範囲の中央を用いた計算では正確な入力座標は計算できない。   The lower part of FIG. 11 shows the output signal at that time. The output signal at the light receiving portion L1 is composed only of the light shielding range (A) of the indicator A, and the output signal at the light receiving portion L2 is the indication with the indicator A. It is output as a state where the light shielding range (A + B) of the tool B is connected. In such a case, accurate input coordinates cannot be calculated by calculation using the center of the light shielding range.

そこで、このような場合には、センサユニット1L及び1Rの夫々のセンサユニットで検出された遮光範囲の端部の角度情報を用いて座標算出を行う。   Therefore, in such a case, coordinates are calculated using the angle information of the end of the light shielding range detected by the sensor units 1L and 1R.

まず、指示具の入力形状を略円形とし、図12のように、センサユニット1L中の1つの受光部L1に対して、指示具Aと指示具Bが一部重なった状態にあるとする。つまり、この受光部L1では、θL1とθL2で規定される遮光範囲が観測されている状態であるとする。   First, assume that the input shape of the pointing tool is substantially circular, and the pointing tool A and the pointing tool B are partially overlapped with one light receiving portion L1 in the sensor unit 1L as shown in FIG. In other words, it is assumed that a light shielding range defined by θL1 and θL2 is observed in the light receiving unit L1.

一方、センサユニット1R中の、例えば、受光部R1で観測される角度は、夫々の指示具の遮光範囲で形成される遮光範囲の端部であり、θR11からθR22までの4つの角度が観測される。   On the other hand, for example, the angle observed in the light receiving unit R1 in the sensor unit 1R is the end of the light shielding range formed by the light shielding range of each indicator, and four angles from θR11 to θR22 are observed. The

図13はこのような遮光範囲の端部を用いた場合の座標算出を説明するための図である。   FIG. 13 is a diagram for explaining the coordinate calculation when the end portion of such a light shielding range is used.

今、例えば、P点に入力がなされたとした場合、θL1とθR1、θR2の交点を夫々P1(x1,x1)、P2(x2,x2)とすると、入力位置の座標Pは、夫々の交点における角度2θ1、2θ2の2等分線の交点として計算可能となる。   Now, for example, if an input is made at point P, if the intersections of θL1, θR1, and θR2 are P1 (x1, x1) and P2 (x2, x2), respectively, the coordinates P of the input position are at the respective intersections. It can be calculated as the intersection of bisectors of angles 2θ1 and 2θ2.

P1及びP2の座標値は、上述のそれぞれの角度の交点の座標を計算するのと同様の式(2)及び(3)によって計算可能であるので、この座標値と角度情報を用いることにより入力座標P(x,y)を算出することができる。   Since the coordinate values of P1 and P2 can be calculated by the same equations (2) and (3) as those for calculating the intersections of the respective angles described above, the coordinate values and the angle information are used for input. Coordinates P (x, y) can be calculated.

このように、左右のセンサユニット1L及び1Rで検出される遮光範囲の端部情報を用いることで、遮光範囲の中央値を用いることなく、入力に対する入力座標の算出が可能となる。   As described above, by using the edge information of the light shielding range detected by the left and right sensor units 1L and 1R, it is possible to calculate the input coordinates for the input without using the median value of the light shielding range.

図14はその算出手順の一例を説明するための図である。   FIG. 14 is a diagram for explaining an example of the calculation procedure.

図のように、P1(x1,y1)とP2(x2,y2)の間の距離をL、夫々の点における角の2等分線の角度をθ1、θ2とすれば、
L= ((x2-x1)2 + (y2-y1)20.5 (4)
θ1 = (π-(θL+θR1))/2 (5)
θ2 = (θL+θR2)/2 (6)
ここで、
L1・tanθ1 = L2・tanθ2 (7)
である。よって、
L2=L・tanθ1/(tanθ1 +tanθ2) (但し、tanθ1+tanθ2≠0) (8)
La= L2 / cosθ2 (但し、cosθ2≠0) (9)
これから、Δx、Δyとして
Δx = La・cos(θL-θ2) (10)
Δy = La・sin(θL-θ2) (11)
入力座標として、P(x,y)は
x = x2 - Δx (12)
y = y2 - Δy (13)
と計算できる。
As shown in the figure, if the distance between P1 (x1, y1) and P2 (x2, y2) is L, and the angle of the bisector of the angle at each point is θ1, θ2,
L = ((x2-x1) 2 + (y2-y1) 2 ) 0.5 (4)
θ1 = (π- (θL + θR1)) / 2 (5)
θ2 = (θL + θR2) / 2 (6)
here,
L1 ・ tanθ1 = L2 ・ tanθ2 (7)
It is. Therefore,
L2 = L · tanθ1 / (tanθ1 + tanθ2) (However, tanθ1 + tanθ2 ≠ 0) (8)
La = L2 / cosθ2 (however, cosθ2 ≠ 0) (9)
From now on, as Δx and Δy, Δx = La · cos (θL-θ2) (10)
Δy = La · sin (θL-θ2) (11)
As input coordinates, P (x, y) is
x = x2-Δx (12)
y = y2-Δy (13)
Can be calculated.

ここで、図12のように、例えば、センサユニット1Lからみて後ろ側の入力点が、完全に影に隠れてしまう状態(皆既食状態)でない状態、つまり、部分食状態である場合には、影が分離して入力された場合と同様に、虚実の点が計算される。その実際の入力点は、Pa及びPb、またはPa’及びPb’のどちらかの組み合わせになる。   Here, as shown in FIG. 12, for example, when the input point on the back side as viewed from the sensor unit 1L is not completely hidden by the shadow (total eating state), that is, in the partial eating state, As is the case when is input separately, a true point is calculated. The actual input point is a combination of either Pa and Pb or Pa 'and Pb'.

そこで、θL1、θL2、θR11、θR12、θR21そしてθR22の組み合わせについて、上記のような2等分線の交点に相当する計算を行う。そして、それぞれPa及びPb、またはPa’及びPb’の座標を計算し、どちらの組み合わせが正しい入力座標であるかの判定を行う。この組み合わせの判定は、もう一方の受光部のデータを用いて行うことができる。   Therefore, for the combinations of θL1, θL2, θR11, θR12, θR21, and θR22, calculations corresponding to the intersections of the bisectors as described above are performed. Then, the coordinates of Pa and Pb or Pa ′ and Pb ′ are calculated, respectively, and it is determined which combination is the correct input coordinate. This combination can be determined using the data of the other light receiving unit.

例えば、図15のように、もう一方の受光部のデータθL21及びθL22と、θR11及びθR12による座標算出結果と、先の受光部での座標算出結果を比較する。そして、比較の結果、Paと重なるのか、あるいはPa’と重るのかを双方の距離等から判定して、PaかPa’のどちらが正しいかの判定を行うことができる。ここで、Paが採用されれば、その組み合わせとして、Pbが自動的に採用されることになる。より確実に判定するためには、θR21とθR22での座標算出結果を用いて、Pbについて計算を行っても良い。   For example, as shown in FIG. 15, the data θL21 and θL22 of the other light receiving unit, the coordinate calculation result by θR11 and θR12, and the coordinate calculation result by the previous light receiving unit are compared. Then, as a result of the comparison, it is possible to determine whether Pa or Pa 'is correct by determining whether it overlaps Pa or Pa' from both distances. Here, if Pa is adopted, Pb is automatically adopted as the combination. In order to determine more reliably, Pb may be calculated using the coordinate calculation results at θR21 and θR22.

このように、センサユニット1L(1R)で検出される2つの遮光範囲が部分的に隠れてしまう「部分食」状態をいつでも得られるように構成してあれば、夫々の遮光範囲の端部の角度を検出し、その交点における2等分線に相当する情報を得ることができる。これにより、複数の入力指示位置を特定することが可能になる。   As described above, if the “partial eclipse” state in which the two light-shielding ranges detected by the sensor unit 1L (1R) are partially hidden can be obtained at any time, the end portions of the respective light-shielding ranges can be obtained. By detecting the angle, information corresponding to the bisector at the intersection can be obtained. This makes it possible to specify a plurality of input instruction positions.

ここで、遮光範囲の端部情報を用いたとしても、いわゆる「皆既食」状態では、その影に隠れた側の指示具の入力の位置を特定することができなくなる。この「皆既食」状態を回避し、どちらかのセンサユニット1L(1R)において、部分食状態を検出するためには、入力指示具の大きさに対して、各センサユニット1L(1R)における複数の受光部間の距離を最適値に決定する。これによって、どちらかの光学系では領域が部分的に重なった「部分食」状態とすることが可能となる。   Here, even if the edge information of the light-shielding range is used, in the so-called “totally eaten” state, the input position of the pointing tool hidden behind the shadow cannot be specified. In order to avoid this “total eating” state and detect a partial eating state in one of the sensor units 1L (1R), a plurality of sensor units 1L (1R) with respect to the size of the input instruction tool. The distance between the light receiving parts is determined to be an optimum value. As a result, in either optical system, a “partial eclipse” state in which the regions partially overlap can be achieved.

従って、複数の指示具がどの領域にあっても、センサユニット1L(1R)中の2組の受光部の内、少なくとも一方の受光部で、必ず「部分食」状態、あるいは2つの遮光範囲の分離状態で検出できるように、その光学的配置を設定している。   Therefore, no matter where the plurality of pointing devices are, at least one of the two sets of light receiving units in the sensor unit 1L (1R) must be in a “partial eclipse” state or two light shielding ranges. The optical arrangement is set so that it can be detected in the separated state.

実際の計算については、まず、上述説明したように、各々受光部からの光量分布データの取得を行う。得られた各光量分布データから、遮光範囲の数を閾値等を用いて算出する。遮光範囲の数により、入力がない場合(入力なし)と、一箇所に対して入力(単一点入力)が行われた場合と、少なくとも2箇所に対して入力(複数点入力)が行われた場合の入力状態を判定が可能になるとともに、演算に用いるデータを選択することができる。   As for the actual calculation, first, as described above, the light amount distribution data from each light receiving unit is acquired. From the obtained light quantity distribution data, the number of light shielding ranges is calculated using a threshold or the like. Depending on the number of shaded areas, there was no input (no input), input was made at one place (single point input), and input was made at least two places (multiple point input). In this case, it is possible to determine the input state, and it is possible to select data to be used for the calculation.

各センサユニットで検出される遮光範囲が、一つしかない単一点入力の場合には、遮光範囲の端部情報を用いた座標算出方法で座標算出を行ってもよいし、あるいは、従来とおりの遮光範囲の中央を計算して、座標算出を行ってもかまわない。また、この場合には、虚実判定が不要であることは、言うまでも無い。   When the single light shielding range detected by each sensor unit is a single point input, the coordinate calculation may be performed by the coordinate calculation method using the edge information of the light shielding range, or as usual. Coordinates may be calculated by calculating the center of the light shielding range. In this case, it is needless to say that trueness determination is not necessary.

ここで、虚実判定とは、以下の処理を意味する。例えば、2点入力の場合には、入力座標候補として最大4点の座標を算出し、この4点の内、実際に入力した座標2点を判定し、出力する。つまり、この判定は、複数の入力座標候補の中から、実際の入力座標と虚偽の入力座標を選別して、最終的な入力座標を判定する。そして、この判定を、虚実判定と呼んでいて、従来より様々な方法が存在する。   Here, true / false determination means the following processing. For example, in the case of two-point input, the coordinates of a maximum of four points are calculated as input coordinate candidates, and two of the four points actually input are determined and output. That is, in this determination, actual input coordinates and false input coordinates are selected from a plurality of input coordinate candidates, and the final input coordinates are determined. And this determination is called trueness determination, and there are various methods conventionally.

複数点入力の場合、入力が各々独立に検出できている遮光範囲が2つのものと、センサユニットに対して入力位置の関係が「食」状態にあるような、1つの場合とが混在することになる。このような場合に、どの遮光範囲の組み合わせで座標算出を行うかについては、夫々の遮光範囲の数から決定すれば良い。   In the case of multi-point input, there are a mixture of two light-shielding ranges where each input can be detected independently and one case where the input position is in the “eating” state relative to the sensor unit. become. In such a case, the combination of light shielding ranges for which coordinates are calculated may be determined from the number of the respective light shielding ranges.

夫々のセンサユニットにおいて、すべてが複数の遮光範囲を検出するような場合には、どのような組み合わせでも座標算出が可能である。そのような場合には、あらかじめ優先順位をつけた組み合わせで、虚実を含めた座標値を算出し、上述の虚実判定を行って座標を決定する。   When all of the sensor units detect a plurality of light shielding ranges, coordinates can be calculated in any combination. In such a case, a coordinate value including reality is calculated with a combination in which priorities are assigned in advance, and the above-described truth determination is performed to determine the coordinate.

また、一方のセンサユニットにおいて、食状態と複数の遮光範囲が検出された場合には、複数の遮光範囲を優先し、同様に座標算出が可能である。一方のセンサユニットで、二つの受光部からの出力が、双方とも食状態であると判定された場合には、皆既食でない側の受光部からの検出結果を用いて、遮光範囲の端部情報を用いて座標算出を行う。算出された座標値に対して、上述の虚実判定を行って座標を確定する。皆既食、部分食の状態判定は、両側の遮光端で計算した、座標値の比較から行っても良いし、より簡便な方法を用いてもかまわない。   In addition, when one of the sensor units detects an eating condition and a plurality of light shielding ranges, the plurality of light shielding ranges are given priority, and coordinates can be calculated similarly. If one sensor unit determines that the outputs from the two light receiving parts are both in the eating state, the detection result from the light receiving part on the non-eating side is used to obtain the edge information of the light shielding range. To calculate the coordinates. The coordinates are determined by performing the above-described true / false determination on the calculated coordinate values. The state determination of the total eclipse and the partial eclipse may be performed by comparing the coordinate values calculated at the light shielding ends on both sides, or a simpler method may be used.

<座標算出処理フローの説明>
図16は本発明の実施形態の座標入力装置が実行する座標算出処理を示すフローチャートである。
<Description of coordinate calculation processing flow>
FIG. 16 is a flowchart showing coordinate calculation processing executed by the coordinate input device according to the embodiment of the present invention.

図16では、センサユニットでのデータ取得から座標算出までの手順を示している。   FIG. 16 shows a procedure from data acquisition to coordinate calculation in the sensor unit.

電源が投入されると、ステップS101で、制御・演算ユニット2のポート設定、タイマ設定等の座標入力装置に係る各種初期化を行う。その後に、不揮発メモリ等から基準データや補正用の定数等の初期データをそれぞれ読み出し、演算・制御ユニット2のメモリ132に格納する。   When the power is turned on, in step S101, various initializations related to the coordinate input device such as port setting and timer setting of the control / arithmetic unit 2 are performed. Thereafter, initial data such as reference data and correction constants are read from the nonvolatile memory or the like and stored in the memory 132 of the arithmetic / control unit 2.

また、各センサユニット毎に、図6のような、照明無しの時の光量分布データ81と、初期入力が無いときの光量分布データ82を、初期データとして取り込み、メモリ132に記憶する。   Further, for each sensor unit, as shown in FIG. 6, light quantity distribution data 81 when there is no illumination and light quantity distribution data 82 when there is no initial input are fetched as initial data and stored in the memory 132.

ここまでの処理が、電源投入時の初期設定動作になる。この初期設定動作は、座標入力装置に構成されているリセットスイッチ等により操作者の意図によって動作するように構成しても良いことはいうまでも無く、この初期設定動作を経て、通常の指示具による座標入力動作状態に移行することになる。   The processing so far is the initial setting operation when the power is turned on. It goes without saying that this initial setting operation may be configured to operate according to the operator's intention using a reset switch or the like configured in the coordinate input device. Will shift to the coordinate input operation state.

ステップS102で、座標入力が連続して行われているか否かを示す連続フラグを初期化(クリア)する。ステップS103で、各センサユニットの投光部を点灯させ、光量分布データを受光部より取得する。   In step S102, a continuous flag indicating whether coordinate input is continuously performed is initialized (cleared). In step S103, the light projecting unit of each sensor unit is turned on, and the light amount distribution data is acquired from the light receiving unit.

取得した光量分布データは、先の初期データに対して差分及び比を計算し、ステップS104で、例えば、閾値を越えるものがあるか否かの判定などによって、遮光範囲の検出を実行する。   For the acquired light quantity distribution data, a difference and a ratio are calculated with respect to the previous initial data, and in step S104, detection of the light-shielding range is performed by determining whether there is any data exceeding the threshold, for example.

ステップS105で、遮光範囲の検出結果に基づいて、指示具による入力の有無を判定する。入力がない場合(ステップS105でNO)、ステップS102に戻る。一方、入力がある場合(ステップS105でYES)、ステップS106に進む。   In step S105, the presence / absence of input by the pointing tool is determined based on the detection result of the light shielding range. If there is no input (NO in step S105), the process returns to step S102. On the other hand, if there is an input (YES in step S105), the process proceeds to step S106.

ステップS106で、遮光範囲の検出結果に基づいて、センサユニットの各受光部毎の遮光範囲の数を検出する。ステップS107で、遮光範囲の数の検出結果に基づいて、指示具による入力が複数点入力であるか否かを判定する。複数点入力でない場合(ステップS107でNO)、つまり、単一点入力である場合、ステップS108に進み、単一点入力における座標算出を実行する。このときの座標算出は、遮光範囲の端部情報を用いた計算でも良いし、遮光範囲の中央を用いたものでもかまわない。   In step S106, the number of light shielding ranges for each light receiving unit of the sensor unit is detected based on the detection result of the light shielding range. In step S107, based on the detection result of the number of light shielding ranges, it is determined whether or not the input by the pointing tool is a multipoint input. If it is not a multi-point input (NO in step S107), that is, if it is a single-point input, the process proceeds to step S108 to perform coordinate calculation in the single-point input. The coordinate calculation at this time may be calculation using edge information of the light shielding range, or may be performed using the center of the light shielding range.

一方、複数点入力である場合(ステップS107でYES)、ステップS109に進み、その遮光範囲の数に従って、座標算出用データをあらかじめ決めておいた優先順位やテーブル等を参照して決定する。そして、これらのデータをメモリ132に記憶する。   On the other hand, if the input is a plurality of points (YES in step S107), the process proceeds to step S109, and the coordinate calculation data is determined with reference to a predetermined priority order, a table, or the like in accordance with the number of light shielding ranges. These data are stored in the memory 132.

各データを決定したら、ステップS110で、夫々の遮光範囲の端部データを算出し、その端部データから虚実を含む4座標の算出を行う。   When each data is determined, in step S110, end data of each light shielding range is calculated, and four coordinates including the truth are calculated from the end data.

ステップS111で、虚実判定に用いるセンサユニットを決定する。この決定は、座標算出にどのデータを用いるかによって、決定すればよい。例えば、皆既食、部分食と判定されたような場合には、そちらのセンサユニットを用い、食状態にない場合には、遮光範囲同士の角度条件が大きいほうを採用するなどする。   In step S111, a sensor unit used for determination of truth is determined. This determination may be made depending on which data is used for coordinate calculation. For example, when it is determined to be a total eclipse or a partial eclipse, that sensor unit is used, and when there is no eclipse, the one with the larger angle condition between the light shielding ranges is adopted.

ステップS112で、決定されたセンサユニットを用いて、虚実判定を実行する。虚実判定によって、実座標が判定されたら、ステップS113で、連続入力の有無を判定する。尚、この判定は、連続入力の有無を示す連続フラグに基づいて実行する。   In step S112, true / false determination is performed using the determined sensor unit. If the real coordinates are determined by the true / false determination, the presence / absence of continuous input is determined in step S113. This determination is performed based on a continuous flag indicating the presence / absence of continuous input.

連続入力がない場合(ステップS113でNO)、ステップS115に進む。一方、連続入力がある場合(ステップS113でYES)、ステップS114に進む。ステップS114で、それ以前に記憶されている座標値(前回の座標値等)との差分等から、連続性判定を実行する。連続性判定がなされたら、ステップS115で、連続フラグをセットし、また、今の座標値を次の連続性判定のためにメモリ132に記憶する。   If there is no continuous input (NO in step S113), the process proceeds to step S115. On the other hand, if there is continuous input (YES in step S113), the process proceeds to step S114. In step S114, continuity determination is executed based on a difference from a previously stored coordinate value (previous coordinate value or the like). When the continuity determination is made, a continuity flag is set in step S115, and the current coordinate value is stored in the memory 132 for the next continuity determination.

次に、ステップS116で、ID情報等の付帯情報を座標値に付加する。特に、連続していると判定された座標値には、前回と同じID情報を付加し、新規に検出された座標値に対しては、未使用のID情報を付加することになる。また、スイッチ情報等がある場合には、その情報も付加する。   Next, in step S116, additional information such as ID information is added to the coordinate values. In particular, the same ID information as the previous time is added to the coordinate values determined to be continuous, and unused ID information is added to the newly detected coordinate values. If there is switch information or the like, that information is also added.

このように、付帯情報を有する座標値を、ステップS117で、外部端末に出力する。その後、データ取得のループを、電源OFFまで繰り返すことになる。   In this way, the coordinate value having the accompanying information is output to the external terminal in step S117. Thereafter, the data acquisition loop is repeated until the power is turned off.

<指示具の構成の説明>
入力に用いられる指示具6は、図17に示すような構成になっている。指示具6の先端には、スクリーンに対して指示が成されたときにONするスイッチとしてペン先SW160、マウスの右ボタンのような操作を行うためのスイッチとしてサイドSW162が用意されている。163は発光部(例えば、LED)である。
<Description of the configuration of the pointing device>
The pointing tool 6 used for input has a configuration as shown in FIG. At the tip of the pointing tool 6, a pen tip SW 160 is provided as a switch that is turned on when an instruction is given to the screen, and a side SW 162 is provided as a switch for performing an operation such as a right button of a mouse. Reference numeral 163 denotes a light emitting unit (for example, an LED).

指示具6の内部構成は、図18のようになっており、各スイッチの状態は制御部164に入力され、スイッチが押下されたときには、そのスイッチ情報および、指示具6にあらかじめ設定されているID情報(ペンID)が、発光部163を駆動する。これにより、ペン信号(指示具)として本体(座標入力装置)に送信される。尚、図中、166は電源としての電池、165は電池電圧を昇圧するコンバータである。   The internal configuration of the pointing tool 6 is as shown in FIG. 18. The state of each switch is input to the control unit 164, and when the switch is pressed, the switch information and the pointing tool 6 are set in advance. The ID information (pen ID) drives the light emitting unit 163. Thereby, it transmits to a main body (coordinate input device) as a pen signal (indicator). In the figure, reference numeral 166 denotes a battery as a power source, and reference numeral 165 denotes a converter that boosts the battery voltage.

送信されるペン信号の構成としては、図19に示すようなパルス列にて行われる。夫々のパルスは外乱等の影響を避けるため、特定の周波数で変調されている。図の例では、ペン先SW信号及びサイドSW信号としてSW0及びSW1、指示具6のID情報としてID0、ID1が生成されている。このとき、信号の安定性を向上させる目的で、各ビットの反転情報を付加しても構わない。反転情報を一緒に送信することで、例えば、外来ノイズが重なった場合でも、各ビット毎の論理の整合性を判定することで、信号の正当性を判断することが可能になり、誤動作を防止できる。また、パリティビットの付加等も有効である。   The configuration of the pen signal to be transmitted is performed by a pulse train as shown in FIG. Each pulse is modulated at a specific frequency in order to avoid the influence of disturbance or the like. In the illustrated example, SW0 and SW1 are generated as the pen tip SW signal and the side SW signal, and ID0 and ID1 are generated as the ID information of the pointing tool 6. At this time, inversion information of each bit may be added for the purpose of improving the stability of the signal. By transmitting the inversion information together, for example, even when external noise overlaps, it is possible to determine the legitimacy of the signal by determining the logic consistency for each bit, preventing malfunctions it can. In addition, addition of parity bits is also effective.

尚、この例では、ID情報は、2ビットで表されているが、もちろんシステムによっては何ビットで構成されていてもかまわない。ID情報は指示具毎に設定される。設定方法は、指示具に内蔵される不揮発メモリに書き込んでも良いし、指示具に設けられるSWやショート端子を用いて設定する等、設計事項としてシステムで最適な手法を選択すればよい。各ID情報毎に異なった繰り返し周期を設定することで、複数の指示具を同時に使った場合に、ペン信号の衝突(コリジョン)が連続で発生しないようにすることができる。   In this example, the ID information is represented by 2 bits, but of course, it may be composed of any number of bits depending on the system. ID information is set for each pointing tool. As a setting method, it is possible to write in a nonvolatile memory built in the pointing device, or to set using a SW or a short terminal provided in the pointing device, and an optimal method may be selected in the system as a design matter. By setting a different repetition cycle for each ID information, it is possible to prevent a pen signal collision (collision) from occurring continuously when a plurality of indicators are used simultaneously.

例えば、図20のようなペン信号の全パルスの長さTが、例えば、1[msec]であるとすると、4種類の各ID情報に対する繰返周期を
ID0: 7[msec]
ID1: 9[msec]
ID2:11[msec]
ID3:13[msec]
のように、2*T(T=有効信号幅)以上(有効信号幅の倍の時間以上)の差をもち、互いに、倍数とならない固有の繰返周期に設定する。これにより、2つの指示具が同時に使われた際に、図21の様に、最初の周期で、ペン信号の衝突が発生した場合でも、次の周期では必ず単独で検出することが可能にすることができる。
For example, if the length T of all the pulses of the pen signal as shown in FIG. 20 is 1 [msec], for example, the repetition period for each of the four types of ID information is ID0: 7 [msec].
ID1: 9 [msec]
ID2: 11 [msec]
ID3: 13 [msec]
As described above, the repetition cycles are set to unique repetition periods that have a difference of 2 * T (T = effective signal width) or more (a time equal to or more than twice the effective signal width) and are not multiples of each other. As a result, when two pointing devices are used at the same time, even if a pen signal collision occurs in the first cycle as shown in FIG. be able to.

図22は本発明の実施形態のID情報の設定と周期設定を行う場合のフローチャートである。   FIG. 22 is a flowchart for setting ID information and setting a cycle according to the embodiment of this invention.

まず、電源が投入されると、ステップS202で、初期設定として、不揮発メモリに記憶されているID情報を読み込む。そして、そのID情報に従って、ID情報と周期とを対応付けて管理するテーブル参照を行い、ID情報に対応する周期を決定する。このテーブルも、例えば、不揮発性メモリに記憶されている。ステップS203で、決定された周期に対応して、タイマにカウント値をセットする。   First, when the power is turned on, ID information stored in the nonvolatile memory is read as an initial setting in step S202. Then, according to the ID information, a table reference for managing the ID information and the period in association with each other is performed, and the period corresponding to the ID information is determined. This table is also stored in, for example, a nonvolatile memory. In step S203, a count value is set in the timer corresponding to the determined cycle.

ステップS204で、スイッチ操作の有無を判定する。スイッチ操作がない場合(ステップS204でNO)、スイッチ操作があるまで待機する。一方、スイッチ操作がある場合(ステップS204でYES)、ステップS205で、スイッチ状態及びID情報に対応するパスルパターンを生成する。ステップS206で、発光部163を駆動し、ペン信号の送信を行う。   In step S204, it is determined whether or not there is a switch operation. If there is no switch operation (NO in step S204), the process waits until there is a switch operation. On the other hand, if there is a switch operation (YES in step S204), a pulse pattern corresponding to the switch state and ID information is generated in step S205. In step S206, the light emitting unit 163 is driven and a pen signal is transmitted.

その後、ステップS207で、先にセットされたカウンタの減算を行うために、タイマをスタートする。ステップS208で、所定時間経過したか否かを判定する。所定時間経過していない場合(ステップS208でNO)、所定時間経過するまで待機する。一方、所定時間経過した場合(ステップS208でYES)、ステップS203に戻り、再度、カウンタ値をセットし、スイッチ状態の監視を行い、押下されていれば、同様に駆動する。   Thereafter, in step S207, a timer is started in order to subtract the previously set counter. In step S208, it is determined whether a predetermined time has elapsed. If the predetermined time has not elapsed (NO in step S208), the process waits until the predetermined time elapses. On the other hand, if the predetermined time has elapsed (YES in step S208), the process returns to step S203, the counter value is set again, and the switch state is monitored.

このように制御することで、ID情報毎に指示具の発光部163の発光周期を設定できる。   By controlling in this way, the light emission period of the light emission part 163 of an indicator can be set for every ID information.

送信されたペン信号は、本体(座標入力装置)側の信号受信部5にて検出、復調され、図21のようなパルス列として検出され、各信号データにデコードされて、本体の演算制御回路21にて利用される。   The transmitted pen signal is detected and demodulated by the signal receiving unit 5 on the main body (coordinate input device) side, detected as a pulse train as shown in FIG. 21, decoded into each signal data, and the arithmetic control circuit 21 of the main body. Used in

<信号受信部の説明>
図23は信号受信部の構成を示す図である。
<Description of signal receiver>
FIG. 23 is a diagram illustrating a configuration of the signal receiving unit.

信号受信部5は、指示具からの光信号であるペン信号を検出し、スイッチ情報、ID情報をデコードし、そのデコードによって得られる信号データを制御・演算ユニット2に出力する。より具体的には、指示具からの変調された光信号は、受光素子51にて、復調されパルス列として出力される。出力されたパルス列は、制御・演算ユニット2において、信号受信制御部として機能するサブCPU24に入力される。   The signal receiving unit 5 detects a pen signal that is an optical signal from the pointing tool, decodes switch information and ID information, and outputs signal data obtained by the decoding to the control / arithmetic unit 2. More specifically, the modulated optical signal from the indicator is demodulated by the light receiving element 51 and output as a pulse train. The output pulse train is input to the sub CPU 24 functioning as a signal reception control unit in the control / arithmetic unit 2.

ここで、信号受信部5は、指示具の径に基づいて決定された距離d離された、複数の受光素子51により構成される。図中、Aの組及びBの組にて、座標入力有効領域3をカバーしている。各受光素子51の出力は、各組ごとに論理的に合成されて、発光素子52を介してサブCPU24に入力される。   Here, the signal receiving unit 5 includes a plurality of light receiving elements 51 that are separated by a distance d determined based on the diameter of the pointing tool. In the figure, the set of A and the set of B cover the coordinate input effective area 3. The outputs of the light receiving elements 51 are logically combined for each set and input to the sub CPU 24 via the light emitting elements 52.

このように、指示具の径よりも離間させて、ペン信号を検出することで、複数の指示具が直線状に並んだ場合でも、皆既状態にならず、その並びにある後ろ側の指示具のペン信号を受信することができる。   In this way, by detecting the pen signal at a distance from the diameter of the indicator, even when a plurality of indicators are arranged in a straight line, it does not become a complete state, and there is a sequence of indicators behind the indicator A pen signal can be received.

サブCPU24では、復調されたパルス列のスタートパルスに同期し、一定周期にてパルス信号の取込を行いSW信号の状態およびID情報(ペンID)の取込を行う。取り込まれた信号は、ポート等を介して、演算制御回路21に渡される。   In the sub CPU 24, in synchronization with the start pulse of the demodulated pulse train, the pulse signal is taken in at a constant period, and the state of the SW signal and the ID information (pen ID) are taken in. The fetched signal is passed to the arithmetic control circuit 21 through a port or the like.

図23の例では、同時に2本の指示具からのペン信号に対応するように、各指示具のスイッチ情報とID情報がそれぞれPen0、Pen1の組で出力されている。また、後述する、指示具の発光タイミングに同期したゲート信号Gate0、1もそれぞれ出力されている。   In the example of FIG. 23, switch information and ID information of each indicator are output as a pair of Pen0 and Pen1, respectively, so as to correspond to pen signals from two indicators simultaneously. In addition, gate signals Gate0 and Gate1 synchronized with the light emission timing of the pointing tool, which will be described later, are also output.

サブCPU24では、信号の検出結果であるID情報(ペンID)に基づいて、ペン信号の繰返周期を特定し、各指示具毎のペン信号のタイミング情報を生成するタイミング情報生成部として機能する。このタイミング情報から、複数のペン信号の衝突(コリジョン)の有無の判定や、また、このタイミング情報からゲート信号を生成することで、制御・演算ユニット2にて、各ID情報に対応する指示具の位置を特定するためのペン信号の検出を行っている。   The sub CPU 24 functions as a timing information generation unit that specifies the repetition period of the pen signal based on the ID information (pen ID) that is the detection result of the signal, and generates the timing information of the pen signal for each indicator. . By determining whether or not there is a collision (collision) of a plurality of pen signals from this timing information, and by generating a gate signal from this timing information, the control / arithmetic unit 2 indicates an indicator corresponding to each ID information. The pen signal is detected to identify the position.

コリジョン判定は、各ID情報を含むペン信号の繰返周期が事前に決定してある。そのため、一回信号が検出されれば、その信号のタイミングを開始タイミングとして、カウンタ等に相応のカウント値をセットすることで、各ID情報毎の繰返タイミングを決定することができる。   In the collision determination, the repetition cycle of the pen signal including each ID information is determined in advance. Therefore, once a signal is detected, the repetition timing for each ID information can be determined by setting a corresponding count value in a counter or the like with the timing of the signal as the start timing.

検出されている複数のID情報毎の繰返タイミングを発生させ、その一致の度合いを判定する構成を設けておけば、一致していると判定されているタイミングでは、ペン信号の検出を行わない等の手法を講じることができる。これにより、コリジョンによる誤ったペン信号を検出することがなく、安定した検出が可能になる。   If a configuration for generating a repetition timing for each of a plurality of detected ID information and determining the degree of coincidence is provided, the pen signal is not detected at the timing when the coincidence is determined. Etc. can be taken. Thereby, stable detection is possible without detecting an erroneous pen signal due to collision.

開始タイミングについては、カウンタの精度に鑑みて、適当な時間間隔で信号検出の際に再設定するのが望ましい。例えば、一筆書の最初には必ず、再設定する等の方法が考えられる。   The start timing is desirably reset at the time of signal detection at an appropriate time interval in view of the accuracy of the counter. For example, a method such as resetting at the beginning of a stroke can be considered.

図24はタイミング信号から生成されるゲート信号の例である。   FIG. 24 shows an example of a gate signal generated from the timing signal.

このように各指示具の発光タイミングに同期するゲート信号を生成することで、例えば、制御・演算ユニット2で、各指示具の座標入力有効領域3内の位置情報検出に用いることができる。   Thus, by generating the gate signal synchronized with the light emission timing of each indicator, for example, the control / arithmetic unit 2 can be used for position information detection within the coordinate input effective area 3 of each indicator.

遮光範囲を検出する際に、複数の指示具がほぼ同時に入力されたような場合に、ペン信号がID情報を伴って検出されたとしても、どの遮光範囲の座標値に割り付けてよいのか判断ができない場合がある。このような場合に、発光タイミングがわかっていれば、その発光タイミングで、座標検出用のセンサユニットで、指示具からの発光の検出を行うように構成することで、ペン信号と遮光範囲の対応を図ることが可能になる。   When detecting a light-shielding range, if a plurality of pointing devices are input almost simultaneously, even if a pen signal is detected with ID information, it is determined which light-shielding range can be assigned a coordinate value. There are cases where it is not possible. In such a case, if the light emission timing is known, the sensor unit for coordinate detection is configured to detect the light emission from the pointing tool at that light emission timing, thereby corresponding the pen signal to the light shielding range. Can be achieved.

また、このように、指示具の発光を検出する構成にしておくことで、座標の虚実判定が不確実と思われるようなときに、発光に対応する遮光範囲の組み合わせを特定でき、間違った組み合わせによる、不正な座標値出力を抑制することが可能になる。   In addition, by configuring the indicator to detect the light emission in this way, it is possible to specify a combination of light shielding ranges corresponding to the light emission when it seems that the determination of the truth of coordinates is uncertain, and the wrong combination This makes it possible to suppress the output of incorrect coordinate values.

図25は信号受信制御部が実行する処理を示すフローチャートである。本例では、同時使用される指示具の数を2本とした場合の例で説明する。   FIG. 25 is a flowchart showing processing executed by the signal reception control unit. In this example, an example in which the number of pointing tools used simultaneously is two will be described.

ステップS302で、初期設定として、各種タイマ等の設定をするとともに、検出されたID情報(ペンID)を格納する変数であるID0及びID1をクリアする。   In step S302, various timers and the like are set as initial settings, and ID0 and ID1, which are variables for storing detected ID information (pen ID), are cleared.

ステップS303で、指示具のスタートパルスを検出したか否かを判定する。検出していない場合(ステップS303でNO)、ステップS311に進む。一方、検出した場合(ステップS303でYES)、ステップS304に進む。   In step S303, it is determined whether a start pulse of the pointing tool has been detected. If not detected (NO in step S303), the process proceeds to step S311. On the other hand, if it is detected (YES in step S303), the process proceeds to step S304.

スタートパルスを検出したら、ステップS304で、信号検出を行う。ステップS305で、スイッチ情報とID情報をデコードする。ステップS306で、デコードしたスイッチ情報とID情報は、演算制御回路21に出力するために、ポートに、スイッチ(SW)データ、IDデータとして出力する。   When the start pulse is detected, signal detection is performed in step S304. In step S305, switch information and ID information are decoded. In step S306, the decoded switch information and ID information are output to the port as switch (SW) data and ID data for output to the arithmetic control circuit 21.

尚、出力に供されるポート数は、システムの規模などによって設定されればよく、例えば、8bit幅のポートに4bitで一本の指示具に対するペン信号を表すように出力する等の構成が考えられる。   The number of ports provided for output may be set depending on the scale of the system. For example, a configuration in which a pen signal for one pointing tool is output in 4 bits to an 8 bit width port is considered. It is done.

ステップS307で、今回検出したID情報がすでに検出済のID情報であるか否かを判定する。検出済のID情報でない場合(ステップS307でNO)、つまり、初めて検出したID情報である場合、ステップS308に進む。ステップS308で、変数ID0に検出したID情報が示すID番号をセットするとともに、ID番号に固有の繰返周期をタイマ0にセットし、タイマ0をスタートする。   In step S307, it is determined whether or not the ID information detected this time is already detected ID information. If it is not detected ID information (NO in step S307), that is, if it is ID information detected for the first time, the process proceeds to step S308. In step S308, the ID number indicated by the detected ID information is set in the variable ID0, the repetition period unique to the ID number is set in timer 0, and timer 0 is started.

一方、検出済のID情報である場合(ステップS307でYES)、ステップS309で、変数ID0にセットされているID番号と検出されたID情報が示すID番号との比較を、一致するか否かを判定する。一致する場合(ステップS309でYES)、ステップS308に進み。一方、一致しない場合(ステップS309でNO)、ステップS310で、変数ID1に検出したID情報が示すID番号をセットするとともに、ID番号に固有の繰返周期をタイマ1にセットし、タイマ1をスタートする。   On the other hand, if it is detected ID information (YES in step S307), whether or not the comparison between the ID number set in the variable ID0 and the ID number indicated by the detected ID information matches in step S309. Determine. If they match (YES in step S309), the process proceeds to step S308. On the other hand, if they do not match (NO in step S309), in step S310, the ID number indicated by the detected ID information is set in variable ID1, and the repetition cycle specific to the ID number is set in timer 1, and timer 1 is set. Start.

それぞれスタートしたタイマは、セットした時間が経過した後に、後述する割込処理を起動し、ゲート信号の生成等を行うことになる。   Each timer that has started starts an interrupt process, which will be described later, after a set time has elapsed, and generates a gate signal.

指示具からの入力が続いている間は、上記処理を繰り返すことになるが、入力が途絶えると、つまり、スタートパルスが検出されない場合(ステップS303でNO)、ステップS303からステップS311の処理に移行する。   While the input from the pointing tool continues, the above process is repeated. However, when the input is interrupted, that is, when the start pulse is not detected (NO in step S303), the process proceeds from step S303 to step S311. To do.

ステップS311で、変数ID0に対するID情報が検出されてから、ペンアップ状態であるか否かを判定するための所定のペンアップ判定時間を経過したか否かを判定する。ペンアップ判定時間を経過している場合(ステップS311でYES)、ステップS312で、ペンアップ状態にあると判定して、タイマ0をストップし、変数ID0にセットしているID番号をクリアする。一方、ペンアップ判定時間を経過していない場合(ステップS311でNO)、ステップS314に進む。   In step S311, it is determined whether or not a predetermined pen-up determination time for determining whether or not the pen-up state has elapsed since the ID information for the variable ID0 has been detected. If the pen-up determination time has elapsed (YES in step S311), it is determined in step S312 that the pen-up state has been established, the timer 0 is stopped, and the ID number set in the variable ID0 is cleared. On the other hand, if the pen-up determination time has not elapsed (NO in step S311), the process proceeds to step S314.

尚、ペンアップ判定時間の判定には、変数ID0及びID1に、ID番号をセットする時にフラグをセット経過時間判定用のフラグをセットする等の操作をしておけばよい。   Note that the pen-up determination time may be determined by performing an operation such as setting a flag for setting the ID number in the variables ID0 and ID1 and setting a flag for determining the elapsed time.

その後、ステップS313で、ポートに出力していた、SWデータとIDデータをクリアをする。   Thereafter, in step S313, the SW data and ID data output to the port are cleared.

一方、ペンアップ判定時間を経過していない場合(ステップS311でNO)、あるいはSWデータとIDデータをクリアした後は、ステップS314に進む。ステップS314で、変数ID1に対するID情報が検出されてから、ペンアップ状態であるか否かを判定するための所定のペンアップ判定時間を経過したか否かを判定する。   On the other hand, if the pen-up determination time has not elapsed (NO in step S311), or after the SW data and ID data are cleared, the process proceeds to step S314. In step S314, it is determined whether or not a predetermined pen-up determination time for determining whether or not the pen-up state has elapsed since the ID information for the variable ID1 has been detected.

ペンアップ判定時間を経過している場合(ステップS314でYES)、ステップS315で、ペンアップ状態にあると判定して、タイマ1をストップし、変数ID1にセットしているID番号をクリアする。一方、ペンアップ判定時間を経過していない場合(ステップS314でNO)、ステップS330に戻る。   If the pen-up determination time has elapsed (YES in step S314), it is determined in step S315 that the pen-up state has been reached, the timer 1 is stopped, and the ID number set in the variable ID1 is cleared. On the other hand, if the pen-up determination time has not elapsed (NO in step S314), the process returns to step S330.

各タイマの割込処理は図26(A)、(B)に示されるとおりである。図26(A)、(B)はそれぞれのタイマに対する処理であるが、対象とするタイマが異なるだけで処理内容は同一であるので、図26(A)についてのみ説明する。   Interrupt processing of each timer is as shown in FIGS. 26 (A) and 26 (B). FIGS. 26A and 26B are processing for each timer, but the processing contents are the same except that the target timer is different, so only FIG. 26A will be described.

まず、ステップS402で、割込が発生すると、タイマ0をストップすると共に、ID0に関わるIDOゲート信号をONにする。その後、ステップS403で、IDOゲート信号をONしておくのに必要なゲートON時間をタイマ0にセットする。このゲートON時間は、ペン信号の全パルスの長さTに相当する時間にセットしておくことで、他の指示具でのゲート信号との比較によって、コリジョンの発生を判断することが可能になる。   First, in step S402, when an interrupt occurs, the timer 0 is stopped and the IDO gate signal related to ID0 is turned ON. Thereafter, in step S403, a gate ON time necessary for turning on the IDO gate signal is set in the timer 0. By setting the gate ON time to a time corresponding to the length T of all the pulses of the pen signal, it is possible to determine the occurrence of a collision by comparing with the gate signal from another indicator. Become.

ステップS404で、ゲートON時間が経過したか否かを判定する。ゲートON時間が経過していない場合(ステップS404でNO)、経過するまで待機する。一方、ゲートON時間が経過した場合(ステップS404でYES)、ステップ405で、IDOゲート信号をOFFにする。ステップS406で、再度、ID0に固有の繰返周期に相当するカウンタ値をタイマ0にセットして、割込処理を終了する。   In step S404, it is determined whether the gate ON time has elapsed. If the gate ON time has not elapsed (NO in step S404), the process waits until it elapses. On the other hand, if the gate ON time has elapsed (YES in step S404), the IDO gate signal is turned OFF in step 405. In step S406, the counter value corresponding to the repetition period unique to ID0 is set in timer 0 again, and the interrupt process is terminated.

このような構成することにより、指示具のID情報毎にタイミング管理を行うことができ、ゲート信号生成等により、コリジョンの防止や、指示具のID情報と遮光範囲の特定等が可能になる。   With such a configuration, timing management can be performed for each ID information of the pointing tool, and collision prevention, identification of the pointing tool ID information and a light shielding range, and the like can be performed by generating a gate signal or the like.

以上説明したように、本実施形態によれば、複数の指示具により、複数の座標を同時に入力した場合であっても、高精度で複数の指示具の位置と各指示具のスイッチ情報、ID情報を信号の衝突による後検出を回避して検出することができる。具体的には、複数の指示具の識別情報を検出し、そのタイミング情報を生成することで、信号の衝突を検知し、指示具のスイッチ信号を正確に検出することができる。   As described above, according to the present embodiment, even when a plurality of coordinates are input simultaneously by a plurality of pointing devices, the position of the plurality of pointing tools and the switch information, ID of each pointing tool with high accuracy. Information can be detected avoiding post-detection due to signal collisions. Specifically, by detecting identification information of a plurality of pointing tools and generating timing information thereof, it is possible to detect a collision of signals and accurately detect a switch signal of the pointing tool.

また、同期したタイミング信号を出力することで、各指示具とID、スイッチ情報の割付が簡便に行うことが可能になり、複数の指示具を同時に使う際の使用感を向上することができる。また、複数の指示具の指示操作によって、センサユニットで検出される遮光範囲の組み合わせを正しく判断できるため、誤った座標値の出力を抑制し、高精度な座標入力装置を提供することができる。   Further, by outputting synchronized timing signals, it is possible to easily assign each indicator, ID, and switch information, and it is possible to improve the feeling of use when using a plurality of indicators simultaneously. In addition, since the combination of the light shielding ranges detected by the sensor unit can be correctly determined by an instruction operation of a plurality of pointing tools, output of erroneous coordinate values can be suppressed and a highly accurate coordinate input device can be provided.

尚、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステムまたは装置に供給し、そのシステムまたは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.

Claims (8)

座標入力有効領域に対する複数の指示具によるそれぞれの位置座標を算出する座標入力装置であって、
前記複数の指示具それぞれは、
複数のスイッチ手段と、
前記複数の指示具との間で互いに識別するための固有の識別情報を記憶する記憶手段と、
前記複数のスイッチ手段の状態を示すスイッチ情報と前記識別情報を含む送信信号を、該識別情報に固有に設定されている繰返周期で生成する生成手段とを備え、
前記座標入力装置は、
前記生成手段で生成された送信信号を受信する受信手段と、
前記受信手段で受信した送信信号から検出される識別情報に基づいて、該受信した信号の繰返周期を特定し、該繰返周期に同期した、該識別情報に対応する指示具からの送信信号のタイミング情報を生成するタイミング情報生成手段と
を備えることを特徴とする座標入力装置。
A coordinate input device that calculates each position coordinate by a plurality of pointing tools for a coordinate input effective area,
Each of the plurality of indicators is
A plurality of switch means;
Storage means for storing unique identification information for mutually identifying the plurality of pointing devices;
Generating means for generating switch information indicating a state of the plurality of switch means and a transmission signal including the identification information at a repetition period that is uniquely set in the identification information;
The coordinate input device includes:
Receiving means for receiving the transmission signal generated by the generating means;
Based on the identification information detected from the transmission signal received by the receiving means, the repetition period of the received signal is specified, and the transmission signal from the indicator corresponding to the identification information is synchronized with the repetition period A coordinate input device comprising: timing information generating means for generating the timing information.
前記タイミング情報に基づきゲート信号を生成するゲート信号生成手段を更に備える
ことを特徴とする請求項1に記載の座標入力装置。
The coordinate input device according to claim 1, further comprising a gate signal generation unit configured to generate a gate signal based on the timing information.
前記複数の指示具毎に設定されている前記繰返周期は、前記送信信号の有効信号幅の倍の時間以上の差をもった周期に設定されている
ことを特徴とする請求項1に記載の座標入力装置。
2. The repetition period set for each of the plurality of pointing devices is set to a period having a difference of time more than twice the effective signal width of the transmission signal. Coordinate input device.
前記タイミング情報生成手段によって生成された前記複数の指示具からの送信信号それぞれに対するタイミング情報から、前記複数の指示具からの送信信号の衝突の有無を判定する判定手段を更に備える
ことを特徴とする請求項1に記載の座標入力装置。
The apparatus further comprises determination means for determining whether or not there is a collision of transmission signals from the plurality of pointing devices based on timing information for the transmission signals from the plurality of pointing tools generated by the timing information generating unit. The coordinate input device according to claim 1.
前記指示具からの送信信号は、発光部の駆動によって生成され、
前記ゲート信号生成手段は、前記発光部の発光タイミングを示す前記タイミング情報に基づいて、該タイミング情報に同期する前記ゲート信号を生成する
ことを特徴とする請求項2に記載の座標入力装置。
The transmission signal from the indicator is generated by driving the light emitting unit,
The coordinate input device according to claim 2, wherein the gate signal generation unit generates the gate signal synchronized with the timing information based on the timing information indicating a light emission timing of the light emitting unit.
前記ゲート信号に基づいて、前記指示具の指示位置を検出する検出手段を更に備える
ことを特徴とする請求項5に記載の座標入力装置。
The coordinate input device according to claim 5, further comprising a detecting unit that detects a pointing position of the pointing tool based on the gate signal.
座標入力有効領域に対する複数の指示具によるそれぞれの位置座標を算出する座標入力装置の制御方法であって、
前記複数の指示具それぞれは、
複数のスイッチ手段と、
前記複数の指示具との間で互いに識別するための固有の識別情報を記憶する記憶手段と、
前記複数のスイッチ手段の状態を示すスイッチ情報と前記識別情報を含む送信信号を、該識別情報に固有に設定されている繰返周期で生成する生成手段とを備え、
前記座標入力装置の制御方法は、
受信手段が、前記生成手段で生成された送信信号を受信する受信工程と、
タイミング情報生成手段が、前記受信工程で受信した送信信号から検出される識別情報に基づいて、該受信した信号の繰返周期を特定し、該繰返周期に同期した、該識別情報に対応する指示具からの送信信号のタイミング情報を生成するタイミング情報生成工程と
を備えることを特徴とする座標入力装置の制御方法。
A control method of a coordinate input device that calculates each position coordinate by a plurality of pointing tools for a coordinate input effective area,
Each of the plurality of indicators is
A plurality of switch means;
Storage means for storing unique identification information for mutually identifying the plurality of pointing devices;
Generating means for generating switch information indicating a state of the plurality of switch means and a transmission signal including the identification information at a repetition period that is uniquely set in the identification information;
The control method of the coordinate input device is:
A receiving step in which the receiving means receives the transmission signal generated by the generating means;
The timing information generating means specifies the repetition period of the received signal based on the identification information detected from the transmission signal received in the reception step, and corresponds to the identification information synchronized with the repetition period. And a timing information generation step of generating timing information of a transmission signal from the pointing tool.
座標入力有効領域に対する複数の指示具によるそれぞれの位置座標を算出する座標入力装置の制御をコンピュータに機能させるためのプログラムであって、
前記複数の指示具それぞれは、
複数のスイッチ手段と、
前記複数の指示具との間で互いに識別するための固有の識別情報を記憶する記憶手段と、
前記複数のスイッチ手段の状態を示すスイッチ情報と前記識別情報を含む送信信号を、該識別情報に固有に設定されている繰返周期で生成する生成手段とを備え、
前記プログラムは、前記コンピュータを、
前記生成手段で生成された送信信号を受信する受信手段と、
前記受信手段で受信した送信信号から検出される識別情報に基づいて、該受信した信号の繰返周期を特定し、該繰返周期に同期した、該識別情報に対応する指示具からの送信信号のタイミング情報を生成するタイミング情報生成手段と
して機能させることを特徴とするプログラム。
A program for causing a computer to control the control of a coordinate input device that calculates each position coordinate by a plurality of pointing tools for a coordinate input effective area,
Each of the plurality of indicators is
A plurality of switch means;
Storage means for storing unique identification information for mutually identifying the plurality of pointing devices;
Generating means for generating switch information indicating a state of the plurality of switch means and a transmission signal including the identification information at a repetition period that is uniquely set in the identification information;
The program causes the computer to
Receiving means for receiving the transmission signal generated by the generating means;
Based on the identification information detected from the transmission signal received by the receiving means, the repetition period of the received signal is specified, and the transmission signal from the indicator corresponding to the identification information is synchronized with the repetition period A program that functions as timing information generation means for generating the timing information.
JP2011084767A 2011-04-06 2011-04-06 Coordinate input device, control method therefor, and program Expired - Fee Related JP5717514B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011084767A JP5717514B2 (en) 2011-04-06 2011-04-06 Coordinate input device, control method therefor, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011084767A JP5717514B2 (en) 2011-04-06 2011-04-06 Coordinate input device, control method therefor, and program

Publications (3)

Publication Number Publication Date
JP2012221115A true JP2012221115A (en) 2012-11-12
JP2012221115A5 JP2012221115A5 (en) 2014-05-08
JP5717514B2 JP5717514B2 (en) 2015-05-13

Family

ID=47272580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011084767A Expired - Fee Related JP5717514B2 (en) 2011-04-06 2011-04-06 Coordinate input device, control method therefor, and program

Country Status (1)

Country Link
JP (1) JP5717514B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017017812A1 (en) * 2015-07-29 2017-02-02 日立マクセル株式会社 Video display system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004302761A (en) * 2003-03-31 2004-10-28 Fujitsu Ltd Ultrasonic type coordinate input device
JP2006012111A (en) * 2004-05-25 2006-01-12 Seiko Epson Corp Position detecting device and information terminal device
JP2006031275A (en) * 2004-07-14 2006-02-02 Canon Inc Coordinate input device and control method thereof
JP2008033895A (en) * 2006-05-31 2008-02-14 Pentel Corp Handwriting handwriting input system
JP2009289243A (en) * 2008-06-02 2009-12-10 Mitsubishi Electric Corp Position detection device, position detection system, video display device and video display system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004302761A (en) * 2003-03-31 2004-10-28 Fujitsu Ltd Ultrasonic type coordinate input device
JP2006012111A (en) * 2004-05-25 2006-01-12 Seiko Epson Corp Position detecting device and information terminal device
JP2006031275A (en) * 2004-07-14 2006-02-02 Canon Inc Coordinate input device and control method thereof
JP2008033895A (en) * 2006-05-31 2008-02-14 Pentel Corp Handwriting handwriting input system
JP2009289243A (en) * 2008-06-02 2009-12-10 Mitsubishi Electric Corp Position detection device, position detection system, video display device and video display system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017017812A1 (en) * 2015-07-29 2017-02-02 日立マクセル株式会社 Video display system
JPWO2017017812A1 (en) * 2015-07-29 2018-05-24 マクセル株式会社 Video display system
US10268284B2 (en) 2015-07-29 2019-04-23 Maxell, Ltd. Image display system

Also Published As

Publication number Publication date
JP5717514B2 (en) 2015-05-13

Similar Documents

Publication Publication Date Title
JP4522113B2 (en) Coordinate input device
JP4429047B2 (en) Coordinate input device, control method therefor, and program
JP4455392B2 (en) Coordinate input device, control method therefor, and program
JP5366789B2 (en) Input indication tool, control method therefor, and coordinate input device
US8780083B2 (en) Coordinate input apparatus, control method thereof, and program
JP4442877B2 (en) Coordinate input device and control method thereof
CN105589607B (en) Touch-control system, touch control display system and touch-control exchange method
JP5717514B2 (en) Coordinate input device, control method therefor, and program
JP2006099273A (en) Coordinate input device and method
JP2016018455A (en) Coordinate input device and control method of the same, computer program
JP4484796B2 (en) Coordinate input device
JP5814608B2 (en) Coordinate input device, control method therefor, and program
JP4590295B2 (en) Coordinate input device, control method therefor, and program
JP2012048403A (en) Coordinate input device and control method thereof, and program
JP5865053B2 (en) Coordinate input device, control method of coordinate input device, and program
JP2006244192A (en) Optical coordinate input device
JP2007072508A (en) Coordinate input device, control method therefor, and program
JP2006251878A (en) Coordinate input device, coordinate input control method, and coordinate input program
JP2006251877A (en) Coordinate input device
JP5882744B2 (en) Coordinate input device
JP2005149321A (en) Coordinate input device, information processing device, control method therefor, and program
JP5947677B2 (en) Coordinate input device, control method therefor, and program
JP2016045527A (en) Coordinate input device, control method of the same and program thereof
JP2016045528A (en) Coordinate input device, control method of the same and program thereof
JP2010108052A (en) Coordinate input device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140326

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140326

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150109

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150216

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150317

R151 Written notification of patent or utility model registration

Ref document number: 5717514

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees