JP6697991B2 - Input device, control method of input device, and program - Google Patents

Input device, control method of input device, and program Download PDF

Info

Publication number
JP6697991B2
JP6697991B2 JP2016186938A JP2016186938A JP6697991B2 JP 6697991 B2 JP6697991 B2 JP 6697991B2 JP 2016186938 A JP2016186938 A JP 2016186938A JP 2016186938 A JP2016186938 A JP 2016186938A JP 6697991 B2 JP6697991 B2 JP 6697991B2
Authority
JP
Japan
Prior art keywords
pwm
output
input device
unit
circuits
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.)
Active
Application number
JP2016186938A
Other languages
Japanese (ja)
Other versions
JP2018055165A (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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2016186938A priority Critical patent/JP6697991B2/en
Publication of JP2018055165A publication Critical patent/JP2018055165A/en
Application granted granted Critical
Publication of JP6697991B2 publication Critical patent/JP6697991B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、入力装置、入力装置の制御方法およびプログラムに関する。   The present invention relates to an input device, a control method for the input device, and a program.

従来、ユーザに触覚を与えることで入力を受け付けたことをユーザに知らせる入力装置がある。かかる入力装置では、タッチパッドなどの操作面を振動させる素子に印加する駆動波形を調整し、ユーザに与える触感を切り替えている(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, there is an input device that informs a user that an input has been received by giving a tactile sensation to the user. In such an input device, a drive waveform applied to an element that vibrates an operation surface such as a touch pad is adjusted, and a tactile sensation given to a user is switched (for example, see Patent Document 1).

特開2005−267080号公報JP, 2005-267080, A

しかしながら、従来の入力装置では、駆動波形を精密に制御しようとすると、高性能のマイコンが必要となるが、かかるマイコンを搭載すると入力装置が高価になってしまう。   However, in the conventional input device, a high-performance microcomputer is required in order to precisely control the drive waveform, but the input device becomes expensive if such a microcomputer is mounted.

本発明は、上記に鑑みてなされたものであって、安価な構成で駆動波形を精密に制御することができる入力装置、入力装置の制御方法およびプログラムを提供することを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to provide an input device, a control method of the input device, and a program that can precisely control a drive waveform with an inexpensive configuration.

上述した課題を解決し、目的を達成するために、本発明は、入力装置において、振動素子と、複数のPWM回路と、指示部と、波形生成部とを備える。振動素子は、操作面を振動させる。指示部は、PWM信号の出力を前記複数のPWM回路それぞれへ振分けて指示する。波形生成部は、前記複数のPWM回路によってそれぞれ出力される前記PWM信号を合成し、前記振動素子に印加する駆動波形を生成する。   In order to solve the above-mentioned problems and achieve the object, the present invention includes an oscillating element, a plurality of PWM circuits, an instruction section, and a waveform generation section in an input device. The vibrating element vibrates the operation surface. The instruction unit distributes the output of the PWM signal to each of the plurality of PWM circuits and gives an instruction. The waveform generation unit synthesizes the PWM signals output by the plurality of PWM circuits to generate a drive waveform to be applied to the vibrating element.

本実施形態によれば、安価な構成で駆動波形を精密に制御することが可能な入力装置の制御方法およびプログラムを提供することができる。   According to the present embodiment, it is possible to provide an input device control method and program capable of precisely controlling a drive waveform with an inexpensive configuration.

図1Aは、入力装置の概要を示す図である。FIG. 1A is a diagram showing an outline of an input device. 図1Bは、駆動波形の生成方法の概要を示す図である。FIG. 1B is a diagram showing an outline of a drive waveform generation method. 図2は、入力装置の搭載例を示す図である。FIG. 2 is a diagram illustrating an example of mounting the input device. 図3は、入力装置の構成を示すブロック図である。FIG. 3 is a block diagram showing the configuration of the input device. 図4は、所望出力パターンと出力周期およびデューティー比の関係を示す図である。FIG. 4 is a diagram showing a relationship between a desired output pattern, an output cycle, and a duty ratio. 図5Aは、PWM回路の起動タイミングの設定方法を示す図(その1)である。FIG. 5A is a diagram (No. 1) showing a method of setting the start timing of the PWM circuit. 図5Bは、PWM回路の起動タイミングの設定方法を示す図(その2)である。FIG. 5B is a diagram (No. 2) showing the method of setting the start timing of the PWM circuit. 図5Cは、PWM回路の起動タイミングの設定方法を示す図(その3)である。FIG. 5C is a diagram (part 3) illustrating the method for setting the activation timing of the PWM circuit. 図6は、入力装置の振動素子の配置例を示す図である。FIG. 6 is a diagram showing an arrangement example of the vibration elements of the input device. 図7は、周波数補正の模式図である。FIG. 7 is a schematic diagram of frequency correction. 図8は、入力装置が実行する処理手順を示すフローチャートである。FIG. 8 is a flowchart showing a processing procedure executed by the input device.

以下、添付図面を参照して、本願の開示する入力装置、入力装置の制御方法およびプログラムを詳細に説明する。なお、以下に示す実施形態によりこの発明が限定されるものではない。   Hereinafter, an input device, a control method of the input device, and a program disclosed in the present application will be described in detail with reference to the accompanying drawings. The present invention is not limited to the embodiments described below.

まず、実施形態に係る入力装置1の概要について図1Aを用いて説明する。図1Aは、入力装置1の概要を説明する図である。入力装置1は、例えば、タッチパッドやスマートフォンなどの入力デバイス機能を有する。   First, the outline of the input device 1 according to the embodiment will be described with reference to FIG. 1A. FIG. 1A is a diagram illustrating an outline of the input device 1. The input device 1 has an input device function such as a touch pad or a smartphone.

図1Aに示すように、入力装置1は、操作面Pと振動素子31a〜31dとを備える。また、振動素子31a〜31dは、例えば、圧電素子であって、操作面Pに接着剤などによって固定される。入力装置1は、振動素子31a〜31dを駆動させることで操作面Pを振動させて、ユーザの指に振動を与えることができる。   As shown in FIG. 1A, the input device 1 includes an operation surface P and vibrating elements 31a to 31d. The vibrating elements 31a to 31d are, for example, piezoelectric elements and are fixed to the operation surface P with an adhesive or the like. The input device 1 can vibrate the operation surface P by driving the vibrating elements 31a to 31d to give vibration to the user's finger.

具体的には、入力装置1は、超音波領域の周波数を有する駆動波形を振動素子31a〜31dに印加し、振動素子31a〜31dを振動させることで操作面Pを振動させる。なお、以下では、振動素子31a〜31dを総称して振動素子31と記載する場合がある。また、図1Aに示す振動素子31の個数や配置は一例であって、これに限定するものではない。すなわち、振動素子31の個数は3つ以下であっても5つ以上であってもよい。   Specifically, the input device 1 applies a drive waveform having a frequency in the ultrasonic range to the vibrating elements 31a to 31d, and vibrates the vibrating elements 31a to 31d to vibrate the operation surface P. In the following, the vibrating elements 31a to 31d may be collectively referred to as the vibrating element 31. The number and arrangement of the vibration elements 31 shown in FIG. 1A are examples, and the present invention is not limited to this. That is, the number of vibrating elements 31 may be three or less or five or more.

入力装置1は、例えば、ユーザの指が操作面Pに接触した状態で振動素子31を振動させると、ユーザの指と操作面Pとの間の摩擦力を変化させることができる。   When the input device 1 vibrates the vibrating element 31 in a state where the user's finger is in contact with the operation surface P, for example, the input device 1 can change the frictional force between the user's finger and the operation surface P.

そして、かかる摩擦力を変化させることで摩擦力に応じて異なる触覚をユーザの指に与えることができる。なお、入力装置1は、かかる触感として、ざらざらした触感や、つるつるした触感、クリック感等をユーザに与えることができる。   Then, by changing the frictional force, different tactile sensations can be given to the user's finger according to the frictional force. Note that the input device 1 can give the user a rough tactile feel, a slippery tactile feel, a click feel, and the like as such tactile feel.

ここで、入力装置1は、PWM(Pulse Width Modulation)信号の出力を制御することで、駆動波形の周波数を調整している。かかる駆動波形の周波数を例えば100kHzの精度で精密に調整しようとした場合、従来では、クロック周波数の高いマイコンが必要となる。しかしながら、このようなマイコンは高価であるため、かかるマイコンを入力装置1に搭載すると、入力装置1も高価になってしまう。   Here, the input device 1 adjusts the frequency of the drive waveform by controlling the output of a PWM (Pulse Width Modulation) signal. In order to precisely adjust the frequency of such a drive waveform with an accuracy of 100 kHz, for example, a microcomputer having a high clock frequency is conventionally required. However, since such a microcomputer is expensive, if the microcomputer is mounted on the input device 1, the input device 1 also becomes expensive.

そこで、本実施形態に係る入力装置1は、安価な構成で駆動波形を精密に制御することとした。以下、図1Bを用いて本実施形態に係る駆動波形の生成方法の概要について説明する。なお、図1Bにおける横軸は、時刻の経過をあらわしている。   Therefore, the input device 1 according to the present embodiment is configured to precisely control the drive waveform with an inexpensive configuration. The outline of the drive waveform generation method according to the present embodiment will be described below with reference to FIG. 1B. The horizontal axis in FIG. 1B represents the passage of time.

図1Bに示すように、入力装置1は、第1PWM回路と第2PWM回路とを備える。なお、第1PWM回路および第2PWM回路には、同じPWM回路を用い、双方のPWM回路は、同一の出力周期T1を有するものとする。   As shown in FIG. 1B, the input device 1 includes a first PWM circuit and a second PWM circuit. The same PWM circuit is used for the first PWM circuit and the second PWM circuit, and both PWM circuits have the same output cycle T1.

そして、入力装置1は、PWM信号の出力指示を、第1PWM回路および第2PWM回路に振り分ける。具体的には、入力装置1は、例えば、第1PWM回路と、第2PWM回路とが異なるタイミングで交互にPWM信号を出力するように制御する。なお、同図では、第1PWM回路および第2PWM回路がPWM信号を出力する期間にハッチングを施して示している。   Then, the input device 1 distributes the output instruction of the PWM signal to the first PWM circuit and the second PWM circuit. Specifically, for example, the input device 1 controls the first PWM circuit and the second PWM circuit to alternately output the PWM signals at different timings. In the figure, the period in which the first PWM circuit and the second PWM circuit output the PWM signal is hatched.

そして、入力装置1は、第1PWM回路および第2PWM回路から出力されるPWM信号を合成する。これにより、入力装置1は、同図に示す合成後のPWM信号を得ることとなる。そして、入力装置1は、合成後のPWM信号から駆動波形を生成し、図1Aに示した振動素子31を駆動させる。   Then, the input device 1 synthesizes the PWM signals output from the first PWM circuit and the second PWM circuit. As a result, the input device 1 obtains the combined PWM signal shown in FIG. Then, the input device 1 generates a drive waveform from the combined PWM signal and drives the vibration element 31 shown in FIG. 1A.

ここで、合成後のPWM信号の出力周期T2は、合成前の出力周期T1の1/2の時間とすることができる。すなわち、入力装置1は、複数のPWM回路でPWM信号を分担して出力するため、見かけ上の出力周期T2を短くすることができる。したがって、出力周期が短くなる分だけ、駆動波形の周波数の調整精度を向上させることが可能となる。   Here, the output period T2 of the PWM signal after the combination can be set to half the time of the output period T1 before the combination. That is, since the input device 1 shares and outputs the PWM signals by the plurality of PWM circuits, the apparent output cycle T2 can be shortened. Therefore, the accuracy of adjusting the frequency of the drive waveform can be improved by the amount of the shortened output cycle.

具体的には、同図に示すように、入力装置1で生成する駆動波形W1の調整可能な周波数の幅f1を、PWM回路(例えば、第1PWM回路)が一つである場合に生成される駆動波形W2の調整可能な周波数の幅f2よりも短くすることができる。   Specifically, as shown in the figure, the adjustable frequency width f1 of the drive waveform W1 generated by the input device 1 is generated when the number of PWM circuits (for example, the first PWM circuit) is one. It can be made shorter than the adjustable frequency width f2 of the drive waveform W2.

なお、同図に示す例では、出力周期T2は、出力周期T1の1/2であるため、入力装置1で調整可能な幅f1は、幅f2の1/2の値となる。すなわち、本実施形態に係る入力装置1では、クロック周波数の高い高価なマイコンを必要とせず、駆動波形の周波数を精密に制御することができる。   In the example shown in the figure, the output cycle T2 is ½ of the output cycle T1, so the width f1 adjustable by the input device 1 is ½ of the width f2. That is, the input device 1 according to the present embodiment does not require an expensive microcomputer having a high clock frequency and can precisely control the frequency of the drive waveform.

したがって、本実施形態に係る入力装置1は、安価な構成で駆動波形を精密に制御することができる。   Therefore, the input device 1 according to the present embodiment can precisely control the drive waveform with an inexpensive configuration.

なお、上記した例では、PWM回路が2つである場合を示したが、PWM回路は3つ以上であってもよい。かかる場合に、駆動波形の周波数は、PWM回路の個数に比例してより精密に調整することが可能となる。また、上記した例では、入力装置1が正弦波状の駆動波形を生成する場合について示したが、駆動波形は、三角波状やパルス状であってもよい。   In the above example, the number of PWM circuits is two, but the number of PWM circuits may be three or more. In such a case, the frequency of the drive waveform can be adjusted more precisely in proportion to the number of PWM circuits. Further, in the above-described example, the case where the input device 1 generates a sinusoidal drive waveform has been described, but the drive waveform may be a triangular wave or a pulse.

また、本実施形態に係る入力装置1は、クロック周波数の低いマイコンであっても、各PWM信号を所望のタイミングで起動させることができる。この点の詳細については、図5A〜図5Cを用いて後述する。   Further, the input device 1 according to the present embodiment can activate each PWM signal at a desired timing even if the microcomputer has a low clock frequency. Details of this point will be described later with reference to FIGS. 5A to 5C.

また、入力装置1は、経年劣化あるいは温度特性等によって触感毎に最適な駆動波形の周波数が変化する。そこで、本実施形態に係る入力装置1では、触感毎に最適な駆動波形へ補正することで、経年劣化や温度特性等による変化を抑制することもできる。この点の詳細については、図6および図7を用いて後述する。   Further, in the input device 1, the optimum frequency of the drive waveform changes for each tactile sensation due to deterioration over time, temperature characteristics, or the like. Therefore, in the input device 1 according to the present embodiment, it is possible to suppress the deterioration due to aging, the change due to the temperature characteristic, and the like by correcting the drive waveform for each tactile sensation. Details of this point will be described later with reference to FIGS. 6 and 7.

次に、入力装置1の搭載例について図2を用いて説明する。図2は、本実施形態に係る入力装置1の搭載例を示す図である。同図に示すように、入力装置1は、車両100に搭載される。また、入力装置1は、図3にて後述するナビゲーション装置50と接続され、ナビゲーション装置50の入力デバイスとして機能する。   Next, an example of mounting the input device 1 will be described with reference to FIG. FIG. 2 is a diagram showing a mounting example of the input device 1 according to the present embodiment. As shown in the figure, the input device 1 is mounted on a vehicle 100. Further, the input device 1 is connected to a navigation device 50 described later in FIG. 3 and functions as an input device of the navigation device 50.

また、入力装置1は、操作面Pが、例えばセンターコンソールのシフトレバーS近傍など、運転者から操作しやすい位置に配置される。図2に示す例では、操作面Pは、アームレストRと、シフトレバーSとの間に配置される。   Further, the input device 1 is arranged such that the operation surface P is easily operated by the driver, for example, near the shift lever S of the center console. In the example shown in FIG. 2, the operation surface P is arranged between the armrest R and the shift lever S.

このように、操作面Pを配置することで、運転手が姿勢を変化させることなく、入力装置1を容易に操作することができる。また、ナビゲーション装置50は、例えば、インストルメントパネルに表示部51を備える。表示部51に表示される表示画像は、例えば、目的地までの経路を示す地図や、テレビなどの動画などがある。   By arranging the operation surface P in this way, the driver can easily operate the input device 1 without changing the posture. The navigation device 50 also includes, for example, a display unit 51 on the instrument panel. The display image displayed on the display unit 51 is, for example, a map showing a route to a destination, a moving image of a television, or the like.

なお、図2では、操作面Pと表示部51とが別体である場合について示したが、入力装置1を操作面Pと表示部51とを一体に形成したスマートフォンやタブレット端末とすることもできる。   Although FIG. 2 shows the case where the operation surface P and the display unit 51 are separate bodies, the input device 1 may be a smartphone or a tablet terminal in which the operation surface P and the display unit 51 are integrally formed. it can.

次に、図3を用いて本実施形態に係る入力装置1の構成について説明する。図3は、入力装置1のブロック図である。なお、図3では、ナビゲーション装置50を併せて示している。   Next, the configuration of the input device 1 according to the present embodiment will be described with reference to FIG. FIG. 3 is a block diagram of the input device 1. Note that FIG. 3 also shows the navigation device 50.

同図に示すように、入力装置1は、制御部10と、記憶部20と、振動部30と、操作面Pとを備える。   As shown in the figure, the input device 1 includes a control unit 10, a storage unit 20, a vibration unit 30, and an operation surface P.

制御部10は、操作検出部11と、指示部12と、PWM回路部13と、波形生成部14と、電圧検出部15と、選択部16とを備える。また、記憶部20は、周波数補正プログラム21と、触感周波数情報22とを記憶する。   The control unit 10 includes an operation detection unit 11, an instruction unit 12, a PWM circuit unit 13, a waveform generation unit 14, a voltage detection unit 15, and a selection unit 16. The storage unit 20 also stores a frequency correction program 21 and tactile frequency information 22.

制御部10は、例えば、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)、HDD(Hard Desk Drive)、入出力ポートなどを有するコンピュータや各種回路を含む。   The control unit 10 includes, for example, a computer having a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), an HDD (Hard Desk Drive), an input/output port, and various circuits.

コンピュータのCPUは、たとえば、ROMに記憶されたプログラムを読み出して実行することによって、制御部10の操作検出部11、指示部12、PWM回路部13、波形生成部14、電圧検出部15および選択部16として機能する。   The CPU of the computer, for example, reads out and executes the program stored in the ROM to operate the operation detection unit 11, the instruction unit 12, the PWM circuit unit 13, the waveform generation unit 14, the voltage detection unit 15, and the selection unit. Functions as the unit 16.

また、制御部10の操作検出部11、指示部12、PWM回路部13、波形生成部14、電圧検出部15および選択部16の少なくとも一つまたは全てをASIC(Application Specific Integrated Circuit)やFPGA(Field Programmable Gate Array)等のハードウェアで構成することもできる。   Further, at least one or all of the operation detection unit 11, the instruction unit 12, the PWM circuit unit 13, the waveform generation unit 14, the voltage detection unit 15, and the selection unit 16 of the control unit 10 may be an ASIC (Application Specific Integrated Circuit) or FPGA ( It can also be configured with hardware such as Field Programmable Gate Array).

また、記憶部20は、たとえば、ROM、RAMおよびHDDに対応する。ROM、RAMおよびHDDは、周波数補正プログラム21および触感周波数情報22を記憶することができる。なお、制御部10は、有線や無線のネットワークで接続された他のコンピュータや可搬型記録媒体を介して各種情報を取得することとしてもよい。   The storage unit 20 corresponds to, for example, a ROM, a RAM, and an HDD. The ROM, RAM and HDD can store the frequency correction program 21 and the tactile frequency information 22. The control unit 10 may acquire various information via another computer or a portable recording medium connected by a wired or wireless network.

制御部10の操作検出部11は、操作面Pから入力される接触位置に応じたセンサ値に基づいてユーザの操作を検出し、検出結果をナビゲーション装置50に出力する。   The operation detection unit 11 of the control unit 10 detects a user operation based on a sensor value corresponding to the contact position input from the operation surface P, and outputs the detection result to the navigation device 50.

ナビゲーション装置50は、かかる検出結果に基づいて例えば図2に示した表示部51の表示画像を変更する。また、ナビゲーション装置50は、例えば表示画像の変更に応じて入力装置1の指示部12に振動要求を出力する。かかる振動要求は、例えば、振動素子31の振動のオン/オフのタイミングや、ユーザに与える触感を指示するものである。   The navigation device 50 changes the display image of the display unit 51 shown in FIG. 2, for example, based on the detection result. The navigation device 50 also outputs a vibration request to the instruction unit 12 of the input device 1 in response to a change in the display image, for example. The vibration request is, for example, an instruction to turn on/off the vibration of the vibrating element 31 and a tactile sensation given to the user.

指示部12は、ナビゲーション装置50から振動要求が入力された場合に、PWM信号の出力を複数のPWM回路それぞれへ振分けて指示する。   When the vibration request is input from the navigation device 50, the instruction unit 12 distributes and outputs the PWM signal output to each of the plurality of PWM circuits.

具体的には、まず、指示部12は、かかる振動要求が入力されると、記憶部20に記憶された触感周波数情報22を参照して振動要求により要求された触感に対応する駆動波形の周波数を選択する。   Specifically, first, when the vibration request is input, the instruction unit 12 refers to the tactile frequency information 22 stored in the storage unit 20, and refers to the frequency of the drive waveform corresponding to the tactile feeling requested by the vibration request. Select.

続いて、指示部12は、選択した周波数に対応する出力パターンを触感周波数情報22から抽出し、かかる出力パターンでPWM信号を出力するようにPWM回路部13に指示する。   Then, the instruction unit 12 extracts the output pattern corresponding to the selected frequency from the tactile frequency information 22 and instructs the PWM circuit unit 13 to output the PWM signal with the output pattern.

ここで、従来では、駆動波形の周波数を変更する毎に、マイコン(制御部10に相当)でデューティー比を演算する必要があった。デューティー比の演算処理は、極めて短い時間で行う必要があり処理負荷が高い。このため、従来では、駆動波形を精密に制御しようとした場合、かかる演算処理に耐えうる高性能のマイコンを必要としていた。   Here, conventionally, the microcomputer (corresponding to the control unit 10) needs to calculate the duty ratio every time the frequency of the drive waveform is changed. The calculation processing of the duty ratio needs to be performed in an extremely short time, and the processing load is high. For this reason, in the past, when trying to precisely control the drive waveform, a high-performance microcomputer capable of withstanding such arithmetic processing was required.

そこで、本実施形態に係る入力装置1では、駆動波形を生成するためのデューティー比パターンを固定して、第1PWM回路13aおよび第2PWM回路13bの出力周期を調整することで、駆動波形の周波数を調整することにしている。   Therefore, in the input device 1 according to the present embodiment, the duty ratio pattern for generating the drive waveform is fixed, and the output cycle of the first PWM circuit 13a and the second PWM circuit 13b is adjusted, whereby the frequency of the drive waveform is changed. I am going to adjust it.

具体的には、指示部12は、触感周波数情報22に基づいてデューティー比パターンと、所望する駆動波形の周波数に応じた出力周期とでPWM信号を出力するように第1PWM回路13aおよび第2PWM回路13bに指示する。   Specifically, the instruction unit 12 outputs the PWM signal with the duty ratio pattern based on the tactile frequency information 22 and the output cycle corresponding to the frequency of the desired drive waveform, and the first PWM circuit 13a and the second PWM circuit 13a. Instruct 13b.

なお、触感周波数情報22には、駆動波形を生成するためのPWM信号のデューティー比パターンと、駆動波形の周波数およびPWM回路の出力周期との関係を示す関係情報が記憶されているものとする。   It is assumed that the tactile frequency information 22 stores relationship information indicating the relationship between the duty ratio pattern of the PWM signal for generating the drive waveform and the frequency of the drive waveform and the output cycle of the PWM circuit.

このようにすることで、制御部10では、出力周期の変更毎にデューティー比を演算しなくてよい。したがって、上記したような高性能のマイコンを必要とせず、安価なマイコン(制御部10に相当)であっても駆動波形を精密に制御することができる。   By doing so, the control unit 10 does not have to calculate the duty ratio each time the output cycle is changed. Therefore, a high-performance microcomputer as described above is not required, and an inexpensive microcomputer (corresponding to the control unit 10) can precisely control the drive waveform.

なお、第1PWM回路13aおよび第2PWM回路13bで設定すべきPWM信号の出力周期と、デューティー比パターン(以下、所望出力パターンという)は、入力装置1のPWM回路の個数に応じて異なる値に設定される。この点の詳細については、図4を用いて後述する。   The output cycle of the PWM signal to be set in the first PWM circuit 13a and the second PWM circuit 13b and the duty ratio pattern (hereinafter referred to as the desired output pattern) are set to different values according to the number of PWM circuits of the input device 1. To be done. Details of this point will be described later with reference to FIG.

また、指示部12は、例えば、入力装置1の電源の投入時に、記憶部20に記憶された周波数補正プログラム21を読み出して実行することで、触感毎に最適な駆動波形へ補正することもできる。この点の詳細については、図6および図7を用いて後述する。   In addition, the instruction unit 12 can correct the drive waveform for each tactile sensation by reading and executing the frequency correction program 21 stored in the storage unit 20 when the power of the input device 1 is turned on, for example. .. Details of this point will be described later with reference to FIGS. 6 and 7.

PWM回路部13は、複数のPWM回路を備え、指示部12による指示に応じてPWM信号を生成し、波形生成部14へ出力する。図3に示す例では、PWM回路部13が第1PWM回路13aおよび第2PWM回路13bを備える場合について示している。   The PWM circuit unit 13 includes a plurality of PWM circuits, generates a PWM signal according to an instruction from the instruction unit 12, and outputs the PWM signal to the waveform generation unit 14. In the example illustrated in FIG. 3, the PWM circuit unit 13 includes the first PWM circuit 13a and the second PWM circuit 13b.

波形生成部14は、PWM回路部13から入力されるPWM信号を合成し、振動素子31に印加する駆動波形を生成する。また、波形生成部14は、生成した駆動波形を振動部30に出力する。   The waveform generation unit 14 synthesizes the PWM signals input from the PWM circuit unit 13 and generates a drive waveform to be applied to the vibrating element 31. Further, the waveform generation unit 14 outputs the generated drive waveform to the vibration unit 30.

具体的には、波形生成部14は、OR合成回路14aと、サンプリング部14bとを備える。OR合成回路14aは、PWM回路部13から順次出力されるPWM信号をOR合成し、サンプリング部14bへ出力する。   Specifically, the waveform generation unit 14 includes an OR synthesis circuit 14a and a sampling unit 14b. The OR synthesizing circuit 14a performs an OR synthesizing on the PWM signals sequentially output from the PWM circuit unit 13 and outputs the result to the sampling unit 14b.

サンプリング部14bは、OR合成回路14aから入力されるPWM信号をAD変換(サンプリング)したのちに、平滑化して駆動波形を生成する。また、波形生成部14は、生成した駆動波形を振動部30へ出力する。なお、入力装置1では、サンプリング部14bは、出力周期にあわせてサンプリングを行うようにしている。   The sampling unit 14b performs AD conversion (sampling) on the PWM signal input from the OR synthesis circuit 14a and then smoothes the PWM signal to generate a drive waveform. In addition, the waveform generation unit 14 outputs the generated drive waveform to the vibration unit 30. In addition, in the input device 1, the sampling unit 14b performs sampling in accordance with the output cycle.

振動部30は、第1振動素子31a、第2振動素子31b、第3振動素子31cおよび第4振動素子31dを備える。そして、振動素子31は、波形生成部14から印加される駆動波形で駆動することで、操作面Pを振動させる。   The vibrating section 30 includes a first vibrating element 31a, a second vibrating element 31b, a third vibrating element 31c, and a fourth vibrating element 31d. Then, the vibrating element 31 vibrates the operation surface P by being driven by the drive waveform applied from the waveform generating unit 14.

また、振動素子31は、操作面Pの振動強度に応じた電圧を発生させて、電圧検出部15に出力する。電圧検出部15は、振動素子31で発生する電圧値を検出し、選択部16に出力する。   The vibrating element 31 also generates a voltage according to the vibration intensity of the operation surface P and outputs the voltage to the voltage detection unit 15. The voltage detection unit 15 detects the voltage value generated in the vibration element 31 and outputs it to the selection unit 16.

選択部16は、電圧検出部15によって検出された電圧値が最も高い駆動波形を選択し、記憶部20の触感周波数情報22を更新する。なお、電圧検出部15および選択部16による処理の詳細については、図6および図7を用いて後述する。   The selection unit 16 selects the drive waveform having the highest voltage value detected by the voltage detection unit 15, and updates the tactile frequency information 22 in the storage unit 20. The details of the processing by the voltage detection unit 15 and the selection unit 16 will be described later with reference to FIGS. 6 and 7.

次に、図4を用いて所望出力パターンと出力周期およびデューティー比の相関について説明する。図4は、所望出力パターンと出力周期およびデューティー比の相関を示す図である。   Next, the correlation between the desired output pattern, the output cycle, and the duty ratio will be described with reference to FIG. FIG. 4 is a diagram showing the correlation between the desired output pattern, the output cycle, and the duty ratio.

上記したように、入力装置1では、PWM信号を複数のPWM回路で振分けて出力するため、各PWM回路の出力周期およびデューティー比は、PWM回路の個数に応じて異なる値に設定される。   As described above, in the input device 1, since the PWM signal is distributed and output by the plurality of PWM circuits, the output cycle and the duty ratio of each PWM circuit are set to different values according to the number of PWM circuits.

具体的には、PWM回路が2つである場合、同図に示すように、出力周期T1は、所望出力パターンの出力周期T2の2倍の時間に設定される。また、これに伴って、第1PWM回路13aおよび第2PWM回路13bで出力すべきデューティー比は、所望出力パターンの各デューティー比を1/2に分割した値に設定される。なお、この場合に、設定されるデューティー比の最大値は、50%となる。   Specifically, when there are two PWM circuits, the output cycle T1 is set to be twice as long as the output cycle T2 of the desired output pattern, as shown in FIG. Along with this, the duty ratio to be output by the first PWM circuit 13a and the second PWM circuit 13b is set to a value obtained by dividing each duty ratio of the desired output pattern into 1/2. In this case, the maximum value of the set duty ratio is 50%.

このように、出力周期T1を出力周期T2の2倍の時間に設定することで、出力周期T1と出力周期T2との周期にズレが生じない。このため、第1PWM回路13aおよび第2PWM回路13bが出力するPWM信号で所望出力パターンを正確に再現することができるようになる。   In this way, by setting the output cycle T1 to a time twice as long as the output cycle T2, there is no deviation between the output cycle T1 and the output cycle T2. Therefore, the desired output pattern can be accurately reproduced by the PWM signals output from the first PWM circuit 13a and the second PWM circuit 13b.

また、図4には、PMW回路が2つの場合を示したが、出力周期およびデューティー比は、PWM回路の個数に応じて異なる値が設定される。具体的には、PWM回路がn個(nは2以上の整数)である場合、出力周期は所望出力パターンの出力周期T2のn倍した時間とし、デューティー比を所望出力パターンのデューティー比の1/nに分割した値として設定される。   Further, FIG. 4 shows the case where there are two PMW circuits, but the output cycle and the duty ratio are set to different values according to the number of PWM circuits. Specifically, when the number of PWM circuits is n (n is an integer of 2 or more), the output cycle is n times the output cycle T2 of the desired output pattern, and the duty ratio is 1 of the duty ratio of the desired output pattern. It is set as a value divided into /n.

このように、入力装置1では、PWM回路の個数に応じて各PWM回路の出力周期およびデューティー比を容易に設定することができる。これにより、PWM回路の個数が異なる入力装置1を製造する場合に、簡単に出力周期およびデューティー比を設定することができる。   Thus, in the input device 1, the output cycle and the duty ratio of each PWM circuit can be easily set according to the number of PWM circuits. This makes it possible to easily set the output cycle and the duty ratio when manufacturing the input device 1 having different numbers of PWM circuits.

次に、図5A〜図5Cを用いて、PWM回路の起動タイミングの設定方法について説明する。図5A〜図5Cは、PWM回路の出力周期の起動タイミングの設定方法を示す図である。なお、入力装置1は、以下に示すいずれかの方法を用いてPWM回路を起動させることができる。   Next, a method of setting the start timing of the PWM circuit will be described with reference to FIGS. 5A to 5C. 5A to 5C are diagrams showing a method of setting the start timing of the output cycle of the PWM circuit. The input device 1 can activate the PWM circuit by using any of the following methods.

まず、図5Aを用いて各PWM回路の出力周期を遅延起動部17によって遅延起動させる場合について説明する。図5Aに示すように、入力装置1は、指示部12と、第2PWM回路13bとの経路に遅延起動部17をさらに備える。遅延起動部17は、例えば、遅延回路を含む。   First, with reference to FIG. 5A, a case where the output period of each PWM circuit is delayed by the delay activation unit 17 will be described. As shown in FIG. 5A, the input device 1 further includes a delay starting unit 17 in the path between the instruction unit 12 and the second PWM circuit 13b. The delay activation unit 17 includes, for example, a delay circuit.

ここで、遅延起動部17は、例えば、指示部12から入力される指示を出力周期の1/2の時間だけ遅らせて第2PWM回路13bに出力するように設定される。   Here, the delay activation unit 17 is set so as to delay the instruction input from the instruction unit 12 by half the output period and output the instruction to the second PWM circuit 13b.

したがって、同図に示すように、第2PWM回路13bは、第1PWM回路13aに比べて出力周期の1/2分だけ遅れて起動することになる。これにより、指示部12は、第1PWM回路13aおよび第2PWM回路13bに対して同一のタイミングで指示することができる。   Therefore, as shown in the figure, the second PWM circuit 13b is activated later than the first PWM circuit 13a by half the output cycle. Thereby, the instruction unit 12 can instruct the first PWM circuit 13a and the second PWM circuit 13b at the same timing.

そして、第2PWM回路13bでは、第1PWM回路13aのPWM信号の出力から出力周期の1/2分だけ遅れてのPWM信号を出力することとなるため、図4に示した所望出力パターンを再現性よく出力することができる。   Then, the second PWM circuit 13b outputs the PWM signal delayed by 1/2 of the output cycle from the output of the PWM signal of the first PWM circuit 13a, so that the desired output pattern shown in FIG. 4 is reproducible. It can output well.

なお、PWM回路の個数が3つ以上である場合、遅延起動部17を指示部12とPWM回路との経路にそれぞれ設け、遅延起動部17は、各PWM回路の出力周期を出力周期の1/n(nは、PWM回路の個数)ずつ遅延起動させることとすればよい。   When the number of PWM circuits is three or more, the delay starting unit 17 is provided in each of the paths between the instruction unit 12 and the PWM circuit, and the delay starting unit 17 sets the output cycle of each PWM circuit to 1/of the output cycle. Delay activation may be performed by n (n is the number of PWM circuits).

続いて、図5Bを用いて、図5Aに示した遅延起動部17を備えずに、各PWM回路を遅延起動させる場合について説明する。図5Bに示す例では、タイミング調整モードと、生成モードとに分けて指示部12がPWM回路部13にPWM信号の出力を指示する。   Next, with reference to FIG. 5B, a case where each PWM circuit is delayed and activated without the delay activation unit 17 shown in FIG. 5A will be described. In the example shown in FIG. 5B, the instruction unit 12 instructs the PWM circuit unit 13 to output the PWM signal separately for the timing adjustment mode and the generation mode.

具体的には、タイミング調整モードでは、指示部12は、第1PWM回路13aにPWM回路の出力周期の1/2、すなわちデューティー比50%を初期デューティー比としてPWM信号の出力を指示する。   Specifically, in the timing adjustment mode, the instructing unit 12 instructs the first PWM circuit 13a to output the PWM signal with ½ of the output cycle of the PWM circuit, that is, the duty ratio of 50% as the initial duty ratio.

この時、指示部12は、第2PWM回路13bに対して第1PWM回路13aのPWM信号のエッジの立下りを検知して起動するように指示しておく。また、指示部12は、第2PWM回路13bの初期デューティー比を0%として指示する。   At this time, the instruction unit 12 instructs the second PWM circuit 13b to detect the falling edge of the edge of the PWM signal of the first PWM circuit 13a and activate it. Further, the instruction unit 12 gives an instruction with the initial duty ratio of the second PWM circuit 13b set to 0%.

このようにすることで、第2PWM回路13bは、第1PWM回路13aから出力周期の1/2の時間だけ遅れて起動することとなる。その後、生成モードに移行し、第1PWM回路13aおよび第2PWM回路13bは、所望するPWM信号を出力することになる。   By doing so, the second PWM circuit 13b is activated with a delay of half the output period from the first PWM circuit 13a. After that, the mode shifts to the generation mode, and the first PWM circuit 13a and the second PWM circuit 13b output the desired PWM signal.

このように、図5Bに示す例では、第1PWM回路13aが出力するPWM信号のエッジの立下りを検知して、第2PWM回路13bの出力周期を起動させる。これにより、各PWM回路を所望するタイミングで正確に起動させることができる。   As described above, in the example shown in FIG. 5B, the trailing edge of the PWM signal output from the first PWM circuit 13a is detected, and the output cycle of the second PWM circuit 13b is activated. As a result, each PWM circuit can be started accurately at a desired timing.

なお、初期値をPWM回路の個数に応じて異なる値に設定することで、PWM回路が3つ以上である場合にも各PWM回路を遅延起動させることができる。具体的には、PWM回路がn個である場合、出力周期をnで除した値を初期デューティー比として設定する。   By setting the initial value to a different value depending on the number of PWM circuits, each PWM circuit can be delayed and activated even when the number of PWM circuits is three or more. Specifically, when the number of PWM circuits is n, the value obtained by dividing the output cycle by n is set as the initial duty ratio.

そして、指示部12は、各PWM回路に対して前のPWM回路が初期デューティー比で出力するPWM信号のエッジの立下りを検知して起動するように順次を指示する。これにより、各PMW回路を出力周期の1/nずつずらして起動させることができる。   Then, the instruction unit 12 sequentially instructs each PWM circuit to detect the falling edge of the edge of the PWM signal output by the previous PWM circuit at the initial duty ratio and activate the PWM signal. As a result, each PMW circuit can be activated by shifting the output cycle by 1/n.

なお、図5Bでは、エッジの立下りを検知して遅延起動する場合について説明したが、エッジの立上がりを検出して次のPWM回路の出力周期を起動させることにしてもよい。この場合、PWM信号のパルスを出力周期の後ろ詰めで出力することとし、PWM信号が出力周期の1/nの時間から出力されるように初期デューティー比を設定することとすればよい。   In FIG. 5B, the case where the falling edge of the edge is detected and the delayed activation is performed has been described, but the rising edge of the edge may be detected and the output cycle of the next PWM circuit may be activated. In this case, the pulse of the PWM signal may be output at the end of the output cycle, and the initial duty ratio may be set so that the PWM signal is output from the time of 1/n of the output cycle.

次に、図5Cを用いて第1PWM回路13aと、第2PWM回路13bとを同時に起動させる場合について説明する。   Next, a case where the first PWM circuit 13a and the second PWM circuit 13b are simultaneously activated will be described with reference to FIG. 5C.

同図に示すように、指示部12は、第1PWM回路13aおよび第2PWM回路13bを同時に起動させる。そして、指示部12は、第1PWM回路13aでは、出力周期の前詰めでパルスを出力し、第2PWM回路13bでは、出力周期の後ろ詰めでパルスを出力するように指示する。   As shown in the figure, the instruction unit 12 simultaneously activates the first PWM circuit 13a and the second PWM circuit 13b. Then, the instructing unit 12 instructs the first PWM circuit 13a to output the pulse at the front end of the output cycle and the second PWM circuit 13b to output the pulse at the rear end of the output cycle.

この場合、第2PWM回路13bがPWM信号の出力を停止した後に、直ちに、第1PWM回路13aでPWM信号の出力を開始することになる。このため、OR合成回路14aによって合成されるPWM信号には、所望出力パターンとずれが生じる。   In this case, immediately after the second PWM circuit 13b stops outputting the PWM signal, the first PWM circuit 13a starts outputting the PWM signal. Therefore, the PWM signal synthesized by the OR synthesizing circuit 14a deviates from the desired output pattern.

しかしながら、指示部12は、同一のタイミングで各PWM回路に指示することができるため、各PWM回路の起動するタイミングを正確に設定することができる。   However, since the instruction unit 12 can instruct each PWM circuit at the same timing, the timing at which each PWM circuit is activated can be accurately set.

また、図5Bおよび図5Cに示した例では、図5Aに示したように、遅延起動部17などを別途必要としない。このため、遅延起動部17の分だけ開発費や製造コストを抑えることができる。   Further, in the example shown in FIGS. 5B and 5C, as shown in FIG. 5A, the delay starting unit 17 and the like are not separately required. Therefore, the development cost and the manufacturing cost can be suppressed by the amount of the delayed activation unit 17.

続いて、図6および図7を用いて駆動波形の生成方法の適用例について説明する。図6は、振動素子31の駆動状態を示す模式図である。図7は、選択部16による選択処理を示す図である。   Next, an application example of the drive waveform generation method will be described with reference to FIGS. 6 and 7. FIG. 6 is a schematic diagram showing a driving state of the vibration element 31. FIG. 7 is a diagram showing a selection process performed by the selection unit 16.

また、以下に示す動作は、例えば製造時、出荷時および入力装置1の電源の起動時など任意のタイミングで、図3に示した周波数補正プログラム21を制御部10が読み出すことで実行される。   Further, the operation described below is executed by the control unit 10 reading the frequency correction program 21 shown in FIG. 3 at an arbitrary timing, for example, at the time of manufacture, at the time of shipment, and at the time of starting the power supply of the input device 1.

図6に示すように、制御部10は、例えば、第1振動素子31aおよび第4振動素子31dに対して駆動波形を印加させ、第2振動素子31bおよび第3振動素子31cで発生する電圧を検出する。   As shown in FIG. 6, the control unit 10 applies, for example, a drive waveform to the first vibrating element 31a and the fourth vibrating element 31d, and controls the voltage generated in the second vibrating element 31b and the third vibrating element 31c. To detect.

すなわち、制御部10は、第1振動素子31aおよび第4振動素子31dで操作面Pを振動させた状態で、第2振動素子31bおよび第3振動素子31cで発生する電圧を検出する。   That is, the control unit 10 detects the voltage generated in the second vibrating element 31b and the third vibrating element 31c while the operation surface P is vibrated by the first vibrating element 31a and the fourth vibrating element 31d.

この場合に、第2振動素子31bおよび第3振動素子31cでは、操作面Pの振動強度に応じて電圧が発生する。また、入力装置1では、所定の周波数領域において、操作面Pの振動強度が高いほど、ユーザに所望する触感を与えることができる。   In this case, a voltage is generated in the second vibrating element 31b and the third vibrating element 31c according to the vibration intensity of the operation surface P. Further, in the input device 1, the higher the vibration intensity of the operation surface P in the predetermined frequency range, the more the user can feel the desired tactile sensation.

そこで、制御部10は、触感毎に異なる周波数領域で所定周波数ごとに駆動波形を生成し、振動素子31を振動させる。そして、駆動波形の周波数に対応する電圧値を検出し、かかる電圧値が高い周波数を選択する。   Therefore, the control unit 10 generates a drive waveform for each predetermined frequency in a frequency region that differs for each tactile sensation and vibrates the vibration element 31. Then, the voltage value corresponding to the frequency of the drive waveform is detected, and the frequency having such a high voltage value is selected.

具体的には、つるつるした触感を与える周波数領域は、例えば、20〜40KHz(以下、第1周波数領域という)であり、クリック感を与える周波数領域は、例えば、100〜200kHz(以下、第2周波数領域という)である。   Specifically, the frequency range that gives a slippery feel is, for example, 20 to 40 KHz (hereinafter, referred to as a first frequency range), and the frequency range that gives a click feeling is, for example, 100 to 200 kHz (hereinafter, the second frequency range). Area).

そして、制御部10は、周波数補正プログラム21を実行することで第1周波数領域および第2周波数領域において所定周波数ごとに駆動波形を生成し、第1振動素子31aおよび第4振動素子31dに印加する。そして、電圧検出部15は、第2振動素子31bおよび第3振動素子31cで発生する電圧を検出し、選択部16に出力する。   Then, the control unit 10 executes the frequency correction program 21 to generate a drive waveform for each predetermined frequency in the first frequency region and the second frequency region, and applies the drive waveform to the first vibrating element 31a and the fourth vibrating element 31d. . Then, the voltage detection unit 15 detects the voltage generated in the second vibrating element 31b and the third vibrating element 31c, and outputs the voltage to the selection unit 16.

図7の上図には、入力装置1によって生成される駆動波形を模式的に示し、図7の下図には、周波数と電圧検出部15によって検出された電圧値の相関を模式的に示している。   The upper diagram of FIG. 7 schematically shows the drive waveform generated by the input device 1, and the lower diagram of FIG. 7 schematically shows the correlation between the frequency and the voltage value detected by the voltage detection unit 15. There is.

図7の下図に示す例では、周波数f4Hzで、電圧値が最も高くなる。したがって、この場合、選択部16は、最適な周波数として周波数f4Hzを選択する。   In the example shown in the lower diagram of FIG. 7, the voltage value is highest at the frequency f4 Hz. Therefore, in this case, the selection unit 16 selects the frequency f4 Hz as the optimum frequency.

その後、選択部16は、選択した周波数と、触感周波数情報22で設定されている周波数とを比較する。比較の結果、双方の周波数が異なる場合に、触感周波数情報22の周波数を選択した周波数に補正する。   After that, the selection unit 16 compares the selected frequency with the frequency set in the tactile frequency information 22. As a result of the comparison, when both frequencies are different, the frequency of the tactile frequency information 22 is corrected to the selected frequency.

これにより、入力装置1では、触感毎に最適な駆動波形の周波数に設定することができる。また、上述したように、入力装置1は、駆動波形の周波数を精密に調整することができるため、駆動波形の周波数をきめ細やかに精査することができる。したがって、触感に最適な周波数を精度よく補正することができる。   As a result, in the input device 1, it is possible to set the optimum drive waveform frequency for each tactile sensation. Further, as described above, since the input device 1 can precisely adjust the frequency of the drive waveform, the frequency of the drive waveform can be finely scrutinized. Therefore, the optimum frequency for the tactile sensation can be accurately corrected.

次に、本実施形態に係る入力装置1が実行する処理手順について図8を用いて説明する。図8は、本実施形態に係る入力装置1が実行する処理手順を示すフローチャートである。なお、図8に示す処理手順は、制御部10によって実行される。   Next, a processing procedure executed by the input device 1 according to the present embodiment will be described with reference to FIG. FIG. 8 is a flowchart showing a processing procedure executed by the input device 1 according to the present embodiment. The processing procedure shown in FIG. 8 is executed by the control unit 10.

図8に示すように、まず、入力装置1の制御部10は、周波数補正プログラム21を実行タイミングか否かを判定する(ステップS101)。この判定において、周波数補正プログラム21を実行するタイミングである場合(ステップS101,Yes)、指示部12は、PWM回路部13に対してPWM回路の出力周期を変更し、一定パターンのデューティー比でPWM信号の出力を指示する(ステップS102)。   As shown in FIG. 8, first, the control unit 10 of the input device 1 determines whether it is the execution timing of the frequency correction program 21 (step S101). In this determination, if it is the timing to execute the frequency correction program 21 (step S101, Yes), the instruction unit 12 changes the output cycle of the PWM circuit with respect to the PWM circuit unit 13, and performs PWM with a duty ratio of a fixed pattern. The output of the signal is instructed (step S102).

一方、ステップS101の判定において、周波数補正プログラム21を実行するタイミングでない場合(ステップS101,No)、制御部10は、処理を終了する。   On the other hand, in the determination of step S101, when it is not the timing to execute the frequency correction program 21 (step S101, No), the control unit 10 ends the process.

また、ステップS102に引き続き、PWM回路部13は、指示部12の指示に基づいてPWM信号を出力し、OR合成回路14aは、PWM信号を合成する(ステップS103)。続いて、サンプリング部14bは、合成されたPWM信号から駆動波形を生成し、振動素子31に印加する(ステップS104)。   After step S102, the PWM circuit unit 13 outputs the PWM signal based on the instruction from the instruction unit 12, and the OR synthesizing circuit 14a synthesizes the PWM signals (step S103). Subsequently, the sampling unit 14b generates a drive waveform from the combined PWM signal and applies it to the vibrating element 31 (step S104).

続いて、電圧検出部15は、操作面Pの振動に応じて振動素子31で発生する電圧値を検出する(ステップS105)。そして、制御部10は、所定周波数領域の電圧検出処理を終了したか否かを判定する(ステップS106)。   Subsequently, the voltage detection unit 15 detects the voltage value generated in the vibrating element 31 according to the vibration of the operation surface P (step S105). Then, the control unit 10 determines whether or not the voltage detection process in the predetermined frequency region has been completed (step S106).

この判定において電圧検出処理が終了していた場合(ステップS106,Yes)、選択部16は、所定周波数領域で最も電圧値が高かった周波数を選択する(ステップS107)。   When the voltage detection process is completed in this determination (Yes in step S106), the selection unit 16 selects the frequency having the highest voltage value in the predetermined frequency region (step S107).

そして、選択部16は、選択した周波数に基づいて触感周波数情報22を補正して(ステップS108)、処理を終了する。また、ステップS106の判定において、電圧検出処理を終了していない場合(ステップS106,No)、制御部10は、ステップS102以降の処理を繰り返して実行することとなる。   Then, the selection unit 16 corrects the tactile frequency information 22 based on the selected frequency (step S108), and ends the process. In addition, in the determination of step S106, when the voltage detection process is not completed (step S106, No), the control unit 10 repeats the process of step S102 and the subsequent steps.

上述してきたように、本実施形態に係る入力装置1は、操作面Pを振動させる振動素子31と、複数のPWM回路と、指示部12と、波形生成部14とを備える。振動素子31は、操作面Pを振動させる。指示部12は、PWM信号の出力を複数のPWM回路それぞれへ振分けて指示する。波形生成部14は、複数のPWM回路によってそれぞれ出力されるPWM信号を合成し、振動素子31に印加する駆動波形を生成する。したがって、本実施形態に係る入力装置1によれば、安価な構成で駆動波形を精密に制御することができる。   As described above, the input device 1 according to the present embodiment includes the vibration element 31 that vibrates the operation surface P, a plurality of PWM circuits, the instruction unit 12, and the waveform generation unit 14. The vibrating element 31 vibrates the operation surface P. The instruction unit 12 distributes the output of the PWM signal to each of the plurality of PWM circuits and gives an instruction. The waveform generation unit 14 synthesizes the PWM signals output by each of the plurality of PWM circuits to generate a drive waveform to be applied to the vibrating element 31. Therefore, according to the input device 1 according to the present embodiment, the drive waveform can be precisely controlled with an inexpensive configuration.

さらなる効果や変形例は、当業者によって容易に導き出すことができる。このため、本発明のより広範な様態は、以上のように表しかつ記述した特定の詳細および代表的な実施形態に限定されるものではない。したがって、添付の特許請求の範囲および、その均等物によって定義される統括的な発明の概念の精神または範囲から逸脱することなく、様々な変化が可能である。   Further effects and modifications can be easily derived by those skilled in the art. Therefore, the broader aspects of the present invention are not limited to the specific details and representative embodiments shown and described above. Accordingly, various changes may be made without departing from the spirit or scope of the general inventive concept defined by the appended claims and their equivalents.

1 入力装置
10 制御部
11 操作検出部
12 指示部
13 PWM回路部
13a 第1PWM回路
13b 第2PWM回路
14 波形生成部
14a OR合成回路
14b サンプリング部
15 電圧検出部
16 選択部
31 振動素子
P 操作面
DESCRIPTION OF SYMBOLS 1 Input device 10 Control part 11 Operation detection part 12 Instruction part 13 PWM circuit part 13a 1st PWM circuit 13b 2nd PWM circuit 14 Waveform generation part 14a OR synthesis circuit 14b Sampling part 15 Voltage detection part 16 Selection part 31 Oscillating element P Operation surface

Claims (9)

操作面を振動させる振動素子と、
複数のPWM回路と、
PWM信号の出力を前記複数のPWM回路それぞれへ振分けて指示する指示部と、
前記複数のPWM回路によってそれぞれ出力される前記PWM信号を合成し、前記振動素子に印加する駆動波形を生成する波形生成部と
を備えることを特徴とする入力装置。
A vibration element that vibrates the operation surface,
A plurality of PWM circuits,
An instructing unit for distributing and instructing the output of the PWM signal to each of the plurality of PWM circuits;
A waveform generation unit that synthesizes the PWM signals respectively output by the plurality of PWM circuits and generates a drive waveform to be applied to the vibrating element.
前記PWM回路の出力周期は、所望の周期に前記PWM回路の個数で乗じた時間に設定されること
を特徴とする請求項1に記載の入力装置。
The input device according to claim 1, wherein the output cycle of the PWM circuit is set to a time obtained by multiplying a desired cycle by the number of the PWM circuits.
前記駆動波形を生成するための前記PWM信号のデューティー比パターンと、前記駆動波形の周波数および前記PWM回路の前記出力周期との関係を示す関係情報を記憶する記憶部を、さらに備え、
前記指示部は、
前記関係情報と駆動波形の周波数とに基づいて決定した前記出力周期と、前記デューティー比パターンとで前記PWM信号を出力するように前記PWM回路に指示すること
を特徴とする請求項2に記載の入力装置。
A duty ratio pattern of the PWM signal for generating the drive waveform; and a storage unit that stores relationship information indicating a relationship between the frequency of the drive waveform and the output cycle of the PWM circuit,
The instruction unit is
3. The PWM circuit is instructed to output the PWM signal with the output cycle determined based on the relation information and the frequency of the drive waveform and the duty ratio pattern. Input device.
前記PWM回路の前記出力周期を前記PWM回路の個数で除した時間ずつ遅らせて前記複数のPWM回路を順次起動させる遅延起動部を
さらに備えることを特徴とする請求項3に記載の入力装置。
The input device according to claim 3, further comprising a delay starter that delays the output cycle of the PWM circuit by a time period divided by the number of the PWM circuits and sequentially starts the plurality of PWM circuits.
前記指示部は、
前記出力周期を前記PWM回路の個数に応じた値を初期デューティー比として1つの前記PWM回路を起動させ、当該PWM回路から前記初期デューティー比で出力された前記PWM信号の立上がりまたは立下りを検出して他の前記PWM回路を起動させる指示を順次繰り返すこと
を特徴とする請求項3に記載の入力装置。
The instruction unit is
The output cycle is set to a value corresponding to the number of the PWM circuits as an initial duty ratio to start one of the PWM circuits, and a rise or a fall of the PWM signal output from the PWM circuit at the initial duty ratio is detected. The input device according to claim 3, wherein another instruction to activate the other PWM circuit is sequentially repeated.
前記指示部は、
前記PWM回路が2つである場合に、前記PWM回路の前記出力周期を同時に起動させ、一方の前記PWM回路では、前記出力周期の前詰めでパルスを出力し、他方のPWM回路では、前記出力周期の後ろ詰めでパルスを出力するように指示すること
を特徴とする請求項3に記載の入力装置。
The instruction unit is
When the number of the PWM circuits is two, the output cycles of the PWM circuits are simultaneously activated, one of the PWM circuits outputs a pulse at the front end of the output cycle, and the other PWM circuit outputs the pulse. The input device according to claim 3, wherein the instruction is made to output the pulse at the end of the cycle.
前記振動素子は、
少なくとも2つ以上であり、
前記波形生成部によって生成された前記駆動波形によって一部の前記振動素子が前記操作面を振動させた状態で、残りの前記振動素子から出力される電圧値を検出する電圧検出部と、
前記電圧検出部によって検出された前記電圧値が最も高い前記駆動波形を選択する選択部と
を備えることを特徴とする請求項1〜6のいずれか一つに記載の入力装置。
The vibrating element is
At least two or more,
A voltage detection unit that detects a voltage value output from the remaining vibrating element in a state where a part of the vibrating element vibrates the operation surface by the drive waveform generated by the waveform generating unit,
The input device according to any one of claims 1 to 6, further comprising: a selection unit that selects the drive waveform having the highest voltage value detected by the voltage detection unit.
PWM信号の出力を複数のPWM回路それぞれへ振分けて指示する指示工程と、
前記複数のPWM回路によってそれぞれ出力される前記PWM信号を合成し、操作面を振動させる振動素子に印加する駆動波形を生成する波形生成工程と
を含むことを特徴とする入力装置の制御方法。
An instructing step of distributing the output of the PWM signal to each of the plurality of PWM circuits and instructing;
A waveform generating step of synthesizing the PWM signals respectively output by the plurality of PWM circuits and generating a drive waveform to be applied to a vibrating element that vibrates the operation surface.
PWM信号の出力を複数のPWM回路それぞれへ振分けて指示する指示手順と、
前記複数のPWM回路によってそれぞれ出力される前記PWM信号を合成し、操作面を振動させる振動素子に印加する駆動波形を生成する波形生成手順と
をコンピュータに実行させることを特徴とするプログラム。
An instruction procedure for distributing and instructing the output of the PWM signal to each of the plurality of PWM circuits;
A program for causing a computer to execute a waveform generation procedure of synthesizing the PWM signals respectively output by the plurality of PWM circuits and generating a drive waveform to be applied to a vibrating element that vibrates the operation surface.
JP2016186938A 2016-09-26 2016-09-26 Input device, control method of input device, and program Active JP6697991B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016186938A JP6697991B2 (en) 2016-09-26 2016-09-26 Input device, control method of input device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016186938A JP6697991B2 (en) 2016-09-26 2016-09-26 Input device, control method of input device, and program

Publications (2)

Publication Number Publication Date
JP2018055165A JP2018055165A (en) 2018-04-05
JP6697991B2 true JP6697991B2 (en) 2020-05-27

Family

ID=61834123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016186938A Active JP6697991B2 (en) 2016-09-26 2016-09-26 Input device, control method of input device, and program

Country Status (1)

Country Link
JP (1) JP6697991B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023204277A1 (en) * 2022-04-21 2023-10-26 株式会社ワコム Haptics pen and method for generating haptics control waveform

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3343149B2 (en) * 1993-03-29 2002-11-11 本田技研工業株式会社 Control device for vehicle electrical components
US6762745B1 (en) * 1999-05-10 2004-07-13 Immersion Corporation Actuator control providing linear and continuous force output
JP2004364366A (en) * 2003-06-02 2004-12-24 Seiko Epson Corp Pwm control system
US8487759B2 (en) * 2009-09-30 2013-07-16 Apple Inc. Self adapting haptic device
JP2011259323A (en) * 2010-06-10 2011-12-22 Panasonic Electric Works Co Ltd Method of controlling output using plurality of pwm signals
JP2013109429A (en) * 2011-11-18 2013-06-06 Nissha Printing Co Ltd Touch sensor and electronic device
JP5708605B2 (en) * 2012-03-09 2015-04-30 株式会社デンソー PWM duty converter

Also Published As

Publication number Publication date
JP2018055165A (en) 2018-04-05

Similar Documents

Publication Publication Date Title
US10613631B2 (en) Input device, display apparatus, and vibration state detecting method of input device
US10296092B2 (en) Generating haptic effects while minimizing cascading
JP5507760B2 (en) Electronics
US10168780B2 (en) Input device, display device, and method for controlling input device
US8686839B2 (en) Closed-loop haptic or other tactile feedback system for mobile devices, touch screen devices, and other devices
US20140300567A1 (en) Electronic apparatus
JP6888959B2 (en) Vibration control system, vibration control method and vibration control program
JP2008070983A (en) Input device
JP2008092670A (en) Pwm signal generating circuit and power supply device equipped with the same
JP6697991B2 (en) Input device, control method of input device, and program
JP2015028766A (en) Tactile presentation device and tactile presentation method
WO2019038887A1 (en) Vibration control device
JP2006079238A (en) Touch panel device
JP7032048B2 (en) Control device, input system and control method
JP6710964B2 (en) Acoustic effect control device, acoustic effect control program, and acoustic effect control method
JP2004159163A (en) Digitally controlled variable delay circuit
US10551925B2 (en) Method and apparatus for generating tactile sensation
JP6225482B2 (en) Light source driving circuit, optical scanning device, and image forming apparatus
US20230267901A1 (en) Signal generation device, electronic musical instrument, electronic keyboard device, electronic apparatus, and signal generation method
JP6973564B2 (en) Sound effect control device, sound effect control program and sound effect control method
JP5871385B2 (en) Oscillator and program
WO2018008147A1 (en) Image processing device and display unit
JP2017091089A (en) Input device, display device and input program
JP2020013201A (en) Input device and input method
JP3064560B2 (en) Music synthesizer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190628

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200228

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200407

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200427

R150 Certificate of patent or registration of utility model

Ref document number: 6697991

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250