Infrared communication and infrared key function two-in-one circuit and application thereof in electric energy meter

By designing a two-in-one circuit for infrared communication and infrared button functions, combining infrared transmitting and receiving circuits and microcontroller units, the problem of the use requirements of the power meter in high temperature and high humidity environments and the cost increase of traditional button structures is solved, achieving high efficiency , low-cost electricity meter design.

CN119445812APending Publication Date: 2025-02-14NEWCAPEC ELECTRONICS CO LTD

Patent Information

Application Number
CN202411749636.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

The requirements for the use of existing power meters under high temperature, high humidity, salt spray, small space and high insulation performance are difficult to meet. At the same time, the traditional button structure increases the shell cost and production and installation cost of the power meters.

Method used

A two-in-one circuit for infrared communication and infrared button functions is designed, and the combination of key and communication functions is achieved through infrared transmitting and receiving circuits and microcontroller units, eliminating the shell structure of the traditional button machine and mechanical button elements.

Benefits of technology

It realizes infrared communication and button functions with high sealing, small volume, high insulation resistance and anti-static in high temperature and humidity environments, reduces the number of electric meter shell molds and production and assembly costs, and reduces the overall manufacturing cost by more than 10%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119445812A_ABST
    Figure CN119445812A_ABST
Patent Text Reader

Abstract

The invention provides an infrared communication and infrared key function two-in-one circuit and application in an electric energy meter. The infrared communication and infrared key function two-in-one circuit comprises an infrared emission modulation circuit, an infrared emission and receiving circuit U1, an infrared receiving demodulation circuit and a microcontroller unit U2. Wherein the infrared emission modulation circuit is in circuit connection with the infrared emission and receiving circuit U1, the infrared emission and receiving circuit U1 is in circuit connection with the infrared receiving demodulation circuit, the infrared receiving demodulation circuit is in circuit connection with the microcontroller unit U2, the microcontroller unit U2 is in circuit connection with the infrared emission modulation circuit, and the microcontroller unit U2 is in circuit connection with the infrared emission modulation circuit. The infrared communication function and the infrared key function are integrated, a traditional key machine shell structure and a mechanical key element are omitted, the number of electric energy meter shell molds is reduced, the mold structure is reduced, the shell production and assembly cost is reduced, the whole circuit does not have mechanical actions, and due to the fact that the mechanism structure is simple, the high sealing requirement can be met; the requirements of small volume, high temperature resistance, high humidity resistance, high insulativity, static electricity resistance and low cost are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of circuit technology, and in particular to a two-in-one circuit of infrared communication and infrared key functions and its application in electric energy meters. Background Art

[0002] The electric energy meter is an instrument used to measure electric energy, also known as an electric meter, a fire meter, or a kilowatt-hour meter, which refers to an instrument that measures various electrical quantities. With the exponential increase in the current level of electrical equipment, the practical environment of electric energy management and control equipment has become more complex. The present invention can solve the use requirements of electric energy meters under high temperature, high humidity, salt spray, small space, and high insulation performance. At the same time, it reduces the cost of the outer shell of electric energy, reduces the number of electronic components in the circuit, and reduces the production and installation costs. According to actual calculations, the comprehensive manufacturing cost can be reduced by more than 10%, and the economic benefits are very obvious. Summary of the invention

[0003] In order to overcome the above problems existing in the prior art, the present application provides a two-in-one circuit of infrared communication and infrared key function, which adopts the following technical solutions:

[0004] An infrared communication and infrared key function two-in-one circuit, including an infrared transmitting modulation circuit, an infrared transmitting and receiving circuit U1, an infrared receiving demodulation circuit, and a microcontroller unit U2;

[0005] The infrared transmitting modulation circuit is connected to the infrared transmitting and receiving circuit U1, the infrared transmitting and receiving circuit U1 is connected to the infrared receiving demodulation circuit, the infrared receiving demodulation circuit is connected to the microcontroller unit U2, and the microcontroller unit U2 is connected to the infrared transmitting modulation circuit.

[0006] Furthermore, the infrared transmitting and receiving circuit U1 includes an infrared transmitting diode and an infrared receiving transistor, wherein the infrared transmitting diode and the infrared receiving transistor realize signal transmission through photoelectric conversion.

[0007] Furthermore, the infrared emission modulation circuit includes a resistor R1, a transistor Q1, a resistor R2, an infrared emitting diode of U1, and a first IO port of a microcontroller unit U2; the microcontroller unit U2 is connected to one end of the resistor R1 through the first IO port, the other end of the resistor R1 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to VDD, the collector of the transistor Q1 is connected to one end of the resistor R2, and the other end of the resistor R2 is connected to the infrared emitting diode of the infrared emission and receiving circuit U1.

[0008] Furthermore, pin 1 of the infrared transmitting and receiving circuit U1 is grounded, pin 2 of the infrared transmitting and receiving circuit U1 is connected to an infrared transmitting diode, pin 3 of the infrared transmitting and receiving circuit U1 is connected to an infrared receiving transistor, and pin 4 of the infrared transmitting and receiving circuit U1 is connected to VCC.

[0009] Furthermore, the infrared receiving demodulation circuit includes a resistor R3 and a capacitor C1, wherein one end of the resistor R3 is connected to the pin 3 of the infrared transmitting and receiving circuit U1, and the other end of the resistor R3 is connected to the capacitor C1 and then grounded.

[0010] Furthermore, the second IO port of the microcontroller unit U2 is connected to the other end of the resistor R3, the GND pin of the microcontroller unit U2 is grounded, and the VDD pin of the microcontroller unit U2 is connected to the positive electrode of the power supply.

[0011] Furthermore, the two-in-one circuit of infrared communication and infrared key function can be applied to electric energy meters.

[0012] The present application also provides an application of an infrared communication and infrared key function two-in-one circuit in an electric energy meter, comprising the following steps:

[0013] Step S1, the microcontroller unit U2 sends a PWM modulated wave signal to the base of the transistor Q1 through the first IO port, and the transistor Q1 controls the infrared emitting diode of the infrared emitting and receiving circuit U1 to emit a first infrared light signal;

[0014] Step S2, when there is a finger or an obstruction in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the first infrared light signal; when there is no finger or an obstruction in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the second infrared light signal; the microcontroller unit U2 determines whether it is the first infrared light signal or the second infrared light signal to realize the key function or infrared communication function; the second infrared light signal is an infrared light signal emitted by a third-party device.

[0015] Furthermore, when there are fingers or obstructions in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the first infrared light signal, converts the first infrared light signal into an electrical signal, demodulates the first infrared light signal through the resistor R3 and the capacitor C1, and inputs the demodulated signal to the second IO port of the microcontroller unit U2 for signal recognition. When the demodulated signal is consistent with the signal sent by the first IO port of the microcontroller unit U2, the current mode is key mode, a key is triggered, a key value is generated in the program, and the key function is realized.

[0016] Furthermore, when there are no fingers or obstructions in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor of the infrared transmitting and receiving circuit U1 receives the second infrared light signal emitted by the third-party device, converts the second infrared light signal into an electrical signal, and decodes the electrical signal data of the second infrared light signal through the resistor R3 and the capacitor C1 to analyze whether the second infrared light signal emitted by the third-party device meets the data command requirements of the embedded program of the microcontroller unit U2; if so, the corresponding command is executed according to the command, and the PWM modulated data is performed through the first IO port of the microcontroller unit U2 to control the infrared transmitting diode of the infrared transmitting and receiving circuit U1 through the transistor Q1, so that the emitted infrared light is transmitted so that the third-party device can receive it, thereby realizing the infrared communication function.

[0017] This application has the following beneficial effects:

[0018] In the present application, when the infrared transmitting and receiving circuit U1 is blocked, the infrared receiving transistor of the infrared transmitting and receiving circuit U1 receives the infrared light signal of the infrared transmitting diode to realize the key function; when the infrared transmitting and receiving circuit U1 is not blocked, the infrared receiving transistor receives the infrared light signal sent by the third-party device to realize the communication function. The present application combines the infrared communication and infrared key functions into one, eliminates the traditional key machine shell structure and mechanical key components, reduces the number of electric energy meter shell molds, reduces the mold structure, and reduces the shell production and assembly cost. The entire circuit of the present application has no mechanical action. Due to the simple mechanism structure, it can meet the requirements of high sealing, small size, high temperature resistance, high humidity, high insulation, anti-static and low cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of a two-in-one circuit of infrared communication and infrared key functions provided in an embodiment of the present application;

[0020] Figure 2 A physical diagram of the hardware circuit provided for the embodiment of the present application;

[0021] Figure 3 This is an appearance diagram of the entire machine provided in an embodiment of the present application.

[0022] Figure 4 This is a flow chart of the application of the two-in-one circuit of infrared communication and infrared key function in an electric energy meter provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0024] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0025] Embodiment 1:

[0026] Please refer to Figure 1 , the present application provides a two-in-one circuit of infrared communication and infrared key function, including an infrared communication and infrared key function two-in-one circuit, including an infrared transmitting modulation circuit, an infrared transmitting and receiving circuit U1, an infrared receiving demodulation circuit, and a microcontroller unit U2;

[0027] The infrared transmitting modulation circuit is connected to the infrared transmitting and receiving circuit U1, the infrared transmitting and receiving circuit U1 is connected to the infrared receiving demodulation circuit, the infrared receiving demodulation circuit is connected to the microcontroller unit U2, and the microcontroller unit U2 is connected to the infrared transmitting modulation circuit.

[0028] In a possible implementation, the infrared transmitting and receiving circuit U1 includes an infrared transmitting diode and an infrared receiving transistor, wherein the infrared transmitting diode and the infrared receiving transistor realize signal transmission through photoelectric conversion.

[0029] In a possible implementation, the infrared emission modulation circuit includes a resistor R1, a transistor Q1, a resistor R2, an infrared emitting diode of U1, and a first IO port of a microcontroller unit U2; the microcontroller unit U2 is connected to one end of the resistor R1 through the first IO port, the other end of the resistor R1 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to VDD, the collector of the transistor Q1 is connected to one end of the resistor R2, and the other end of the resistor R2 is connected to the infrared emitting diode of the infrared emission and receiving circuit U1.

[0030] In a possible implementation, pin 1 of the infrared transmitting and receiving circuit U1 is grounded, pin 2 of the infrared transmitting and receiving circuit U1 is connected to an infrared transmitting diode, pin 3 of the infrared transmitting and receiving circuit U1 is connected to an infrared receiving transistor, and pin 4 of the infrared transmitting and receiving circuit U1 is connected to VCC.

[0031] In a possible implementation, the infrared receiving demodulation circuit includes a resistor R3 and a capacitor C1, wherein one end of the resistor R3 is connected to the pin 3 of the infrared transmitting and receiving circuit U1, and the other end of the resistor R3 is connected to the capacitor C1 and then grounded.

[0032] In a possible implementation, the second IO port of the microcontroller unit U2 is connected to the other end of the resistor R3, the GND pin of the microcontroller unit U2 is grounded, and the VDD pin of the microcontroller unit U2 is connected to the positive electrode of the power supply.

[0033] In a possible implementation, the two-in-one circuit of infrared communication and infrared key functions can be applied to an electric energy meter.

[0034] Embodiment 2:

[0035] Please refer to Figure 4 The present application also provides an application of an infrared communication and infrared key function two-in-one circuit in an electric energy meter, comprising the following steps:

[0036] Step S1, the microcontroller unit U2 sends a PWM modulated wave signal to the base of the transistor Q1 through the first IO port, and the transistor Q1 controls the infrared emitting diode of the infrared emitting and receiving circuit U1 to emit a first infrared light signal;

[0037] Step S2, when there is a finger or an obstruction in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the first infrared light signal; when there is no finger or an obstruction in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the second infrared light signal; the microcontroller unit U2 determines whether it is the first infrared light signal or the second infrared light signal to realize the key function or infrared communication function; the second infrared light signal is an infrared light signal emitted by a third-party device.

[0038] In a possible implementation, when there are fingers or obstructions in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the first infrared light signal, converts the first infrared light signal into an electrical signal, demodulates the first infrared light signal through the resistor R3 and the capacitor C1, and inputs the demodulated signal to the second IO port of the microcontroller unit U2 for signal recognition. When the demodulated signal is consistent with the signal sent by the first IO port of the microcontroller unit U2, the current mode is key mode, a key is triggered, a key value is generated in the program, and the key function is realized.

[0039] In a possible implementation, when there are no fingers or obstructions in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor of the infrared transmitting and receiving circuit U1 receives the second infrared light signal emitted by the third-party device, converts the second infrared light signal into an electrical signal, and decodes the electrical signal data of the second infrared light signal through the resistor R3 and the capacitor C1 to analyze whether the second infrared light signal emitted by the third-party device meets the data command requirements of the embedded program of the microcontroller unit U2; if so, the corresponding command is executed according to the command, and the PWM modulated data is performed through the first IO port of the microcontroller unit U2 to control the infrared transmitting diode of the infrared transmitting and receiving circuit U1 through the transistor Q1, so that the emitted infrared light is transmitted so that the third-party device can receive it, thereby realizing the infrared communication function.

[0040] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A two-in-one circuit with infrared communication and infrared key functions, characterized in that: It includes an infrared transmitting modulation circuit, an infrared transmitting and receiving circuit U1, an infrared receiving demodulation circuit, and a microcontroller unit U2; The infrared transmitting modulation circuit is connected to the infrared transmitting and receiving circuit U1, the infrared transmitting and receiving circuit U1 is connected to the infrared receiving demodulation circuit, the infrared receiving demodulation circuit is connected to the microcontroller unit U2, and the microcontroller unit U2 is connected to the infrared transmitting modulation circuit.

2. The infrared communication and infrared key function two-in-one circuit according to claim 1, characterized in that: The infrared transmitting and receiving circuit U1 includes an infrared transmitting diode and an infrared receiving transistor, wherein the infrared transmitting diode and the infrared receiving transistor realize signal transmission through photoelectric conversion.

3. The infrared communication and infrared key function two-in-one circuit according to claim 2, characterized in that: The infrared emission modulation circuit includes a resistor R1, a transistor Q1, a resistor R2, an infrared emitting diode of U1, and a first IO port of a microcontroller unit U2; the microcontroller unit U2 is connected to one end of the resistor R1 through the first IO port, the other end of the resistor R1 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to VDD, the collector of the transistor Q1 is connected to one end of the resistor R2, and the other end of the resistor R2 is connected to the infrared emitting diode of the infrared emission and receiving circuit U1.

4. The infrared communication and infrared key function two-in-one circuit according to claim 2, characterized in that: Pin 1 of the infrared transmitting and receiving circuit U1 is grounded, pin 2 of the infrared transmitting and receiving circuit U1 is connected to an infrared transmitting diode, pin 3 of the infrared transmitting and receiving circuit U1 is connected to an infrared receiving transistor, and pin 4 of the infrared transmitting and receiving circuit U1 is connected to VCC.

5. The infrared communication and infrared key function two-in-one circuit according to claim 1, characterized in that: The infrared receiving demodulation circuit includes a resistor R3 and a capacitor C1, wherein one end of the resistor R3 is connected to the pin 3 of the infrared transmitting and receiving circuit U1, and the other end of the resistor R3 is connected to the capacitor C1 and then grounded.

6. The infrared communication and infrared key function two-in-one circuit according to claim 1, characterized in that: The second IO port of the microcontroller unit U2 is connected to the other end of the resistor R3, the GND pin of the microcontroller unit U2 is grounded, and the VDD pin of the microcontroller unit U2 is connected to the positive electrode of the power supply.

7. The infrared communication and infrared key function two-in-one circuit according to claim 1, characterized in that: The two-in-one circuit of infrared communication and infrared key function can be applied to electric energy meters.

8. Application of the infrared communication and infrared key function two-in-one circuit in an electric energy meter according to any one of claims 1 to 7, characterized in that: The following steps are involved: Step S1, the microcontroller unit U2 sends a PWM modulated wave signal to the base of the transistor Q1 through the first IO port, and the transistor Q1 controls the infrared emitting diode of the infrared emitting and receiving circuit U1 to emit a first infrared light signal; Step S2, when there is a finger or an obstruction in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the first infrared light signal; when there is no finger or an obstruction in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the second infrared light signal; the microcontroller unit U2 determines whether it is the first infrared light signal or the second infrared light signal to realize the key function or infrared communication function; the second infrared light signal is an infrared light signal emitted by a third-party device.

9. Application of the infrared communication and infrared key function two-in-one circuit in an electric energy meter according to claim 8, characterized in that: When there are fingers or obstructions in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor receives the first infrared light signal, converts the first infrared light signal into an electrical signal, demodulates the first infrared light signal through the resistor R3 and the capacitor C1, and inputs the demodulated signal to the second IO port of the microcontroller unit U2 for signal recognition. When the demodulated signal is consistent with the signal sent by the first IO port of the microcontroller unit U2, the current mode is key mode, a key is triggered, a key value is generated in the program, and the key function is realized.

10. Application of the infrared communication and infrared key function two-in-one circuit in an electric energy meter according to claim 8, characterized in that: When there are no fingers or obstructions in front of the infrared transmitting and receiving circuit U1, the infrared receiving transistor of the infrared transmitting and receiving circuit U1 receives the second infrared light signal emitted by the third-party device, converts the second infrared light signal into an electrical signal, and decodes the electrical signal data of the second infrared light signal through the resistor R3 and the capacitor C1 to analyze whether the second infrared light signal emitted by the third-party device meets the data command requirements of the embedded program of the microcontroller unit U2; if so, the corresponding command is executed according to the command, and the PWM modulated data is performed through the first IO port of the microcontroller unit U2 to control the infrared transmitting diode of the infrared transmitting and receiving circuit U1 through the transistor Q1, so that the emitted infrared light is transmitted so that the third-party device can receive it, thereby realizing the infrared communication function.

Citation Information

Patent Citations

  • Device and method for infrared gesture recognition

    CN108932059A

  • Infrared modulation obstacle detecting device, detecting method thereof and robot

    CN108983246A

  • Gesture recognition device with infrared remote control receiving function and recognition method

    CN112071053A

  • Television

    CN202111793U

  • Multiplexing control circuit combining key and communication function

    CN209731206U

Cited By

  • Electric energy meter control method and system based on ambient light sensor

    CN121348909A