JPH07200716A - Method and device for reading code - Google Patents

Method and device for reading code

Info

Publication number
JPH07200716A
JPH07200716A JP5351311A JP35131193A JPH07200716A JP H07200716 A JPH07200716 A JP H07200716A JP 5351311 A JP5351311 A JP 5351311A JP 35131193 A JP35131193 A JP 35131193A JP H07200716 A JPH07200716 A JP H07200716A
Authority
JP
Japan
Prior art keywords
code
sensors
sensor
circuit
pulse
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
JP5351311A
Other languages
Japanese (ja)
Inventor
Hisanori Atsuta
久典 熱田
Tomoya Yazawa
智哉 矢沢
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 JP5351311A priority Critical patent/JPH07200716A/en
Priority to KR1019940037473A priority patent/KR950020241A/en
Priority to TW083112310A priority patent/TW257850B/en
Publication of JPH07200716A publication Critical patent/JPH07200716A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the method and device for reading code capable of exactly read a code without being affected by operating speed. CONSTITUTION:A time difference detecting circuit 25 measures and outputs time difference (e) of code reading start between both sensors 7 and 8 from the input time difference between signals [(b) and (d)] from both flip-flops 33 and 34. A division circuit 26 divides this time difference (e) by '3' as a number of digits showing the arranging gap of first and second sensors and outputs a quotient (f). This quotient (f) is used as the initial cycle of a sample pulse (u) from a sample pulse generating circuit 39 by being selected with selecting circuits 30 and 38 just after the reading of the code is started. A sample/hold circuit 43 samples/holds the output signal of the second sensor at timing corresponding to the sample pulse (u), and a shift register 44 successively stores these output signals.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、手動操作によりコード
を読み取るコード読み取り方法及びコード読み取り装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code reading method and a code reading device for reading a code by manual operation.

【0002】[0002]

【従来の技術】従来、絵本等の書籍に2値データからな
るコードを印刷し、このコードを光学的に読み取って、
絵本の絵に対応した音声を出力する教育用の学習システ
ムが提案されている。この学習システムにおいて、コー
ドの読み取りには所謂マウス形状の操作装置が用いられ
る。この操作装置には、例えば外部に紫外線を照射する
UV発光管や、紫外線が照射されると可視光を発光する
蛍光インキで印刷されたコードからの光を受光する受光
部等が配置されている。
2. Description of the Related Art Conventionally, a code such as a picture book is printed with a code consisting of binary data, and the code is optically read,
An educational learning system that outputs a sound corresponding to a picture in a picture book has been proposed. In this learning system, a so-called mouse-shaped operating device is used to read the code. In this operating device, for example, a UV arc tube that radiates ultraviolet rays to the outside, a light receiving portion that receives light from a code printed with fluorescent ink that emits visible light when ultraviolet rays are radiated, and the like are arranged. .

【0003】かかる構成において、操作装置を握持し
て、コードが印刷されている紙面上を摺動させ、これに
よりUV発光管からの紫外線がコードに照射されると、
コードが励起して可視光を発する。この可視光は、受光
部により検出されて電気信号に変換され、この電気信号
に基づいて音声が放音される。
In such a configuration, when the operating device is gripped and slid on the surface of the paper on which the code is printed, whereby the code is irradiated with ultraviolet rays from the UV arc tube,
The code excites and emits visible light. The visible light is detected by the light receiving unit and converted into an electric signal, and sound is emitted based on the electric signal.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな操作装置にあっては、コードを読み取る際に手動操
作されるものであることから、受光部がコード上を移動
する速度は一定ではない。このため、データの各桁が間
隙なく印刷されたコードを読み取るに際しては、速度の
変化により各桁の位置を誤認してしまう場合が生じ、正
確にコードが示すデータの内容を読み取ることができな
い。
However, in such an operating device, the speed at which the light receiving section moves on the code is not constant because it is manually operated when reading the code. Therefore, when reading a code in which each digit of data is printed without a gap, the position of each digit may be erroneously recognized due to a change in speed, and the content of the data indicated by the code cannot be read accurately.

【0005】本発明は、このような従来の課題に鑑みて
なされたものであり、操作速度に左右されることなく、
コードを正確に読み取ることのできるコード読み取り方
法及びコード読み取り装置を提供することを目的とする
ものである。
The present invention has been made in view of such conventional problems, and is not affected by the operation speed.
An object of the present invention is to provide a code reading method and a code reading device that can read a code accurately.

【0006】[0006]

【課題を解決するための手段】前記課題を解決するため
に本発明にあっては、2値データからなるコードを、手
動操作に伴って読み取るに際して、前記2値データの一
方を検出してオン動作する第1及び第2のセンサを、所
定間隔をおいて配置し、この両センサのオン時間差に基
づき、前記手動操作の速度を求め、この求めた手動操作
の速度に応じた周期で、センサの状態を取り込むことを
要旨としている。
In order to solve the above problems, according to the present invention, one of the binary data is detected and turned on when the code consisting of the binary data is read by the manual operation. The operating first and second sensors are arranged at a predetermined interval, the speed of the manual operation is calculated based on the difference in ON time between the two sensors, and the sensor is operated at a cycle corresponding to the calculated speed of the manual operation. The gist is to capture the state of.

【0007】[0007]

【作用】前記構成において、コードの各桁が配列された
方向に第1センサと第2のセンサの順に移動させると、
第1のセンサがオンとなった後、第2のセンサがオンと
なる。このとき、両センサは所定間隔をおいて配置され
ていることから、その間隔は既知である。したがって、
この既知の間隔と両センサのオン時間差とより、手動操
作の速度を求めることができる。そして、この求めた移
動速度に応じた周期で、例えば第2のセンサの状態を取
り込めば、移動速度に左右されるずに、コードを構成す
る2値化データを読み取ることができる。
In the above structure, when the first sensor and the second sensor are moved in the order in which the digits of the code are arranged,
After the first sensor is turned on, the second sensor is turned on. At this time, since both sensors are arranged at a predetermined interval, the interval is known. Therefore,
The speed of the manual operation can be obtained from the known interval and the difference in the ON time of both sensors. Then, if the state of the second sensor is taken in at a cycle corresponding to the calculated moving speed, the binary data forming the code can be read without being influenced by the moving speed.

【0008】[0008]

【実施例】以下、本発明の一実施例を図に従って説明す
る。図1に示すように、読み取り装置1は、操作装置2
とこの操作装置2に接続線3を介して電気的に接続され
た装置本体4とから構成されている。操作装置2には、
図2に示すように、前端部にスイッチ17が設けられて
いるとともに、その下面5に矩形の窓部6が開成されて
おり、窓部6の縁部には、後述する間隔を置いて第1セ
ンサ7と第2センサ8とが並設されている。また、操作
装置2の内部にはUV発光管9が配置されており、前記
両センサ7,8は、このUV発光管9からの紫外線によ
り蛍光インキに含まれる蛍光体が励起して発生する可視
光を検出可能なフォトセンサからなる。
An embodiment of the present invention will be described below with reference to the drawings. As shown in FIG. 1, the reading device 1 includes an operating device 2
And a device body 4 electrically connected to the operating device 2 via a connecting wire 3. The operating device 2 includes
As shown in FIG. 2, a switch 17 is provided at the front end, and a rectangular window portion 6 is opened on the lower surface 5 of the switch 17, and an edge portion of the window portion 6 is provided with a space described later. The first sensor 7 and the second sensor 8 are arranged in parallel. Further, a UV luminous tube 9 is arranged inside the operating device 2, and both sensors 7 and 8 are visible when the phosphor contained in the fluorescent ink is excited by the ultraviolet rays from the UV luminous tube 9. It consists of a photo sensor that can detect light.

【0009】図3は、前記読み取り装置1の全体構成を
示すブロック図である。このブロック図において、制御
部10は、前記UV発光管9を駆動する駆動回路11を
制御するとともに、記憶部12に記憶されているプログ
ラム等に基づき、この読み取り装置1に必要な全ての制
御を実行する。波形整形回路13,14は、前記各セン
サ7,8の出力を各々矩形波に整形し、データ判定部1
5は、波形整形回路13,14から入力される矩形波に
基づき、読み取ったコードが示すデータを判定して、制
御部10に出力する。
FIG. 3 is a block diagram showing the overall configuration of the reading device 1. In this block diagram, a control unit 10 controls a drive circuit 11 for driving the UV arc tube 9 and controls all of the reading device 1 on the basis of a program or the like stored in a storage unit 12. Run. The waveform shaping circuits 13 and 14 shape the outputs of the sensors 7 and 8 into rectangular waves, and the data determination unit 1
5 determines the data indicated by the read code based on the rectangular waves input from the waveform shaping circuits 13 and 14, and outputs the data to the control unit 10.

【0010】記憶部12には、前記プログラムととも
に、各コードが示すデータに毎に、音声データが記憶さ
れている。この音声データは、例えば後述する絵本に印
刷されている動物の絵に対応した鳴き声や、当該絵本の
ストーリーその他である。そして、制御部10は、デー
タ判定部15から入力されたコードが示すデータに基づ
き、当該データに対応する音声データを記憶部12から
読み出して、音声波形を生成する。オーディオ出力部1
6は、この音声波形を増幅するアンプ、及びアンプから
の出力により駆動されるスピーカ等で構成されている。
In the storage unit 12, voice data is stored for each data indicated by each code together with the program. This voice data is, for example, a cry corresponding to a picture of an animal printed on a picture book described later, a story of the picture book, and the like. Then, based on the data indicated by the code input from the data determination unit 15, the control unit 10 reads the audio data corresponding to the data from the storage unit 12 and generates the audio waveform. Audio output unit 1
Reference numeral 6 is composed of an amplifier for amplifying the audio waveform, a speaker driven by the output from the amplifier, and the like.

【0011】なお、ここで本実施例において読み取り対
象となるコードについて予め説明すると、図4に示すよ
うに、絵本50の所定頁には、その紙面51上に実線の
丸、棒、四角等で略記した絵、図形、文字等の可視印刷
部52が複数箇所に印刷形成されている。この可視印刷
部52は、プロセスインキによりオフセット印刷されて
おり、自然状態で視認可能である。さらに、紙面51上
には、紫外線を照射されると、所定波長の可視光を発光
する透明な蛍光インキにより、少なくともその一部が所
定の可視印刷部52に重なるようにコード53が印刷さ
れている。このコード53は、図5に示すように、各々
等しい間隔Dの各領域がデータの桁に対応する10桁構
成からなる。また、この10桁構成からなる領域におい
て、斜線で示した領域が“1”、空白で示した領域が
“0”であって、最初の桁と最後の桁とは必ず“1”で
ある。そして、前記第1センサ7と第3センサ8とは、
このコード53の3桁分(3D)に対応する間隔を置い
て並設されている。
The codes to be read in this embodiment will be described in advance. As shown in FIG. 4, a predetermined page of the picture book 50 is indicated by a solid circle, a bar, a square or the like on the paper surface 51 thereof. Visible print portions 52 such as abbreviated pictures, figures, and characters are printed and formed at a plurality of locations. The visible printing portion 52 is offset printed with the process ink and is visible in a natural state. Further, on the paper surface 51, a code 53 is printed by a transparent fluorescent ink that emits visible light of a predetermined wavelength when irradiated with ultraviolet rays so that at least a part of the code 53 overlaps the predetermined visible printing portion 52. There is. As shown in FIG. 5, the code 53 has a 10-digit configuration in which each area having an equal interval D corresponds to a digit of data. Further, in the area of 10 digits, the shaded area is "1" and the blank area is "0", and the first digit and the last digit are always "1". Then, the first sensor 7 and the third sensor 8 are
The codes 53 are arranged in parallel at intervals corresponding to three digits (3D).

【0012】図6は、前記データ判定部15の構成を示
すものであり、前記波形整形回路13を介した第1セン
サ7の出力は、エッジ検出回路21に与えられ、前記波
形整形回路14を介した第2センサ8の出力は、エッジ
検出回路22とサンプル/ホールド回路43とに与えら
れる。この両エッジ検出回路21,22は、各センサ
7,8からの信号の、立ち上がり及び立ち下がりに対応
して、パルス(a,c)をフリップフロップ23,24
に出力する。
FIG. 6 shows the configuration of the data judging section 15. The output of the first sensor 7 via the waveform shaping circuit 13 is given to the edge detection circuit 21 and the waveform shaping circuit 14 is supplied. The output of the second sensor 8 via the above is given to the edge detection circuit 22 and the sample / hold circuit 43. The both edge detection circuits 21 and 22 output the pulses (a, c) to the flip-flops 23 and 24 in response to rising and falling of the signals from the sensors 7 and 8, respectively.
Output to.

【0013】フリップフロップ23,24は、各センサ
7,8が、前述したコード53の読み取り開始時点でハ
イとなる信号(b,d)を出力し、時間差検出回路25
は、両フリップフロップ23,24からの信号(b,
d)の入力時間差から、両センサ7,8のコード読み取
り開始の時間差(e)を測定して出力する。除算回路2
6は、この時間差(e)を、前述した両センサ7,8の
間隔を示す桁数である“3”で除算し、商(f)を出力
する。この商(f)は、コードの読み取り開始直後にお
いて選択回路30,38により選択されることにより、
サンプルパルス発生回路39からのサンプルパルス
(u)の初期周期として用いられる。なお、図中sw
は、前記スイッチ17が押されている間、ハイとなって
いる信号であり、φはクロックパルスである。
The flip-flops 23 and 24 output signals (b, d) which become high when the sensors 7 and 8 start reading the code 53, and the time difference detection circuit 25 is provided.
Is a signal (b, from both flip-flops 23 and 24).
From the input time difference of d), the time difference (e) of the code reading start of both sensors 7 and 8 is measured and output. Division circuit 2
6 divides this time difference (e) by "3", which is the number of digits indicating the interval between both sensors 7 and 8, and outputs a quotient (f). This quotient (f) is selected by the selection circuits 30 and 38 immediately after the code reading is started,
It is used as the initial period of the sample pulse (u) from the sample pulse generating circuit 39. In addition, sw in the figure
Is a signal which is high while the switch 17 is being pressed, and φ is a clock pulse.

【0014】また、エッジ検出回路21,22の出力信
号(a,c)を、ORゲート27に通した信号(g)
は、パルス間隔測定回路28において、第1センサ出力
あるいは第2センサ出力の信号の変化時点間の時間に対
応するパルス間隔が測定され、その測定値(l)は、除
算回路31と桁算出回路29とに与えられる。桁算出回
路29は、この測定値(l)を、選択回路30から出力
されている現在のサンプルパルス(u)に対応する周期
(k)(読み取り開始直後においては、前記商(f))
で除算し、その商の小数第1桁を四捨五入するなどし
て、パルス間隔の測定値(l)、すなわち、両センサ出
力信号の連続する2つの変化時点の間隔が何桁分であっ
たかを算出する。除算回路31は、パルス間隔の測定値
(l)をこの桁算出回路29からの桁数(m)で除算
し、サンプルパルス(u)の新たな周期(n)を求め
る。
The output signals (a, c) of the edge detection circuits 21 and 22 are passed through the OR gate 27 (g).
Is the pulse interval measuring circuit 28, and the pulse interval corresponding to the time between the changing points of the signal of the first sensor output or the second sensor output is measured, and the measured value (l) is the dividing circuit 31 and the digit calculating circuit. And 29. The digit calculation circuit 29 outputs the measured value (l) to the cycle (k) corresponding to the current sample pulse (u) output from the selection circuit 30 (the quotient (f) immediately after the start of reading).
Calculate the pulse interval measurement value (l), that is, how many digits the interval between two consecutive change points of both sensor output signals was, by dividing by 1 and rounding off the first digit of the quotient. To do. The division circuit 31 divides the measured value (l) of the pulse interval by the number of digits (m) from the digit calculation circuit 29 to obtain a new cycle (n) of the sample pulse (u).

【0015】一方、フリップフロップ24からの信号
(d)が与えられる遅延回路32の出力(h)は、前記
ORゲート27からの信号(g)と共に、ANDゲート
33に与えられる。このANDゲート33の出力(i)
とswとが入力されるフリップフロップ34からの信号
(j)は、選択回路30に与えられる。したがって、こ
の信号(j)は、第2センサ8がコードの読み取りを開
始後に、第1センサ7又は第2センサ8の信号に変化が
あったか否かを示すものであり、選択回路30はこの信
号(j)がローの間は、前記商(f)をサンプルパルス
の周期として選択し、ハイとなってからは除算回路31
が順次求める新たな周期(n)をサンプルパルスの周期
として選択する。前記遅延回路32は、ORゲート27
からの信号(g)のうち、第2センサ8の読み取り開始
時のパルスを排除するために、フリップフロップ24か
らの信号(d)を微小時間遅延させるものであり、その
遅延時間は信号(g)のパルス幅より若干長く、パルス
間隔と比べれば極短い時間である。
On the other hand, the output (h) of the delay circuit 32 to which the signal (d) from the flip-flop 24 is given is given to the AND gate 33 together with the signal (g) from the OR gate 27. Output of this AND gate 33 (i)
The signal (j) from the flip-flop 34 to which the input signals and sw are input is given to the selection circuit 30. Therefore, this signal (j) indicates whether or not there is a change in the signal of the first sensor 7 or the second sensor 8 after the second sensor 8 starts reading the code, and the selection circuit 30 outputs this signal. While (j) is low, the quotient (f) is selected as the period of the sample pulse, and after it becomes high, the division circuit 31
, A new cycle (n) sequentially obtained is selected as the cycle of the sample pulse. The delay circuit 32 includes an OR gate 27.
The signal (d) from the flip-flop 24 is delayed by a minute time in order to eliminate the pulse at the start of reading of the second sensor 8 from the signal (g) from the signal (g). ), Which is slightly longer than the pulse width, and is extremely short compared to the pulse interval.

【0016】他方、除算回路35は、選択回路30から
出力されたサンプルパルス(u)の周期を示す値(k)
を2で除し、その値である1/2周期(o)は、このサ
ンプルパルス(u)の周期を示す値(k)と共に、選択
回路38に与えられる。また、この選択回路38に入力
される、ANDゲート36、フリップフロップ37を介
した信号(q)は、サンプルパルス(u)の周期
((r)に対応)更新直後か否かを示すものである。そ
して、選択回路38は、この信号(q)に基づき周期更
新直後であるときには、1/2周期(o)を選択し、そ
れ以外の場合には周期を示す値(k)を選択し、これを
周期(r)として、サンプルパルス発生回路39に出力
する。このため、サンプルパルス発生回路39は、サン
プルパルスの更新直後においてのみ、半分の周期でサン
プルパルス(u)を出力し、その結果、更新直後では前
記コード53の各桁に対応する領域の真ん中において、
読み取り信号が得られる。
On the other hand, the division circuit 35 has a value (k) indicating the cycle of the sample pulse (u) output from the selection circuit 30.
Is divided by 2, and the value of 1/2 cycle (o) is given to the selection circuit 38 together with the value (k) indicating the cycle of the sample pulse (u). Further, the signal (q) input to the selection circuit 38 via the AND gate 36 and the flip-flop 37 indicates whether or not the period (corresponding to (r)) of the sample pulse (u) has just been updated. is there. Then, the selection circuit 38 selects the half cycle (o) immediately after the cycle update based on this signal (q), and selects the value (k) indicating the cycle otherwise, Is output as a cycle (r) to the sample pulse generating circuit 39. Therefore, the sample pulse generation circuit 39 outputs the sample pulse (u) with a half cycle only immediately after the update of the sample pulse, and as a result, immediately after the update, in the middle of the area corresponding to each digit of the code 53. ,
A read signal is obtained.

【0017】フリップフロップ42及びANDゲート4
1は、スイッチ17が押されてからコード53の読み取
りを終了するまでの間のみクロックパルス(t)を、サ
ンプルパルス発生回路39に供給するためのものであ
る。すなわち、サンプルパルス発生回路39は、ORゲ
ート40から周期計数開始タイミングを示すパルス
(v)が供給されると、このパルス(v)を契機とし
て、ANDゲート41より供給されるクロックパルス
(t)を計数する。そして、計数値が周期(r)に達す
るとサンプルパルス(u)を出力し、このサンプルパル
ス(u)は第2センサ8の出力をホールドするタイミン
グを示す。
Flip-flop 42 and AND gate 4
1 is for supplying the clock pulse (t) to the sample pulse generating circuit 39 only after the switch 17 is pressed until the reading of the code 53 is completed. That is, when the pulse (v) indicating the cycle counting start timing is supplied from the OR gate 40, the sample pulse generating circuit 39 is triggered by this pulse (v) and the clock pulse (t) supplied from the AND gate 41. Is counted. Then, when the count value reaches the cycle (r), the sample pulse (u) is output, and the sample pulse (u) indicates the timing at which the output of the second sensor 8 is held.

【0018】また、サンプル/ホールド回路43は、サ
ンプルパルス発生回路39より出力されたサンプルパル
ス(u)に対応するタイミングで、第2センサ8の出力
信号をサンプル/ホールドし、シフトレジスタ44はこ
れを順次記憶する。パルス計数回路45は、サンプルパ
ルス発生回路39より出力されたサンプルパルス(u)
を計数し、10個目、すなわち10桁からなる1つのコ
ード53の読み取りを完了した時点で、パルス(y)を
出力する。前記制御部10は、このパルス(y)を契機
として、シフトレジスタ44の値を読み込ことにより、
読み取りを完了したコードを認識する。
The sample / hold circuit 43 samples / holds the output signal of the second sensor 8 at the timing corresponding to the sample pulse (u) output from the sample pulse generation circuit 39, and the shift register 44 outputs the sample / hold signal. Are sequentially stored. The pulse counting circuit 45 outputs the sample pulse (u) output from the sample pulse generating circuit 39.
Is counted, and the pulse (y) is output at the time when the reading of the tenth code, that is, one code 53 consisting of ten digits is completed. The control unit 10 reads the value of the shift register 44 by using this pulse (y) as a trigger,
Recognize the code that has been read.

【0019】以上の構成にかかる本実施例において、紙
面51上のコード53にあっては、透明蛍光インキによ
り印刷形成されていることから、これを目視することは
できない。しかし、前述のように、コード53はその一
部が、所定の可視印刷部52に重なるように印刷形成さ
れていることから、これを読み取る際には対応する可視
印刷部52を目安にして、操作装置2を紙面51上にて
摺動させる。このとき、スイッチ17を押しながら、両
センサ2,8がコード53の各桁を表すバーに直交する
方向であって、かつ、第1センサ7が先行する方向(図
2の操作方向)に操作装置2を移動させる。これによ
り、UV発光管9からの紫外線が窓部6を介してコード
35に照射され、コード53が励起して可視光が両セン
サ7,8により順次検出される。
In the present embodiment having the above-mentioned structure, the code 53 on the paper surface 51 is printed with the transparent fluorescent ink, so it cannot be visually inspected. However, as described above, since the code 53 is partially formed by printing so as to overlap the predetermined visible print portion 52, the corresponding visible print portion 52 should be used as a guide when reading the code. The operating device 2 is slid on the paper surface 51. At this time, while pressing the switch 17, the sensors 2 and 8 are operated in a direction orthogonal to the bar representing each digit of the code 53 and in a direction in which the first sensor 7 precedes (operation direction in FIG. 2). Move the device 2. Thereby, the ultraviolet ray from the UV arc tube 9 is applied to the code 35 through the window 6, the code 53 is excited, and the visible light is sequentially detected by both the sensors 7 and 8.

【0020】すると、図7のタイムチャートに示すよう
に、第1センサ7の出力が先行してハイとなり、これと
同期してエッジ検出回路21からパルス(a)が出力さ
れるとともに、スイッチ17からの信号SWの立ち上が
りに対応してリセットされてたフリップフロップ23の
出力信号(b)はハイとなる。引き続き、第2センサ8
の出力がハイとなり、これと同期してエッジ検出回路2
4からパルス(c)が出力されるとともに、フリップフ
ロップ24の出力信号(d)もハイとなる。すると、時
間差検出回路5は、両フリップフロップ23,24の信
号(b,d)の入力時間差(e)としてt0を出力し、
除算回路26はこれを3で除した商(f)=t0/3を
出力する。
Then, as shown in the time chart of FIG. 7, the output of the first sensor 7 precedes to high, and in synchronization with this, the pulse (a) is output from the edge detection circuit 21 and the switch 17 The output signal (b) of the flip-flop 23, which has been reset in response to the rising of the signal SW from, becomes high. Next, the second sensor 8
Output becomes high, and in synchronization with this, the edge detection circuit 2
4 outputs a pulse (c), and the output signal (d) of the flip-flop 24 also goes high. Then, the time difference detection circuit 5 outputs t 0 as the input time difference (e) of the signals (b, d) of both flip-flops 23, 24,
The division circuit 26 divides this by 3 and outputs a quotient (f) = t 0/3 .

【0021】また、ORゲート27に通した信号(g)
は、両センサ7,8が変化するタイミングのパルスとな
り、遅延回路32の出力(h)は第2センサ8の最初の
立ち上がりから微量時間遅れてハイとなる。ANDゲー
ト33の出力(i)は、遅延回路32の出力(h)がハ
イとなった以降において、信号(g)の同期してハイと
なり、フリップフロップ34の出力(j)は、ANDゲ
ート33の出力(i)が最初にハイとなった時点でハイ
となる。
The signal (g) passed through the OR gate 27
Becomes a pulse at a timing when both sensors 7 and 8 change, and the output (h) of the delay circuit 32 becomes high with a slight delay after the first rising of the second sensor 8. The output (i) of the AND gate 33 becomes high in synchronization with the signal (g) after the output (h) of the delay circuit 32 becomes high, and the output (j) of the flip-flop 34 becomes the AND gate 33. Goes high when the output (i) of is first high.

【0022】選択回路30は、フリップフロップ34の
出力(j)がハイとなるまでは、その出力(k)とし
て、(f)の値であるt0/3を選択し、ハイとなった
以降は除算回路31からの新たな周期(n)を選択す
る。したがって、(k)はフリップフロップ34の出力
(j)がハイとなった以降は、後述する(n)と同じタ
イミングで同じ値に変化する。
Until the output (j) of the flip-flop 34 becomes high, the selection circuit 30 selects t 0/3, which is the value of (f), as its output (k) and becomes high thereafter. Selects a new cycle (n) from the division circuit 31. Therefore, (k) changes to the same value at the same timing as (n) described later after the output (j) of the flip-flop 34 becomes high.

【0023】パルス間隔測定回路28の測定値(l)
は、ORゲート27に通した信号(g)がハイとなるタ
イミングで、その前のハイとのパルス間隔を示す値であ
るt1,t2,t3,t4,t5と変化し、桁算出回路29
から出力される桁数(m)は、測定値(l)を、選択回
路30の出力(k)で除した値であることから、この測
定値(l)に同期して、この例では2,1,3,1,2
と変化する。また、除算回路31からの新たな周期
(n)は、パルス間隔の測定値(l)を桁算出回路29
からの桁数(m)で除算した商であるから、t1/2,
2,t3/3,t4,t5/2と変化し、除算回路35の出力
(o)は、(k)の1/2であるから、t0/6,t1/4,
2/2,t3/6,t4/2,t5/4と変化する。
Measurement value (l) of the pulse interval measuring circuit 28
At the timing when the signal (g) passed through the OR gate 27 becomes high, it changes to t 1 , t 2 , t 3 , t 4 , t 5 which are the values indicating the pulse interval with the previous high, Digit calculation circuit 29
Since the number of digits (m) output from is a value obtained by dividing the measured value (l) by the output (k) of the selection circuit 30, in synchronization with this measured value (l), 2 in this example. , 1, 3, 1, 2
And changes. Further, the new cycle (n) from the division circuit 31 is obtained by calculating the pulse interval measurement value (l) in the digit calculation circuit 29.
Since the quotient obtained by dividing the number of digits (m) from, t 1/2,
t 2, t 3/3, t 4, t 5/2 and changes the output of the divider circuit 35 (o), since a half of (k), t 0/6 , t 1/4,
t 2/2, t 3/ 6, t 4/2, changes t 5/4.

【0024】また、ANDゲート36の出力(p)は、
(d)がハイとなった以降の(g)に同期し、フリップ
フロップ37からの信号(q)は、ハイにより更新直後
であることを順次示し、選択回路38から出力される周
期(r)は、(q)がハイであるとき(o)となり、他
は(k)となる。したがって、選択回路28の出力
(r)は、t0/6とt0/3、t1/4とt1/2、・・・の如
く、順次変化する周期の1/2を当該周期の前に付加し
つつ、変化して行く。また、フリップフロップ42の出
力(s)は、スイッチ17と同期してハイを維持し、A
NDゲート41の出力(t)はφに同期したクロックパ
ルスとなる。
The output (p) of the AND gate 36 is
In synchronization with (g) after (d) becomes high, the signal (q) from the flip-flop 37 sequentially indicates that the signal has just been updated by high, and the cycle (r) output from the selection circuit 38. Is (o) when (q) is high, and the others are (k). Accordingly, the output of the selection circuit 28 (r) is, t 0/6 and t 0/3, t 1/ 4 and t 1/2, · · · as, 1/2 of the period of sequential changes in the cycle It changes while adding to the front. Further, the output (s) of the flip-flop 42 maintains high in synchronization with the switch 17,
The output (t) of the ND gate 41 becomes a clock pulse synchronized with φ.

【0025】サンプルパルス発生回路39からのサンプ
ルパルス(u)は、クロックパルスである(t)の計数
値が、周期(r)に対応する値となったとき、順次発生
する。また、サンプルホールド回路43の出力(w)
は、第2センサ8の出力をサンプルパルス(u)のタイ
ミングで、ホールドすることにより、図示のように変化
し、シフトレジスタ44は、サンプルホールド回路43
のホールド状態をサンプルパルス(u)のタイミングで
記憶して行く。また、パルス計数回路45からのパルス
(y)は、サンプルパルス(u)が10個となったタイ
ミングで発生し、この時点でシフトレジスタ44には、
10桁のデータ(本例では、“110111000
1”)が記憶されている。
The sample pulse (u) from the sample pulse generating circuit 39 is sequentially generated when the count value of the clock pulse (t) becomes a value corresponding to the cycle (r). Further, the output (w) of the sample hold circuit 43
Changes as shown by holding the output of the second sensor 8 at the timing of the sample pulse (u), and the shift register 44 shifts the sample hold circuit 43.
The hold state of is stored at the timing of the sample pulse (u). Further, the pulse (y) from the pulse counting circuit 45 is generated at the timing when the number of sample pulses (u) becomes 10, and at this time, the shift register 44 has
10-digit data (in this example, "110111000"
1 ”) is stored.

【0026】そして、前記制御部10がパルス(y)の
発生を契機として、シフトレジスタ44から10桁のコ
ードデータ(x)を読み込み、このコードデータ(x)
に対応する音声データを記憶部12から読み出す。引き
続き、この音声データに基づき音声波形を生成して、オ
ーディオ出力部16を駆動することにより、オーディオ
出力部から、読み取ったコードデータ(x)に対応する
音声が発生するのである。
Then, the control section 10 reads the 10-digit code data (x) from the shift register 44 upon the occurrence of the pulse (y), and the code data (x) is read.
The voice data corresponding to is read from the storage unit 12. Subsequently, a voice waveform is generated based on this voice data and the audio output unit 16 is driven, so that a voice corresponding to the read code data (x) is generated from the audio output unit.

【0027】なお、実施例においては紫外線により励起
される蛍光透明インキで印刷されたコードを読み取る場
合を示したが、可視インキにより通常印刷されたコード
にあっても、また、照射光、センサによる検出光は可視
光や赤外光であっても、適用し得ることは勿論である。
また、第1センサと第2センサとの間隔は、3桁分以外
の距離であってもよい。
In the embodiment, the case of reading the code printed with the fluorescent transparent ink excited by ultraviolet rays is shown. However, even if the code is normally printed with the visible ink, it can be read by the irradiation light and the sensor. Needless to say, the detection light may be visible light or infrared light.
The distance between the first sensor and the second sensor may be a distance other than three digits.

【0028】[0028]

【発明の効果】以上説明したように本発明は、コードの
所定桁数分等の所定間隔を有する一対のセンサのオン時
間差により、手動操作の速度を求め、この求めた手動操
作の速度に応じた周期で、センサの状態を取り込むよう
にしたことから、操作速度に左右されることなく、正確
にコードを読み取ることができる。
As described above, according to the present invention, the speed of the manual operation is obtained from the difference in the ON time of the pair of sensors having the predetermined number of digits of the code, and the speed of the manual operation is determined according to the obtained speed of the manual operation. Since the state of the sensor is taken in at a predetermined cycle, the code can be read accurately without being influenced by the operation speed.

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

【図1】本発明の一実施例にかかる読み取り装置を示す
側面図である。
FIG. 1 is a side view showing a reading device according to an embodiment of the present invention.

【図2】操作装置の底面図である。FIG. 2 is a bottom view of the operating device.

【図3】読み取り装置のブロック構成図である。FIG. 3 is a block diagram of a reading device.

【図4】本実施例で用いた絵本の斜視図である。FIG. 4 is a perspective view of a picture book used in this embodiment.

【図5】同絵本に印刷形成されるコードを示す図であ
る。
FIG. 5 is a diagram showing a code printed and formed on the picture book.

【図6】図3のブロック構成図におけるデータ判定部の
回路図である。
FIG. 6 is a circuit diagram of a data determination unit in the block configuration diagram of FIG.

【図7】データ判定部の動作を示すタイムチャートであ
る。
FIG. 7 is a time chart showing the operation of the data determination unit.

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

1 読み取り装置 2 操作装置 7 第1センサ 8 第2センサ 15 データ判定部 25 時間差検出回路 29 桁算出回路 39 サンプルパルス発生回路 53 コード 1 Reading Device 2 Operating Device 7 First Sensor 8 Second Sensor 15 Data Judgment Unit 25 Time Difference Detection Circuit 29 Digit Calculation Circuit 39 Sample Pulse Generation Circuit 53 Code

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 2値データからなるコードを、手動操作
に伴って読み取るコード読み取り方法において、 前記2値データの一方を検出してオン動作する第1及び
第2のセンサを、所定間隔をおいて配置し、この両セン
サのオン時間差に基づき、前記手動操作の速度を求め、
この求めた手動操作の速度に応じた周期で、センサの状
態を取り込むことを特徴とするコード読み取り方法。
1. A code reading method for reading a code consisting of binary data in accordance with a manual operation, wherein first and second sensors which detect one of the binary data and are turned on are set at predetermined intervals. Based on the difference in the ON time of both sensors, the speed of the manual operation is determined,
A code reading method characterized in that the state of the sensor is taken in at a cycle corresponding to the speed of the obtained manual operation.
【請求項2】 前記コードを、桁に対応する等間隔の領
域毎の2値データで構成し、前記両センサを所定桁数分
の間隔を置いて配置することを特徴とする請求項1記載
のコード読み取り方法。
2. The code is composed of binary data for each equally spaced region corresponding to a digit, and the two sensors are arranged at intervals of a predetermined digit number. Code reading method.
【請求項3】 前記両センサの何れか一方の状態を取り
込むことを特徴とする請求項1記載のコード読み取り方
法。
3. The code reading method according to claim 1, wherein the state of either one of the both sensors is captured.
【請求項4】 前記手動操作の速度を求めた後、前記セ
ンサの状態の変化に基づいて、前記周期を補正すること
を特徴とする請求項1記載のコード読み取り方法。
4. The code reading method according to claim 1, wherein after the speed of the manual operation is obtained, the cycle is corrected based on a change in the state of the sensor.
【請求項5】 桁に対応する領域毎の2値データからな
るコードを、手動操作に伴って読み取るコード読み取り
装置において、 所定間隔をおいて配置され、前記2値データの一方を検
出してオン動作する第1及び第2センサと、 この第1のセンサと第2のセンサとのオン時間差を検出
する時間差検出手段と、 この時間差検出手段により検出された前記オン時間差に
基づき、前記手動操作の速度を算出する算出手段と、 この算出手段により算出された前記速度に応じた周期で
パルスを発生するパルス発生手段と、 このパルス発生手段から発生するパルスに応答して、前
記センサの状態を取り込んで出力する出力手段と、 を有することを特徴とするコード読み取り装置。
5. A code reading device for reading a code consisting of binary data for each area corresponding to a digit in accordance with a manual operation, arranged at a predetermined interval, and detects one of the binary data to turn on. First and second sensors that operate, time difference detection means that detects an on-time difference between the first sensor and second sensor, and the manual operation based on the on-time difference detected by the time difference detection means Calculating means for calculating the speed, pulse generating means for generating a pulse in a cycle according to the speed calculated by the calculating means, and capturing the state of the sensor in response to the pulse generated by the pulse generating means A code reading device comprising:
【請求項6】 前記コードは、桁に対応する等間隔の領
域毎の2値データで構成され、前記両センサは所定桁数
分の間隔を置いて配置されていることを特徴とする請求
5記載のコード読み取り装置。
6. The code is composed of binary data for each equally spaced region corresponding to a digit, and the two sensors are arranged at intervals of a predetermined digit number. Code reading device described.
【請求項7】 前記出力手段は、両センサの何れか一方
の状態を取り込んで出力することを特徴とする請求項5
記載のコード読み取り装置。
7. The output means captures and outputs the state of either one of the two sensors.
Code reading device described.
【請求項8】 前記算出手段は、前記速度を算出した
後、前記第1及び第2センサのうち少なくとも一方のセ
ンサの検出状態の変化に基づいて、前記速度の値を補正
することを特徴とする請求項5記載のコード読み取り装
置。
8. The calculating means, after calculating the speed, corrects the value of the speed based on a change in a detection state of at least one of the first and second sensors. The code reading device according to claim 5.
JP5351311A 1993-12-27 1993-12-30 Method and device for reading code Pending JPH07200716A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP5351311A JPH07200716A (en) 1993-12-30 1993-12-30 Method and device for reading code
KR1019940037473A KR950020241A (en) 1993-12-27 1994-12-27 Code reading device, code running method, printing and learning device
TW083112310A TW257850B (en) 1993-12-27 1994-12-28 Apparatus and method for reading code, printed matter and educational apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5351311A JPH07200716A (en) 1993-12-30 1993-12-30 Method and device for reading code

Publications (1)

Publication Number Publication Date
JPH07200716A true JPH07200716A (en) 1995-08-04

Family

ID=18416453

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5351311A Pending JPH07200716A (en) 1993-12-27 1993-12-30 Method and device for reading code

Country Status (1)

Country Link
JP (1) JPH07200716A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933383A (en) * 2015-07-08 2015-09-23 北京市佳贝林科技有限公司 Automatic flash and audio playing apparatus of card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933383A (en) * 2015-07-08 2015-09-23 北京市佳贝林科技有限公司 Automatic flash and audio playing apparatus of card

Similar Documents

Publication Publication Date Title
JP2785534B2 (en) Information reader
EP0519409A2 (en) Luster detector
JPH07200716A (en) Method and device for reading code
KR890001932B1 (en) Recorder
EP0340393B1 (en) Position detecting circuit
JP3531076B2 (en) Mark detection method and device
JPH01227948A (en) Measuring instrument for multichannel fluorescent damping waveform
JP3756549B2 (en) Width detection device for transported paper sheets
JPS6226058B2 (en)
JPS6036632B2 (en) Image discrimination device
JP2694199B2 (en) Multi-channel fluorescence decay waveform measuring device
JPS6132446Y2 (en)
SU1401511A1 (en) Information displaying device
JPH06131489A (en) Portable optical information reader
JPH0844812A (en) Optical information reader
SU907564A1 (en) Optic device for recognition of moving object number
JPS61109367A (en) Picture input device
JPS58221467A (en) Bar code reading system
SU849196A1 (en) Device for taking up coordinates from crt screen
SU1727118A1 (en) Device for information input
JPS632926Y2 (en)
JPH08247721A (en) Dimension measuring instrument
SU932205A1 (en) Device for measuring geometric parameters of non-transparent moving object
JP4386015B2 (en) Optical information reader
SU813407A1 (en) Device for dispalying information on crt screen