一种用于光子美容仪的人体面部红外检测装置及方法Human face infrared detecting device and method for photon beauty instrument
技术领域Technical field
本发明涉及光子美容仪,尤其涉及一种用于光子美容仪的人体面部红外检测装置及方法。The invention relates to a photon beauty instrument, in particular to a human body face infrared detecting device and method for a photon beauty instrument.
背景技术Background technique
现有技术中的各种光子美容仪,尚未发现任何一款移动便携式的光子美容仪产品具有面部距离检测功能,因此,在取下头部光子美容仪时光子美容灯仍处在常开装态,不会自动关闭或者暂停设备,导致光子灯发出的光直射眼睛而造成伤害,缺乏保护功能,不具备人性化特点。Various photon beauty instruments in the prior art have not found any mobile portable photon beauty instrument product with facial distance detection function, therefore, the photon beauty lamp is still in the normally open state when the head photon beauty instrument is removed. It does not automatically turn off or suspend the device, causing the light emitted by the photon lamp to directly hit the eye and cause damage, lack of protection, and no humanized features.
发明内容Summary of the invention
本发明要解决的技术问题在于,针对现有技术的不足,提供一种用于光子美容仪的人体面部红外检测装置及方法,用以实现对人体面部的自动检测,并根据人体佩戴情况自动控制光子的产生状态。The technical problem to be solved by the present invention is to provide a human face infrared detecting device and method for a photon beauty instrument for realizing automatic detection of a human face and automatically controlling according to the wearing condition of the human body. The state of photon generation.
为解决上述技术问题,本发明采用如下技术方案。In order to solve the above technical problems, the present invention adopts the following technical solutions.
一种用于光子美容仪的人体面部红外检测装置,其包括有设于光子美容仪面罩上的:红外对管传感器,所述红外对管传感器包括有均朝向人体面部的红外发射管和红外接收管,当所述红外发射管发出的红外光经人体面部反射至红外接收管时,所述红外接收管输出一面部感应信号;电平转换模块,电性连接于红外接收管的输出端,所述电平转换模块用于将红外接收管输出的信号整形为标准电平信号;电压比较单元,电性连接于电平转换模块的输出端,所述电
压比较单元用于对电平转换模块的输出电平进行采样,并且当电平转换模块输出与所述面部感应信号相对应的电平时,所述电压比较单元输出一触发信号;MCU控制模块,电性连接于电压比较单元的输出端,所述MCU控制模块用于当其接收到所述触发信号时输出PWM脉冲信号,而当其未接收到所述触发信号时关闭其输出端口;LED光子模块,电性连接于MCU控制模块,藉由所述PWM脉冲信号驱动LED光子模块产生光子信号。A human face infrared detecting device for a photon beauty instrument, comprising: an infrared pair tube sensor disposed on a mask of a photon beauty instrument, wherein the infrared pair tube sensor comprises an infrared emitting tube and an infrared receiving unit both facing the human body face The infrared receiving tube outputs a facial sensing signal when the infrared light emitted by the infrared transmitting tube is reflected by the human body surface to the infrared receiving tube; the level converting module is electrically connected to the output end of the infrared receiving tube. The level conversion module is configured to shape the signal output by the infrared receiving tube into a standard level signal; the voltage comparing unit is electrically connected to the output end of the level converting module, and the electric
The voltage comparison unit is configured to sample an output level of the level conversion module, and when the level conversion module outputs a level corresponding to the face sensing signal, the voltage comparison unit outputs a trigger signal; the MCU control module, Electrically connected to an output of the voltage comparison unit, the MCU control module is configured to output a PWM pulse signal when it receives the trigger signal, and turn off its output port when it does not receive the trigger signal; LED photon The module is electrically connected to the MCU control module, and the LED photon module is driven by the PWM pulse signal to generate a photon signal.
优选地,所述红外发射管的阳极接电源端,其阴极通过第一限流电阻接地,所述红外接收管的集电极接电源端,其发射极作为红外对管传感器的输出端,且用于输出面部感应信号。Preferably, the anode of the infrared transmitting tube is connected to the power supply end, the cathode thereof is grounded through a first current limiting resistor, the collector of the infrared receiving tube is connected to the power supply end, and the emitter thereof is used as an output end of the infrared pair tube sensor, and For outputting facial sensing signals.
优选地,所述电平转换模块包括有NPN管,所述NPN管的集电极通过第二限流电阻接电源端,所述NPN管的发射极接地,其基极用于接入所述面部感应信号,所述NPN管的集电极作为电平转换模块的输出端且用于输出标准电平信号。Preferably, the level conversion module includes an NPN tube, and the collector of the NPN tube is connected to the power terminal through a second current limiting resistor, the emitter of the NPN tube is grounded, and the base thereof is used to access the face. Inductive signal, the collector of the NPN tube acts as an output of the level shifting module and is used to output a standard level signal.
优选地,所述电压比较单元包括有电压比较器、第一分压电阻和第二分压电阻,所述第一分压电阻和第二分压电阻串联于电源端与地之间,且二者的连接点电压传输至电压比较器的同相端,所述电压比较器的反相端与电平转换模块的输出端相连接,所述电压比较器的输出端连接于MCU控制模块。Preferably, the voltage comparison unit includes a voltage comparator, a first voltage dividing resistor and a second voltage dividing resistor, wherein the first voltage dividing resistor and the second voltage dividing resistor are connected in series between the power terminal and the ground, and The connection point voltage is transmitted to the non-inverting terminal of the voltage comparator, the inverting terminal of the voltage comparator is connected to the output terminal of the level conversion module, and the output of the voltage comparator is connected to the MCU control module.
优选地,所述电压比较器的反相端还通过上拉电阻而连接于电源端。Preferably, the inverting terminal of the voltage comparator is further connected to the power supply terminal through a pull-up resistor.
一种用于光子美容仪的人体面部红外检测方法,该方法基于一人体面部红外检测装置实现,所述人体面部红外检测装置包括有红外对管传感器、电平转换模块、电压比较单元、MCU控制模块和LED光子模块,所述红外对管传感器包括有均朝向人体面部的红外发射管和红外接收管,所述方法包括有如下步骤:步骤S1,利用所述红外发射管发出红外光,该红外光经人体面部反射至红
外接收管时,由所述红外接收管输出一面部感应信号;步骤S2,所述电平转换模块将红外接收管输出的信号整形为标准电平信号;步骤S3,利用所述电压比较单元对电平转换模块的输出电平进行采样,并且当电平转换模块输出与所述面部感应信号相对应的电平时,所述电压比较单元输出一触发信号;步骤S4,所述MCU控制模块是否接收到所述触发信号,若是,则执行步骤S5,若否,则关闭其输出端口;步骤S5,所述MCU控制模块根据所述触发信号时输出PWM脉冲信号,藉由所述PWM脉冲信号驱动LED光子模块产生光子信号,利用LED光子模块产生的光子信号对人体面部进行美容。A human face infrared detecting method for a photon beauty instrument, the method is implemented based on a human face infrared detecting device, wherein the human face infrared detecting device comprises an infrared pair tube sensor, a level conversion module, a voltage comparison unit, and an MCU control a module and an LED photo submodule, wherein the infrared pair tube sensor comprises an infrared emitting tube and an infrared receiving tube both facing the human body surface, the method comprising the following steps: Step S1, using the infrared emitting tube to emit infrared light, the infrared Light reflected through the human body to the red
When receiving the tube, the infrared receiving tube outputs a facial sensing signal; in step S2, the level converting module shapes the signal output by the infrared receiving tube into a standard level signal; and in step S3, using the voltage comparing unit The output level of the level conversion module is sampled, and when the level conversion module outputs a level corresponding to the face sensing signal, the voltage comparison unit outputs a trigger signal; and in step S4, the MCU control module receives Go to the trigger signal, if yes, go to step S5, if not, turn off its output port; in step S5, the MCU control module outputs a PWM pulse signal according to the trigger signal, and drives the LED by the PWM pulse signal The photonic module generates a photon signal and uses the photon signal generated by the LED photonic module to cosmeticize the human face.
本发明公开的用于光子美容仪的人体面部红外检测装置及方法中,当用户佩戴光子美容仪的面罩时,所述红外发射管发出的红外光经人体面部反射至红外接收管,所述红外接收管输出面部感应信号,利用电平转换模块将该面部感应信号整形为标准电平信号后,通过电压比较单元转换为触发信号而传输至MCU控制模块,所述MCU控制模块根据其接收到的信号进行判断,若MCU控制模块未接收到所述触发信号,则关闭其输出端口,若MCU控制模块接收到所述触发信号,则根据所述触发信号时输出PWM脉冲信号,藉由所述PWM脉冲信号驱动LED光子模块产生光子信号,利用LED光子模块产生的光子信号对人体面部进行美容。基于上述原理,使得本发明在使用时,若用户佩戴面罩,则光子信号自动产生,若用户摘下面罩,光子信号自动关闭,进而实现了对美容仪使用状态的自动控制,不仅保护了人体免受伤害,还更具自动化性能。In the human face infrared detecting device and method for photon beauty instrument disclosed in the present invention, when the user wears the mask of the photon beauty instrument, the infrared light emitted by the infrared emitting tube is reflected by the human body surface to the infrared receiving tube, the infrared The receiving tube outputs a facial sensing signal, and the surface sensing signal is shaped into a standard level signal by using the level converting module, and then converted into a trigger signal by the voltage comparing unit and transmitted to the MCU control module, and the MCU control module receives the received signal according to the The signal is judged. If the trigger signal is not received by the MCU control module, the output port is closed. If the MCU control module receives the trigger signal, the PWM pulse signal is output according to the trigger signal, by using the PWM. The pulse signal drives the LED photo sub-module to generate a photon signal, and the photon signal generated by the LED photonic module is used to cosmeticize the human face. Based on the above principle, when the user wears the mask, the photon signal is automatically generated. If the user picks up the mask, the photon signal is automatically turned off, thereby realizing automatic control of the use state of the beauty instrument, thereby protecting the human body. Damaged and more automated.
附图说明DRAWINGS
图1为本发明人体面部红外检测装置的组成框图。1 is a block diagram showing the composition of a human face infrared detecting device of the present invention.
图2为红外对管传感器、电平转换模块和电压比较单元的电路原理图。
2 is a circuit schematic diagram of an infrared pair tube sensor, a level conversion module, and a voltage comparison unit.
具体实施方式detailed description
下面结合附图和实施例对本发明作更加详细的描述。The invention will now be described in greater detail with reference to the drawings and embodiments.
本发明公开了一种用于光子美容仪的人体面部红外检测装置,结合图1和图2所示,其包括有设于光子美容仪面罩上的红外对管传感器IR1、电平转换模块1、电压比较单元2、MCU控制模块3和LED光子模块4,其中:The invention discloses a human face infrared detecting device for a photon beauty instrument, which is shown in FIG. 1 and FIG. 2, which comprises an infrared pair tube sensor IR1 and a level conversion module 1 disposed on a photon beauty instrument mask. Voltage comparison unit 2, MCU control module 3 and LED photo submodule 4, wherein:
所述红外对管传感器IR1包括有均朝向人体面部的红外发射管和红外接收管,当所述红外发射管发出的红外光经人体面部反射至红外接收管时,所述红外接收管输出一面部感应信号;The infrared pair tube sensor IR1 includes an infrared emitting tube and an infrared receiving tube both facing the human body surface. When the infrared light emitted by the infrared emitting tube is reflected by the human body surface to the infrared receiving tube, the infrared receiving tube outputs a face. Inductive signal
所述电平转换模块1电性连接于红外接收管的输出端,所述电平转换模块1用于将红外接收管输出的信号整形为标准电平信号;该标准电平信号是指标准的高低电平,例如+5V电平和0V电平。The level conversion module 1 is electrically connected to an output end of the infrared receiving tube, and the level converting module 1 is configured to shape a signal output by the infrared receiving tube into a standard level signal; the standard level signal refers to a standard High and low levels, such as +5V level and 0V level.
所述电压比较单元2电性连接于电平转换模块1的输出端,所述电压比较单元2用于对电平转换模块1的输出电平进行采样,并且当电平转换模块1输出与所述面部感应信号相对应的电平时,所述电压比较单元2输出一触发信号;The voltage comparison unit 2 is electrically connected to the output end of the level conversion module 1, and the voltage comparison unit 2 is configured to sample the output level of the level conversion module 1, and when the level conversion module 1 outputs the same When the level corresponding to the facial sensing signal is described, the voltage comparing unit 2 outputs a trigger signal;
所述MCU控制模块3电性连接于电压比较单元2的输出端,所述MCU控制模块3用于当其接收到所述触发信号时输出PWM脉冲信号,而当其未接收到所述触发信号时关闭其输出端口;The MCU control module 3 is electrically connected to an output end of the voltage comparison unit 2, and the MCU control module 3 is configured to output a PWM pulse signal when it receives the trigger signal, and when it does not receive the trigger signal Turn off its output port;
所述LED光子模块4电性连接于MCU控制模块3,藉由所述PWM脉冲信号驱动LED光子模块4产生光子信号。The LED photo sub-module 4 is electrically connected to the MCU control module 3, and the LED photon module 4 is driven by the PWM pulse signal to generate a photon signal.
上述人体面部红外检测装置中,当用户佩戴光子美容仪的面罩时,所述红外发射管发出的红外光经人体面部反射至红外接收管,所述红外接收管输出面部感应信号,利用电平转换模块1将该面部感应信号整形为标准电平信号后,
通过电压比较单元2转换为触发信号而传输至MCU控制模块3,所述MCU控制模块3根据其接收到的信号进行判断,若MCU控制模块3未接收到所述触发信号,则关闭其输出端口,若MCU控制模块3接收到所述触发信号,则根据所述触发信号时输出PWM脉冲信号,藉由所述PWM脉冲信号驱动LED光子模块4产生光子信号,利用LED光子模块4产生的光子信号对人体面部进行美容。基于上述原理,使得本发明在使用时,若用户佩戴面罩,则光子信号自动产生,若用户摘下面罩,光子信号自动关闭,进而实现了对美容仪使用状态的自动控制,不仅保护了人体免受伤害,还更具自动化性能。In the above-mentioned human face infrared detecting device, when the user wears the mask of the photon beauty instrument, the infrared light emitted by the infrared emitting tube is reflected by the human body surface to the infrared receiving tube, and the infrared receiving tube outputs a facial sensing signal, and uses level shifting. After module 1 shapes the face sensing signal into a standard level signal,
The voltage comparison unit 2 converts to a trigger signal and transmits to the MCU control module 3, and the MCU control module 3 determines according to the signal it receives. If the MCU control module 3 does not receive the trigger signal, the output port is closed. If the trigger signal is received by the MCU control module 3, the PWM pulse signal is output according to the trigger signal, and the photon signal is generated by driving the LED photo submodule 4 by the PWM pulse signal, and the photon signal generated by the LED photo submodule 4 is generated. Beauty the face of the human body. Based on the above principle, when the user wears the mask, the photon signal is automatically generated. If the user picks up the mask, the photon signal is automatically turned off, thereby realizing automatic control of the use state of the beauty instrument, thereby protecting the human body. Damaged and more automated.
关于上述各单元的具体电路结构,所述红外发射管的阳极接电源端,其阴极通过第一限流电阻R1接地,所述红外接收管的集电极接电源端,其发射极作为红外对管传感器IR1的输出端,且用于输出面部感应信号。所述电平转换模块1包括有NPN管Q1,所述NPN管Q1的集电极通过第二限流电阻R5接电源端,所述NPN管Q1的发射极接地,其基极用于接入所述面部感应信号,所述NPN管Q1的集电极作为电平转换模块1的输出端且用于输出标准电平信号。由于红外接收管集电极的输出电压是线性的,为避免出现误判或者产生误信号,本实施例利用电平转换模块1对红外接收管的输出信号进行电平转换,进而实现电平整形。Regarding the specific circuit structure of each unit, the anode of the infrared transmitting tube is connected to the power supply end, and the cathode thereof is grounded through the first current limiting resistor R1, the collector of the infrared receiving tube is connected to the power end, and the emitter thereof is used as the infrared pair tube. The output of the sensor IR1 is used to output a facial sensing signal. The level conversion module 1 includes an NPN transistor Q1. The collector of the NPN transistor Q1 is connected to the power supply terminal through a second current limiting resistor R5. The emitter of the NPN transistor Q1 is grounded, and the base thereof is used for accessing the terminal. The face sensing signal is described, and the collector of the NPN transistor Q1 serves as an output of the level conversion module 1 and is used to output a standard level signal. Since the output voltage of the collector of the infrared receiving tube is linear, in order to avoid misjudgment or generate a false signal, the embodiment uses the level converting module 1 to level-convert the output signal of the infrared receiving tube to realize level shaping.
进一步地,所述电压比较单元2包括有电压比较器U1、第一分压电阻R3和第二分压电阻R4,所述第一分压电阻R3和第二分压电阻R4串联于电源端与地之间,且二者的连接点电压传输至电压比较器U1的同相端,所述电压比较器U1的反相端与电平转换模块1的输出端相连接,所述电压比较器U1的输出端连接于MCU控制模块3。Further, the voltage comparison unit 2 includes a voltage comparator U1, a first voltage dividing resistor R3, and a second voltage dividing resistor R4. The first voltage dividing resistor R3 and the second voltage dividing resistor R4 are connected in series with the power terminal. Between the ground, and the junction voltage of the two is transmitted to the non-inverting terminal of the voltage comparator U1, and the inverting terminal of the voltage comparator U1 is connected to the output terminal of the level converting module 1, the voltage comparator U1 The output is connected to the MCU control module 3.
其中,当红外接收管接收到经人体面部反射的红外光时导通,电源端VDD
的电压经过红外接收管而传输至NPN管Q1的基极以令NPN管Q1导通,并将NPN管Q1的集电极拉低,电压比较器U1的反相端随之拉低,电压比较器U1输出高电位触发信号至MCU控制模块3;当红外接收管未接收到红外信号时,NPN管Q1呈关闭状态,NPN管Q1的集电极因第二限流电阻R5而呈高电位,电压比较器U1的反相端也随之呈高电位,同时,电压比较器U1输出低电位信号,以令MCU控制模块3关闭其输出端口,LED光子模块4停止发光。实际应用中该MCU控制模块3可以由单片机及其外围电路组成。Wherein, when the infrared receiving tube receives the infrared light reflected by the human body face, the power is turned on, and the power terminal VDD
The voltage is transmitted to the base of the NPN tube Q1 through the infrared receiving tube to turn on the NPN tube Q1, and the collector of the NPN tube Q1 is pulled low, and the inverting terminal of the voltage comparator U1 is pulled low, the voltage comparator U1 outputs a high potential trigger signal to the MCU control module 3; when the infrared receiving tube does not receive the infrared signal, the NPN tube Q1 is in a closed state, and the collector of the NPN tube Q1 is at a high potential due to the second current limiting resistor R5, voltage comparison The inverting terminal of the U1 also has a high potential. At the same time, the voltage comparator U1 outputs a low potential signal to cause the MCU control module 3 to close its output port, and the LED photo submodule 4 stops emitting light. In practical applications, the MCU control module 3 can be composed of a single chip microcomputer and its peripheral circuits.
作为一种优选方式,所述电压比较器U1的反相端还通过上拉电阻R2而连接于电源端。该上拉电阻R2的作用在于,当电压比较器U1输出高电位触发信号时,能够确保该触发信号为标准高电平,从而防止MCU控制模块3发生误判。As a preferred mode, the inverting terminal of the voltage comparator U1 is also connected to the power supply terminal through the pull-up resistor R2. The pull-up resistor R2 functions to ensure that the trigger signal is at a standard high level when the voltage comparator U1 outputs a high-potential trigger signal, thereby preventing the MCU control module 3 from being misjudged.
基于上述装置,本发明还公开一种用于光子美容仪的人体面部红外检测方法,所述方法包括有如下步骤:Based on the above device, the present invention also discloses a human face infrared detecting method for a photon beauty instrument, the method comprising the following steps:
步骤S1,利用所述红外发射管发出红外光,该红外光经人体面部反射至红外接收管时,由所述红外接收管输出一面部感应信号;Step S1, using the infrared emitting tube to emit infrared light, when the infrared light is reflected by the human body surface to the infrared receiving tube, the infrared receiving tube outputs a facial sensing signal;
步骤S2,所述电平转换模块1将红外接收管输出的信号整形为标准电平信号;Step S2, the level conversion module 1 shapes the signal output by the infrared receiving tube into a standard level signal;
步骤S3,利用所述电压比较单元2对电平转换模块1的输出电平进行采样,并且当电平转换模块1输出与所述面部感应信号相对应的电平时,所述电压比较单元2输出一触发信号;Step S3, the output level of the level conversion module 1 is sampled by the voltage comparison unit 2, and when the level conversion module 1 outputs a level corresponding to the face sensing signal, the voltage comparison unit 2 outputs a trigger signal;
步骤S4,所述MCU控制模块3是否接收到所述触发信号,若是,则执行步骤S5,若否,则关闭其输出端口;Step S4, whether the MCU control module 3 receives the trigger signal, and if yes, step S5 is performed, and if not, the output port is closed;
步骤S5,所述MCU控制模块3根据所述触发信号时输出PWM脉冲信号,藉由所述PWM脉冲信号驱动LED光子模块4产生光子信号,利用LED光子模
块4产生的光子信号对人体面部进行美容。In step S5, the MCU control module 3 outputs a PWM pulse signal according to the trigger signal, and the LED photon module 4 is driven by the PWM pulse signal to generate a photon signal, and the LED photon mode is utilized.
The photon signal generated by block 4 is used to cosmeticize the human face.
本发明公开的用于光子美容仪的人体面部红外检测装置及方法,其能够简单有效地检测光子美容仪是否穿戴在人体面部,在设备离开身体一定距离或者被摘下后能自动检测和识别,自动控制光子美容仪光子灯打开或者关闭,不仅有效规避光子美容LED对人眼直射造成的伤害,而且在使产品使用过程中达到省电,更加方便,更具人性化的目的。The invention discloses a human face infrared detecting device and method for a photon beauty instrument, which can easily and effectively detect whether a photon beauty instrument is worn on a human face, and can automatically detect and recognize after the device leaves the body at a certain distance or is removed. The automatic control photon beauty instrument photon light is turned on or off, which not only effectively avoids the damage caused by the photon beauty LED to the direct eyes of the human eye, but also achieves the purpose of saving electricity, making it more convenient and more humanized in the process of using the product.
以上所述只是本发明较佳的实施例,并不用于限制本发明,凡在本发明的技术范围内所做的修改、等同替换或者改进等,均应包含在本发明所保护的范围内。
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention. All modifications, equivalents, and improvements made within the technical scope of the present invention are intended to be included within the scope of the present invention.