JP3021869B2 - Counting device and underwater glasses using the counting device - Google Patents

Counting device and underwater glasses using the counting device

Info

Publication number
JP3021869B2
JP3021869B2 JP3305117A JP30511791A JP3021869B2 JP 3021869 B2 JP3021869 B2 JP 3021869B2 JP 3305117 A JP3305117 A JP 3305117A JP 30511791 A JP30511791 A JP 30511791A JP 3021869 B2 JP3021869 B2 JP 3021869B2
Authority
JP
Japan
Prior art keywords
data area
azimuth
value
azimuth data
flag data
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.)
Expired - Fee Related
Application number
JP3305117A
Other languages
Japanese (ja)
Other versions
JPH05143807A (en
Inventor
計文 臼井
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP3305117A priority Critical patent/JP3021869B2/en
Publication of JPH05143807A publication Critical patent/JPH05143807A/en
Application granted granted Critical
Publication of JP3021869B2 publication Critical patent/JP3021869B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Navigation (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、方位センサを利用し、
周回運動、往復運動などの周回数、又は往復回数等を計
数する計数装置に関する。及びこの計数装置を備え、往
復回数を自動的に計数することの可能な水中眼鏡に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention utilizes an orientation sensor,
The present invention relates to a counting device for counting the number of revolutions such as orbiting motion and reciprocating motion, or the number of reciprocating motions. And an underwater spectacle provided with the counting device and capable of automatically counting the number of reciprocations.

【0002】[0002]

【従来の技術】近年では、健康維持のため定期的に運動
を繰り返し行う人が多くなっているが、このような時に
なされる往復運動、周回運動、例えばプールでの水泳等
で繰り返し往復運動する場合、又は楕円形のトラックを
何周も走る場合等は、往復が度重なると往復回数を覚え
ておくことが煩わしくなり、何回往復、又は周回したか
を正確に記憶していない場合が多い。また、スポーツと
して訓練する場合では、往復回数、又は周回数を覚える
等の煩わしさから選手を解放して練習に専念できるよう
にすることが好ましいが、このような場合は例えば他の
者が計数器等を用いて往復回数を数えなければならな
い。
2. Description of the Related Art In recent years, the number of people who repeatedly exercise regularly to maintain their health has increased. However, reciprocating exercises and orbital exercises performed at such times, for example, reciprocating exercises such as swimming in a pool, etc., have been repeated. In many cases, such as when running on an elliptical track many times, it is cumbersome to remember the number of round trips, and often the number of round trips or rounds is not accurately stored. . In the case of training as a sport, it is preferable to release the player from the hassle of remembering the number of round trips or the number of laps, so that the player can concentrate on the practice. The number of round trips must be counted using a container or the like.

【0003】[0003]

【発明が解決しようとする課題】健康維持のためであっ
ても、また、自主的な訓練を目的としたものであって
も、定期的に行う運動では、毎回一定の運動量とする
か、あるいは毎回一定量を増して徐々に運動量を上げる
等のことが効果的であるとされるが、このような時に、
何回往復、又は周回したかを正確に記憶していないと、
目標が定まらなくなり、折角定期的に運動してもその効
果が期待できないことになる。
Whether exercise is performed for maintaining health or for voluntary training, exercise that is carried out regularly has a constant amount of exercise every time. It is said that it is effective to increase the amount of exercise each time by increasing the fixed amount, but in such a case,
If you do not remember exactly how many round trips or laps you have made,
The goal is not settled, and the effect cannot be expected even if you exercise regularly.

【0004】本発明の課題は、往復回数、又は周回数を
自動的に計数して表示報知してくれるような装置を提供
することを目的とする。
An object of the present invention is to provide a device which automatically counts the number of reciprocations or the number of rounds and informs the display.

【0005】[0005]

【課題を解決するための手段】本発明の手段は次の通り
である。請求項1記載の計数装置においては、まず、方
位検知手段は地磁気の方位を検知する。同手段は、例え
ば磁気センサ等からなる。つぎに、回転検出手段は方位
検知手段により検知される方位の変化に基づいて運動の
方向が一回転したことを検出する。同手段は、例えば方
位信号を記憶するためのレジスタ、クロック信号を生成
するための発振回路、ROM(リード・オンリ・メモ
リ)に記憶されたプログラムに基づいて演算を行なうC
PU(中央演算処理装置)等からなる。さらに、計数手
段は回転検出手段により検出される運動の方向が一回転
した回数を計数する。同手段は、例えば、RAM(Rando
m Access Memory)内に設けられたカウンタレジスタ等か
らなる。
The means of the present invention are as follows. In the counting device according to the first aspect, first, the azimuth detecting means detects the azimuth of the geomagnetism. The means comprises, for example, a magnetic sensor or the like. Next, the rotation detecting means detects that the direction of the motion has made one rotation based on the change in the azimuth detected by the azimuth detecting means. The means includes, for example, a register for storing an azimuth signal, an oscillation circuit for generating a clock signal, and a C for performing an operation based on a program stored in a ROM (Read Only Memory).
It consists of a PU (Central Processing Unit) and the like. Further, the counting means counts the number of times the direction of the motion detected by the rotation detecting means has made one rotation. The means is, for example, RAM (Rando
m Access Memory).

【0006】請求項2記載の計数装置においては、回転
検出手段は、方位が反転した事から、運動の方向が一回
転した事を検出する。例えばCPUにおいて、反転を検
出する演算が行われる。
In the counting device according to the present invention, the rotation detecting means detects that the direction of the motion has made one rotation since the azimuth has been reversed. For example, in the CPU, an operation for detecting inversion is performed.

【0007】請求項3記載の水中眼鏡においては、請求
項1又は2記載の計数装置を有し、さらに表示手段は計
数装置により計数される運動の往復回数を算出して表示
する。同手段は、例えばCPU(中央演算処理装置)、
液晶表示装置等からなる。
According to a third aspect of the present invention, there is provided the underwater glasses having the counting device according to the first or second aspect, and the display means calculates and displays the number of reciprocations of the movement counted by the counting device. The means include, for example, a CPU (Central Processing Unit),
It consists of a liquid crystal display device and the like.

【0008】[0008]

【作用】本発明の手段の作用は次の通りである。まず、
請求項1記載の計数装置では、方位検知手段により地磁
気の方位が検知され、回転検出手段により上記検知され
る方位の変化に基づいて運動方向が一回転したことが検
出され、計数手段により上記検出される運動方向の回転
回数が計数される。
The operation of the means of the present invention is as follows. First,
In the counting device according to the first aspect, the azimuth of the geomagnetism is detected by the azimuth detecting means, the rotation detecting means detects that the movement direction has made one rotation based on the change of the detected azimuth, and the counting means detects the azimuth. The number of rotations in the given movement direction is counted.

【0009】これにより、周回運動の周回数、又は往復
運動の往復回数が自動的に計数される。次に請求項2の
計数装置では、回転検出手段は検知された方位の反転に
基づいて運動方向が一回転したことを検出することによ
り、周回運動の周回数、又は往復運動の往復回数が自動
的に計数される。
As a result, the number of revolutions of the reciprocating motion or the number of reciprocating motions of the reciprocating motion are automatically counted. Next, in the counting device according to claim 2, the rotation detecting means detects that the movement direction has made one rotation based on the reversal of the detected azimuth. Are counted.

【0010】次に、請求項3記載の水中眼鏡では、請求
項1又は2記載の反転検出装置の有する各手段の作用に
加え、さらに表示手段により上記計数される運動の往復
回数が算出されて表示される。
Next, in the underwater glasses according to the third aspect, in addition to the operation of each means of the inversion detecting device according to the first or second aspect, the number of reciprocations of the counted movement is calculated by the display means. Is displayed.

【0011】これにより、運動の往復回数が自動的に表
示され、使用者は往復回数を視る事ができる。
Thus, the number of reciprocations of the exercise is automatically displayed, and the user can see the number of reciprocations.

【0012】[0012]

【実施例】以下、本発明の実施例について、図面を参照
しながら説明する。図1(a) は本発明の第一実施例に係
わる水中眼鏡の外観上面図、同図(b) はその正面図であ
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1A is an external top view of the underwater glasses according to the first embodiment of the present invention, and FIG. 1B is a front view thereof.

【0013】同図(a),(b) において、水中眼鏡1は、前
方に眼鏡用透明板2が取り付けられた眼鏡枠3、及びそ
の眼鏡枠3を頭に装着するためのバンド4からなり、上
記眼鏡枠3の正面中央部には、押釦型スイッチ6を有す
る計数器5、及びその計数器5に接続され眼鏡枠3の左
枠内面に表示面を有する表示装置7が設けられている。
1 (a) and 1 (b), an underwater spectacle 1 comprises a spectacle frame 3 on which a spectacle transparent plate 2 is mounted in front and a band 4 for mounting the spectacle frame 3 on a head. A counter 5 having a push button type switch 6 and a display device 7 connected to the counter 5 and having a display surface on the inner surface of the left frame of the spectacle frame 3 are provided at the front center of the spectacle frame 3. .

【0014】この水中眼鏡1を着用した際、表示装置7
に表示される後述する往復回数データの表示、例えば
「2」を内側から見た状態を図6に示す。図2は、上記
計数器5の内部回路構成を示すブロック図である。
When the underwater glasses 1 are worn, the display device 7
FIG. 6 shows a display of the number of reciprocation times data described later, for example, “2” viewed from the inside. FIG. 2 is a block diagram showing the internal circuit configuration of the counter 5.

【0015】同図において、制御部20は、マイクロプ
ロセッサ等から成り、特には図示しない内蔵のROM(R
ead Only Memory)に記憶されているマイクロプログラム
に従って動作しシステム全体を制御する。
In FIG. 1, a control unit 20 is composed of a microprocessor or the like.
It operates according to a microprogram stored in an ead Only Memory (Ead Only Memory) and controls the entire system.

【0016】センサ駆動回路21は、基準電圧発生回
路、定電流回路等からなり、制御部20から加わる制御
信号に基づいて後述する方位センサ22に交流バイアス
電圧及び定電流を印加する。
The sensor drive circuit 21 includes a reference voltage generation circuit, a constant current circuit, and the like, and applies an AC bias voltage and a constant current to a direction sensor 22 described later based on a control signal applied from the control unit 20.

【0017】方位センサ22は、互いに直角になるよう
配置された二個の磁気センサ22−1、22−2から構
成される。それら二個の磁気センサ22−1、22−2
は、それぞれ例えば磁気抵抗素子、バイアス磁界用コイ
ル等からなり、バイアス磁界用コイルに交流バイアス電
圧を印加されたとき、磁気抵抗素子に加わる定電流に対
してそれぞれ別々に感知した地磁気の成分に対応する電
圧抵抗値を、検出回路23又は24に出力する。
The azimuth sensor 22 is composed of two magnetic sensors 22-1 and 22-2 arranged at right angles to each other. These two magnetic sensors 22-1, 22-2
Consists of, for example, a magneto-resistive element and a bias magnetic field coil.When an AC bias voltage is applied to the bias magnetic field coil, it corresponds to the geomagnetic component sensed separately for the constant current applied to the magneto-resistive element. The detected voltage resistance value is output to the detection circuit 23 or 24.

【0018】検出回路23及び24は、それぞれピーク
ホールド回路からなり、それぞれ、方位センサ22から
出力される電圧抵抗値を検出して電極25−1、25−
2へ出力する。
The detection circuits 23 and 24 each comprise a peak hold circuit, which detects the voltage resistance value output from the direction sensor 22 and detects the electrodes 25-1 and 25- respectively.
Output to 2.

【0019】A/D変換器26はアナログ電気信号をデ
ィジタル電気信号に変換する回路であり、上記2つの検
出回路23、24から電極25−1、25−2に加わる
2種類のアナログ電圧出力を、制御部20から加わる制
御信号に基づいて、スイッチ26−1及び電極26−2
を介して、適切なタイミングで交互切り換えながら取り
込んでディジタル信号に変換し、そのディジタル信号を
制御部20に出力する。
The A / D converter 26 is a circuit for converting an analog electric signal into a digital electric signal, and outputs two kinds of analog voltage outputs applied to the electrodes 25-1 and 25-2 from the two detection circuits 23 and 24. , Switch 26-1 and electrode 26-2 based on a control signal applied from control unit 20.
And converts it into a digital signal while alternately switching it at an appropriate timing, and outputs the digital signal to the control unit 20.

【0020】表示部27は、図6に示すように、例えば
2桁の7セグメント表示部からなる液晶表示装置7を備
えており、制御部20から加わる表示信号をデコードし
て、表示データを液晶表示装置7に表示する。
As shown in FIG. 6, the display unit 27 includes a liquid crystal display device 7 comprising, for example, a two-digit seven-segment display unit. The display unit 27 decodes a display signal applied from the control unit 20 and converts the display data into liquid crystal. It is displayed on the display device 7.

【0021】入力部28は、図1に示した押釦型スイッ
チ6を備えており、その押釦型スイッチ6の操作信号を
制御部20に出力する。制御部20は、入力部28から
加わる押釦型スイッチ6の最初のキー入力信号によりオ
ンとなってシステムの制御を開始し、センサ駆動回路2
1及びA/D変換器26へそれぞれ制御信号を出力して
起動する。そして、A/D変換器26から交互に入力す
る上記電圧抵抗の強さを現わす2種類のディジタル信号
と、二個の磁気センサが配置されている方向とに基づい
て演算をなし、地磁気北極を示す方位を検出し、その検
出した地磁気北極を示す方位と計数器5の押釦型スイッ
チ6の取り付け方向との角度を算出して、その押釦型ス
イッチ6の取り付け方向の方位を検出する。そして、上
記検出した押釦型スイッチ6の取り付け方向の方位の詳
しくは後述する反転回数を計数することにより往復回数
を計数して、例えば図6に示すようにその往復回数デー
タ「2」を、表示部27の液晶表示装置7に表示する。
制御部20は、入力部28から押釦型スイッチ6の次の
キー入力信号が加わるまで、上記制御を定周期で繰り返
えす。
The input unit 28 includes the push button type switch 6 shown in FIG. 1 and outputs an operation signal of the push button type switch 6 to the control unit 20. The control unit 20 is turned on by the first key input signal of the push button type switch 6 applied from the input unit 28 and starts control of the system.
1 and output a control signal to the A / D converter 26 to start up. An arithmetic operation is performed based on two kinds of digital signals indicating the strength of the voltage resistance alternately input from the A / D converter 26 and the direction in which the two magnetic sensors are arranged, and the geomagnetic north pole Is calculated, and the angle between the detected direction indicating the geomagnetic north pole and the mounting direction of the push button type switch 6 of the counter 5 is calculated, and the direction of the mounting direction of the push button type switch 6 is detected. The number of reciprocations is counted by counting the number of reversals, which will be described later, in detail, and the number of reciprocations is displayed, for example, as shown in FIG. It is displayed on the liquid crystal display device 7 of the section 27.
The control unit 20 repeats the above-described control at a constant period until a next key input signal of the push button type switch 6 is applied from the input unit 28.

【0022】ここで、上記方位センサ22について説明
する。図5(a) は方位センサ22、同図(b) は地磁気北
極の方位、同図(c) は同図(a) に示す方位センサ22の
位置を北向きと設定して、その方位センサ22を矢印C
のD又はE向きに回転させたとき、2個の磁気センサA
(22−1)、B(22−2)により夫々出力される電
圧抵抗値の特性図である。実線が磁気センサAの出力、
破線が磁気センサBの出力である。それぞれの出力は、
方位センサ22が矢印CのD向きに、北、東、南、西、
再び北と回転すれば、その回転位置に対応して横軸の
「0」から「H」までに示す特性の出力となり、一方、
方位センサ22が矢印CのE向きに回転すれば横軸の
「H」から「0」までに示す特性の出力となる。したが
って、磁気センサAの出力と磁気センサBの出力との差
を演算して、その演算により得られた値から方位センサ
22の向きを知ることができる。即ち、例えば、kを定
電流の値と磁気抵抗素子の抵抗特性とから得られる係数
とし、αを方位センサ22の北向きから時計回りの回転
角とすれば、同図(c) から、時計回りに磁気センサAの
出力値はk×sinα、磁気センサBの出力値はk×c
osαで表すことができ、したがって、その差の値はk
(sinα−cosα)またはk(cosα−sin
α)で表す特性値を示す。したがって、方位センサ22
の2個の磁気センサA、Bの出力の差を算出した演算結
果から、上記特性値を伝達関数として方位センサ22が
示す方位を検出することができる。
Here, the direction sensor 22 will be described. FIG. 5A shows the direction sensor 22, FIG. 5B shows the direction of the geomagnetic north pole, and FIG. 5C shows the position of the direction sensor 22 shown in FIG. 22 to arrow C
When rotated in the direction of D or E, two magnetic sensors A
It is a characteristic diagram of the voltage resistance value respectively output by (22-1) and B (22-2). The solid line is the output of the magnetic sensor A,
The broken line is the output of the magnetic sensor B. Each output is
The direction sensor 22 moves in the direction of arrow C in the direction of north, east, south, west,
If it rotates north again, the output will have the characteristics shown from "0" to "H" on the horizontal axis corresponding to the rotational position.
When the azimuth sensor 22 rotates in the direction indicated by the arrow E in the direction of the arrow C, an output having characteristics indicated from “H” to “0” on the horizontal axis is obtained. Therefore, the difference between the output of the magnetic sensor A and the output of the magnetic sensor B is calculated, and the direction of the direction sensor 22 can be known from the value obtained by the calculation. That is, for example, if k is a coefficient obtained from the value of the constant current and the resistance characteristic of the magnetoresistive element, and α is the clockwise rotation angle of the azimuth sensor 22 from the north, the clock shown in FIG. The output value of the magnetic sensor A is k × sin α, and the output value of the magnetic sensor B is k × c
osα, and the value of the difference is k
(Sin α-cos α) or k (cos α-sin
α). Therefore, the direction sensor 22
From the calculation result of calculating the difference between the outputs of the two magnetic sensors A and B, the azimuth indicated by the azimuth sensor 22 can be detected using the characteristic values as transfer functions.

【0023】方位センサ22は、人が水中眼鏡1を装着
して仰向け状態、又は俯せ状態になったとき水平となる
よう計数器5内部に配設されている。したがって、水中
眼鏡1を装着した人が水面または水中で仰向け状態又は
俯せ状態であれば、その人の頭の向いている方位を検出
することができ、人が水泳中に反転して頭の向きが反転
すれば方位も反転し、その反転した方位が検出される。
The azimuth sensor 22 is disposed inside the counter 5 so that the azimuth sensor 22 is horizontal when the person wears the underwater glasses 1 and is in a supine or down state. Therefore, if the person wearing the underwater glasses 1 is in the supine or down state on the water surface or in the water, the heading direction of the person can be detected, and the person turns over during swimming and turns his head. Is reversed, the direction is also reversed, and the reversed direction is detected.

【0024】次に、以上の構成の水中眼鏡1において、
水泳中に表示部27の液晶表示装置7に表示するために
制御部20の制御により行なわれる往復回数を計数する
処理動作を、図3のフローチャートを用いて説明する。
なお、この処理では、制御部20は、特には図示しない
内蔵の発振回路から出力されるクロック信号に基づいて
1Hzの時計信号を生成し、この時計信号に同期して処
理を行う。また、これも特には図示しないRAM(Rando
m Access Memory)内に設定されるフラグデータエリアA
F、BF、CF、DF、方位データエリアA、B、C、
D、E、F、及びGが使用される。
Next, in the underwater glasses 1 having the above configuration,
The processing operation of counting the number of reciprocations performed under the control of the control unit 20 for displaying on the liquid crystal display device 7 of the display unit 27 during swimming will be described with reference to the flowchart of FIG.
In this process, the control unit 20 generates a clock signal of 1 Hz based on a clock signal output from a built-in oscillation circuit (not shown), and performs processing in synchronization with the clock signal. Also, this is not particularly shown in the RAM (Rando
m Access Memory) Flag data area A set in
F, BF, CF, DF, azimuth data areas A, B, C,
D, E, F, and G are used.

【0025】図4は、上記各フラグデータ領域に記憶さ
れるデータと各方位データ領域に記憶されるデータとの
関係を説明する図である。まず、同図を参照しながら各
データエリアの機能を列記する。
FIG. 4 is a diagram for explaining the relationship between the data stored in each flag data area and the data stored in each direction data area. First, the functions of each data area will be listed with reference to FIG.

【0026】方位データエリアAは、1秒毎の現在の方
位データを記憶する。例えば同図の時刻T0、T1、T
2(秒)では方位データは「45」(地磁気北極の方位
に対して頭の向きが時計回りに45度、以下同様)、T
3では「135」、T4からTiまでは夫々「22
5」、Ti+1では「110」、そしてTi+2、Ti
+3、・・・ではそれぞれ「45」となっている。
The azimuth data area A stores the current azimuth data every second. For example, at times T0, T1, T in FIG.
At 2 (seconds), the azimuth data is “45” (the head direction is 45 degrees clockwise with respect to the azimuth of the geomagnetic north pole, and so on), T
3 is “135”, and from T4 to Ti is “22” respectively.
5 "," 110 "for Ti + 1, and Ti + 2, Ti
In the case of +3,...

【0027】フラグデータエリアAFは、値が「0」→
「1」→「2」→「3」→「0」と1秒毎に切り替わ
り、4秒毎に巡回する値を採る。方位データエリアB
は、フラグデータエリアAFの値が「0」のときの方位
データ、すなわち4秒で巡回する最初の1秒間の方位デ
ータを記憶し、その記憶した方位データを、次にフラグ
データエリアAFの値が「0」となるまで4秒間維持す
る。
In the flag data area AF, the value is "0" →
"1" → "2" → "3" → "0" is switched every second and takes a value that goes around every four seconds. Orientation data area B
Stores the azimuth data when the value of the flag data area AF is "0", that is, the azimuth data for the first one second of the cycle in 4 seconds, and stores the stored azimuth data and the value of the flag data area AF next. Is maintained for 4 seconds until becomes zero.

【0028】方位データエリアCは、フラグデータエリ
アAFの値が「1」のときの方位データ、すなわち4秒
で巡回する2番目の1秒間の方位データを記憶し、その
記憶した方位データを、次にフラグデータエリアAFの
値が「1」となるまで4秒間維持する。
The azimuth data area C stores the azimuth data when the value of the flag data area AF is "1", that is, the azimuth data for the second one second circulating in four seconds. Next, it is maintained for 4 seconds until the value of the flag data area AF becomes "1".

【0029】方位データエリアDは、フラグデータエリ
アAFの値が「2」のときの方位データ、すなわち4秒
で巡回する3番目の1秒間の方位データを記憶し、その
記憶した方位データを、次にフラグデータエリアAFの
値が「2」となるまで4秒間維持する。
The azimuth data area D stores the azimuth data when the value of the flag data area AF is "2", that is, the azimuth data for the third one second circulating in four seconds. Next, it is maintained for 4 seconds until the value of the flag data area AF becomes “2”.

【0030】方位データエリアEは、フラグデータエリ
アAFの値が「3」のときの方位データ、すなわち4秒
で巡回する4番目の1秒間の方位データを記憶し、その
記憶した方位データを、次にフラグデータエリアAFの
値が「3」となるまで4秒間維持する。
The azimuth data area E stores the azimuth data when the value of the flag data area AF is "3", that is, the azimuth data for the fourth one second circulating in four seconds. Next, it is maintained for 4 seconds until the value of the flag data area AF becomes “3”.

【0031】方位データエリアFは、現在の方位データ
と3秒前の方位データとの差の値を記憶する。方位デー
タエリアGは、現在の方位データが3秒前の方位データ
に対して反転したとき、その反転した現在方位データを
記憶する。
The azimuth data area F stores the difference between the current azimuth data and the azimuth data three seconds ago. The azimuth data area G stores, when the current azimuth data is inverted with respect to the azimuth data three seconds before, the inverted current azimuth data.

【0032】フラグデータエリアBFは、方位が反転し
た時「1」を記憶し、方位データエリアAの方位データ
と方位データエリアGの方位データとが一致するとき値
を順次「1」増加し、「3」となったとき次の処理タイ
ミングで「0」クリアされる。
The flag data area BF stores "1" when the azimuth is inverted, and sequentially increases the value by "1" when the azimuth data of the azimuth data area A and the azimuth data of the azimuth data area G match. When it becomes "3", it is cleared to "0" at the next processing timing.

【0033】フラグデータエリアCFは、フラグデータ
エリアBFの値が「3」となったとき、自己の値が
「0」であれば「1」に、「1」であれば「0」に切り
替わる。フラグデータエリアDFは、フラグデータエリ
アCFの値が「1」から「0」に切り替わる毎に「1」
増加する。
When the value of the flag data area BF becomes "3", the flag data area CF switches to "1" if its value is "0" and to "0" if it is "1". . The flag data area DF becomes "1" each time the value of the flag data area CF switches from "1" to "0".
To increase.

【0034】そして、このフラグデータエリアDFの値
が水泳の往復運動回数として表示部27の液晶表示装置
7に表示される。次に、上記機能を実現する処理動作に
ついて図3のフローチャートを用いて説明する。
Then, the value of the flag data area DF is displayed on the liquid crystal display device 7 of the display unit 27 as the number of times of reciprocating swimming. Next, a processing operation for realizing the above function will be described with reference to a flowchart of FIG.

【0035】同図において、ステップS301では、ま
ず、フラグデータエリアAF、BF、及びCFを「0」
クリアして初期化し、DFには「1」を代入(表示値を
「1」から始める為)する。次に、方位センサ22から
検出回路23、24、及び変換器26を介して入力する
2種類の抵抗電圧値データから現在の方位データを算出
し、その算出した現在の方位データを方位データエリア
C、D及びEに格納して初期化する。
In the figure, in step S301, first, the flag data areas AF, BF and CF are set to "0".
It is cleared and initialized, and "1" is substituted into DF (because the display value starts from "1"). Next, current azimuth data is calculated from two types of resistance voltage data input from the azimuth sensor 22 via the detection circuits 23 and 24 and the converter 26, and the calculated current azimuth data is stored in the azimuth data area C. , D and E for initialization.

【0036】続いてステップS302に進み、上記と同
様にして算出した現在の方位データを方位データエリア
Aに格納する。これにより、図4に示した方位データエ
リアAの、1秒毎の現在の方位データを記憶する機能が
実現される。
Then, the flow advances to step S302 to store the current azimuth data calculated in the same manner as above in the azimuth data area A. Thereby, the function of storing the current azimuth data every second in the azimuth data area A shown in FIG. 4 is realized.

【0037】次に、ステップS303に進んで、フラグ
データエリアAFの値を参照し、その値が「0」であれ
ばステップS304に進む。これにより、処理がスター
トした直後、または4秒間で1番目から4番目まで巡回
する処理を終了した次の巡回処理の1番目の処理では、
ステップS304以降の処理がなされる。
Next, the routine proceeds to step S303, where the value of the flag data area AF is referred to, and if the value is "0", the routine proceeds to step S304. As a result, immediately after the processing is started, or in the first processing of the next cyclic processing in which the processing from the first to the fourth in four seconds is completed,
Processing after step S304 is performed.

【0038】ステップS304では、方位データエリア
Aの値を、方位データエリアBに転送する。これによ
り、図4に示した方位データエリアBの、巡回する最初
の1秒間の方位データを以後4秒間記憶する機能が実現
される。
In step S304, the value of the direction data area A is transferred to the direction data area B. This implements a function of storing the azimuth data of the first one second in the azimuth data area B shown in FIG. 4 for the next four seconds.

【0039】続いて、ステップS305に進み、方位デ
ータエリアAの値から方位データエリアCの値を減算し
て、その減算結果を方位データエリアFに格納する。こ
れにより、図4に示した方位データエリアFの、現在の
方位データと3秒前の方位データとの差の値を記憶する
機能が実現される。
Subsequently, the process proceeds to step S305, in which the value of the azimuth data area C is subtracted from the value of the azimuth data area A, and the result of the subtraction is stored in the azimuth data area F. Thus, a function of storing the value of the difference between the current azimuth data and the azimuth data three seconds before in the azimuth data area F shown in FIG. 4 is realized.

【0040】上記に続いて、ステップS306に進み、
フラグデータエリアAFの値を「1」インクリメントす
る。これにより、次の処理タイミングにおける処理が巡
回処理の2番目の処理であることが設定される。
Following the above, the process proceeds to step S306,
The value of the flag data area AF is incremented by "1". Thereby, it is set that the processing at the next processing timing is the second processing of the cyclic processing.

【0041】次の処理タイミングにおいては、上記ステ
ップS303で、フラグデータエリアAFが「1」とな
っていることを確認してステップS307に進み、方位
データエリアAの値を方位データエリアCに転送する。
これにより、図4に示した方位データエリアCの、巡回
する2番目の1秒間の方位データを以後4秒間記憶する
機能が実現される。
At the next processing timing, it is confirmed in step S303 that the flag data area AF is "1", and the flow advances to step S307 to transfer the value of the azimuth data area A to the azimuth data area C. I do.
Thereby, the function of storing the azimuth data for the second one second in the azimuth data area C shown in FIG. 4 for the next four seconds is realized.

【0042】続いて、ステップS308に進み、方位デ
ータエリアAの値から方位データエリアDの値を減算し
て、その減算結果を方位データエリアFに格納する。こ
れにより、図4に示した方位データエリアFの、現在の
方位データと3秒前の方位データとの差の値を記憶する
機能が実現される。
Subsequently, the process proceeds to step S308, where the value of the azimuth data area D is subtracted from the value of the azimuth data area A, and the result of the subtraction is stored in the azimuth data area F. Thus, a function of storing the value of the difference between the current azimuth data and the azimuth data three seconds before in the azimuth data area F shown in FIG. 4 is realized.

【0043】上記に続いて、ステップS309に進み、
フラグデータエリアAFの値を「1」インクリメントす
る。これにより、次の処理タイミングにおける処理が巡
回処理の3番目の処理であることが設定される。
Following the above, the process proceeds to step S309,
The value of the flag data area AF is incremented by "1". Thereby, it is set that the processing at the next processing timing is the third processing of the cyclic processing.

【0044】そして、次の処理タイミングにおいては、
上記ステップS303で、フラグデータエリアAFが
「2」となっていることを確認してステップS310に
進む。ステップS310では、方位データエリアAの値
を方位データエリアDに転送する。これにより、図4に
示した方位データエリアDの、巡回する3番目の1秒間
の方位データを以後4秒間記憶する機能が実現される。
At the next processing timing,
In step S303, it is confirmed that the flag data area AF is "2", and the process proceeds to step S310. In step S310, the value of the azimuth data area A is transferred to the azimuth data area D. Thus, a function of storing the azimuth data for the third one second in the azimuth data area D shown in FIG. 4 for the next four seconds is realized.

【0045】続いて、ステップS311に進み、方位デ
ータエリアAの値から方位データエリアEの値を減算し
て、その減算結果を方位データエリアFに格納する。こ
れにより、図4に示した方位データエリアFの、現在の
方位データと3秒前の方位データとの差の値を記憶する
機能が実現される。
Subsequently, the flow advances to step S311 to subtract the value of the azimuth data area E from the value of the azimuth data area A and store the result of the subtraction in the azimuth data area F. Thus, a function of storing the value of the difference between the current azimuth data and the azimuth data three seconds before in the azimuth data area F shown in FIG. 4 is realized.

【0046】上記に続いて、ステップS312に進み、
フラグデータエリアAFの値を「1」インクリメントす
る。これにより、次の処理タイミングにおける処理が巡
回処理の4番目の処理であることが設定される。
Following the above, the process proceeds to step S312,
The value of the flag data area AF is incremented by "1". Thereby, it is set that the processing at the next processing timing is the fourth processing of the cyclic processing.

【0047】そして、さらに、次の処理タイミングにお
いては、上記ステップS303で、フラグデータエリア
AFが「3」となっていることを確認してステップS3
13に進み、方位データエリアAの値を方位データエリ
アEに転送する。これにより、図4に示した方位データ
エリアEの、巡回する4番目の1秒間の方位データを以
後4秒間記憶する機能が実現される。
Further, at the next processing timing, it is confirmed at step S303 that the flag data area AF is "3", and then at step S3
Proceeding to 13, the value of the azimuth data area A is transferred to the azimuth data area E. Thereby, the function of storing the azimuth data for the fourth one second in the azimuth data area E shown in FIG. 4 for the next four seconds is realized.

【0048】次に、ステップS314に進み、方位デー
タエリアAの値から方位データエリアBの値を減算し
て、その減算結果を方位データエリアFに格納する。こ
れにより、ここでも、図4に示した方位データエリアF
の、現在の方位データと3秒前の方位データとの差の値
を記憶する機能が連続して実現される。
Next, in step S314, the value of the direction data area B is subtracted from the value of the direction data area A, and the result of the subtraction is stored in the direction data area F. Thereby, the azimuth data area F shown in FIG.
The function of storing the value of the difference between the current azimuth data and the azimuth data three seconds before is continuously realized.

【0049】続いて、ステップS315に進み、フラグ
データエリアAFの値を「0」クリアする。これによ
り、次の処理タイミングから処理が巡回処理の始めに戻
って1番目からの処理であることが設定される。
Subsequently, the flow advances to step S315 to clear the value of the flag data area AF to "0". As a result, the processing returns to the beginning of the cyclic processing from the next processing timing and is set as the processing from the first processing.

【0050】このように、方位データエリアB、C、D
及びEには、それぞれ、始めの1秒目、2秒目、3秒目
及び4秒目に計測された方位データが記憶され、それら
記憶された方位データが、各自の次の記憶タイミングま
でそれぞれ4秒間保持される。そして、各処理タイミン
グ毎に、方位データエリアAに記憶された現在の方位デ
ータと、方位データエリアB、C、D又はEに記憶され
保持されている3秒前の処理タイミングで計測された方
位データとの差が算出されて方位データエリアFに記憶
される。
Thus, the azimuth data areas B, C, D
And E, the direction data measured at the first, second, third, and fourth seconds, respectively, are stored, and the stored direction data is respectively stored until the next storage timing of each. Hold for 4 seconds. At each processing timing, the current azimuth data stored in the azimuth data area A and the azimuth measured at the processing timing three seconds before stored and held in the azimuth data areas B, C, D, or E The difference from the data is calculated and stored in the azimuth data area F.

【0051】続いて、上記4秒で一巡する巡回処理の各
処理毎の後に続く処理動作について説明する。同図ステ
ップS316では、フラグデータエリアBFの値を参照
し、後述する反転が検出されたか否か判別する。フラグ
データエリアBFが「0」であれば、まだ反転は検出さ
れていないと判断してステップS317に進む。そし
て、方位データエリアFに記憶されている現在の方位デ
ータと3秒前の方位データと差の値が170度と190
度の間、即ち、ほぼ180度となっているか否か判別す
る。これにより、現在の方位が3秒前の方位に対して反
転しているか否かが判別される。
Next, a description will be given of processing operations that follow each processing of the cyclic processing that makes one cycle in four seconds. In step S316 of the figure, it is determined with reference to the value of the flag data area BF whether or not inversion described below has been detected. If the flag data area BF is "0", it is determined that inversion has not been detected yet, and the flow advances to step S317. The difference between the current azimuth data stored in the azimuth data area F and the azimuth data three seconds ago is 170 degrees and 190 degrees.
Degrees, that is, whether or not it is approximately 180 degrees. Thus, it is determined whether or not the current direction is reversed with respect to the direction three seconds ago.

【0052】上記ステップS317で、反転していなけ
ればステップS302に戻り、上記ステップS302〜
ステップS317を繰り返す。そして、ステップS31
7で反転であると判別した場合は、ステップS318に
進んで、フラグデータエリアBFに「1」をセットす
る。これにより、方位が反転すれば反転後の最初の1秒
がカウントされる。
In step S317, if it is not inverted, the process returns to step S302, and the processing in steps S302 to S302 is repeated.
Step S317 is repeated. Then, step S31
If it is determined in step 7 that the data is inverted, the flow advances to step S318 to set "1" in the flag data area BF. Thus, if the azimuth is reversed, the first second after the reversal is counted.

【0053】次にステップS319に進み、方位データ
エリアAの現在方位データを方位データエリアGに転送
する。これにより反転直後の方位データが方位データエ
リアGに記憶される。
Next, the flow advances to step S319 to transfer the current direction data of the direction data area A to the direction data area G. Thus, the azimuth data immediately after the inversion is stored in the azimuth data area G.

【0054】次の処理タイミングにおいて、上記ステッ
プS316で、フラグデータエリアBFの値が「1」と
なっているのを判別し、この場合はステップS320に
進んで、方位データエリアGの方位データと方位データ
エリアAの方位データとが一致するか否か判別する。こ
れにより、反転直後の方位データと1秒後現在の方位デ
ータとが比較される。
At the next processing timing, it is determined in step S316 that the value of the flag data area BF is "1". In this case, the process proceeds to step S320, where the azimuth data of the azimuth data area G is It is determined whether or not the orientation data in the orientation data area A matches. Thus, the azimuth data immediately after the reversal is compared with the azimuth data one second later.

【0055】そして、双方が一致すれば、ステップS3
21に進んでフラグデータエリアBFの値がまだ「3」
となっていないのを確認してステップS322に進み、
そのフラグデータエリアBFを「1」インクリメントし
てステップS302に戻る。これにより、方位反転後の
2秒目がカウントされる。
If they match, step S3
Proceeding to 21, the value of the flag data area BF is still "3"
After confirming that it is not the same, proceed to step S322,
The flag data area BF is incremented by "1", and the process returns to step S302. Thereby, the second second after the direction reversal is counted.

【0056】次の処理タイミングにおいても、上記ステ
ップS316で、フラグデータエリアBFの値が「2」
となっているのを判別し、この場合もステップS320
に進んで反転直後の方位データと2秒後現在の方位デー
タとを比較して一致を確認し、ステップS321でフラ
グデータエリアBFの値がまだ「3」となっていないの
を確認し、ステップS322でフラグデータエリアBF
を「1」インクリメントしてステップS302に戻る。
これにより、方位反転後の3秒目がカウントされ、方位
反転の直後から、その反転した方位と現在方位とが同じ
である期間が3秒間計測される。
At the next processing timing, the value of the flag data area BF is set to "2" in step S316.
Is determined, and also in this case, step S320
The azimuth data immediately after the reversal is compared with the azimuth data two seconds later to confirm the coincidence. In step S321, it is confirmed that the value of the flag data area BF is not yet "3". In S322, the flag data area BF
Is incremented by "1" and the process returns to step S302.
As a result, the third second after the azimuth inversion is counted, and immediately after the azimuth inversion, a period in which the inverted azimuth is the same as the current azimuth is measured for three seconds.

【0057】そして、次の処理タイミングにおいて、上
記ステップS321で、フラグデータエリアBFが
「3」となっていることを判別して、ステップS323
に進む。これにより、現在方位が反転した方位と同じで
ある期間が3秒間継続すれば、反転が実行されたと判断
され、ステップS323以降の処理が開始される。
Then, at the next processing timing, it is determined in step S321 that the flag data area BF is "3", and step S323 is performed.
Proceed to. Thus, if the period in which the current orientation is the same as the inverted orientation continues for 3 seconds, it is determined that the inversion has been performed, and the processing in step S323 and subsequent steps is started.

【0058】また、上記ステップS320で、方位デー
タエリアGの方位データと方位データエリアAの方位デ
ータとが一致しなければ、ステップS327に進んで、
フラグデータエリアBFを「0」クリアする。これによ
り、反転検出直後から3秒の間に、現在方位が反転方位
と異なったときは、上記反転の検出は例えば頭を振った
だけ、即ち実際の反転ではないと判断されて、反転期間
のカウントが解消される。このことにより、次の処理タ
イミングにおいては上記ステップS316からステップ
S317に進み、再び方位反転の検出が行われる。
If the azimuth data in the azimuth data area G does not match the azimuth data in the azimuth data area A in step S320, the flow advances to step S327.
The flag data area BF is cleared to "0". Accordingly, if the current direction is different from the reverse direction within 3 seconds immediately after the detection of the reverse, the detection of the reverse is determined, for example, only by shaking the head, that is, it is determined that it is not the actual reverse, and the detection of the reverse is performed during the reverse period. The count is canceled. As a result, at the next processing timing, the process proceeds from step S316 to step S317, and the azimuth reversal is detected again.

【0059】上記反転が実行されたことを確認してステ
ップS323では、フラグデータエリアCFの値が
「0」であるか否かを判別し、「0」ならばステップS
324で「1」をセットする。これにより、最初の(又
は奇数回目の)反転が行われたことを示すフラグデータ
エリアCFの機能が実現される。
After confirming that the inversion has been performed, it is determined in step S323 whether or not the value of the flag data area CF is "0".
At 324, "1" is set. Thus, the function of the flag data area CF indicating that the first (or odd-numbered) inversion has been performed is realized.

【0060】続いて上記ステップS327に進む。これ
により、最初の(又は奇数回目の)反転が行われたと確
認された場合は、次の方位反転の検出が行われる。上記
ステップS323で、フラグデータエリアCFが「1」
となっていれば、ステップS325に進んでフラグデー
タエリアDFに「1」インクリメントする。これによ
り、最初の(又は奇数回目の)反転が行われた後、次の
反転実行が確認されたときは1往復したと判断され、フ
ラグデータエリアDFに1往復を示す「1」が加算され
る。
Subsequently, the flow advances to step S327. Thus, when it is confirmed that the first (or odd-numbered) inversion has been performed, the next direction inversion is detected. In the above step S323, the flag data area CF is "1".
If so, the flow advances to step S325 to increment the flag data area DF by "1". Thus, after the first (or odd-numbered) inversion is performed, if the next inversion is confirmed, it is determined that one reciprocation has been made, and “1” indicating one reciprocation is added to the flag data area DF. You.

【0061】続いて、ステップS326に進み、フラグ
データエリアCFを「0」クリアして、ステップS30
2に戻る。これにより、偶数回目の反転が行われたこと
を示すフラグデータエリアCFの機能が実現され、再
び、次の1往復を検出するための処理が繰り返される。
Subsequently, the flow advances to step S326 to clear the flag data area CF to "0", and then to step S30.
Return to 2. As a result, the function of the flag data area CF indicating that the even-numbered inversion has been performed is realized, and the processing for detecting the next round trip is repeated again.

【0062】このようにして、水泳中の往復運動が計数
され、その計数された往復回数データがフラグデータエ
リアDFに記憶され、この記憶された往復回数データが
表示部27の液晶表示装置7に例えば図6に示すように
「2」と表示される。
In this way, the number of reciprocating movements during swimming is counted, the counted number of reciprocating times is stored in the flag data area DF, and the stored reciprocating number data is displayed on the liquid crystal display device 7 of the display unit 27. For example, "2" is displayed as shown in FIG.

【0063】次に本発明の第2の実施例について説明す
る。第2の実施例は、図9のようなトラックを何周も周
回する運動において、その周回数を計数装置として本発
明を適用したものである。
Next, a second embodiment of the present invention will be described. In the second embodiment, the present invention is applied as a counting device for the number of laps in the motion of lapping a track many times as shown in FIG.

【0064】本計数装置は、人体に装着可能な筺体内
に、図2のような構成の計数装置が封入されて成るもの
である。各部の機能は第一実施例と同様である。尚、表
示部は露出しており、装着者はその表示を目視可能であ
る。又、第一実施例と同様に、押釦型スイッチを有し、
その機能も又、第一実施例と同様である。
The present counting device has a counting device having a configuration as shown in FIG. 2 enclosed in a housing mountable on a human body. The function of each unit is the same as in the first embodiment. The display unit is exposed, and the wearer can view the display. Also, similarly to the first embodiment, having a push button type switch,
Its function is also the same as that of the first embodiment.

【0065】以上の構成の計数装置において、周回運動
中に表示部の液晶表示装置に表示する為に制御部の制御
により行われる周回数を計数する処理動作を、図7のフ
ローチャートを用いて説明する。尚、第一実施例と同様
に、制御部は、特には図示しない内蔵の発振回路から出
力されるクロック信号に基づいて1Hzの時計信号を生成
し、この時計信号に同期して処理を行う。又、これも特
には図示しないRAM内に設定されるフラグデータエリ
アBF、CF、DF、方位データエリアA、H及びFが
使用される。
The process of counting the number of turns performed by the control unit in order to display on the liquid crystal display device of the display unit during the orbital movement in the counting device having the above configuration will be described with reference to the flowchart of FIG. I do. As in the first embodiment, the control unit generates a 1 Hz clock signal based on a clock signal output from a built-in oscillation circuit (not shown), and performs processing in synchronization with the clock signal. The flag data areas BF, CF, DF and the azimuth data areas A, H, and F set in the RAM (not shown) are also used.

【0066】図8は、上記各フラグデータ領域に記憶さ
れるデータと各方位データ領域に記憶されるデータそれ
ぞれの間の関係を説明する図である。まず、同図を参照
しながら各データエリアの機能を列記する。
FIG. 8 is a view for explaining the relationship between the data stored in each flag data area and the data stored in each direction data area. First, the functions of each data area will be listed with reference to FIG.

【0067】方位データエリアAは、1秒毎の現在の方
位データを記憶する。例えば同図の時刻T11,T12
(秒)では方位データは「45」、T21では「25
0」、T31では「70」となっている。尚、T11は
スタート直後、すなわち図9のP付近、T23は方向反
転時、すなわち同図のQ付近、T33は2回目の反転
時、すなわち同図のR付近である。
The direction data area A stores the current direction data every second. For example, at times T11 and T12 in FIG.
(Seconds), the direction data is “45”, and T21 is “25”.
0 "and" 70 "at T31. Note that T11 is immediately after the start, that is, near P in FIG. 9, T23 is at the time of direction reversal, that is, near Q in FIG. 9, and T33 is at the time of the second reversal, that is, near R in FIG.

【0068】方位データエリアHは、反転直後のAの
値、すなわち、次に反転を判定する際に基準となる値を
記憶する。方位データエリアFは、現在の方位データA
と最新の反転直後の方位データHとの差の絶対値を記憶
する。
The azimuth data area H stores the value of A immediately after the inversion, that is, the value that is used as a reference when determining the next inversion. The azimuth data area F contains the current azimuth data A
And the absolute value of the difference between the azimuth data H and the latest azimuth data H immediately after the inversion.

【0069】フラグデータエリアBFは、方位が反転し
た時「1」を記憶し、方位データエリアFの値が170
以上190以下の時値を順次「1」増加し、「3」とな
った時次のタイミングで「0」クリアされる。
The flag data area BF stores “1” when the azimuth is reversed, and the value of the azimuth data area F is 170.
The time value of 190 or less is sequentially increased by "1", and when it becomes "3", "0" is cleared at the next timing.

【0070】フラグデータエリアCFは、フラグデータ
エリアBFの値が「3」となった時、自己の値が「0」
であれば「1」に、「1」であれば「0」に切り替わ
る。フラグデータエリアDFは、フラグデータエリアC
Fの値が「1」から「0」に切り替わる毎に「1」増加
する。
When the value of the flag data area BF becomes "3", the value of the flag data area CF becomes "0".
If it is, it is switched to "1", and if it is "1", it is switched to "0". The flag data area DF has a flag data area C
Each time the value of F switches from “1” to “0”, the value increases by “1”.

【0071】そして、このフラグデータエリアDFの値
が周回運動の周回数として表示部の液晶表示装置に表示
される。次に上記機能を実現する処理動作について図7
のフローチャートを用いて説明する。
Then, the value of the flag data area DF is displayed on the liquid crystal display device of the display unit as the number of times of the orbital movement. Next, a processing operation for realizing the above function will be described with reference to FIG.
This will be described with reference to the flowchart of FIG.

【0072】同図において、ステップS701では、フ
ラグデータエリアBF、CF及びDFを「0」クリアし
て初期化する。続いて、ステップS702において、第
一実施例と同様の動作により、現在の方位データを得、
それを方位データエリアHに格納する。
In the figure, in step S701, the flag data areas BF, CF and DF are cleared to "0" and initialized. Subsequently, in step S702, the current azimuth data is obtained by the same operation as in the first embodiment.
It is stored in the azimuth data area H.

【0073】次にステップS703に進み、上記と同様
にして算出した現在の方位データを方位データエリアA
に格納する。これにより、図8に示した方位データエリ
アAの、1秒毎の現在の方位データを記憶する機能が実
現される。
Next, the flow advances to step S703, where the current azimuth data calculated in the same manner as above is stored in the azimuth data area A.
To be stored. As a result, a function of storing the current azimuth data every second in the azimuth data area A shown in FIG. 8 is realized.

【0074】次にステップS704に進み方位データエ
リアAの値とHの値との差の絶対値を方位データエリア
Fに格納する。これにより、図8に示した方位データエ
リアFの、現在の方位データと最新の反転直後の方位デ
ータとの差の絶対値を記憶する機能が実現される。
Next, the flow advances to step S704 to store the absolute value of the difference between the value of the azimuth data area A and the value of H in the azimuth data area F. This implements a function of storing the absolute value of the difference between the current azimuth data and the latest azimuth data immediately after the inversion in the azimuth data area F shown in FIG.

【0075】次にステップS705では、フラグデータ
エリアBFの値を参照し、後述する反転が検出されたか
否か判別する。フラグデータエリアBFが「0」であれ
ば、まだ反転は検出されていないと判断してステップS
706に進む。
Next, in step S705, it is determined with reference to the value of the flag data area BF whether or not inversion described later has been detected. If the flag data area BF is "0", it is determined that the inversion has not been detected yet, and step S
Proceed to 706.

【0076】ステップS706では、方位データエリア
Fに記憶されている現在の方位データと最新の反転直後
の方位データとの差が170度以上190以下、すなわ
ちほぼ180度となっているか否かを判別する。これに
より、現在の方位が最新の反転直後の方位に対して、更
に反転しているか否かが判別される。
In step S706, it is determined whether or not the difference between the current azimuth data stored in the azimuth data area F and the latest azimuth data immediately after the reversal is 170 degrees or more and 190 or less, that is, approximately 180 degrees. I do. Thereby, it is determined whether or not the current orientation is further inverted with respect to the latest orientation immediately after the inversion.

【0077】上記ステップS706で、反転していなけ
ればステップS703に戻り、上記ステップS703〜
ステップS706を繰り返す。そして、ステップS70
6で反転であると判別した場合は、ステップS707に
進んで、フラグデータエリアBFに「1」をセットす
る。これにより、方位が反転すれば反転後の最初の1秒
がカウントされる。
In step S706, if it is not inverted, the process returns to step S703, and steps S703 to S703 are executed.
Step S706 is repeated. Then, step S70
If it is determined in step S6 that the image is inverted, the process proceeds to step S707, and "1" is set in the flag data area BF. Thus, if the azimuth is reversed, the first second after the reversal is counted.

【0078】次の処理タイミングにおいて、上記ステッ
プS705で、フラグデータエリアBFの値が「1」と
なっているのを判別し、この場合はステップS708に
進む。
At the next processing timing, it is determined in step S705 that the value of the flag data area BF is "1", and in this case, the flow proceeds to step S708.

【0079】ステップS708では、現在の方位データ
と前回の反転直後の方位データの差Fが170度以上1
90度以下か否かが判別される。これにより、反転状態
が継続されているか否かが判別される。
In step S708, the difference F between the current azimuth data and the azimuth data immediately after the previous inversion is 170 degrees or more and 1
It is determined whether the angle is 90 degrees or less. Thereby, it is determined whether or not the inversion state is continued.

【0080】そして、反転状態が継続されていれば、ス
テップS709に進み、フラグデータエリアBFの値が
まだ「3」となっていないのを確認してステップS71
0に進む。
If the inversion state is continued, the flow advances to step S709 to confirm that the value of the flag data area BF has not yet become "3", and then to step S71.
Go to 0.

【0081】ステップS710では、フラグデータエリ
アBFを「1」インクリメントしてステップS703に
戻る。これにより、方位反転後の2秒目がカウントされ
る。次の処理タイミングにおいても、上記ステップS7
05で、フラグデータエリアBFの値が「2」となって
いるのを判別し、この場合もステップS708に進み、
現在の方位データと前回の反転直後の方位データの差F
が170度以上190度以下であることを確認し、ステ
ップS709でフラグデータエリアBFの値がまだ
「3」となっていないのを確認し、ステップS710で
フラグデータエリアBFを「1」インクリメントして、
ステップS703に戻る。これにより、方位反転後の3
秒目がカウントされ、方位反転の直後から、その反転し
た方位と現在方位とが同じである期間が3秒間計測され
る。
In step S710, the flag data area BF is incremented by "1", and the flow returns to step S703. Thereby, the second second after the direction reversal is counted. Even at the next processing timing, the above-described step S7
At 05, it is determined that the value of the flag data area BF is “2”, and in this case also, the process proceeds to step S708,
Difference F between current bearing data and bearing data immediately after previous inversion
Is greater than or equal to 170 degrees and less than or equal to 190 degrees, it is confirmed that the value of the flag data area BF is not yet "3" in step S709, and the flag data area BF is incremented by "1" in step S710. hand,
It returns to step S703. As a result, 3
Seconds are counted, and immediately after the direction reversal, a period in which the reversed direction is the same as the current direction is measured for 3 seconds.

【0082】そして、次の処理タイミングにおいて、上
記ステップS709で、フラグデータエリアBFが
「3」となっていることを判別して、ステップS711
に進む。これにより、現在方位が反転した方位と同じで
ある期間が3秒間継続すれば、反転が実行されたと判断
され、ステップS711以降の処理が行われる。
Then, at the next processing timing, it is determined in step S709 that the flag data area BF is "3", and step S711 is performed.
Proceed to. As a result, if a period in which the current orientation is the same as the inverted orientation continues for 3 seconds, it is determined that the inversion has been performed, and the processing from step S711 is performed.

【0083】又、上記ステップS708で、現在の方位
データAと前回の反転直後の方位データHとの差Fが1
70度以上190度以下でなければ、ステップS716
に進んで、フラグデータエリアBFを「0」クリアす
る。これにより、反転検出直後から3秒の間に、現在方
位が反転方位と異なった時は、実際の反転ではないと判
断されて、反転期間のカウントが解消される。
In step S708, the difference F between the current azimuth data A and the azimuth data H immediately after the previous inversion is 1
If not more than 70 degrees and not more than 190 degrees, step S716
To clear the flag data area BF to "0". Thus, when the current direction is different from the reverse direction within 3 seconds immediately after the detection of the reverse, it is determined that the current direction is not the actual reverse, and the count of the reverse period is canceled.

【0084】このことにより、次の処理タイミングにお
いては上記ステップS705からステップS706に進
み、再び方位反転の検出が行われる。上記反転が行われ
たことを確認してステップS711では、現在の方位デ
ータAを最新の反転直後の方位データとしてHに格納す
る。これにより、Hは反転が検出されるたびに更新さ
れ、常に、反転検出の基準となる、最新の反転直後の方
位データを得ることができる。
As a result, at the next processing timing, the process proceeds from step S705 to step S706, and the azimuth reversal is detected again. After confirming that the inversion has been performed, in step S711, the current azimuth data A is stored in H as the latest azimuth data immediately after the inversion. As a result, H is updated every time inversion is detected, and the latest azimuth data immediately after inversion, which is a reference for inversion detection, can be always obtained.

【0085】次に、ステップS712では、フラグデー
タエリアCFの値が「0」であるか否かを判別し、
「0」ならばステップS713で「1」をセットする。
これにより、最初の(又は奇数回目の)反転が行われた
ことを示すフラグデータエリアCFの機能が実現され
る。
Next, in step S712, it is determined whether or not the value of the flag data area CF is "0".
If "0", "1" is set in step S713.
Thus, the function of the flag data area CF indicating that the first (or odd-numbered) inversion has been performed is realized.

【0086】続いて上記ステップS716に進む。これ
により、最初の(又は奇数回目の)反転が行われたと確
認された場合は、次の方位反転の検出が行われる。上記
ステップS712で、フラグデータエリアCFが「1」
となっていれば、ステップS714に進んでフラグデー
タエリアDFを「1」インクリメントする。これによ
り、2度目の(又は偶数回目の)反転実行が確認された
ときは1周したと判断され、フラグデータエリアDFに
1周を示す「1」が加算される。
Subsequently, the flow advances to step S716. Thus, when it is confirmed that the first (or odd-numbered) inversion has been performed, the next direction inversion is detected. In the above step S712, the flag data area CF is "1".
If so, the flow advances to step S714 to increment the flag data area DF by "1". Thus, when the second (or even-numbered) inversion execution is confirmed, it is determined that one round has been made, and “1” indicating one round is added to the flag data area DF.

【0087】続いて、ステップS715に進み、フラグ
データエリアCFを「0」でクリアして、ステップS7
03に戻る。これにより、偶数回目の反転が行われたこ
とを示すフラグデータエリアCFの機能が実現され、再
び、次の1周を検出するための処理が繰り返される。
Subsequently, the flow advances to step S715 to clear the flag data area CF with "0".
Return to 03. As a result, the function of the flag data area CF indicating that the even-numbered inversion has been performed is realized, and the processing for detecting the next one round is repeated again.

【0088】このようにして、水泳中の往復運動が計数
され、その計数された周回数データがフラグデータエリ
アDFに記憶され、この記憶された周回数データが表示
部の液晶装置に表示される。
In this way, the reciprocating motion during swimming is counted, the counted number of revolutions data is stored in the flag data area DF, and the stored number of revolutions data is displayed on the liquid crystal device of the display unit. .

【0089】尚、上記実施例においては、水中眼鏡の左
側に表示させているが右側に表示するようにしてもよ
い。また、水中眼鏡に適用した例について述べたが、例
えば腰等に装着できる形態の計数専用の機器であっても
よい。
In the above embodiment, the image is displayed on the left side of the underwater glasses, but may be displayed on the right side. In addition, although an example in which the present invention is applied to underwater spectacles has been described, a counting-only device that can be attached to, for example, the waist may be used.

【0090】[0090]

【発明の効果】本発明によれば、地磁気から方位を検知
する方位センサを用いて運動の反転を検出するように
し、この検出された反転を計数して運動の往復回数を算
出し、その運動の往復回数を自動的に表示できるため、
運動の往復回数を覚えておくという面倒がなくなり運動
や訓練に専念できて便利である。
According to the present invention, reversal of motion is detected by using a direction sensor for detecting direction from geomagnetism, and the detected reversal is counted to calculate the number of reciprocations of the motion. Automatically shows the number of round trips,
This eliminates the hassle of remembering the number of reciprocating exercises, so that you can concentrate on exercises and training.

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

【図1】(a) は本発明の第一実施例に係わる水中眼鏡の
外観上面図、同図(b) はその正面図である。
FIG. 1A is a top view of the appearance of underwater glasses according to a first embodiment of the present invention, and FIG. 1B is a front view thereof.

【図2】上記水中眼鏡の計数器の内部回路構成を示すブ
ロック図である。
FIG. 2 is a block diagram showing an internal circuit configuration of a counter of the underwater glasses.

【図3】水泳中の往復回数を計数する処理動作を説明す
るフローチャートである。
FIG. 3 is a flowchart illustrating a processing operation for counting the number of reciprocations during swimming.

【図4】第一実施例において各フラグデータ領域に記憶
されるデータと各方位データ領域に記憶されるデータと
の関係を説明する図である。
FIG. 4 is a diagram illustrating a relationship between data stored in each flag data area and data stored in each azimuth data area in the first embodiment.

【図5】(a),(b),(c) は方位センサの機能について説明
する図である。
FIGS. 5A, 5B, and 5C are diagrams for explaining the function of the direction sensor.

【図6】水中眼鏡の表示装置に表示される往復回数デー
タの表示を内側から見た状態を示す図である。
FIG. 6 is a diagram showing a state where the display of the number of reciprocation times data displayed on the display device of the underwater glasses is viewed from the inside.

【図7】第二実施例のフローチャートである。FIG. 7 is a flowchart of the second embodiment.

【図8】第二実施例において各フラグデータ領域に記憶
されるデータと各方位データ領域に記憶されるデータと
の関係を説明する図である。
FIG. 8 is a diagram illustrating a relationship between data stored in each flag data area and data stored in each azimuth data area in the second embodiment.

【図9】第二実施例の計数原理について説明する図であ
る。
FIG. 9 is a diagram illustrating the counting principle of the second embodiment.

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

1 水中眼鏡 2 ガラス 3 眼鏡枠 4 バンド 5 計数器 6 押釦型スイッチ 7 液晶表示装置 20 制御部 21 センサ駆動回路 22 方位センサ 23、24 検出回路 25−1、25−2、26−2 電極 26 A/D変換器 26−1 切換えスイッチ 27 表示部 28 入力部 DESCRIPTION OF SYMBOLS 1 Underwater glasses 2 Glass 3 Glasses frame 4 Band 5 Counter 6 Push button type switch 7 Liquid crystal display device 20 Control part 21 Sensor drive circuit 22 Direction sensor 23, 24 Detection circuit 25-1, 25-2, 26-2 Electrode 26A / D converter 26-1 selector switch 27 display unit 28 input unit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 地磁気の方位を検知する方位検知手段
と、 前記方位検知手段が検知する前記方位が一回転した事を
検出する回転検出手段と、 前記回転検出手段が一回転した回数を計数する計数手段
と、 を有する事を特徴とする計数装置。
1. An azimuth detecting means for detecting an azimuth of geomagnetism, a rotation detecting means for detecting that the azimuth detected by the azimuth detecting means makes one rotation, and counting the number of times the rotation detecting means makes one rotation. A counting device, comprising: counting means;
【請求項2】 前記回転検出手段は、前記方位検知手段
が検知する前記方位の反転に基づき、前記方位が一回転
した事を検出することを特徴とする請求項1に記載の計
数装置。
2. The counting device according to claim 1, wherein the rotation detecting means detects that the azimuth has made one rotation based on the inversion of the azimuth detected by the azimuth detecting means.
【請求項3】 請求項1又は2に記載の計数装置と、 前記計数装置が計数する前記方位の一回転の回数を表示
する表示手段を有し、 前記表示手段は、装着状態において装着者が目視可能で
あるように設けられた、 ことを特徴とする水中眼鏡。
3. The counting device according to claim 1, further comprising: a display device that displays a number of times of one rotation of the azimuth counted by the counting device; Underwater glasses provided so as to be visible.
JP3305117A 1991-11-20 1991-11-20 Counting device and underwater glasses using the counting device Expired - Fee Related JP3021869B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3305117A JP3021869B2 (en) 1991-11-20 1991-11-20 Counting device and underwater glasses using the counting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3305117A JP3021869B2 (en) 1991-11-20 1991-11-20 Counting device and underwater glasses using the counting device

Publications (2)

Publication Number Publication Date
JPH05143807A JPH05143807A (en) 1993-06-11
JP3021869B2 true JP3021869B2 (en) 2000-03-15

Family

ID=17941309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3305117A Expired - Fee Related JP3021869B2 (en) 1991-11-20 1991-11-20 Counting device and underwater glasses using the counting device

Country Status (1)

Country Link
JP (1) JP3021869B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101863134B1 (en) 2016-10-06 2018-05-31 조현철 A display device for exercise data and information gathering devices and system using the same

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4816085A (en) * 1987-08-14 1989-03-28 Haynes International, Inc. Tough weldable duplex stainless steel wire
JP2006098309A (en) * 2004-09-30 2006-04-13 Yamaha Corp Magnetic measuring apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101863134B1 (en) 2016-10-06 2018-05-31 조현철 A display device for exercise data and information gathering devices and system using the same

Also Published As

Publication number Publication date
JPH05143807A (en) 1993-06-11

Similar Documents

Publication Publication Date Title
AU693331B2 (en) Electronic timing swimmer's goggles
US20120245714A1 (en) System and method for counting swimming laps
AU768566B2 (en) Apparatus and method for treatment of BPPV
CN106293453B (en) Rotary display
US6745069B2 (en) Electronic wrist-worn device and method of controlling the same
JP2015208677A (en) Activity monitor
US5175936A (en) Electronic compass
US7345958B1 (en) Swimming lap counter and method of use
JP3021869B2 (en) Counting device and underwater glasses using the counting device
JP2003093566A (en) Method for discriminating movement and movement sensing module
US4530105A (en) Lap counter
KR101901191B1 (en) Swimming athletic performance record management system by simple swimming band
JP6780292B2 (en) Electronic clock
US3935701A (en) Wristwatch with a time display control switch means
EP0652498B1 (en) Electronic watch having multi-functional display
JP2008253470A (en) Swimming distance measuring instrument and its control method
AU2008267756B2 (en) A thumb mountable device for holding equipment
US5767417A (en) Swim meter
JP2010022740A (en) Device for measuring quantity of swimming
JPH07209012A (en) Method for finding latitude and longitude and timepiece utilizing method thereof
KR20060124207A (en) Communication mobile terminal and method for correcting posture
JP2000051528A (en) Portable game machine with pedometer
JP2561651Y2 (en) Pedometer
CN110732113A (en) hula hoops and counting method thereof
CN110101171A (en) A kind of anti-body-sensing bracelet of wandering away with security boundary detection function

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991214

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

Free format text: PAYMENT UNTIL: 20090114

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090114

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100114

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110114

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees