CN114721504A - Gesture sensing circuit and control method thereof - Google Patents

Gesture sensing circuit and control method thereof Download PDF

Info

Publication number
CN114721504A
CN114721504A CN202210155248.XA CN202210155248A CN114721504A CN 114721504 A CN114721504 A CN 114721504A CN 202210155248 A CN202210155248 A CN 202210155248A CN 114721504 A CN114721504 A CN 114721504A
Authority
CN
China
Prior art keywords
infrared
receiving
gesture
resistor
chip microcomputer
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
CN202210155248.XA
Other languages
Chinese (zh)
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.)
Guangdong Yingke Electronic Co ltd
Original Assignee
Guangdong Yingke Electronic 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 Guangdong Yingke Electronic Co ltd filed Critical Guangdong Yingke Electronic Co ltd
Priority to CN202210155248.XA priority Critical patent/CN114721504A/en
Publication of CN114721504A publication Critical patent/CN114721504A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of gesture induction, in particular to a gesture induction circuit and a control method thereof, wherein the gesture induction circuit comprises: the infrared sensing device comprises a single chip microcomputer and two infrared sensing modules respectively connected with the single chip microcomputer; the infrared induction module comprises an infrared receiving module and an infrared transmitting module; the control method comprises the following steps: the singlechip controls the two infrared emission modules to send infrared signals; if the single chip microcomputer receives the infrared signal, an infrared receiving module for collecting the infrared signal and collecting time are determined; if the infrared signals are collected by the two infrared receiving modules, the single chip microcomputer determines whether gesture actions exist according to the infrared signals collected by the two infrared receiving modules; if the gesture action is determined to exist, determining the gesture sensing direction and sensitivity according to the infrared receiving module for collecting the infrared signal and the collecting time; the invention can perform gesture detection with low cost and high reliability.

Description

Gesture sensing circuit and control method thereof
Technical Field
The invention relates to the technical field of gesture sensing, in particular to a gesture sensing circuit and a control method thereof.
Background
Most of the existing gesture sensing circuits adopt a combination mode of an infrared emitting diode and an infrared integrated amplification receiving tube, and the combination mode has the disadvantages of high cost, difficulty in sensing distance control, poor directivity and the like.
Therefore, there is a need for an improved gesture sensing circuit to overcome the above problems.
Disclosure of Invention
In order to solve the above problems, the present invention provides a gesture sensing circuit and a control method thereof, so as to solve one or more technical problems in the prior art and provide at least one useful choice or creation condition.
In order to achieve the purpose, the invention provides the following technical scheme:
a gesture sensing circuit, comprising:
the infrared induction system comprises a single chip microcomputer and two paths of infrared induction modules which are respectively connected with the single chip microcomputer;
the infrared induction module comprises an infrared receiving module and an infrared transmitting module;
the infrared receiving module comprises a first infrared receiving diode, a first receiving resistor, a second receiving resistor and a third receiving resistor, one end of the first receiving resistor is connected with a power supply end, the other end of the first receiving resistor is respectively connected with the second receiving resistor and the third receiving resistor, the other end of the second receiving resistor is connected with an AD detection port of the single chip microcomputer, and the other end of the third receiving resistor is connected with a cathode of the first infrared receiving diode;
the infrared emission module comprises a first infrared emission diode and a first infrared emission resistor, one end of the first infrared emission resistor is connected with the power supply end, the other end of the first infrared emission resistor is connected with the anode of the first infrared emission diode, and the cathode of the first infrared emission diode is connected with the IO port of the single chip microcomputer.
Further, the infrared signal emitted by the first infrared emitting diode is a pulse signal, the frequency of the pulse signal is 166Hz, and the duty ratio of the pulse signal is 1/6.
Further, the resistance of the first receiving resistor is 100k Ω, the resistance of the second receiving resistor is 22k Ω, and the resistance of the third receiving resistor is 1k Ω.
Further, the resistance value of the first infrared emission resistor is 330 Ω.
Further, the voltage of the power supply end is direct current 5V.
A control method of gesture induction is applied to any one of the gesture induction circuits, and comprises the following steps:
the singlechip controls the two paths of infrared emission modules to send infrared signals;
if the single chip microcomputer receives the infrared signal, an infrared receiving module for collecting the infrared signal and collecting time are determined;
if the two infrared receiving modules collect infrared signals, the single chip microcomputer determines whether gesture actions exist according to the infrared signals collected by the two infrared receiving modules;
and if the gesture action is determined to exist, determining the gesture sensing direction and sensitivity according to the infrared receiving module for collecting the infrared signal and the collecting time.
Further, the single chip microcomputer controls the two paths of infrared emission modules to send infrared signals, and the method comprises the following steps:
the singlechip controls the first infrared emitting diodes IR _ LED1 of the two infrared emitting modules to send infrared signals;
wherein the infrared signal is a pulse signal, the frequency of the pulse signal emitted by the first infrared emitting diode IR _ LED1 is 166Hz, and the duty ratio of the pulse signal is 1/6.
Further, the single chip microcomputer determines whether a gesture action exists according to the infrared signals collected by the two infrared receiving modules, and the method comprises the following steps:
the single chip microcomputer performs analog-to-digital conversion on the infrared signals acquired by the two infrared receiving modules to obtain two detection data; wherein the infrared signal is induced by a first infrared receiving diode IR 1;
and if the sizes of the two detection data are larger than a set threshold value, determining that the gesture action exists.
Further, the direction and sensitivity of gesture induction are determined according to the infrared receiving module for collecting the infrared signals and the collecting time, and the method comprises the following steps:
the single chip microcomputer determines the sequence and the interval time of the two infrared receiving modules according to the acquisition time of the detected two infrared signals;
and taking the sequence of the two infrared receiving modules as the direction of the gesture, and taking the ratio of the distance between the two infrared receiving modules and the interval time as the sensitivity of the gesture.
The invention has the beneficial effects that:
the cost is reduced by using the combination of the infrared emitting diode and the infrared receiving diode, meanwhile, the emitting mode of the emitting tube is designed through software, so that the infrared emission has better directivity, a data acquisition algorithm is designed, the sampling is efficient and accurate, and the gesture sensing distance and the sensing speed can be flexibly adjusted. The method has the advantages of low cost and high reliability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flow chart illustrating a control method of a gesture sensing circuit according to an embodiment of the present invention;
fig. 2 is a circuit connection block diagram of a gesture sensing circuit according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, if words such as "a plurality" are used, the meaning is one or more, the meaning of a plurality is two or more, more than, less than, more than, etc. are understood as not including the number, and more than, less than, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated. In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
Referring to fig. 1, an embodiment of the present invention provides a gesture sensing circuit, including: the infrared induction system comprises a single chip microcomputer 100 and two infrared induction modules 200 respectively connected with the single chip microcomputer 100;
the infrared sensing module 200 includes an infrared receiving module 210 and an infrared emitting module 220;
the infrared receiving module 210 comprises a first infrared receiving diode IR1, a first receiving resistor R11, a second receiving resistor R12 and a third receiving resistor R13, wherein one end of the first receiving resistor R11 is connected to a power supply end, and the other end of the first receiving resistor R11 is respectively connected to a second receiving resistor R12 and a third receiving resistor R13, the other end of the second receiving resistor R12 is connected to an AD detection port AD _ IR1 of the single chip microcomputer 100, and the other end of the third receiving resistor R13 is connected to a cathode of the first infrared receiving diode IR 1;
the infrared emitting module 220 comprises a first infrared emitting diode IR _ LED1 and a first infrared emitting resistor R14, one end of the first infrared emitting resistor R14 is connected with a power supply end, the other end of the first infrared emitting resistor R14 is connected with the anode of the first infrared emitting diode IR _ LED1, and the cathode of the first infrared emitting diode IR _ LED1 is connected with the IO port of the single chip microcomputer 100.
As a modification of the above embodiment, the infrared signal emitted by the first infrared emitting diode IR _ LED1 is a pulse signal, and the frequency of the pulse signal is 166Hz and the duty ratio is 1/6.
As a modification of the above embodiment, the resistance value of the first receiving resistor R11 is 100k Ω, the resistance value of the second receiving resistor R12 is 22k Ω, and the resistance value of the third receiving resistor R13 is 1k Ω.
As a modification of the above embodiment, the first infrared emission resistor R14 has a resistance value of 330 Ω.
As a modification of the above embodiment, the voltage of the power supply terminal is dc 5V.
The working principle of the application is as follows:
in operation, the single chip microcomputer 100 controls the first infrared emitting diode IR _ LED1 to send a pulse signal with a duty ratio 1/6 at a frequency of 166Hz, which has very good directivity. Meanwhile, the single chip microcomputer 100 transmits and receives the two infrared sensing modules 200 in a staggered time-sharing manner, so that mutual interference of data can be avoided, and the effect of independent data acquisition without correlation can be achieved. If the two infrared receiving modules 210 collect effective infrared signals, determining that a gesture action exists, and determining the gesture sensing direction and sensitivity according to the infrared receiving modules 210 collecting the infrared signals and the collecting time.
Referring to fig. 2, an embodiment of the present invention provides a control method for gesture sensing, including the following steps:
step S100, the single chip microcomputer 100 controls the two paths of infrared emission modules 220 to send infrared signals;
step S200, if the single chip microcomputer 100 receives an infrared signal, determining an infrared receiving module 210 for collecting the infrared signal and collecting time;
step 300, if infrared signals are collected by the two infrared receiving modules 210, the single chip microcomputer 100 determines whether a gesture action exists according to the infrared signals collected by the two infrared receiving modules 210;
and S400, if the gesture action is determined to exist, determining the gesture sensing direction and sensitivity according to the infrared receiving module 210 for collecting the infrared signal and the collecting time.
As an improvement of the above embodiment, the single chip microcomputer 100 controls the two paths of infrared emission modules 220 to send infrared signals, including:
the single chip microcomputer 100 controls the first infrared emitting diodes IR _ LED1 of the two infrared emitting modules 220 to send infrared signals;
wherein the infrared signal is a pulse signal, the frequency of the pulse signal emitted by the first infrared emitting diode IR _ LED1 is 166Hz, and the duty ratio of the pulse signal is 1/6.
As an improvement of the above embodiment, the determining, by the single chip microcomputer 100, whether a gesture action exists according to the infrared signals collected by the two infrared receiving modules 210 includes:
the single chip microcomputer 100 performs analog-to-digital conversion on the infrared signals collected by the two infrared receiving modules 210 to obtain two detection data; the infrared signal is obtained by sensing through a first infrared receiving diode IR 1;
and if the sizes of the two detection data are larger than a set threshold value, determining that the gesture action exists.
In this embodiment, the size of the set threshold may be adjusted according to actual requirements, for example, a set threshold is determined according to the size of the detection data obtained many times, so as to limit the distance sensed by the gesture, and make the distance detected by the gesture controllable.
As an improvement of the above embodiment, the determining the gesture sensing direction and sensitivity according to the infrared receiving module 210 for collecting the infrared signal and the collecting time includes:
the single chip microcomputer 100 determines the sequence and the interval time of the two infrared receiving modules 210 according to the acquisition time of the detected two infrared signals;
the sequence of the two infrared receiving modules 210 is taken as the direction of the gesture, and the ratio of the distance between the two infrared receiving modules 210 and the interval time is taken as the sensitivity of the gesture.
To sum up, compared with the existing gesture sensing circuit and method, the embodiment provided by the application has the following advantages:
1. by adopting an infrared transmitting mode with low frequency and low duty ratio, infrared transmission and induction with good directivity can be realized.
2. And the reliability of the product is improved by time-sharing sending and sampling.
3. Through AD's sampling mode, controllable regulation gesture induction distance and sensitivity.
While the present disclosure has been described in considerable detail and with particular reference to a few illustrative embodiments thereof, it is not intended to be limited to any such details or embodiments or any particular embodiments, but it is to be construed with references to the appended claims so as to provide a broad, potential interpretation of such claims in view of the prior art and, therefore, to effectively encompass the intended scope of the disclosure. Furthermore, the foregoing describes the invention in terms of embodiments foreseen by the inventor for which an enabling description was available, notwithstanding that insubstantial modifications of the invention, not presently foreseen, may nonetheless represent equivalents thereto.

Claims (9)

1. A gesture sensing circuit, comprising:
the infrared sensing device comprises a single chip microcomputer and two infrared sensing modules respectively connected with the single chip microcomputer;
the infrared induction module comprises an infrared receiving module and an infrared transmitting module;
the infrared receiving module comprises a first infrared receiving diode, a first receiving resistor, a second receiving resistor and a third receiving resistor, one end of the first receiving resistor is connected with a power supply end, the other end of the first receiving resistor is respectively connected with the second receiving resistor and the third receiving resistor, the other end of the second receiving resistor is connected with an AD detection port of the single chip microcomputer, and the other end of the third receiving resistor is connected with a cathode of the first infrared receiving diode;
the infrared emission module comprises a first infrared emission diode and a first infrared emission resistor, one end of the first infrared emission resistor is connected with the power supply end, the other end of the first infrared emission resistor is connected with the anode of the first infrared emission diode, and the cathode of the first infrared emission diode is connected with the IO port of the single chip microcomputer.
2. The gesture sensing circuit of claim 1, wherein the infrared signal emitted by the first infrared emitting diode is a pulse signal, the frequency of the pulse signal is 166Hz, and the duty cycle of the pulse signal is 1/6.
3. The gesture sensing circuit according to claim 1, wherein the first receiving resistor has a resistance of 100k Ω, the second receiving resistor has a resistance of 22k Ω, and the third receiving resistor has a resistance of 1k Ω.
4. The gesture sensing circuit of claim 3, wherein the first infrared emitting resistor has a resistance of 330 Ω.
5. The gesture sensing circuit according to claim 1, wherein the voltage of the power supply terminal is dc 5V.
6. A control method of gesture sensing is applied to the gesture sensing circuit of any one of claims 1 to 5, and is characterized by comprising the following steps:
the singlechip controls the two infrared emission modules to send infrared signals;
if the single chip microcomputer receives the infrared signal, an infrared receiving module for collecting the infrared signal and collecting time are determined;
if the two infrared receiving modules collect infrared signals, the single chip microcomputer determines whether gesture actions exist according to the infrared signals collected by the two infrared receiving modules;
and if the gesture action is determined to exist, determining the gesture sensing direction and sensitivity according to the infrared receiving module for collecting the infrared signal and the collecting time.
7. The control method of gesture induction according to claim 6, wherein the single chip microcomputer controls the two infrared emission modules to send infrared signals, and the method comprises the following steps:
the single chip microcomputer controls the first infrared emitting diodes IR _ LED1 of the two infrared emitting modules to send infrared signals;
wherein the infrared signal is a pulse signal, the frequency of the pulse signal emitted by the first infrared emitting diode IR _ LED1 is 166Hz, and the duty ratio of the pulse signal is 1/6.
8. The control method of gesture induction according to claim 6, wherein the single chip microcomputer determines whether gesture action exists according to the infrared signals collected by the two infrared receiving modules, and the method comprises the following steps:
the single chip microcomputer performs analog-to-digital conversion on the infrared signals acquired by the two infrared receiving modules to obtain two detection data; the infrared signal is obtained by sensing through a first infrared receiving diode IR 1;
and if the sizes of the two detection data are larger than a set threshold value, determining that the gesture action exists.
9. The control method of claim 6, wherein the determining the direction and sensitivity of the gesture sensing according to the infrared receiving module for collecting the infrared signal and the collecting time comprises:
the single chip microcomputer determines the sequence and the interval time of the two infrared receiving modules according to the acquisition time of the detected two infrared signals;
and taking the sequence of the two infrared receiving modules as the direction of the gesture, and taking the ratio of the distance between the two infrared receiving modules and the interval time as the sensitivity of the gesture.
CN202210155248.XA 2022-02-21 2022-02-21 Gesture sensing circuit and control method thereof Pending CN114721504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210155248.XA CN114721504A (en) 2022-02-21 2022-02-21 Gesture sensing circuit and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210155248.XA CN114721504A (en) 2022-02-21 2022-02-21 Gesture sensing circuit and control method thereof

Publications (1)

Publication Number Publication Date
CN114721504A true CN114721504A (en) 2022-07-08

Family

ID=82236421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210155248.XA Pending CN114721504A (en) 2022-02-21 2022-02-21 Gesture sensing circuit and control method thereof

Country Status (1)

Country Link
CN (1) CN114721504A (en)

Similar Documents

Publication Publication Date Title
US4785283A (en) Detecting system and detector
US9964395B2 (en) Position indicator and position indicating method
CN101725366B (en) Position detecting device for coal winning machine on integrated excavating coal face
GB2335334A (en) Transmitting data over low voltage power distribution system
US20190047502A1 (en) Capacitive measurement circuit with sensor wiring diagnostics
US20080221707A1 (en) Control and monitor signal transmission system
CN102970051A (en) Anti-interference wireless communication system
CN104995995A (en) Long-range ultrasonic occupancy sensor with remote transmitter
CN101995515A (en) Ac voltage phase discriminator for circuit breaker locators
JP2008545133A (en) Circuit configuration for obtaining binary output signals
CN110456913A (en) Infrared gesture action recognition method and device
WO2013119010A1 (en) Power line communication apparatus and method, and load power monitoring apparatus and method using same
CN114721504A (en) Gesture sensing circuit and control method thereof
CN216901576U (en) Gesture sensing circuit
CN211602091U (en) Water level detection equipment applied to cooking system
CN114726358A (en) Gesture switch circuit, range hood and control method of range hood
CN212206122U (en) Object detection circuit and object detection device
CN212781276U (en) Polling scanning type switch detection circuit
CN111398982A (en) Infrared gesture recognition system and method
CN210863962U (en) Hall switch valve detection circuitry that targets in place
CN209841985U (en) Zero fire line detecting system of house meter inlet wire
CN217442720U (en) Multi-point temperature acquisition circuit and temperature protection device
CN214375915U (en) Infrared goods position sensing device capable of resisting sunlight interference
CN216870802U (en) Radar false alarm monitoring devices
CN216559002U (en) Infrared detection device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination