JP2004078799A - Input device and computer device - Google Patents

Input device and computer device Download PDF

Info

Publication number
JP2004078799A
JP2004078799A JP2002241379A JP2002241379A JP2004078799A JP 2004078799 A JP2004078799 A JP 2004078799A JP 2002241379 A JP2002241379 A JP 2002241379A JP 2002241379 A JP2002241379 A JP 2002241379A JP 2004078799 A JP2004078799 A JP 2004078799A
Authority
JP
Japan
Prior art keywords
input device
input
output
mouse
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002241379A
Other languages
Japanese (ja)
Inventor
Mikio Uchiyama
内山 幹男
Naoki Kubota
久保田 直樹
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2002241379A priority Critical patent/JP2004078799A/en
Publication of JP2004078799A publication Critical patent/JP2004078799A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an input device in which information relating to mouse and full keyboard operations can be input with a few switch operations. <P>SOLUTION: The input device 10 which is used by supporting with both hands of a user comprises a plurality of switch means 11, 12, 15, and 16 provided on the both surfaces of the device, a scanning means which periodically inputs on-off conditions of the switch means, a reservation means which reserves the current on pattern information when detecting off-conditions of any of the switch means, and an output means which outputs an output code corresponding to the reservation information if a reservation information exists and deletes the reservation information, or does nothing if the reservation information does not exist, when detecting on-conditions of any of the switch means. The device is held with both hands, therefore, information which is the same information input by a mouse or full keyboard can be input while standing. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は入力装置に関し、特に、少数のスイッチ操作でフルキーボードおよびマウスの操作に関する情報を入力可能な入力装置および当該入力装置を備えたコンピュータ装置に関するものである。
【0002】
【従来の技術】
近年普及しているデスクトップパソコン(PC)やノート型PCには通常入力装置としてフルキーボードやマウスが使用されている。
【0003】
【発明が解決しようとする課題】
ところが、フルキーボードは大きく、持ち運びが不便であり、机等がないと立ったままでは使用困難であり、キーの配置等の調整が不可能であり、習熟にも多くの労力を要するという問題点があった。また、マウスとキーボードを両方使用する場合には手を移動させる必要があるという問題点もあった。
【0004】
本発明の目的は、前記のような従来技術の問題点を解決し、少数のスイッチ操作でフルキーボードおよびマウスの操作に関する情報を入力可能な入力装置および入力方法を提供することにある。
【0005】
【課題を解決するための手段】
本発明の入力装置は、使用者が両手で支持して使用する板状の入力装置であって、当該装置の両面に配置された複数のスイッチ手段と、前記複数のスイッチ手段のオンオフ状態情報を周期的に入力する走査手段と、前記複数のスイッチ手段のいずれかのオン状態を検出した場合には現在のオンパターン情報を予約する予約手段と、前記複数のスイッチ手段のいずれかのオフ状態を検出した場合には、予約情報がある場合には当該予約情報と対応する出力コードを生成して出力すると共に予約情報を消去し、予約情報がない場合には何もしない出力手段とを備えたことを特徴とする。
【0006】
本発明によれば、スイッチ等の操作/入力手段を使用して、複数の操作の組み合わせによって多数の文字を入力することができる。更に、形状や入力パターンの調整/変更が可能であり、両手で保持するので立ったままでフルキーボードと同様の文字を入力可能である。
【0007】
【発明の実施の形態】
以下、本発明の実施の形態を詳細に説明する。図1は、本発明の入力装置の形状を示す正面図および背面図である。入力装置10は略長方形の板状であり、入力装置10の表側(a)には、左手親指用の4つのキースイッチ11(Ka、Kb、Ma、Mb)、右手親指用の4つのキースイッチ12(M1、M2、M3、M4)、3つのLED13(NumL,CapsL,EX)および電源スイッチ14が配置されている。
【0008】
入力装置10の裏側(b)には、左手の親指以外の指用の5つのキースイッチ15(K1〜K5)、右手の親指以外の指用の5つのキースイッチ16(K6〜K0)が配置されている。なお、人差し指用にはそれぞれ2つのキースイッチ(K1、K2およびK6、K7)が割り当てられる。
【0009】
側面(下面)には親機となるPC等とUSBケーブル18によって接続するためのUSBコネクタ17が配置されている。本発明の入力装置10は、左右の手の平で入力装置10を両側から挟んで使用する。そのため、装置の両側面は手の形状に合わせて窪んでいる。
【0010】
図2は、本発明の入力装置のハードウェア構成を示す回路図である。1チップマイクロコンピュータ30は、CPU、ROM、RAM、タイマ、割り込み制御回路、パラレル、シリアル、USBの各入出力ポート、クロック発振回路等を備えており、後述する処理を実行する。なお、このようなコンピュータ30として、例えばマイクロチップテクノロジー(登録商標)社の16C765(登録商標)を使用可能である。
【0011】
電源スイッチ14は中央がオフで、左がUSBからの電源供給、右が内蔵する電池41からの電源供給に切り替わる。なお、USBの時にコンピュータ30のデジタル入力端子に電源電圧を印加することにより、コンピュータ30がどちらの電源を使用しているかを認識可能にしている。また、無線送受信ユニット40には電池駆動の場合のみ電源を供給しているが、コンピュータ30と同じ電源ラインに接続してもよい。なお、本発明を実施するためには、USBあるいは無線送受信ユニットのいずれか一方があればよい。水晶振動子45および2個のコンデンサ46、47は内蔵するクロック発振回路に接続されている。
【0012】
加速度センサIC31は、2軸の加速度センサと周辺回路を集積したICであり、例えばそれぞれの軸のセンサの出力Sx、SyをPWM信号として出力する。なお、このような加速度センサICとして、アナログデバイセズ(登録商標)社のADXL202(登録商標)を使用可能である。センサの出力信号Sx、Syはコンピュータ30のデジタル入力端子に接続されており、コンピュータ30は、詳細は後述するが、タイマ割り込みによるサンプリングによってパルス幅を検出する。
【0013】
上記した加速度センサはチップの面と平行な平面上の直角な2方向の加速度を検出する。チップを入力装置10の面と平行に装着し、入力装置を斜めに持った場合には出力に重力加速度が重畳される。そこで、実施例においては、加速度センサマウスボタンをオンにした時だけ加速度センサ出力にてマウスを移動させるようにし、ボタンのオン時の加速度値をオフセット値として記憶して、それ以降に検出する加速度値から減算することにより、重力加速度をキャンセルしている。なお、通常入力装置を斜めに持って使用するので、斜めに持った場合に加速度センサがほぼ水平になるように加速度センサを装着してもよい。
【0014】
18個のキースイッチ51およびプルアップ抵抗52からなるキースイッチ入力回路50、53の出力はコンピュータ30のデジタル入力端子に接続されている。また、コンピュータ30の3個のデジタル出力端子が抵抗60を介して表示用LED61(13)に接続されている。
【0015】
コンピュータ30の2つのUSB入出力端子は抵抗33、34を介してUSBコネクタ32(17)と接続されている。なお、本発明の入力装置を低速デバイスと認識させるために、コンピュータ30からの3.3V出力が抵抗35を介してUSB端子のD−側に接続されている。
【0016】
無線送受信ユニット40は、例えばBluetooth(登録商標)規格等の無線インターフェイス仕様に準拠したユニットであり、コンピュータ30とは例えばシリアルインターフェイス端子を介して接続される。このようなユニットは市販されている。
【0017】
図3は、本発明の入力装置における制御プログラムの内容を示すフローチャートである。本プログラムは電源スイッチのオンにより起動する。S10においては、レジスタやメモリの内容、入出力回路の状態等を初期化する。S11においては、USB接続か否(=無線接続)かが判定され、判定結果が肯定の場合にはS12に移行するが、否定の場合にはS13に移行する。S12においては、USBの規格に基づき、親装置(PC)とのネゴシエーションを行う。また、S13においては、例えばBluetooth(登録商標)等の無線接続規格に基づき、親装置(PC)とのネゴシエーションを行う。
【0018】
S14においては、状態表示用LED13に現在の状態を表示する。S15においては、前回のキー入力処理から所定の時間が経過したか否かを判定し、結果が否定の場合にはS16に移行するが、肯定の場合にはS1に移行する。S1においては、図4に示すキー入力処理が実行される。
S16においては、前回のマウス処理から所定の時間が経過したか否かを判定し、結果が否定の場合にはS17に移行するが、肯定の場合にはS2に移行する。S2においては、図6に示すマウス処理が実行される。
【0019】
S17においては、親機からデータが受信されたか否かが判定され、結果が否定の場合にはS14に戻るが、肯定の場合にはS18に移行する。S18においては、親機から送信された所定のフォーマットの出力コード変換テーブルデータを受信する。この変換テーブルは、使用者が親機(PC)において任意の内容に設定/変更して、入力装置10へのダウンロード指示を行うことによって送信される。
【0020】
変換テーブルの内容は、例えば操作手段であるキースイッチの任意の組み合わせについて、出力すべきコードデータを規定したものであり、モードを複数設ける場合にはモードの数だけテーブルが存在する。なお、モード遷移や拡張機能等の入力装置の内部制御用のコードとしては、出力コードとして使用しないものを割り当てる。
S19においては、受信したテーブルデータを例えばコンピュータ30内のEEPROMに書き込む。
【0021】
図4は、S1のキー入力処理の内容を示すフローチャートである。S20においては、各キースイッチの状態を入力ポートから読み込む。S21においては、読み込んだ状態がリピート(REP)パターンか否かが判定され、判定結果が肯定の場合にはS22に移行するが、否定の場合にはS23に移行する。なお、リピートパターンをオンした時に直ちにリピート動作を開始させるために、他の文字には、リピートパターンを含む操作パターンを割り当てないようにする。
【0022】
S23においては、1つ前の処理において読み込んだスイッチ状態情報と比較し、S24においては、オンからオフに変化したスイッチが有るか否かが判定され、結果が否定の場合にはS36に移行するが、肯定の場合にはS25に移行する。S25においては、例えば予約レジスタの内容が0以外であるか否かによって予約があるか否かが判定され、結果が否定の場合にはS36に移行するが、肯定の場合にはS26に移行する。
【0023】
S26においては、予約レジスタの内容、モードレジスタの内容、フラグレジスタの内容に基づき、変換テーブルを参照して出力すべきコード情報が決定される。
【0024】
図9は、本発明の入力装置における変換テーブルの内容例を示す説明図である。この実施例においては、英数モード(上段)および数字(ナンバー)モード(下段)の2つのモードを備えた例を開示する。それぞれのモードにおいて、K1〜K5、K6〜K0、Ka〜Kbの組の中からそれぞれ1個あるいは0個のキーをオンした場合の組み合わせに対して出力すべきコードを対応する文字で示してある。なお、このテーブルにおいては採用していないが、例えばK2とK3とを同時にオンするような、上記各組の中において複数のキーをオンするパターンを採用してもよい。
【0025】
使用者が例えば”A”を入力する場合には、K1(左人差し指)のみをオンした後オフする。また、”7”を入力する場合には、K1(左人差し指)、K8(右中指)、Kb(左親指)を任意の順序でオンし、その後いずれかのキーをオフする。
【0026】
図4に戻って、S27においては、テーブルによる変換結果(出力コード)が「Numlock」か否かが判定され、結果が肯定の場合にはS28に移行してモードフラグ(0:英字モード、1:数字モード)の内容を反転させるが、否定の場合にはS29に移行する。S29においては、変換結果が「shift」、「ctrl」あるいは「alt」か否かが判定され、結果が肯定の場合にはS30に移行するが、否定の場合にはS32に移行する。
【0027】
S30においては、「shift」、「ctrl」あるいは「alt」に対応するフラグの内容を反転させ、S31においては、当該フラグの内容に基づきフラグと対応するオンあるいはオフのキーコード信号を出力する。
【0028】
S32においては、S26において決定した出力コードのオン信号、オフ信号を親機へ出力すると共に、リピート処理のために、出力コード情報およびフラグの状態を特定のレジスタ等に保存する。S33においては、「shift」、「ctrl」、「alt」の3つのフラグについて、オンのものがあればオフに変更し、対応するオフ信号を出力する。
【0029】
S34においては、例えば予約レジスタに0を書き込むことによって予約をクリアする。S35においては、オンになったスイッチがあるか否かが判定され、結果が肯定である場合にはS36に移行して、現在のスイッチ状態を予約レジスタに上書きすることによって予約情報を更新する。S37においては、次回のキー入力処理のために現在のスイッチ状態を保存する。
【0030】
S38においては、カーソルキー(M1〜M4)の内のいずれかがオンであるか否かが判定され、判定結果が肯定の場合にはS39においてオンされているキーと対応するカーソルキーコードを出力する。但し、Mbキーがオンである場合には、マウスカーソルを移動させる指示であるので、カーソルキーコードは出力しない。
【0031】
図5は、S22のリピート処理の内容を示すフローチャートである。S50においては、出力コードを保存しているレジスタからデータを読み出し、親機へオン信号、オフ信号を順に出力する。S51においては、出力周期を計測するタイマを起動する。S52においては、タイマがタイムアップしたか否かが判定され、結果が肯定の場合にはS50に戻るが、否定の場合にはS53に移行する。S53においては、スイッチ状態を読み込んで、状態がリピートパターンから変化したか否かが判定され、結果が否定であればS52に戻るが、肯定の場合にはリピート処理を終了する。
【0032】
図8は、本発明の入力装置のスイッチ操作例を示すタイミング図である。この例においては、Kb、K6、K1のキースイッチが順にオンされ、次にK6がオフ、K7がオン、K7がオフ、K1がオフとなった場合を示している。まず、それぞれのキーがオンされた時点で予約情報が更新され、K1がオンした時点で予約情報は「b16」となっている。
【0033】
次に、K6がオフされた時点で、予約情報と対応するコード(図9の例では”5”と対応するコード)が出力され、予約情報がクリアされる。従って、次のK6のオフ時には何も出力されない。次にK7がオンした時点で「17」が予約され、K7のオフ時に”F”と対応するコードが出力される。
【0034】
図6は、S2のマウス処理の内容を示すフローチャートである。この実施例においては、加速度マウスキー(Ma)がオンの場合にのみ加速度センサに基づきマウスカーソルを移動させる。また、カーソルマウスキー(Mb)がオンの場合には、カーソルキー(M1〜M4)に基づきマウスカーソルを移動させる。
【0035】
S60においては、加速度マウスキー(Ma)がオンか否か判定し、判定結果が肯定の場合にはS61に移行するが、否定の場合にはS64に移行する。S61においては、後述する割り込み処理によってメモリに読み込まれている加速度値Ax、Ayを読み出し、重力加速度をキャンセルするために保存されているオフセット値Ox、Oyをそれぞれ減算する。S62においては、減算結果をそれぞれの積分値に加算し、積分値を更新する。
【0036】
S63においては、当該積分値の値に基づきマウス移動信号を生成する。即ち、積分値が大きい場合には多数のマウス移動信号を生成して速く移動させる。また、積分値が所定値以下の場合にはマウス移動信号は発生しないようにする。
【0037】
S64においては、カーソルマウスキー(Mb)がオンか否かが判定され、判定結果が肯定の場合にはS67に移行するが、否定の場合にはS65に移行する。S65においては、加速度値Ax、Ayを読み出し、オフセット値Ox、Oyとして上書保存する。S66においては、各軸の積分値を0にリセットする。
【0038】
S67においては、いずれかのカーソルキー(M1〜M4)がオンか否かが判定され、判定結果が肯定の場合にはS68に移行するが、否定の場合にはS69に移行する。S68においては、オンされているカーソルキーと対応する方向のマウス移動信号を生成する。
【0039】
S69においては、マウスボタンがオンか否かが判定される。本発明の入力装置においては、マウスボタンは例えばK6、K7キーを兼用しており、加速度マウスキー(Ma)あるいはカーソルマウスキー(Mb)がオンの場合にはK6、K7キーをマウス左ボタン、マウス右ボタンと見なす。そして、判定結果が肯定の場合にはS70に移行するが、否定の場合にはS71に移行する。
【0040】
S70においては、前回処理時に保存された状態情報に基づき、オンのボタンが前回処理時にオフであったか否かが判定され、判定結果が肯定の場合にはS72に移行してオン信号を出力する。S71においては、前回処理時に保存された状態情報に基づき、いずれかのボタンが前回処理時にオンであったか否かが判定され、判定結果が肯定の場合にはS73に移行してオフ信号を出力する。
以上の処理により、例えば加速度マウスキー(Ma)がオンの間は入力装置を前後左右に動かすとマウスカーソルがこれに追従する。
【0041】
図7は、タイマ割り込み処理の内容を示すフローチャートである。このプログラムは所定周期のタイマ割り込みによって起動される。S80においては、加速度センサICのX軸PWM出力信号Sxが1か否かが判定され、判定結果が肯定の場合にはS81に移行するが、否定の場合にはS82に移行する。S81においては、カウントデータCxに1を加算する。
【0042】
S82においては、カウントデータCxが0か否かが判定され、判定結果が肯定の場合にはS85に移行するが、否定の場合にはS83に移行する。S83においては、カウントデータCxを加速度値Axに上書して更新する。S84においては、Cxを0にリセットする。S85〜S89においては、Y軸についてS80〜S84と同じ処理を行う。以上の処理により、Ax、Ayには常に現在の加速度値が保存されている。
【0043】
以上、本発明の実施例を開示したが、本発明には下記のような変形例も考えられる。実施例においては、図6のフローチャートのS62において加速度を積分し、積分値に応じてマウスの移動速度を制御している。しかし、重力加速度を利用すると、入力装置を傾斜させただけでも加速度出力が変化する。そこで、S62の処理を削除し、加速度値そのものでマウスの移動速度を制御するようにしてもよい。この場合には、移動させたい方向に入力装置を傾斜させることによりマウスカーソルが移動する。
【0044】
実施例においては、リピート機能を実現するために、リピートパターンを設け、オンすると直前の出力をリピートする実施例を開示したが、他の方法としては、例えば所定の時間(例えば3秒間)同じパターンをオンし続けるとリピート動作を開始する方法、あるいは同じコード出力を短時間に3回連続してオンするとリピートを開始するようにしてもよい。
【0045】
実施例においては、オフ時にコードを出力する例を開示したが、それ以上オンが追加されることがない最終パターンか中間パターンか判別し、最終パターンの場合には当該パターンのオン時にコードを出力するようにしてもよい。
実施例においては加速度センサを用いる例を開示したが、マウス用の操作手段として加速度センサの代わりに公知のパッドやジョイスティックを備えてもよい。この場合にはパッドやジョイスティックによって文字カーソルの移動もできるようにする。
【0046】
実施例においては、パソコンに接続する入力装置である例を開示したが、本発明の入力装置は、パソコン、PDA、携帯電話機など、情報入力の必要な任意の装置に接続あるいは内蔵することも可能である。
【0047】
【発明の効果】
以上述べたように、本発明においては、スイッチやタッチセンサ等の操作/入力手段を使用して、複数の操作の組み合わせによって多数の文字を入力することができ、更に、形状や入力パターンの調整/変更が可能であり、両手で保持するので立ったままでフルキーボードと同様の文字を入力可能であるという効果がある。また、変換テーブルをカスタマイズすることによって、例えば一部の指でしか操作できない人でもPCの操作が容易になるという効果がある。
【図面の簡単な説明】
【図1】本発明の入力装置の形状を示す正面図および背面図である。
【図2】本発明の入力装置のハードウェア構成を示す回路図である。
【図3】入力装置の制御プログラムの内容を示すフローチャートである。
【図4】S1のキー入力処理の内容を示すフローチャートである。
【図5】S22のリピート処理の内容を示すフローチャートである。
【図6】S2のマウス処理の内容を示すフローチャートである。
【図7】タイマ割り込み処理の内容を示すフローチャートである。
【図8】本発明の入力装置のスイッチ操作例を示すタイミング図である。
【図9】入力装置における変換テーブルの内容例を示す説明図である。
【符号の説明】
10…入力装置、11、12…キースイッチ、13…LED、14…電源スイッチ、15、16…キースイッチ、17…USBコネクタ、18…USBケーブル、30…マイクロコンピュータ、31…加速度センサIC、32…USBコネクタ、33、34、35…抵抗、40…無線送受信ユニット、41…電池、43…コンデンサ、45…水晶振動子、46、47…コンデンサ、50、53…スイッチ入力回路、51…キースイッチ、52…プルアップ抵抗、60…抵抗、61…表示用LED
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an input device, and more particularly, to an input device capable of inputting information related to operation of a full keyboard and a mouse with a small number of switch operations, and a computer device including the input device.
[0002]
[Prior art]
2. Description of the Related Art A full keyboard and a mouse are generally used as input devices in desktop personal computers (PCs) and notebook PCs that have become widespread in recent years.
[0003]
[Problems to be solved by the invention]
However, a full keyboard is large and inconvenient to carry, and it is difficult to use it without a desk or the like while standing, it is impossible to adjust the arrangement of keys, etc., and it requires a lot of labor to learn. was there. In addition, there is another problem that when using both a mouse and a keyboard, it is necessary to move a hand.
[0004]
SUMMARY OF THE INVENTION It is an object of the present invention to provide an input device and an input method capable of solving the above-mentioned problems of the related art and inputting information on the operation of a full keyboard and a mouse with a small number of switch operations.
[0005]
[Means for Solving the Problems]
The input device of the present invention is a plate-shaped input device used and supported by both hands of a user, and includes a plurality of switch means disposed on both sides of the device, and on / off state information of the plurality of switch means. A scanning unit for periodically inputting, a reservation unit for reserving current on-pattern information when an on state of any of the plurality of switch units is detected, and an off state of any of the plurality of switch units. Output means for generating and outputting an output code corresponding to the reservation information when there is the reservation information and erasing the reservation information when there is the reservation information; and performing no operation when there is no reservation information. It is characterized by the following.
[0006]
According to the present invention, a large number of characters can be input by a combination of a plurality of operations using operation / input means such as a switch. Further, the shape and the input pattern can be adjusted / changed, and the character is held with both hands, so that a character similar to a full keyboard can be input while standing.
[0007]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail. FIG. 1 is a front view and a rear view showing the shape of the input device of the present invention. The input device 10 has a substantially rectangular plate shape, and four key switches 11 (Ka, Kb, Ma, Mb) for the left thumb and four key switches for the right thumb are provided on the front side (a) of the input device 10. 12 (M1, M2, M3, M4), three LEDs 13 (NumL, CapsL, EX) and a power switch 14 are arranged.
[0008]
On the rear side (b) of the input device 10, five key switches 15 (K1 to K5) for fingers other than the left thumb and five key switches 16 (K6 to K0) for fingers other than the right thumb are arranged. Have been. Note that two key switches (K1, K2 and K6, K7) are assigned to the index finger, respectively.
[0009]
A USB connector 17 is provided on the side surface (lower surface) for connection to a PC or the like serving as a parent device via a USB cable 18. The input device 10 of the present invention is used by sandwiching the input device 10 from both sides with the left and right palms. Therefore, both side surfaces of the device are depressed to match the shape of the hand.
[0010]
FIG. 2 is a circuit diagram showing a hardware configuration of the input device of the present invention. The one-chip microcomputer 30 includes a CPU, a ROM, a RAM, a timer, an interrupt control circuit, parallel / serial and USB input / output ports, a clock oscillation circuit, and the like, and executes processing described later. As such a computer 30, for example, 16C765 (registered trademark) manufactured by Microchip Technology (registered trademark) can be used.
[0011]
The power switch 14 is turned off at the center, switched to power supply from the USB on the left, and switched to power supply from the built-in battery 41 on the right. By applying a power supply voltage to the digital input terminal of the computer 30 in the case of USB, it is possible to recognize which power supply the computer 30 is using. Further, the power is supplied to the wireless transmission / reception unit 40 only when it is driven by a battery, but it may be connected to the same power line as the computer 30. In order to implement the present invention, any one of the USB and the wireless transmission / reception unit is required. The crystal oscillator 45 and the two capacitors 46 and 47 are connected to a built-in clock oscillation circuit.
[0012]
The acceleration sensor IC 31 is an IC in which a two-axis acceleration sensor and peripheral circuits are integrated, and outputs, for example, outputs Sx and Sy of the respective axis sensors as PWM signals. Note that ADXL202 (registered trademark) of Analog Devices (registered trademark) can be used as such an acceleration sensor IC. The output signals Sx and Sy of the sensors are connected to a digital input terminal of a computer 30. The computer 30 detects the pulse width by sampling by a timer interrupt, as will be described in detail later.
[0013]
The acceleration sensor described above detects acceleration in two directions perpendicular to each other on a plane parallel to the surface of the chip. When the chip is mounted parallel to the surface of the input device 10 and the input device is held at an angle, the gravitational acceleration is superimposed on the output. Therefore, in the embodiment, the mouse is moved by the acceleration sensor output only when the acceleration sensor mouse button is turned on, the acceleration value when the button is turned on is stored as an offset value, and the acceleration detected thereafter is stored. The gravitational acceleration is canceled by subtracting from the value. In addition, since the input device is normally used by being held obliquely, the acceleration sensor may be mounted so that the acceleration sensor is substantially horizontal when held at an angle.
[0014]
Outputs of the key switch input circuits 50 and 53 each including 18 key switches 51 and a pull-up resistor 52 are connected to a digital input terminal of the computer 30. Further, three digital output terminals of the computer 30 are connected to the display LED 61 (13) via the resistor 60.
[0015]
The two USB input / output terminals of the computer 30 are connected to the USB connector 32 (17) via the resistors 33 and 34. In order to recognize the input device of the present invention as a low-speed device, a 3.3 V output from the computer 30 is connected to the D- side of the USB terminal via the resistor 35.
[0016]
The wireless transmission / reception unit 40 is a unit conforming to a wireless interface specification such as the Bluetooth (registered trademark) standard, and is connected to the computer 30 via, for example, a serial interface terminal. Such units are commercially available.
[0017]
FIG. 3 is a flowchart showing the contents of the control program in the input device of the present invention. This program starts when the power switch is turned on. In S10, the contents of registers and memories, the state of input / output circuits, and the like are initialized. In S11, it is determined whether or not a USB connection is established (= wireless connection). If the determination result is affirmative, the process proceeds to S12. If the determination result is negative, the process proceeds to S13. In S12, negotiation with the parent device (PC) is performed based on the USB standard. In S13, negotiation with the parent device (PC) is performed based on a wireless connection standard such as Bluetooth (registered trademark).
[0018]
In S14, the current state is displayed on the state display LED 13. In S15, it is determined whether or not a predetermined time has elapsed since the previous key input process. If the result is negative, the process proceeds to S16, but if affirmative, the process proceeds to S1. In S1, a key input process shown in FIG. 4 is executed.
In S16, it is determined whether or not a predetermined time has elapsed from the previous mouse process. If the result is negative, the process proceeds to S17, but if affirmative, the process proceeds to S2. In S2, a mouse process shown in FIG. 6 is executed.
[0019]
In S17, it is determined whether or not data has been received from the parent device. If the result is negative, the process returns to S14, but if affirmative, the process proceeds to S18. In S18, the output code conversion table data of a predetermined format transmitted from the master unit is received. The conversion table is transmitted when the user sets / changes the content in the master unit (PC) to an arbitrary content and issues a download instruction to the input device 10.
[0020]
The contents of the conversion table define, for example, code data to be output for an arbitrary combination of key switches as operation means. When a plurality of modes are provided, there are as many tables as there are modes. A code not used as an output code is assigned as a code for internal control of an input device such as a mode transition or an extended function.
In S19, the received table data is written into, for example, an EEPROM in the computer 30.
[0021]
FIG. 4 is a flowchart showing the contents of the key input process of S1. In S20, the state of each key switch is read from the input port. In S21, it is determined whether or not the read state is a repeat (REP) pattern. If the determination result is affirmative, the process proceeds to S22, but if negative, the process proceeds to S23. In order to immediately start the repeat operation when the repeat pattern is turned on, an operation pattern including the repeat pattern is not assigned to another character.
[0022]
In S23, it is compared with the switch state information read in the immediately preceding process, and in S24, it is determined whether or not there is a switch that has changed from on to off, and if the result is negative, the process proceeds to S36. However, if affirmative, the process proceeds to S25. In S25, it is determined whether or not there is a reservation, for example, based on whether or not the content of the reservation register is other than 0. If the result is negative, the process proceeds to S36, but if affirmative, the process proceeds to S26. .
[0023]
In S26, code information to be output is determined with reference to the conversion table based on the contents of the reservation register, the contents of the mode register, and the contents of the flag register.
[0024]
FIG. 9 is an explanatory diagram showing an example of the contents of a conversion table in the input device of the present invention. This embodiment discloses an example having two modes, an alphanumeric mode (upper) and a number (number) mode (lower). In each mode, a code to be output for a combination when one or zero keys are respectively turned on from the set of K1 to K5, K6 to K0, and Ka to Kb is indicated by a corresponding character. . Although not employed in this table, a pattern in which a plurality of keys are turned on in each of the above sets, such as turning on K2 and K3 simultaneously, may be adopted.
[0025]
When the user inputs, for example, "A", only K1 (left index finger) is turned on and then turned off. When "7" is input, K1 (left index finger), K8 (right middle finger), and Kb (left thumb) are turned on in an arbitrary order, and then any key is turned off.
[0026]
Returning to FIG. 4, in S27, it is determined whether or not the conversion result (output code) based on the table is “Numlock”. If the result is affirmative, the process proceeds to S28 and the mode flag (0: alphabetic mode, 1 : Numerical mode), but if not, the process moves to S29. In S29, it is determined whether the conversion result is “shift”, “ctrl”, or “alt”. If the result is affirmative, the process proceeds to S30, but if negative, the process proceeds to S32.
[0027]
In S30, the content of the flag corresponding to "shift", "ctrl" or "alt" is inverted, and in S31, an ON or OFF key code signal corresponding to the flag is output based on the content of the flag.
[0028]
In S32, the ON signal and the OFF signal of the output code determined in S26 are output to the master unit, and the output code information and the state of the flag are stored in a specific register or the like for repeat processing. In S33, if any of the three flags “shift”, “ctrl”, and “alt” are on, they are turned off, and the corresponding off signal is output.
[0029]
In S34, the reservation is cleared by, for example, writing 0 to the reservation register. In S35, it is determined whether or not there is any switch that has been turned on. If the result is affirmative, the process shifts to S36 to update the reservation information by overwriting the current switch state in the reservation register. In S37, the current switch state is stored for the next key input process.
[0030]
In S38, it is determined whether or not any of the cursor keys (M1 to M4) is on. If the determination result is affirmative, a cursor key code corresponding to the on key in S39 is output. I do. However, when the Mb key is on, the cursor key code is not output because the instruction is to move the mouse cursor.
[0031]
FIG. 5 is a flowchart showing the contents of the repeat processing in S22. In S50, data is read from the register storing the output code, and an ON signal and an OFF signal are sequentially output to the parent device. In S51, a timer for measuring the output cycle is started. In S52, it is determined whether or not the timer has timed out. If the result is affirmative, the process returns to S50, but if negative, the process proceeds to S53. In S53, the switch state is read, and it is determined whether the state has changed from the repeat pattern. If the result is negative, the process returns to S52, but if the result is affirmative, the repeat process ends.
[0032]
FIG. 8 is a timing chart showing a switch operation example of the input device of the present invention. In this example, the key switches of Kb, K6, and K1 are sequentially turned on, then K6 is turned off, K7 is turned on, K7 is turned off, and K1 is turned off. First, the reservation information is updated when each key is turned on, and the reservation information is "b16" when K1 is turned on.
[0033]
Next, when K6 is turned off, a code (corresponding to "5" in the example of FIG. 9) corresponding to the reservation information is output, and the reservation information is cleared. Therefore, nothing is output when the next K6 is turned off. Next, when K7 is turned on, "17" is reserved, and when K7 is turned off, a code corresponding to "F" is output.
[0034]
FIG. 6 is a flowchart showing the contents of the mouse processing in S2. In this embodiment, the mouse cursor is moved based on the acceleration sensor only when the acceleration mouse key (Ma) is on. When the cursor mouse key (Mb) is on, the mouse cursor is moved based on the cursor keys (M1 to M4).
[0035]
In S60, it is determined whether or not the acceleration mouse key (Ma) is on. If the determination result is affirmative, the process proceeds to S61; if negative, the process proceeds to S64. In S61, the acceleration values Ax and Ay read into the memory are read out by an interrupt process described later, and the offset values Ox and Oy stored for canceling the gravitational acceleration are respectively subtracted. In S62, the subtraction result is added to each integral value, and the integral value is updated.
[0036]
In S63, a mouse movement signal is generated based on the value of the integration value. That is, when the integral value is large, a large number of mouse movement signals are generated and the mouse is moved quickly. When the integrated value is equal to or less than a predetermined value, no mouse movement signal is generated.
[0037]
In S64, it is determined whether or not the cursor mouse key (Mb) is on. If the determination result is affirmative, the process proceeds to S67, but if negative, the process proceeds to S65. In S65, the acceleration values Ax and Ay are read, and overwritten and stored as offset values Ox and Oy. In S66, the integral value of each axis is reset to zero.
[0038]
In S67, it is determined whether or not any of the cursor keys (M1 to M4) is on. If the determination result is affirmative, the process proceeds to S68, but if negative, the process proceeds to S69. In S68, a mouse movement signal in a direction corresponding to the turned-on cursor key is generated.
[0039]
In S69, it is determined whether or not the mouse button is on. In the input device of the present invention, the mouse buttons also serve, for example, the K6 and K7 keys, and when the acceleration mouse key (Ma) or the cursor mouse key (Mb) is on, the K6 and K7 keys are used as the left mouse button. Regarded as the right mouse button. When the determination result is affirmative, the process proceeds to S70, and when the result is negative, the process proceeds to S71.
[0040]
In S70, it is determined whether or not the ON button was OFF in the previous processing based on the state information stored in the previous processing, and if the determination result is affirmative, the process proceeds to S72 to output an ON signal. In S71, it is determined based on the state information stored in the previous processing whether or not any of the buttons was ON in the previous processing, and if the determination result is affirmative, the flow shifts to S73 to output an OFF signal. .
With the above processing, for example, while the acceleration mouse key (Ma) is on, if the input device is moved back and forth and left and right, the mouse cursor follows this.
[0041]
FIG. 7 is a flowchart showing the contents of the timer interrupt processing. This program is started by a timer interrupt of a predetermined cycle. In S80, it is determined whether or not the X-axis PWM output signal Sx of the acceleration sensor IC is 1; if the determination result is affirmative, the process proceeds to S81; if negative, the process proceeds to S82. In S81, 1 is added to the count data Cx.
[0042]
In S82, it is determined whether or not the count data Cx is 0. If the determination result is affirmative, the process proceeds to S85, but if negative, the process proceeds to S83. In S83, the count data Cx is updated by overwriting the acceleration value Ax. In S84, Cx is reset to 0. In S85 to S89, the same processing as in S80 to S84 is performed for the Y axis. With the above processing, the current acceleration value is always stored in Ax and Ay.
[0043]
Although the embodiments of the present invention have been disclosed above, the present invention may have the following modifications. In the embodiment, the acceleration is integrated in S62 of the flowchart of FIG. 6, and the moving speed of the mouse is controlled according to the integrated value. However, when the gravitational acceleration is used, even if the input device is simply inclined, the acceleration output changes. Therefore, the processing of S62 may be deleted, and the moving speed of the mouse may be controlled by the acceleration value itself. In this case, the mouse cursor moves by tilting the input device in the direction in which the mouse cursor is to be moved.
[0044]
In the embodiment, in order to realize the repeat function, an embodiment in which a repeat pattern is provided and the immediately preceding output is repeated when turned on is disclosed. However, as another method, the same pattern is used for a predetermined time (for example, 3 seconds). The repeat operation may be started by continuing to turn on, or the repeat may be started by turning on the same code output three times in a short time.
[0045]
In the embodiment, the example in which the code is output when the pattern is turned off is disclosed.However, it is determined whether the pattern is a final pattern or an intermediate pattern to which no further on is added. You may make it.
In the embodiment, the example in which the acceleration sensor is used is disclosed. However, a known pad or joystick may be provided instead of the acceleration sensor as the mouse operating means. In this case, the character cursor can be moved by a pad or a joystick.
[0046]
In the embodiment, an example in which the input device is connected to a personal computer is disclosed. However, the input device of the present invention can be connected to or incorporated in any device that requires information input, such as a personal computer, a PDA, and a mobile phone. It is.
[0047]
【The invention's effect】
As described above, in the present invention, it is possible to input a large number of characters by a combination of a plurality of operations using operation / input means such as a switch and a touch sensor, and further to adjust the shape and the input pattern. / Change is possible, and since it is held with both hands, it is possible to input characters similar to those of a full keyboard while standing. Further, by customizing the conversion table, there is an effect that, for example, even a person who can operate only a part of the fingers can operate the PC.
[Brief description of the drawings]
FIG. 1 is a front view and a rear view showing the shape of an input device according to the present invention.
FIG. 2 is a circuit diagram showing a hardware configuration of the input device of the present invention.
FIG. 3 is a flowchart showing the contents of a control program of the input device.
FIG. 4 is a flowchart showing the contents of a key input process of S1.
FIG. 5 is a flowchart showing the contents of a repeat process in S22.
FIG. 6 is a flowchart showing the contents of a mouse process in S2.
FIG. 7 is a flowchart showing the contents of a timer interrupt process.
FIG. 8 is a timing chart showing a switch operation example of the input device of the present invention.
FIG. 9 is an explanatory diagram showing an example of the contents of a conversion table in the input device.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 ... Input device, 11, 12 ... Key switch, 13 ... LED, 14 ... Power switch, 15, 16 ... Key switch, 17 ... USB connector, 18 ... USB cable, 30 ... Microcomputer, 31 ... Acceleration sensor IC, 32 ... USB connector, 33, 34, 35 ... resistor, 40 ... wireless transmission / reception unit, 41 ... battery, 43 ... capacitor, 45 ... crystal oscillator, 46, 47 ... capacitor, 50, 53 ... switch input circuit, 51 ... key switch , 52: pull-up resistor, 60: resistor, 61: LED for display

Claims (5)

使用者が両手で支持して使用する板状の入力装置であって、
当該装置の両面に配置された複数のスイッチ手段と、
前記複数のスイッチ手段のオンオフ状態情報を周期的に入力する走査手段と、前記複数のスイッチ手段のいずれかのオン状態を検出した場合には現在のオンパターン情報を予約する予約手段と、
前記複数のスイッチ手段のいずれかのオフ状態を検出した場合には、予約情報がある場合には当該予約情報と対応する出力コードを生成して出力すると共に予約情報を消去し、予約情報がない場合には何もしない出力手段と
を備えたことを特徴とする入力装置。
A plate-shaped input device used and supported by the user with both hands,
A plurality of switch means arranged on both sides of the device;
Scanning means for periodically inputting on / off state information of the plurality of switch means, and reservation means for reserving current on-pattern information when an on state of any of the plurality of switch means is detected,
If any of the plurality of switch units is detected to be off, if there is reservation information, an output code corresponding to the reservation information is generated and output, and the reservation information is deleted, and there is no reservation information. An input device comprising: an output unit that does nothing in a case.
前記装置の一方の面の片方の手に対応する5個のスイッチに日本語の母音と対応するアルファベットを割り当てたことを特徴とする請求項1に記載の入力装置。The input device according to claim 1, wherein alphabets corresponding to Japanese vowels are assigned to five switches corresponding to one hand on one surface of the device. 更に、装置の2方向の加速度を検出する加速度検出手段と、
検出された2方向の加速度をそれぞれ積分する積分手段と、
所定の周期の間に前記積分値に対応するマウス移動信号を出力するマウス信号出力手段と
を備えたことを特徴とする請求項1に記載の入力装置。
Further, acceleration detecting means for detecting acceleration in two directions of the device,
Integrating means for integrating the detected accelerations in the two directions, respectively;
2. The input device according to claim 1, further comprising a mouse signal output unit that outputs a mouse movement signal corresponding to the integration value during a predetermined period.
更に、操作手段のオンオフ状態が特定のパターンであることを検出した場合に、直前の出力コードを所定の周期で繰り返し出力するリピート手段を備えたことを特徴とする請求項1に記載の入力装置。2. The input device according to claim 1, further comprising: a repeat unit for repeatedly outputting the immediately preceding output code at a predetermined cycle when the on / off state of the operation unit is detected to be a specific pattern. . 請求項1乃至4のいずれかの入力装置を備えたことを特徴とするコンピュータ装置。A computer device comprising the input device according to claim 1.
JP2002241379A 2002-08-22 2002-08-22 Input device and computer device Pending JP2004078799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002241379A JP2004078799A (en) 2002-08-22 2002-08-22 Input device and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002241379A JP2004078799A (en) 2002-08-22 2002-08-22 Input device and computer device

Publications (1)

Publication Number Publication Date
JP2004078799A true JP2004078799A (en) 2004-03-11

Family

ID=32023876

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002241379A Pending JP2004078799A (en) 2002-08-22 2002-08-22 Input device and computer device

Country Status (1)

Country Link
JP (1) JP2004078799A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328523A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Power switch management method, device, equipment and storage medium
CN113328521A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Edge processing method, device and equipment for power switch state and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328523A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Power switch management method, device, equipment and storage medium
CN113328521A (en) * 2021-05-31 2021-08-31 广东电网有限责任公司 Edge processing method, device and equipment for power switch state and storage medium

Similar Documents

Publication Publication Date Title
EP1747050B1 (en) An electronic device and a game controller
JP5243967B2 (en) Information input using sensors attached to fingers
US6498601B1 (en) Method and apparatus for selecting input modes on a palmtop computer
US8665218B2 (en) Portable device
US20160170498A1 (en) Ergonomic data entry device
JP2008507754A (en) Active keyboard system for handheld electronic devices
JPH1063467A (en) Method and device for one button system list retrieval
WO2008020538A1 (en) Portable electronic device and method for controlling same
Ferscha et al. Physical shortcuts for media remote controls
US20060164392A1 (en) Integrated mouse and the keyboard device
CN200987211Y (en) Mobile telephone set
KR200401975Y1 (en) A controlling device for computer
EP3472689B1 (en) Accommodative user interface for handheld electronic devices
JP2004078799A (en) Input device and computer device
CN201364558Y (en) Combined multifunctional handle
JP2003103051A (en) Transparent touch panel device for portable type video game machine
JP2002318640A (en) Compact electronic equipment
CN210155631U (en) Portable smart mobile phone input device
JPH11272360A (en) Portable electronic instrument
WO2002069123A1 (en) Input apparatus, input method, and computer aparatus
TWM573462U (en) Computer device
KR200225967Y1 (en) Portable Information Terminal
WO2000069075A1 (en) Adc sharing for keypad and touch panel of a phone
KR20070103268A (en) User input device of potable terminal
KR101118224B1 (en) A realization method of mouse function buttom using keyboard in notebook computer