Photoelectric device of electric energy meter and infrared emission control method

文档序号:1648873 发布日期:2019-12-24 浏览:12次 中文

阅读说明:本技术 一种电能表光电装置及红外发射控制方法 (Photoelectric device of electric energy meter and infrared emission control method ) 是由 刘启彬 李涛 刘锋 欧展鹏 李炳要 肖腾杰 陈怡威 钟洁丽 潘裕斌 于 2019-10-30 设计创作,主要内容包括:本发明提供一种电能表光电装置及红外发射控制方法,所述光电装置包括微控制单元、远红外接收电路、近红外接收电路、红外发送电路、第一按键电路、第二按键电路、第三按键电路、远红外指示电路、近红外指示电路、光电校准电路,其中微控制单元的PD2引脚与远红外接收电路连接,微控制单元的PD1引脚、PC6引脚分别与近红外接收电路连接;微控制单元的PD0引脚与红外发送电路连接;微控制单元的PC5、PC4、PC3引脚分别连接第一按键电路、第二按键电路、第三按键电路;微控制单元的PC1、PC0引脚分别连远红外指示电路和近红外指示电路;微控制单元的ADC7引脚连接光电校准电路。通过本发明,整合红外发送和接收,解决现有使用不方便以及红外发射成本高的问题。(The invention provides an electric energy meter photoelectric device and an infrared emission control method, wherein the photoelectric device comprises a micro control unit, a far infrared receiving circuit, a near infrared receiving circuit, an infrared transmitting circuit, a first key circuit, a second key circuit, a third key circuit, a far infrared indicating circuit, a near infrared indicating circuit and a photoelectric calibration circuit, wherein a PD2 pin of the micro control unit is connected with the far infrared receiving circuit, and a PD1 pin and a PC6 pin of the micro control unit are respectively connected with the near infrared receiving circuit; a PD0 pin of the micro control unit is connected with the infrared transmitting circuit; pins PC5, PC4 and PC3 of the micro control unit are respectively connected with the first key circuit, the second key circuit and the third key circuit; pins PC1 and PC0 of the micro-control unit are respectively connected with the far infrared indicating circuit and the near infrared indicating circuit; and an ADC7 pin of the micro control unit is connected with the photoelectric calibration circuit. By the invention, infrared transmission and reception are integrated, and the problems of inconvenient use and high infrared emission cost in the prior art are solved.)

1. The utility model provides an electric energy meter photoelectric device, characterized in that, photoelectric device includes little the control unit (1), far infrared receiving circuit (101), near infrared receiving circuit (102), infrared transmitting circuit (103), first button circuit (104), second button circuit (105), third button circuit (106), far infrared indicating circuit (107), near infrared indicating circuit (108), photoelectric calibration circuit (109), wherein:

a PD2 pin of the micro control unit (1) is connected with the far infrared receiving circuit (101), and a PD1 pin and a PC6 pin of the micro control unit (1) are respectively connected with the near infrared receiving circuit (102);

a PD0 pin of the micro control unit (1) is connected with the infrared transmitting circuit (103);

the pins PC5, PC4 and PC3 of the micro control unit (1) are respectively connected with the first key circuit (104), the second key circuit (105) and the third key circuit (106);

pins PC1 and PC0 of the micro control unit (1) are respectively connected with the far infrared indicating circuit (107) and the near infrared indicating circuit (108);

and an ADC7 pin of the micro control unit (1) is connected with a photoelectric calibration circuit (109).

2. The electric energy meter photoelectric device according to claim 1, wherein the VCC pin, the AVCC pin and the AREF pin of the micro control unit (1) are connected to the voltage input terminal (VCM), respectively;

and a plurality of GND pins of the micro control unit (1) are grounded.

3. The electric energy meter photoelectric device according to claim 1, wherein the far infrared receiving circuit (101) comprises a first resistor (R1), a second resistor (R2), a first capacitor (C1) and a first photoresistor (IRR1), wherein:

one end of the first resistor (R1) is connected with the voltage input end (VCM), the other end of the first resistor (R1) is connected with one end of a first capacitor (C1), and the other end of the first capacitor (C1) is grounded;

the first photoresistor (IRR1) comprises a VCC end, a GND end and a VOUT end, the VCC end is connected with one end of a first capacitor (C1), the GND end is grounded, and the VOUT end is connected with a PD2 pin of the micro control unit (1);

one end of the second resistor (R2) is connected with a voltage input end (VCM), and the other end of the second resistor (R2) is connected with the VOUT end.

4. The electric energy meter photoelectric device according to claim 1, wherein the near-infrared receiving circuit (102) comprises a third resistor (R3), a fourth resistor (R4), a fifth resistor (R5), a first transistor (Q1), and a second photoresistor (IRR2), wherein:

one end of the second photoresistor (IRR2) is connected with the voltage input end (VCM), and the other end of the second photoresistor (IRR2) is connected with one end of the fourth resistor (R4);

one end of the fifth resistor (R5) is connected with one end of the second photoresistor (IRR2), and the other end of the fifth resistor (R5) is connected with a PD1 pin of the micro-control unit (1);

the model of the first triode (Q1) is 2SC1623, the collector of the first triode (Q1) is connected with the PD1 pin of the micro-control unit (1), the emitter of the first triode (Q1) is connected with the PC6 pin of the micro-control unit (1), and the base of the first triode (Q1) is connected with the other end of the fourth resistor (R4);

one end of the third resistor (R3) is connected with the base electrode of the first triode (Q1), and the other end of the third resistor (R3) is connected with the emitting electrode of the first triode (Q1).

5. The optoelectronic apparatus of claim 1, wherein the infrared transmitting circuit (103) comprises a sixth resistor (R6), a seventh resistor (R7), an eighth resistor (R8), a ninth resistor (R9), a second capacitor (C2), a second transistor (Q2), and a first infrared emitting resistor (IRT1), wherein:

the base electrode of the second triode (Q2) is connected with one end of a sixth resistor (R6) and one end of a seventh resistor (R7), the emitter electrode of the second triode (Q2) is connected with the other end of the seventh resistor (R7), the voltage input end (VCM) and one end of the second capacitor (C2), and the other end of the second capacitor (C2) is grounded;

the other end of the sixth resistor (R6) is connected with a PD0 pin of the micro-control unit (1);

one end of a collector of the second triode (Q2) is connected with one end of a first infrared light-emitting resistor (IRT1), the other end of the first infrared light-emitting resistor (IRT1) is connected with one end of an eighth resistor (R8) and one end of a ninth resistor (R9) which are connected in parallel, and the other ends of the eighth resistor (R8) and the ninth resistor (R9) which are connected in parallel are grounded.

6. The optoelectronic apparatus according to claim 1, wherein any one of the first key circuit (104), the second key circuit (105) and the third key circuit (106) comprises a resistor, a capacitor and a switch, the resistor is connected to the voltage input terminal (VCM) at one end, the other end of the resistor is connected to one end of the capacitor, and the other end of the capacitor is grounded; two ends of the switch are respectively connected with two ends of the capacitor in parallel, and one end of the capacitor is connected with a pin PC5, a pin PC4 or a pin PC3 of the micro control unit (1).

7. An optoelectronic apparatus according to claim 1, wherein any one of the far infrared indicating circuit (107), the near infrared indicating circuit (108), and the optoelectronic calibration circuit (109) comprises two resistors and a light emitting diode; one end of one resistor is connected with a voltage input end (VCM), the other end of the resistor is connected with one end of a light emitting diode, the other resistor is connected with the light emitting diode in parallel, and the other end of the light emitting diode is connected with a pin PC1, a pin PC0 or a pin ADC7 of the micro control unit (1).

8. An infrared emission control method performed on the optoelectronic apparatus according to any one of claims 1 to 7, characterized by comprising:

s11, receiving an input infrared emission control instruction;

s12, calculating a period corresponding to the frequency of the infrared modulation signal according to the infrared emission control instruction;

s13, when the PD0 pin is at a high level, the micro control unit (1) starts a timer corresponding to half of the period, and when the timer is interrupted, the PD0 pin is turned to a low level;

and S14, the infrared sending circuit (103) is conducted, and the infrared modulation signal is sent.

9. The method according to claim 8, wherein the step S14 specifically includes:

when the PD0 pin is at a low level, a second triode (Q2) is conducted;

a first infrared light emitting resistor (IRT1) emits the infrared modulated signal.

Technical Field

The invention relates to the technical field of electric power, in particular to a photoelectric device of an electric energy meter and an infrared emission control method.

Background

With the continuous popularization of electronic electric energy meters, the calibration work of the electronic electric energy meters is also continuously perfected. Although domestic electronic energy meters are basically calibrated by wired pulse signals, in some overseas regions and countries, they are also calibrated by LED pulse light signals. The home school desk manufacturer also uses the photoelectric calibration head as the standard configuration. In addition, the higher-level electronic electric energy meters are all provided with infrared communication ports, the domestic electric energy meters adopt far infrared communication ports, and the foreign countries adopt near infrared communication ports. No matter the photoelectric head is used for calibrating the meter or infrared communication is carried out, the three devices are separated in the meter calibrating table, the meter calibrating table is inconvenient in practical use, circuit hardware needs to be additionally added for infrared emission, and the cost for realizing the infrared emission is improved.

Disclosure of Invention

The invention aims to solve the technical problem of providing an electric energy meter photoelectric device and an infrared emission control method, which are used for solving the problems of inconvenient use and increased infrared emission cost caused by inconsistent domestic and foreign standards.

The invention provides an electric energy meter photoelectric device, which comprises a micro control unit, a far infrared receiving circuit, a near infrared receiving circuit, an infrared transmitting circuit, a first key circuit, a second key circuit, a third key circuit, a far infrared indicating circuit, a near infrared indicating circuit and a photoelectric calibration circuit, wherein:

a PD2 pin of the micro control unit is connected with the far infrared receiving circuit, and a PD1 pin and a PC6 pin of the micro control unit are respectively connected with the near infrared receiving circuit;

a PD0 pin of the micro control unit is connected with the infrared transmitting circuit;

pins PC5, PC4 and PC3 of the micro control unit are respectively connected with the first key circuit, the second key circuit and the third key circuit;

pins PC1 and PC0 of the micro-control unit are respectively connected with the far infrared indicating circuit and the near infrared indicating circuit;

and an ADC7 pin of the micro control unit is connected with the photoelectric calibration circuit.

Furthermore, a VCC pin, an AVCC pin and an AREF pin of the micro control unit are respectively connected with a voltage input end;

and a plurality of GND pins of the micro control unit are grounded.

Further, the far infrared receiving circuit comprises a first resistor, a second resistor, a first capacitor and a first photoresistor, wherein:

one end of the first resistor is connected with the voltage input end, the other end of the first resistor is connected with one end of the first capacitor, and the other end of the first capacitor is grounded;

the first photoresistor comprises a VCC end, a GND end and a VOUT end, the VCC end is connected with one end of the first capacitor, the GND end is grounded, and the VOUT end is connected with a PD2 pin of the micro control unit;

one end of the second resistor is connected with the voltage input end, and the other end of the second resistor is connected with the VOUT end.

Further, the near-infrared receiving circuit comprises a third resistor, a fourth resistor, a fifth resistor, a first triode and a second photoresistor, wherein:

one end of the second photosensitive resistor is connected with the voltage input end, and the other end of the second photosensitive resistor is connected with one end of the fourth resistor;

one end of the fifth resistor is connected with one end of the second photosensitive resistor, and the other end of the fifth resistor is connected with a PD1 pin of the micro control unit;

a collector of the first triode type is connected with a PD1 pin of the micro control unit, an emitter of the first triode is connected with a PC6 pin of the micro control unit, and a base of the first triode is connected with the other end of the fourth resistor;

one end of the third resistor is connected with the base electrode of the first triode, and the other end of the third resistor is connected with the emitting electrode of the first triode.

Further, the infrared transmitting circuit includes a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a second capacitor, a second triode, and a first infrared light emitting resistor, wherein:

the base electrode of the second triode is connected with one ends of a sixth resistor and a seventh resistor, the emitting electrode of the second triode is connected with the other end of the seventh resistor, the voltage input end and one end of the second capacitor, and the other end of the second capacitor is grounded;

the other end of the sixth resistor is connected with a PD0 pin of the micro control unit;

one end of a collector of the second triode is connected with one end of a first infrared light-emitting resistor, the other end of the first infrared light-emitting resistor is connected with one end of an eighth resistor and one end of a ninth resistor which are connected in parallel, and the other ends of the eighth resistor and the ninth resistor which are connected in parallel are grounded.

Furthermore, any one of the first key circuit, the second key circuit and the third key circuit comprises a resistor, a capacitor and a switch, one end of the resistor is connected with the voltage input end, the other end of the resistor is connected with one end of the capacitor, and the other end of the capacitor is grounded; two ends of the switch are respectively connected with two ends of the capacitor in parallel, and one end of the capacitor is connected with a PC5 pin, a PC4 pin or a PC3 pin of the micro control unit.

Furthermore, any one of the far infrared indicating circuit, the near infrared indicating circuit and the photoelectric calibration circuit comprises two resistors and a light emitting diode; one end of one resistor is connected with a voltage input end, the other end of the resistor is connected with one end of a light emitting diode, the other resistor is connected with the light emitting diode in parallel, and the other end of the light emitting diode is connected with a pin of PC1, PC0 or ADC7 of the micro control unit.

The invention provides an infrared emission control method, which comprises the following steps:

receiving an input infrared emission control instruction;

calculating a period corresponding to the frequency of the infrared modulation signal according to the infrared emission control instruction;

when the PD0 pin is at a high level, the micro control unit starts a timer corresponding to half of the period, and in the timer interruption, the PD0 pin level is turned to be at a low level;

and the infrared transmitting circuit is conducted to transmit the infrared modulation signal.

Further, the infrared transmitting circuit is turned on, and transmitting the infrared modulation signal specifically includes:

when the PD0 pin is at a low level, the second triode is conducted;

the first infrared light emitting resistor emits the infrared modulation signal.

The implementation of the invention has the following beneficial effects:

according to the invention, the micro control unit is used for connecting and controlling the far infrared indicating circuit, the near infrared indicating circuit, the infrared transmitting circuit, the photoelectric calibration circuit and the like, so that integration of various infrared circuits is realized, and the problems of low infrared transmitting and receiving efficiency and high infrared transmitting cost caused by inconsistent domestic and foreign standards are solved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a structural diagram of a micro control unit in an optoelectronic device of an electric energy meter according to an embodiment of the present invention.

Fig. 2 is a structural diagram of a far infrared receiving circuit according to an embodiment of the present invention.

Fig. 3 is a block diagram of a near-infrared receiving circuit according to an embodiment of the present invention.

Fig. 4 is a structural diagram of an infrared transmission circuit according to an embodiment of the present invention.

Fig. 5 is a structural diagram of a first key circuit according to an embodiment of the present invention.

Fig. 6 is a structural diagram of a second key circuit according to an embodiment of the present invention.

Fig. 7 is a structural diagram of a third key circuit according to an embodiment of the present invention.

Fig. 8 is a structural diagram of a far infrared indicating circuit provided by an embodiment of the present invention.

Fig. 9 is a structural diagram of a near-infrared indicating circuit according to an embodiment of the present invention.

Fig. 10 is a structural diagram of a photoelectric calibration circuit according to an embodiment of the present invention.

Fig. 11 is a flowchart of an infrared emission control method according to an embodiment of the present invention.

Detailed Description

In this patent, a micro control unit controls a far infrared receiving circuit, a near infrared receiving circuit, a transmitting circuit, a photoelectric calibration circuit, and the like, and the following describes the specific embodiment with reference to the drawings and the embodiments.

As shown in fig. 1, an embodiment of the present invention provides a micro control unit in an optoelectronic device of an electric energy meter, and referring to fig. 2 to 10, the optoelectronic device includes a micro control unit 1, a far infrared receiving circuit 101, a near infrared receiving circuit 102, an infrared transmitting circuit 103, a first key circuit 104, a second key circuit 105, a third key circuit 106, a far infrared indicating circuit 107, a near infrared indicating circuit 108, and a photoelectric calibration circuit 109, wherein:

a PD2 pin of the micro control unit 1 is connected with the far infrared receiving circuit 101, and a PD1 pin and a PC6 pin of the micro control unit 1 are respectively connected with the near infrared receiving circuit 102;

a PD0 pin of the micro control unit 1 is connected with the infrared transmitting circuit 103;

the pins PC5, PC4 and PC3 of the micro control unit 1 are respectively connected with the first key circuit 104, the second key circuit 105 and the third key circuit 106;

the pins PC1 and PC0 of the micro control unit 1 are respectively connected with the far infrared indicating circuit 107 and the near infrared indicating circuit 108;

the ADC7 pin of the mcu 1 is connected to the photo calibration circuit 109.

In this embodiment, the micro control unit 1 is connected to the far infrared receiving circuit, the near infrared receiving circuit, the infrared transmitting circuit, the first key circuit, the second key circuit, the third key circuit, the far infrared indicating circuit, the near infrared indicating circuit and the photoelectric calibration circuit, so that integration of infrared transmission, far infrared reception and near infrared reception is realized, and the micro control unit is convenient to use and high in efficiency.

Furthermore, a VCC pin, an AVCC pin and an AREF pin of the micro control unit 1 are respectively connected with a voltage input end VCM;

a plurality of GND pins of the micro control unit 1 are grounded.

As shown in fig. 2, the embodiment of the present invention provides a far infrared receiving circuit 101, the far infrared receiving circuit 101 includes a first resistor R1, a second resistor R2, a first capacitor C1 and a first photoresistor IRR1, wherein:

one end of the first resistor R1 is connected with the voltage input end VCM, the other end of the first resistor R1 is connected with one end of a first capacitor C1, and the other end of the first capacitor C1 is grounded;

the first photoresistor IRR1 comprises a VCC end, a GND end and a VOUT end, the VCC end is connected with one end of a first capacitor C1, the GND end is grounded, and the VOUT end is connected with a PD2 pin of the micro control unit 1;

one end of the second resistor R2 is connected with a voltage input end VCM, and the other end is connected with the VOUT end.

As shown in fig. 3, an embodiment of the present invention provides a near-infrared receiving circuit 102, where the near-infrared receiving circuit 102 includes a third resistor R3, a fourth resistor R4, a fifth resistor R5, a first transistor Q1, and a second photoresistor IRR2, where:

one end of the second photoresistor IRR2 is connected with the voltage input end VCM, and the other end of the second photoresistor IRR2 is connected with one end of the fourth resistor R4;

one end of the fifth resistor R5 is connected with one end of the second photoresistor IRR2, and the other end of the fifth resistor R5 is connected with a PD1 pin of the micro-control unit 1;

a collector of the first triode Q1 is connected with a PD1 pin of the micro-control unit 1, an emitter of the first triode Q1 is connected with a PC6 pin of the micro-control unit 1, and a base of the first triode Q1 is connected with the other end of a fourth resistor R4;

one end of the third resistor R3 is connected to the base of the first triode Q1, and the other end is connected to the emitter of the first triode Q1.

As shown in fig. 4, an embodiment of the present invention provides an infrared transmitting circuit 103, where the infrared transmitting circuit 103 includes a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a second capacitor C2, a second transistor Q2, and a first infrared light emitting resistor IRT1, where:

a base electrode of the second triode Q2 is connected to one ends of a sixth resistor R6 and a seventh resistor R7, an emitter electrode of the second triode Q2 is connected to the other end of the seventh resistor R7, a voltage input end VCM and one end of the second capacitor C2, and the other end of the second capacitor C2 is grounded;

the other end of the sixth resistor R6 is connected with a PD0 pin of the micro control unit 1;

one end of a collector of the second triode Q2 is connected with one end of a first infrared light emitting resistor IRT1, the other end of the first infrared light emitting resistor IRT1 is connected with one ends of an eighth resistor R8 and a ninth resistor R9 which are connected in parallel, and the other ends of the eighth resistor R8 and the ninth resistor R9 which are connected in parallel are grounded.

As shown in fig. 5, an embodiment of the present invention provides a first KEY circuit 104, where the first KEY circuit 104 includes a tenth resistor R10, a third capacitor C3, and a first switch S1KEY, where:

one end of the tenth resistor R10 is connected to the voltage input terminal VCM, the other end of the tenth resistor R10 is connected to one end of the third capacitor C3, and the other end of the third capacitor C3 is grounded; two ends of the first switch S1KEY are respectively connected in parallel with two ends of the third capacitor C3, and one end of the third capacitor C3 is connected to the PC5 pin of the mcu 1.

With reference to fig. 6 and 7, the second KEY circuit 105 includes an eleventh resistor R11, a fourth capacitor C4, and a second switch S2 KEY, wherein one end of the eleventh resistor R11 is connected to the voltage input end VCM, the other end of the eleventh resistor R11 is connected to one end of the fourth capacitor C4, and the other end of the fourth capacitor C4 is grounded; two ends of the second switch S2 KEY are respectively connected in parallel with two ends of the fourth capacitor C4, and one end of the fourth capacitor C4 is connected to the PC4 pin of the mcu 1; the third KEY circuit 106 comprises a twelfth resistor R12, a fifth capacitor C5 and a third switch S3 KEY, wherein one end of the twelfth resistor R12 is connected to the voltage input end VCM, the other end of the twelfth resistor R12 is connected to one end of the fifth capacitor C5, and the other end of the fifth capacitor C5 is grounded; two ends of the third switch S3 KEY are respectively connected in parallel with two ends of the fifth capacitor C5, and one end of the fifth capacitor C5 is connected to the PC3 pin of the mcu 1.

To sum up, each key circuit includes a resistor, a capacitor and a switch, one end of the resistor is connected to the voltage input terminal VCM, the other end of the resistor is connected to one end of the capacitor, and the other end of the capacitor is grounded; two ends of the switch are respectively connected with two ends of the capacitor in parallel, and one end of the capacitor is connected with a pin PC5, a pin PC4 or a pin PC3 of the micro control unit 1.

As shown in fig. 8, the far infrared indicating circuit 107 according to the embodiment of the present invention includes a thirteenth resistor R13, a fourteenth resistor R14 and a first light emitting diode LED1, wherein one end of the thirteenth resistor R13 is connected to the voltage input terminal VCM, the other end is connected to one end of the first light emitting diode LED1, the fourteenth resistor R14 is connected in parallel to the first light emitting diode LED1, and the other end of the first light emitting diode LED1 is connected to the pin PC1 of the micro control unit 1.

As shown in fig. 9, an embodiment of the present invention provides a near-infrared indicating circuit 108, where the near-infrared indicating circuit 108 includes a fifteenth resistor R15, a sixteenth resistor R16, and a second light emitting diode LED2, where one end of the fifteenth resistor R15 is connected to the voltage input terminal VCM, the other end of the fifteenth resistor R15 is connected to one end of the second light emitting diode LED2, the sixteenth resistor R16 is connected in parallel to the second light emitting diode LED2, and the other end of the second light emitting diode LED2 is connected to a pin of the PC0 of the micro control unit 1.

As shown in fig. 10, an embodiment of the present invention provides a photoelectric calibration circuit 109, where the photoelectric calibration circuit 109 includes a seventeenth resistor R17, an eighteenth resistor R18 and a third LED3, where one end of the seventeenth resistor R17 is connected to the voltage input VCM, the other end is connected to one end of the second LED3, the eighteenth resistor R18 is connected in parallel to the second LED3, and the other end of the third LED3 is connected to the ADC7 pin of the mcu 1.

In summary, any one of the far infrared indicating circuit 107, the near infrared indicating circuit 108 and the photoelectric calibration circuit 109 includes two resistors and one light emitting diode; one end of one resistor is connected with the voltage input end VCM, the other end of the resistor is connected with one end of a light-emitting diode, the other resistor is connected with the light-emitting diode in parallel, and the other end of the light-emitting diode is connected with a pin PC1, a pin PC0 or a pin ADC7 of the micro control unit 1.

As shown in fig. 11, an embodiment of the present invention provides an infrared emission control method, which is performed on the above-described photoelectric device, and includes:

and step S11, receiving the input infrared emission control instruction.

Specifically, the first light emitting diode LED1 emits light by the first KEY S1KEY of the first KEY circuit 104 being closed.

And S12, calculating the period corresponding to the infrared modulation signal frequency according to the infrared emission control instruction.

In this embodiment, taking the 38KHz modulation signal as an example, one cycle is 26 microseconds, and the half cycle is 13 microseconds.

S13, when the PD0 pin is at high level, the micro control unit 1 starts a timer corresponding to half of the period, and when the timer is interrupted, the PD0 pin is turned to low level.

And S14, the infrared sending circuit 103 is conducted, and an infrared modulation signal is sent.

It should be noted that, when the PD0 pin is at a low level, the second transistor Q2 is turned on, which is an attribute of a transistor; after the second triode Q2 is turned on, the first infrared light emitting resistor IRT1 emits an infrared modulation signal. In this embodiment, the infrared emission can be realized by software of the micro control unit 1, which reduces the cost required to increase the circuit.

The implementation of the invention has the following beneficial effects:

according to the invention, the micro control unit is used for connecting and controlling the far infrared indicating circuit, the near infrared indicating circuit, the infrared transmitting circuit, the photoelectric calibration circuit and the like, so that integration of various infrared circuits is realized, and the problems of low infrared transmitting and receiving efficiency and high infrared transmitting cost caused by inconsistent domestic and foreign standards are solved.

The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于无线信号的动作检测方法、检测装置和电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!