CN103677324B - Virtual instrument operation and control device based on single hand keyboard and mouse - Google Patents

Virtual instrument operation and control device based on single hand keyboard and mouse Download PDF

Info

Publication number
CN103677324B
CN103677324B CN201310752267.1A CN201310752267A CN103677324B CN 103677324 B CN103677324 B CN 103677324B CN 201310752267 A CN201310752267 A CN 201310752267A CN 103677324 B CN103677324 B CN 103677324B
Authority
CN
China
Prior art keywords
virtual instrument
function
knob
button
module
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
CN201310752267.1A
Other languages
Chinese (zh)
Other versions
CN103677324A (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201310752267.1A priority Critical patent/CN103677324B/en
Publication of CN103677324A publication Critical patent/CN103677324A/en
Application granted granted Critical
Publication of CN103677324B publication Critical patent/CN103677324B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a virtual instrument operation and control device based on a single hand keyboard and mouse. A sending end of the virtual instrument operation and control device comprises a keyboard module, an inertial navigation module, a controller and a wireless sending module, wherein press keys arranged on the keyboard module comprise function press keys and a knob press key which respectively correspond to function press keys and a knob arranged on a virtual instrument panel, the function press keys comprise a single function press key corresponding to one virtual instrument function and reuse function press keys corresponding to a plurality of virtual instrument mutual exclusion functions, the inertial navigation module calculates out quaternion according to parameters of a three-axis gyroscope and a three-axis accelerator, the controller generates control signals according to pressing signals of the keyboard module and the quaternion of the inertial navigation module, when the pressing signals are from the function press keys, function control signals are generated, and when the pressing signals are from the knob press key, knob control signals are generated and are sent to the receiving end through the wireless sending module. The virtual instrument operation and control device has the advantages that the operation is simple and convenient, and the flexible operation and control on a virtual instrument can be realized.

Description

A kind of virtual instrument actuation means based on singlehanded key mouse
Technical field
The invention belongs to virtual instrument manipulation technical field, more specifically, it is related to a kind of void based on singlehanded key mouse Intend instrument actuation means.
Background technology
Virtual instrument be a kind of formed by increasing related hardware and software building in Basis of Computer Engineering, have visual Change the instrument at interface.Compared with traditional instrument, the display of virtual instrument, button, knob etc. be all by software interface rather than Hardware component is realizing.User easily and flexibly can operate Virtual instrument using mouse or button on computer display screens Various " buttons " of device softpanel and " knob " carry out test job it is possible to pass through windows exchange according to different test requests Different virtual instruments, or change, increase and decrease function and the scale of virtual instrument system by changing software.Virtual instrument has The advantageous feature such as this " exploitability " and " extensibility " make virtual instrument have stronger vitality and competitiveness.Virtual Instrument can be widely applied to the multiple fields such as electronic surveying, space flight and aviation, power engineering, mechanical engineering.At present, virtual instrument How to be controlled using conventional mouse or keyboard etc., but traditional actuation means can not adapt to the need of virtual instrument completely Will, some functions need just to enable by complicated operative combination.
Wireless 3D one hand key mouse be a kind of by keyboard and mouse be combined into one can with the input equipment of one-handed performance, it with When have keyboard text input and mouse pointing input function.Wireless 3D one hand key mouse due to its manipulation flexibly, be widely used, Become the actuation means of great development prospect.
Content of the invention
It is an object of the invention to overcoming the deficiencies in the prior art, provide a kind of manipulation of the virtual instrument based on singlehanded key mouse Device, realizes the flexible manipulation to virtual instrument.
For achieving the above object, the virtual instrument actuation means based on singlehanded key mouse for the present invention are it is characterised in that wrap Include:
Based on the virtual instrument actuation means of singlehanded key mouse, including transmitting terminal and receiving terminal, transmitting terminal sends control signal, Receiving terminal is connected with virtual instrument hardware device, and by the control signal receiving from transmitting terminal and be transmitted to virtual instrument, it is special Levy and be, described transmitting terminal includes Keysheet module, inertial navigation module, controller, wireless sending module, wherein:
Keysheet module, including function button and knob button, function button includes single function button and multiplexing function button, Wherein, single function button corresponds to the One function of Virtual Instrument, each operation in the n times operation of multiplexing function button Represent N number of mutual exclusion function of Virtual Instrument respectively, knob button is used for indicating the knob in Virtual Instrument;Each is pressed Key can produce the pressing signal carrying corresponding virtual instrument keypad numerals in pressing operation, and Keysheet module will press signal and send out Give controller;
Inertial navigation module, including three-axis gyroscope, three axle accelerators, movement processor, movement processor is according to three axis accelerometer The parameter that instrument and three axle accelerator measurements obtain calculates quaternary number and is sent to controller;
Controller, the quaternary number that the pressing signal and inertial navigation module for gathering Keysheet module transmission sends, when pressing letter Number from function button when, then generate corresponding function control signal and send to wireless sending module;When pressing signal is derived from During knob button, press signal start time t from obtainingsStart to finish time te, calculate a knob increment D every Δ tn, Δ t is default time interval parameter, and computational methods are:
Wherein, n=1,2,3 ..., K represent proportionality coefficient, yawn-1、yawn、yaweRepresent t respectivelys+ (n-1) × Δ t, when Carve ts+ n × Δ t, pressing signal ended moment teCourse angle, be sent to the quaternary number of controller by corresponding moment inertial navigation module It is calculated, often obtain a knob increment DnThen generate corresponding knob control signal and send to wireless sending module;
Wireless sending module, for sending control signal to receiving terminal.
Further, each operation corresponding virtual instrument function of multiplexing function button adopts counter controls, counts Device is used for the pressing operation number of times of record multiplexing function button, and number of times often increases once, then press default virtual instrument function suitable Sequence table switches One function backward, if current function be in sequence list last and number of times adds 1, return sequence list first Individual function.
Further, course angle yaw calculates as follows:
Wherein, w is the real part in quaternary number (w, x, y, z), and x, y, z are the imaginary parts in quaternary number (w, x, y, z).
Further, also include a wireless transmission relief area, for the control signal of storage not yet transmission.
The virtual instrument actuation means based on singlehanded key mouse for the present invention, its transmitting terminal includes Keysheet module, inertial navigation module, control Device processed, wireless sending module, the button on Keysheet module includes function button and knob button, corresponds to Virtual Instrument respectively On function button and knob, function button includes single function button of a corresponding virtual instrument function, and correspondence is multiple The multiplexing function button of virtual instrument mutual exclusion function;Inertial navigation module calculates according to the parameter of its three-axis gyroscope and three axle accelerators Go out quaternary number, controller by control signal is generated to the pressing signal of Keysheet module and the quaternary number of inertial navigation module, when pressing When pressure signal is derived from function button, systematic function control signal, when pressing signal from knob button, generate knob and control letter Number, receiving terminal is sent to by wireless sending module, then virtual instrument is sent to by receiving terminal, thus realizing to virtual instrument Manipulation.The present invention uses singlehanded key mouse, and combination button is less, has push-button combination operated also relatively simple, one hand is Can achieve the flexible manipulation to virtual instrument.
Brief description
Fig. 1 is transmitting terminal hardware architecture diagram of the present invention;
Fig. 2 is virtual dual trace oscilloscope panel exemplary plot;
Fig. 3 is Keysheet module function division exemplary plot;
Fig. 4 is a kind of specific embodiment workflow schematic diagram of controller.
Specific embodiment
Below in conjunction with the accompanying drawings the specific embodiment of the present invention is described, so that those skilled in the art is preferably Understand the present invention.Requiring particular attention is that, in the following description, when known function and design detailed description perhaps Can desalinate the present invention main contents when, these descriptions will be ignored here.
Embodiment
The virtual instrument actuation means based on singlehanded key mouse for the present invention, including transmitting terminal and receiving terminal, transmitting terminal is used for sending out Send control signal, receiving terminal is connected with virtual instrument hardware device, by the control signal receiving from transmitting terminal and be transmitted to void Intend instrument.The software module of virtual instrument receives control signal by hardware device, executes corresponding operation.The present embodiment In, receiving terminal to be realized using the USB Dongle of Nordic company.Fig. 1 is transmitting terminal hardware architecture diagram of the present invention.As Shown in Fig. 1, transmitting terminal of the present invention includes Keysheet module, inertial navigation module, controller, wireless sending module.
Keysheet module, including function button and knob button, function button includes single function button and multiplexing function button, Wherein, single function button corresponds to the One function of Virtual Instrument, each operation in the n times operation of multiplexing function button Represent N number of mutual exclusion function of Virtual Instrument, N >=2 respectively, knob button is used for indicating the knob in Virtual Instrument; Each button can produce the pressing signal carrying corresponding virtual instrument keypad numerals in pressing operation, and Keysheet module will press Signal is sent to controller.It can be seen that, the button on Keysheet module has corresponding relation with the button in Virtual Instrument.
Fig. 2 is virtual dual trace oscilloscope panel exemplary plot.As shown in Fig. 2 the button on this virtual dual trace oscilloscope panel It is divided into four parts according to function:Vertical control section (VERTICAL), horizontal control section (HORIZONTAL), triggering control unit Divide (TRIGGER), other parts.Divide and button can be divided into according to mode of operation:Multiplexing function button, such as starts/stops (Run/Stop) button, rise/fall (Rising/Falling) button;Single function button, such as Auto Set button;Knob, As displacement adjusts (Position) etc..
In the present embodiment, the multiplexing function button of Virtual Instrument has two states:Press and upspring, represent two respectively Individual mutual exclusion function, that is, two functions of synchronization only exist one of, for example start/stop key, press expression and start, bullet Rise and represent stopping.This multiplexing function button can be realized using the single function button of two on Keysheet module, it would however also be possible to employ A multiplexing function button on Keysheet module is realized.Single function button of Virtual Instrument, and single function of Keysheet module Button is naturally corresponding, if single function button that Virtual Instrument there are mutual exclusion can also be using on Keysheet module It is multiplexed function button to realize.In actual applications, on Keysheet module multiplexing function button and single function button configuration according to It needs to be determined that.Knob in Virtual Instrument is jointly to realize manipulating by the knob button on Keysheet module and inertial navigation module 's.Knob button on Keysheet module is used for indicating the knob in Virtual Instrument, and is one-to-one.
The each operation corresponding virtual instrument function of being multiplexed function button on Keysheet module can adopt counter controls, Enumerator is used for the pressing operation number of times of record multiplexing function button, and number of times often increases once, then press default virtual instrument work( One function can be switched backward by sequence list, if current function be in sequence list last and number of times adds 1, return sequence list One function.
Fig. 3 is Keysheet module function division exemplary plot.As shown in figure 3, in the present embodiment Keysheet module be divided into Master Keyboard and Control keyboard, Master Keyboard is 3 × 4 matrix keyboard, and control keyboard is four Independent keys.Table 1 is keyboard mould in the present embodiment The mapping table of button in button and Virtual Instrument in block.
Table 1
The numbering of Virtual Instrument button is arranged as required to.This numbering can be carried, for knowing in pressing signal Level signal corresponding Virtual Instrument button is manipulated.
Inertial navigation module, including three-axis gyroscope, three axle accelerators, movement processor, movement processor is according to three axis accelerometer The parameter that instrument and three axle accelerator measurements obtain calculates quaternary number and is sent to controller.
Inertial navigation module in the present embodiment uses the MPU-6050 chip of Invensense company.This chip incorporates Three-axis gyroscope and three axle accelerators, and the built-in digital moving processor processing complicated nine axle Motion fusion algorithms (DMP:Digital Motion Processor), it is ± 250, ± 500, ± 1000, ± 2000 that gyroscope can survey scope (dps), accelerometer can survey scope is ± 2, and ± 4, ± 8, ± 16g can meet parameter acquisition and the calculating demand of the present invention.
Controller, the quaternary number that the pressing signal and inertial navigation module for gathering Keysheet module transmission sends simultaneously generates control Signal.
Controller in the present embodiment uses ST company and produces STM32F103RBT6 processor, and this processor uses The RSIC kernel of ARM Cortex-M3 32, operating frequency is 72Mhz, internal high-speed memories, the up to sudden strain of a muscle of 128k byte Deposit, there is provided the function such as ADC, intervalometer, also comprise many communication interfaces such as SPI, I2C, UART, USB, CAN etc. simultaneously. Fig. 4 is a kind of specific embodiment workflow schematic diagram of controller.As shown in figure 4, the workflow of controller is:
S401:Pressing signal and the quaternary number of inertial navigation module transmission that collection Keysheet module sends.
S402:Judge to press whether signal is derived from knob button, if it is, entering step S403, if it is not, entering step Rapid S404.
S403:Persistently calculate knob increment, its computational methods is:
Press signal start time t from obtainingsStart to finish time te, calculate a knob increment D every Δ tn, Δ t For default time interval parameter, computational methods are:
Wherein, n=1,2,3 ..., K represent proportionality coefficient, yawn-1、yawn、yaweRepresent t respectivelys+ (n-1) × Δ t, when Carve ts+ n × Δ t, pressing signal ended moment teCourse angle, be sent to the quaternary number of controller by corresponding moment inertial navigation module It is calculated, often obtain a knob increment DnThen enter step S405.
It can be seen that, a kind of gradual knob that the present invention realizes is adjusted, and starts to pressing signal ended mistake in pressing signal Cheng Zhong, updates a knob state every Δ t in Virtual Instrument, so that operator can be adjusted with real-time monitored knob Section amplitude, improves the accuracy of manipulation.If time interval parameter Δ t is set to an absolute signal ended more than pressing Carve teValue, then controller only can calculate a knob increment, generates a secondary control signal.In actual applications, Ke Yigen To determine the value of Δ t according to needing.
In the present embodiment, the computing formula of course angle is:
Wherein, w is the real part in quaternary number (w, x, y, z), and x, y, z are the imaginary parts in quaternary number (w, x, y, z).
S404:Increment of rotation is made to be 0.
S405:Generate control signal and be sent to wireless sending module, the form of the control signal adopting in the present embodiment For:
Keypad numerals Knob increment
Keypad numerals represent the numbering of the corresponding virtual instrument button obtaining according to pressing signal.It can be seen that, work as keypad numerals During for function button, knob increment is 0, and only when keyboard-coding is for knob button, knob increment is just meaningful.Usually, When for timing, knob increment represents that knob turns clockwise, negative then represent rotate counterclockwise.
Wireless sending module, for sending control signal to receiving terminal.The virtual instrument based on singlehanded key mouse for the present invention is grasped Control device can configure a wireless transmission relief area for wireless sending module, for the control signal of storage not yet transmission.
In the present embodiment, wireless sending module uses NRF24L01 chip.NRF24L01 is the work being produced by NORDIC Make the monolithic wireless transceiver chip of the ISM band in 2.4GHz~2.5GHz.It adopts FSK (Frequency-shift Keying, frequency shift keying) modulation, it has been internally integrated Enhanced Short Burst agreement, it is possible to achieve point-to-point or a bit Radio communication to multiple spot, fastest can reach 2Mbps, and the remote bit error rate of propagation distance is low.
Although to the present invention, illustrative specific embodiment is described above, in order to the technology of the art Personnel understand the present invention, the common skill it should be apparent that the invention is not restricted to the scope of specific embodiment, to the art For art personnel, as long as various change is in the spirit and scope of the present invention of appended claim restriction and determination, these Change is it will be apparent that all utilize the innovation and creation of present inventive concept all in the row of protection.

Claims (4)

1. a kind of virtual instrument actuation means based on singlehanded key mouse, including transmitting terminal and receiving terminal, transmitting terminal sends and controls letter Number, receiving terminal is connected with virtual instrument hardware device, and the control signal receiving from transmitting terminal is transmitted to virtual instrument, and it is special Levy and be, described transmitting terminal includes Keysheet module, inertial navigation module, controller, wireless sending module, wherein:
Keysheet module, including function button and knob button, function button includes single function button and multiplexing function button, its In, single function button corresponds to the One function of Virtual Instrument, and each operation in the n times operation of multiplexing function button divides Do not represent one of N number of mutual exclusion function of Virtual Instrument function, knob button is used for indicating in Virtual Instrument Knob;Each button can produce the pressing signal carrying corresponding virtual instrument keypad numerals, Keysheet module in pressing operation Pressing signal is sent to controller;
Inertial navigation module, including three-axis gyroscope, three axle accelerators, movement processor, movement processor according to three-axis gyroscope and The parameter that three axle accelerator measurements obtain calculates quaternary number and is sent to controller;
Controller, the quaternary number that the pressing signal and inertial navigation module for gathering Keysheet module transmission sends, when pressing signal From function button when, then generate corresponding function control signal and send to wireless sending module;When pressing signal is derived from knob During button, press signal start time t from obtainingsStart to finish time te, calculate a knob increment D every Δ tn, Δ t For default time interval parameter, computational methods are:
D n = ( yaw n - yaw n - 1 ) / K , t s + n &times; &Delta; t < t e ( yaw e - yaw n - 1 ) / K , t s + n &times; &Delta; t &GreaterEqual; t e
Wherein, n=1,2,3 ..., K represent proportionality coefficient, yawn-1、yawn、yaweRepresent t respectivelys+ (n-1) × Δ t, moment ts+ N × Δ t, pressing signal ended moment teCourse angle, calculated by the quaternary number that corresponding moment inertial navigation module is sent to controller Obtain, often obtain a knob increment DnThen generate corresponding knob control signal and send to wireless sending module;
Wireless sending module, for sending control signal to receiving terminal.
2. virtual instrument actuation means according to claim 1 are it is characterised in that each behaviour of described multiplexing function button Make corresponding virtual instrument function and adopt counter controls, enumerator is used for the pressing operation number of times of record multiplexing function button, Number of times often increases once, then switch One function backward by default virtual instrument functional sequence table, if current function is suitable In sequence table, last and number of times add 1, then return sequence list One function.
3. virtual instrument actuation means according to claim 1 are it is characterised in that course angle yaw calculates as follows:
y a w = a r c t a n ( 2 ( w z + x y ) 1 - 2 ( y 2 + z 2 ) )
Wherein, w is the real part in quaternary number (w, x, y, z), and x, y, z are the imaginary parts in quaternary number (w, x, y, z).
4. virtual instrument actuation means according to claim 1 are it is characterised in that also include a wireless transmission buffering Area, for the control signal of storage not yet transmission.
CN201310752267.1A 2013-12-31 2013-12-31 Virtual instrument operation and control device based on single hand keyboard and mouse Expired - Fee Related CN103677324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310752267.1A CN103677324B (en) 2013-12-31 2013-12-31 Virtual instrument operation and control device based on single hand keyboard and mouse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310752267.1A CN103677324B (en) 2013-12-31 2013-12-31 Virtual instrument operation and control device based on single hand keyboard and mouse

Publications (2)

Publication Number Publication Date
CN103677324A CN103677324A (en) 2014-03-26
CN103677324B true CN103677324B (en) 2017-02-15

Family

ID=50315126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310752267.1A Expired - Fee Related CN103677324B (en) 2013-12-31 2013-12-31 Virtual instrument operation and control device based on single hand keyboard and mouse

Country Status (1)

Country Link
CN (1) CN103677324B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9417754B2 (en) 2011-08-05 2016-08-16 P4tents1, LLC User interface system, method, and computer program product
CN109143873A (en) * 2017-06-16 2019-01-04 佛山市顺德区美的电热电器制造有限公司 Function switch control method and device, household electrical appliance, storage medium
CN108563339B (en) * 2018-07-07 2023-11-28 深圳市多彩实业有限公司 Keyboard with multifunctional knob

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4914568A (en) * 1986-10-24 1990-04-03 National Instruments, Inc. Graphical system for modelling a process and associated method
CN103091115A (en) * 2012-12-21 2013-05-08 南京林业大学 Automobile combination performance testing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4914568A (en) * 1986-10-24 1990-04-03 National Instruments, Inc. Graphical system for modelling a process and associated method
CN103091115A (en) * 2012-12-21 2013-05-08 南京林业大学 Automobile combination performance testing system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《可穿戴计算技术及其应用的新发展》;于南翔,陈东义,夏侯士戟;《数字通信》;20120825(第4期);第17-18页 *
《基于虚拟仪器技术的捷联惯导系统研究》;严家亮;《中国优秀硕士学位论文全文数据库信息科技辑》;20070228(第2期);第3-31页 *

Also Published As

Publication number Publication date
CN103677324A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
US8373656B2 (en) Finger pointing apparatus
US9110505B2 (en) Wearable motion sensing computing interface
CN103677324B (en) Virtual instrument operation and control device based on single hand keyboard and mouse
CN101598980B (en) Input apparatus, control apparatus, control system, and control method
CN101829428B (en) Computer game magnetic gun
EP3221017B1 (en) Gaming controller for mobile device and method of operating a gaming controller
CN101611371A (en) Input equipment, opertaing device, control system, handheld device and control method
CN101504791A (en) Remote control device for multifunctional intelligent terminal
WO2007065734A2 (en) Acceleration reference devices, cellular communication terminal systems, and methods that sense terminal movement for cursor control
WO2015153690A1 (en) Wearable motion sensing computing interface
EP2605108A1 (en) Distant multipoint remote control device and system.
WO2009104985A1 (en) Method for determining the coordinates of a mouse- or electronic stylus pen-type manipulator and a device for carrying out said method
CN101359261A (en) Computer mouse
CN201364558Y (en) Combined multifunctional handle
CN102929431A (en) Pressure feedback system and method thereof
CN203224838U (en) Hand-held keyboard
CN103123541A (en) Multi-button mouse with multiple operating modes
CN206460603U (en) A kind of two-sided body-sensing remote control based on touch pad
CN102779404A (en) Multi-control three-dimensional (3D) remote control system
CN104881130A (en) Finger belt type information input device and method for electronic device
CN205680053U (en) A kind of interactive Intelligent glove
CN205091718U (en) Blue tooth body of intelligence feels mouse
CN101825969A (en) Three-dimensional virtual touch screen
TWI825670B (en) Control circuit, electronic device, and control method
CN202217229U (en) Three-dimensional remote-controlled space writer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170215

Termination date: 20201231

CF01 Termination of patent right due to non-payment of annual fee