CN111239843A - Infrared pair tube detection method - Google Patents
Infrared pair tube detection method Download PDFInfo
- Publication number
- CN111239843A CN111239843A CN202010199752.0A CN202010199752A CN111239843A CN 111239843 A CN111239843 A CN 111239843A CN 202010199752 A CN202010199752 A CN 202010199752A CN 111239843 A CN111239843 A CN 111239843A
- Authority
- CN
- China
- Prior art keywords
- infrared
- receiving device
- current
- infrared receiving
- signal
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V8/00—Prospecting or detecting by optical means
- G01V8/10—Detecting, e.g. by using light barriers
- G01V8/12—Detecting, e.g. by using light barriers using one transmitter and one receiver
Abstract
An infrared pair tube detection method comprises an infrared emitting device and an infrared receiving device, and the detection method specifically comprises the following steps: determining a rated value of a current signal of the infrared receiving device; when the infrared receiving device is used by a user, the infrared receiving device collects current signals; analyzing and processing the acquired current signal to obtain the magnitude of the current signal when the infrared receiving device works; and comparing the current signal during operation with the rated value of the current signal to adjust the driving current of the infrared emitting device. The invention has the beneficial effects that: the problem of unstable detection distance caused by attenuation of device parameters, pollution on the surface of a detection window and the like can be solved, so that the detection distance is kept at a stable level, and the user experience is improved.
Description
Technical Field
The invention belongs to the technical field of infrared geminate transistor detection, and particularly relates to an infrared geminate transistor detection method.
Background
The reflective infrared pair tube is widely applied to occasions with low requirements on distance detection precision, such as an automatic induction soap dispenser, an automatic induction faucet, an automatic induction urinal and the like, as a detection element. A common typical solution is shown in fig. 1: the driving circuit 1' and the emitting device 2' send out infrared detection signals, the infrared signals are reflected by a detected object and then enter the receiving device 3', the receiving device 3' converts the infrared signals into electric signals, the electric signals are amplified by the processing circuit 4' or directly sent to the main control chip circuit 5', the main control chip circuit 5' identifies, judges and processes the signals, and after the signals are determined to be effective detection signals, instructions are sent to drive the execution unit 7 to work. Wherein, the emitting device 2 'and the receiving device 3' form an infrared pair tube detecting unit, and the detected object is a hand or a body generally.
The emitting device in the existing scheme is usually driven by constant current, and has no dynamic regulation function, so that detection instability is caused by the problems that the emitting device and the receiving device have parameter deviation, or the emitting device or the receiving device is attenuated, the detection surface is polluted and the like, so that a user needs to continuously adjust the posture to be detected by the infrared pair tubes when the emitting device is used, and the user use experience is influenced.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides the infrared pair tube detection method which can dynamically adjust the driving current of the infrared emitting device according to the situation, so that the detection distance is kept at a relatively stable level, and the user experience is improved.
The technical scheme adopted by the invention is as follows:
an infrared pair tube detection method comprises an infrared emitting device and an infrared receiving device, and the detection method specifically comprises the following steps:
determining a rated value of a current signal of the infrared receiving device;
when the infrared receiving device is used by a user, the infrared receiving device collects current signals;
analyzing and processing the acquired current signal to obtain the magnitude of the current signal when the infrared receiving device works;
and comparing the current signal during operation with the rated value of the current signal to adjust the driving current of the infrared emitting device.
Further, the determination of the current signal rating of the infrared receiving device comprises:
determining a detection distance d;
placing the hand at a position d away from the infrared receiving device, reading and recording the current value of the infrared receiving device, and repeatedly operating for multiple times to obtain a plurality of effective detection signal current values Ir;
and calculating the average value Ira of the current value Ir, namely the rated value of the current signal.
Further, the obtaining of the magnitude of the current signal when the infrared receiving device operates includes:
when the user uses the device, the infrared emitting device emits signals, and the infrared receiving device generates current signals Iur;
recording current values Iur1, Iur2 and Iur3 … Iur of the detection signals received each time, and carrying out data screening to obtain an effective signal array Iur';
and calculating the average value Iura of the effective signal array Iur', namely the magnitude of the current signal when the infrared receiving device works.
Further, data screening is to reject signals that are too large or too small.
Alternatively, the data screening adopts a three sigma criterion method.
Further, the adjustment of the drive current of the infrared emitting device includes:
comparing the average value Ira with the average value Iura, and increasing the driving current of the infrared emitting diode when the value of Ira-Iura/Ira is larger than a set value; when Ira-Iura/Ira is less than or equal to a set value, the signal is normal without attenuation.
The invention has the beneficial effects that: the problem of unstable detection distance caused by attenuation of device parameters, pollution on the surface of a detection window and the like can be solved, so that the detection distance is kept at a stable level, and the user experience is improved.
Drawings
FIG. 1 is a schematic block diagram of the circuit of the present invention;
FIG. 2 is a flow chart of the present invention;
FIG. 3 is a schematic diagram of an embodiment of the present invention;
FIG. 4 is a flow chart of an infrared received signal rating setting of an embodiment of the present invention;
fig. 5 is a flow chart of a system cycle detection process according to an embodiment of the invention.
Detailed Description
The present invention is further illustrated by the following examples, which are not intended to limit the invention to these embodiments. It will be appreciated by those skilled in the art that the present invention encompasses all alternatives, modifications and equivalents as may be included within the scope of the claims.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, unless otherwise specified, "a plurality" means two or more unless explicitly defined otherwise.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
Referring to fig. 2, the present embodiment provides a method for detecting an infrared pair of tubes, including an infrared emitting device and an infrared receiving device, and the specific steps of the detection are as follows:
201 determination of signal rating of infrared receiving device:
determining a typical detection distance d according to an application scene, and determining a proper current Ie of an emitting device according to the characteristics of the infrared emitting device and the typical detection distance; and under the condition of given Ie, enabling the detection object to be positioned at the detection distance d, and reading the current value Ir of the infrared receiving device. And repeating the detection process for multiple times to obtain a group of Ir current values, and calculating the average value Ira of the Ir current values, wherein the average value Ira is the rated value of the infrared receiving signal.
The rated value can be set before the factory or at the installation site of a user.
202, collecting signals of infrared receiving devices of users:
when the user normally uses the device, the infrared emitting device emits signal, the signal reflected by the detected object enters the infrared receiving device to generate current signal Iur, and the current signals Iur1, Iur2 and Iur3 … of each operation are read and recorded
The number of data can be adjusted according to the actual application scene.
203, analysis and processing of infrared receiving device signals of the user:
the data set of the operating current signal of the user infrared receiving device is expressed as Iur ═ Iur1, Iur2,. Iurn ], where n is the data quantity, and can be directly set as the quantity n, or set as the length T of the acquisition period, and the data quantity in one acquisition period is n. And when the data quantity reaches a set value or the acquisition period reaches a set value, starting the analysis and the processing of the infrared receiving device signals.
Firstly, the signal data group Iur is screened, namely, overlarge or undersize signals in the array are removed to obtain an effective signal data group Iur', and the removed signals do not belong to signals in a typical working state, so that the signals cannot be used for participating in calculation and judging the level of the current infrared receiving device signals. The signal rejection method may employ a method of simply removing a portion of the largest and smallest, such as removing the largest 10% and the smallest 10%.
When the data volume is large, the data can be removed by adopting a three-sigma rule method, namely the mean value mu and the standard deviation sigma of the data are calculated, and all the data falling outside (mu-3 sigma, mu +3 sigma) are removed. In practical application, data other than (μ -2 σ, μ +2 σ) or (μ - σ, μ + σ) may be discarded. The data group after being eliminated is the effective signal data group Iur'.
And then, calculating the average value Iura of the effective signal data group Iur', wherein the average value Iura represents the magnitude of the current signal of the current infrared receiving device.
204 infrared emitting device drive current adjustment
The Iura and the rated value Ira of the infrared receiving signal are compared, and if the variation amplitude exceeds a certain limit, the driving current of the infrared emitting device is adjusted. The size of the limit can be flexibly adjusted according to the application scene.
And executing a loop from 202 to 204, continuously detecting a signal of the receiving device when the infrared tube is used by a user, analyzing and processing the signal, and adjusting the driving current of the emitting device, so that the detection distance of the infrared tube is kept stable.
The infrared pair tube detection method provided by the invention sets the rated value of the current signal of the infrared receiving device, counts the average value of the current signal of the infrared receiving device in the using state of a user, judges the change of the average value and the rated value to determine whether the condition of device parameter attenuation or whether the surface of a detection window is polluted or not, and dynamically adjusts the driving current of the infrared emitting device according to the condition, so that the detection distance is kept at a relatively stable level, and the user experience is improved.
When the automatic induction soap dispenser is applied to an automatic induction soap dispenser, a schematic diagram of the automatic induction soap dispenser is shown in fig. 3, and the automatic induction soap dispenser comprises an emission driving circuit 301, an infrared emission diode 302, an infrared receiving diode 303, an amplification processing circuit 304, a single chip microcomputer 305, a motor driving circuit 306 and a motor 307, wherein the emission driving circuit 301 is connected with the infrared emission diode 302, the infrared receiving diode 303 is connected with the amplification processing circuit 304, the amplification processing circuit 304 is connected with the single chip microcomputer 305, the single chip microcomputer 305 is connected with the motor driving circuit 306, and the motor driving circuit 306 is connected with the motor 307.
The emission driving circuit 301 receives a PWM signal output by the single chip microcomputer 305, the PWM signal is converted into a direct current signal through a low pass filter composed of R1 and C1, so as to drive the infrared emission diode 302 to emit an infrared signal, the infrared signal is reflected by a detected object and then enters the infrared receiving diode 303, the infrared receiving diode 303 converts the infrared signal into an electric signal, the electric signal is amplified by the amplification processing circuit 304 and then sent to the single chip microcomputer 305, the single chip microcomputer 305 identifies, judges and processes the signal, and sends a driving motor instruction after determining that the signal is a valid detection signal, so as to drive the motor 307 to work.
The embodiment comprises two parts of setting of a rated value of an infrared receiving signal and system circulation detection processing, and the specific working process is as follows:
1. the infrared receiving signal rated value is set, the process is set before the factory, and the flow chart is shown in figure 4. Typical detection distances d for auto-induction soap dispensers are typically 5-8 cm. In this embodiment, the selected detection distance d is 5cm, the current of the infrared emitting diode is 10mA, and the setting process is as follows:
placing a hand at a position 5cm below the infrared pair transistors, and reading and recording a current value Ir of the infrared receiving diode; the placing operation is repeated for 5 times to obtain 5 times of effective detection signal current values Ir. The average value Ira of Ir is calculated and stored in the register R1.
2. The system cycle detection processing consists of three processes of infrared receiving diode signal acquisition 501, infrared receiving diode signal analysis processing 502, and infrared emitting diode drive current adjustment 503, as shown in fig. 5.
Infrared receiving diode signal acquisition 501:
when a user normally uses the intelligent infrared detection device, the infrared emitting diode sends out an infrared signal, the infrared signal is reflected by the hand and then sent to the infrared receiving diode, the infrared receiving diode generates a current signal Iur, the current signal Iur is amplified by the processing circuit and then sent to the single chip microcomputer, and the single chip microcomputer sends a driving motor instruction after judging that the current signal Iur is an effective detection signal and drives the motor to work. The current values Iur1, Iur2 and Iur3 … Iur of the effective detection signals received each time are recorded and stored as an array Iur.
Taking n-100 as an evaluation period, namely after 100 data acquisition are completed, the analysis processing of infrared receiving diode signals is started, and the array is expressed as Iur-Iur 1, Iur 2.
Analysis processing 502 of infrared receiving diode signals:
and calculating the data mean value mu and the standard deviation sigma in the array Iur, and eliminating signals which are not in a typical working state except mu-2 sigma and mu +2 sigma to obtain an effective signal array Iur'. The average value Iura of the valid signal array Iur' is calculated and stored in the register R2.
Adjustment of infrared emitting diode drive current 503:
the PWM modulation frequency is 1kHz and the PWM pulse output duty ratio is set to 50%, i.e., the initial dc signal is set to 2.5V. When Ira-Iura/Ira is more than 20%, the parameter attenuation of the device exists or the surface of the detection window is polluted, the PWM output duty ratio is correspondingly increased, namely the driving current of the infrared emitting diode is increased, and the data in the R2 register is emptied. When the Ira-Iura/Ira is less than or equal to 20%, the signal is normal without attenuation, and the data in the R2 register is emptied. And after the comparison is finished, continuously executing system cycle detection processing.
The detection distance of the infrared pair transistors is kept stable by circularly detecting signals 501 of the infrared receiving diodes, analyzing and processing the signals 502 of the infrared receiving diodes and adjusting driving current 503 of the infrared emitting diodes.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing has outlined rather broadly the preferred embodiments and principles of the present invention and it will be appreciated that those skilled in the art may devise variations of the present invention that are within the spirit and scope of the appended claims.
Claims (6)
1. An infrared pair tube detection method comprises an infrared emitting device and an infrared receiving device, and the detection method specifically comprises the following steps:
determining a rated value of a current signal of the infrared receiving device;
when the infrared receiving device is used by a user, the infrared receiving device collects current signals;
analyzing and processing the acquired current signal to obtain the magnitude of the current signal when the infrared receiving device works;
and comparing the current signal during operation with the rated value of the current signal to adjust the driving current of the infrared emitting device.
2. The infrared pair tube detection method according to claim 1, characterized in that: the determination of the current signal rating of the infrared receiving device comprises:
determining a detection distance d;
placing the hand at a position d away from the infrared receiving device, reading and recording the current value of the infrared receiving device, and repeatedly operating for multiple times to obtain a plurality of effective detection signal current values Ir;
and calculating the average value Ira of the current value Ir, namely the rated value of the current signal.
3. The infrared pair tube detection method according to claim 2, characterized in that: the acquisition of the magnitude of the current signal when the infrared receiving device works comprises the following steps:
when the user uses the device, the infrared emitting device emits signals, and the infrared receiving device generates current signals Iur;
recording current values Iur1, Iur2 and Iur3 … Iur of the detection signals received each time, and carrying out data screening to obtain an effective signal array Iur';
and calculating the average value Iura of the effective signal array Iur', namely the magnitude of the current signal when the infrared receiving device works.
4. The infrared pair tube detection method according to claim 3, characterized in that: and the data is screened to eliminate signals which are too large or too small.
5. The infrared pair tube detection method according to claim 3, characterized in that: the data screening adopts a three-sigma rule method.
6. The infrared pair tube detection method according to claim 3, characterized in that: the adjustment of the drive current of the infrared emitting device includes:
comparing the average value Ira with the average value Iura, and increasing the driving current of the infrared emitting diode when the value of Ira-Iura/Ira is larger than a set value; when Ira-Iura/Ira is less than or equal to a set value, the signal is normal without attenuation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010199752.0A CN111239843A (en) | 2020-03-20 | 2020-03-20 | Infrared pair tube detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010199752.0A CN111239843A (en) | 2020-03-20 | 2020-03-20 | Infrared pair tube detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111239843A true CN111239843A (en) | 2020-06-05 |
Family
ID=70870644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010199752.0A Pending CN111239843A (en) | 2020-03-20 | 2020-03-20 | Infrared pair tube detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111239843A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113566811A (en) * | 2021-06-30 | 2021-10-29 | 武汉港迪电气有限公司 | Data filtering fusion algorithm and device based on multi-path position detection sensor |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150346720A1 (en) * | 2014-05-28 | 2015-12-03 | Acrox Technologies Co., Ltd. | Forward tracking system and control method thereof |
CN205279987U (en) * | 2015-11-10 | 2016-06-01 | 长春理工大学 | Door window position detecting device |
CN106020486A (en) * | 2016-05-31 | 2016-10-12 | 广东美的制冷设备有限公司 | Control method for infrared gesture recognition device, infrared gesture recognition device and equipment |
CN109444858A (en) * | 2018-09-14 | 2019-03-08 | 珠海格力电器股份有限公司 | The infrared current calibration method of dustbin, device, equipment and storage medium |
CN209199326U (en) * | 2018-11-22 | 2019-08-02 | 深圳和而泰小家电智能科技有限公司 | Infrared transmitting circuit and infrared launcher |
CN110297277A (en) * | 2018-03-23 | 2019-10-01 | 现代自动车株式会社 | Optical sensor, rain sensor and vehicle |
-
2020
- 2020-03-20 CN CN202010199752.0A patent/CN111239843A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150346720A1 (en) * | 2014-05-28 | 2015-12-03 | Acrox Technologies Co., Ltd. | Forward tracking system and control method thereof |
CN205279987U (en) * | 2015-11-10 | 2016-06-01 | 长春理工大学 | Door window position detecting device |
CN106020486A (en) * | 2016-05-31 | 2016-10-12 | 广东美的制冷设备有限公司 | Control method for infrared gesture recognition device, infrared gesture recognition device and equipment |
CN110297277A (en) * | 2018-03-23 | 2019-10-01 | 现代自动车株式会社 | Optical sensor, rain sensor and vehicle |
CN109444858A (en) * | 2018-09-14 | 2019-03-08 | 珠海格力电器股份有限公司 | The infrared current calibration method of dustbin, device, equipment and storage medium |
CN209199326U (en) * | 2018-11-22 | 2019-08-02 | 深圳和而泰小家电智能科技有限公司 | Infrared transmitting circuit and infrared launcher |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113566811A (en) * | 2021-06-30 | 2021-10-29 | 武汉港迪电气有限公司 | Data filtering fusion algorithm and device based on multi-path position detection sensor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8274036B2 (en) | Processing method and apparatus for energy saving of an active infrared induction instrument powered by a dry battery | |
CN111239843A (en) | Infrared pair tube detection method | |
JPWO2007004606A1 (en) | Ranging device | |
CN1899624A (en) | Control methods for an air treatment system | |
CN105067080A (en) | Capacitive liquid level detection device, method and system | |
US10082883B2 (en) | Optical navigation device and locus smoothing method thereof | |
US20230234146A1 (en) | Smart electric power tool and control method thereof | |
KR101284492B1 (en) | Electric vacuum cleaner | |
US6590662B2 (en) | Object sensor and a windshield wiper controller using the same | |
KR101782320B1 (en) | Method of determining blood alcohol content, user terminal performing the same and medium storage storing the same | |
US6285017B1 (en) | Alignment indicator for photoelectric sensors | |
CN109519983B (en) | Electromagnetic cooking system, cooker identification method thereof and cooker identification device | |
EP3889019A1 (en) | Electric bicycle assistance controlling method and assistance controlling system | |
CN106020486A (en) | Control method for infrared gesture recognition device, infrared gesture recognition device and equipment | |
JP4817368B2 (en) | Fire detector | |
JPH08201519A (en) | Light reception circuit | |
JP3312712B2 (en) | Optimal threshold setting method for high-sensitivity smoke detector | |
JP2781387B2 (en) | Distance measuring device | |
CN111504605A (en) | Forward light detection method of continuous fiber laser | |
US8144544B2 (en) | Method of processing echo profile, and pulse-echo system for use with the method | |
CN110596717A (en) | Laser echo processing embedded module, laser ranging method and system | |
JP2956235B2 (en) | Vacuum cleaner dust detector | |
CN117980741A (en) | Reagent reaction judging method and device, storage medium and detection tube | |
CN109974819B (en) | Automatic count detection device and have its gas table | |
CN116616660A (en) | Dust collection device and control method thereof |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200605 |