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

By combining an ambient light sensor and a data acquisition module, the lack of human-computer interaction in rail-mounted energy meters has been solved, enabling non-contact operation and high-precision light intensity measurement, thus improving the convenience and data accuracy of the energy meter.

CN121348909APending Publication Date: 2026-01-16QINGDAO ITECHENE TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511605824.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-05
Publication Date
2026-01-16

AI Technical Summary

Technical Problem

Due to space limitations, DIN rail-mounted energy meters cannot be equipped with mechanical buttons, resulting in a lack of effective human-computer interaction methods, which affects ease of use and maintenance efficiency.

Method used

A non-contact operation is achieved by using an ambient light sensor. The function of the electricity meter is triggered by changes in light intensity. Combined with the data acquisition module for calibration and compensation, the light control module can detect level changes and measure light intensity.

Benefits of technology

It improves ease of operation and safety, eliminates the problem of mechanical button damage and failure, and enhances data accuracy and signal stability, making it suitable for energy meters in space-constrained environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121348909A_ABST
    Figure CN121348909A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electric energy meters, and particularly provides an electric energy meter control method and system based on an ambient light sensor, and the method comprises the steps: after an electric energy meter is powered on, an electric energy meter MCU outputs a light control module enabling signal to start a light control module; the ambient light sensor detects the illumination intensity in real time and converts the illumination intensity into a light current signal; when the illumination intensity received by the ambient light sensor is changed, the level of a detection signal output by the light control module is changed; the MCU of the electric energy meter continuously monitors the level change of the detection signal, and when the level changes, the page turning operation of the electric energy meter is executed; the light control module outputs a voltage acquisition signal, the acquisition module performs data processing on the voltage acquisition signal to obtain an illumination intensity final value and transmits the illumination intensity final value to the MCU when light intensity data is read, and the MCU sends the illumination intensity final value to an upper computer through infrared communication. According to the invention, non-contact operation is realized through circuit design, and the function of the electric energy meter is triggered by changing illumination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of electricity meter technology, and particularly relates to an electricity meter control method and system based on an ambient light sensor. Background Technology

[0002] With the development of smart grids and refined electricity management, DIN rail-mounted energy meters have been widely used in industrial and commercial power distribution systems due to their advantages such as standard rail installation, compact structure, and high functional integration. Compared with traditional wall-mounted energy meters, DIN rail-mounted energy meters can be installed side by side with equipment such as circuit breakers, significantly saving distribution cabinet space. They also feature high-precision metering, remote communication, fault alarms, and harmonic monitoring, supporting intelligent energy management. However, limited by their miniaturized structure, DIN rail-mounted energy meters cannot accommodate traditional mechanical page-turning buttons and other space-consuming operating components, resulting in a lack of effective human-machine interaction methods. This hinders on-site parameter setting, data querying, and emergency operation, affecting ease of use and maintenance efficiency.

[0003] In existing technologies, physical buttons are the core component for local control of electricity meters, used not only for daily operation but also for emergency support such as manual meter reading and reset in case of communication failures. In the absence of physical buttons, how to develop a stable and reliable alternative control method has become a pressing issue. Although ambient light sensors are commonly used in scenarios such as automatically adjusting screen brightness, their application in electricity meters, combining control input and light detection functions, is still immature.

[0004] To address this issue, this application proposes a control method for an energy meter based on an ambient light sensor and a light intensity detection system. The aim is to solve the problem of missing local operation caused by the inability to configure mechanical buttons in rail-mounted energy meters due to space limitations. The method achieves function triggering through non-contact light control technology and simultaneously collects ambient light intensity data, thereby improving the product's intelligence level and on-site adaptability. Summary of the Invention

[0005] To address the problems existing in the prior art, the present invention provides a power meter control method based on an ambient light sensor, comprising the following steps: Step S1: After the energy meter is powered on, the energy meter MCU outputs an enable signal for the light control module to start the light control module; Step S2: The ambient light sensor detects the light intensity in real time and converts the light intensity into a photocurrent signal; Step S3: When the light intensity received by the ambient light sensor changes, the detection signal output by the light control module changes level. Step S4: The MCU of the energy meter continuously monitors the level change of the detection signal. When the level changes, the energy meter performs a page-turning operation. In step S5, the light control module outputs a voltage acquisition signal, the data acquisition module processes the voltage acquisition signal to obtain the final value of the light intensity, and transmits the final value of the light intensity to the energy meter MCU during light intensity data reading. The energy meter MCU then sends the final value to the host computer via infrared communication.

[0006] Based on the above scheme, the data processing method in step S5 includes: S5.1: Convert the voltage acquisition signal into current data, and convert the current data into initial light intensity based on the linear relationship between current and light intensity; S5.2: The initial light intensity is calibrated and compensated based on the calibration data and temperature data to obtain the final light intensity value. The energy meter MCU obtains the calibration data based on the initial light intensity.

[0007] According to one embodiment, the relationship between the current and the light intensity is: IPH=K*L+I0, and the compensation relationship between temperature and light intensity is: LO=L*(1+E*(T-T0)); Where IPH is the current data; L is the light intensity; K is the responsivity, which represents the sensitivity of the ambient light sensor to light; I0 ​​is the dark current, which represents the current generated by the sensor due to thermal noise when there is no light; E is the sensor temperature coefficient; T0 is the reference ambient temperature of 25℃; and T is the current temperature of the electricity meter.

[0008] On the other hand, the present invention provides a power meter control system based on an ambient light sensor, using the power meter control method described above. The system includes a power meter MCU, an infrared communication module, a light control module, a data acquisition module, and a host computer; wherein... The light control module is connected to the MCU of the energy meter and is used to collect ambient light signals and output voltage acquisition signals to the data acquisition module. The light control module also outputs detection signals to the MCU of the energy meter. The data acquisition module is connected to the light control module and the MCU of the energy meter respectively. It is used to process the voltage acquisition signal to obtain the final value of light intensity, and transmit the final value of light intensity to the MCU of the energy meter during the light intensity data reading. The MCU of the energy meter executes the energy meter action according to the change of the detection signal; When the host computer reads the light intensity in real time, the energy meter sends the final value of the light intensity to the host computer through the infrared communication module.

[0009] Based on the above scheme, the light control module includes an ambient light sensor, a first transistor, and a second transistor. The MCU of the energy meter outputs an enable signal for the light control module. The enable signal is connected to the base of the first transistor, turning on the first transistor and starting the light control module. The output of the ambient light sensor is connected to the base of the second transistor, and the collector of the second transistor outputs a detection signal for the light control module. The light intensity received by the ambient light sensor controls the on and off states of the second transistor, causing the detection signal of the light control module to change.

[0010] Based on the above scheme, the data acquisition module includes an acquisition chip. The voltage acquisition signal output by the light control module is converted into a sampling signal after voltage division and filtering. The sampling signal is input to the acquisition chip. The acquisition chip performs ADC processing on the sampling signal, and after calibration and temperature compensation, the acquisition chip outputs a sampling communication signal containing multiple data frames of sampling data. The sampling communication signal is connected to the communication data receiving end and communication data sending end of the energy meter MCU.

[0011] Based on the above scheme, the infrared communication receiving module includes an infrared receiving tube and a third transistor. When the circuit is in infrared communication mode, the infrared receiving tube is turned on and the third transistor is turned off. The infrared receiving signal of the energy meter MCU is low level. The positive terminal of the infrared receiving tube is connected to the base of the third transistor, the emitter of the third transistor is connected to the infrared communication power supply, and the collector of the third transistor is connected to the infrared receiving signal of the energy meter MCU.

[0012] Based on the above scheme, the infrared communication transmitting module includes a fourth transistor and an infrared emitting diode. When the infrared transmitting signal controlled by the MCU of the energy meter is at a low level, the fourth transistor is turned on, and the infrared emitting diode transmits the signal outward.

[0013] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention achieves non-contact operation through an ambient light sensor, triggering the electricity meter function by changing the light intensity. It is suitable for DIN rail-mounted electricity meters that are installed at a high position or in a space-constrained location. At the same time, it eliminates the problem of mechanical buttons being easily damaged and malfunctioning after long-term use, significantly improving the convenience and safety of operation. 2. By calibrating and compensating the acquired voltage signal through the data acquisition module, measurement errors caused by dark current drift, nonlinear response of devices, and temperature changes can be effectively eliminated, thereby improving the accuracy of the data and the precision of light intensity measurement. 3. This invention employs a simple circuit design, resulting in low cost and strong anti-interference capabilities. By introducing a filtering circuit, it can effectively filter out environmental interference and improve signal stability. Attached Figure Description

[0014] Figure 1 This is a flowchart illustrating the overall method of this application; Figure 2 Here is a flowchart of the light intensity upload process for this application; Figure 3 This is a structural block diagram of the control system of this application; Figure 4 This is a circuit diagram of the light control module of this application; Figure 5 This is a typical circuit for the ambient light sensor in this application; Figure 6 This is a circuit diagram of the data acquisition module of this application; Figure 7 This is a circuit diagram of the infrared communication receiving module of this application; Figure 8 This is a circuit diagram of the infrared communication transmitting module of this application. Detailed Implementation

[0015] The invention will be further described below with reference to specific embodiments.

[0016] Example 1 like Figure 1 As shown, the present invention provides a method for controlling an energy meter based on an ambient light sensor, the method comprising the following steps: Step S1: After the energy meter is powered on, the energy meter MCU outputs an enable signal for the light control module to start the light control module; Step S2: The ambient light sensor detects the light intensity in real time and converts the light intensity into a photocurrent signal; Step S3: When the light intensity received by the ambient light sensor changes, the detection signal output by the light control module changes level. In this embodiment, the user changes the light intensity received by the ambient light sensor by occluding the light with a gesture. As the light intensity received by the ambient light sensor changes, the level of the detection signal output by the light control module also changes.

[0017] Step S4: The MCU of the energy meter continuously monitors the level change of the detection signal. When the level changes, the energy meter performs a page-turning operation. In this embodiment, step S4 specifically includes: If the MCU of the energy meter detects that the detection signal output by the light control module is high, and there is no change in the light, the MCU of the energy meter will not control the LCD to perform the page turning action, and will continue to monitor the detection signal output by the light control module. If the MCU of the electricity meter detects that the detection signal output by the light control module changes from low to high, then it detects the user's light-blocking behavior, and the MCU controls the LCD to perform a page-turning action; otherwise, it continues to monitor the detection signal output by the light control module.

[0018] The control of step S4 in the actual working environment of the electricity meter is as follows: In dim environments, an additional light source is provided to enable the ambient light sensor to receive sufficient light intensity signals and conduct. Then, the electricity meter is controlled by blocking the ambient light sensor. In bright environments, the electricity meter is controlled directly by blocking the ambient light sensor.

[0019] In step S5, the light control module outputs a voltage acquisition signal, the data acquisition module processes the voltage acquisition signal to obtain the final value of the light intensity, and transmits the final value of the light intensity to the MCU in the form of a data frame when the light intensity data is read. The MCU then sends the data to the host computer via infrared communication.

[0020] In this embodiment, as Figure 2 As shown, step S5 specifically includes: After the light control module outputs a voltage acquisition signal, the data processing module processes the voltage acquisition signal to obtain the final value of the light intensity. The data processing module waits for the MCU to send a data communication request. If the MCU of the energy meter requests communication, the final value of the light intensity is sent to the MCU. If the MCU of the energy meter does not request communication, it continues to wait. The MCU of the electricity meter transmits the final value of the light intensity to the host computer via infrared communication, and the host computer analyzes the received data.

[0021] The data processing method in step S5 includes: S5.1: Convert the voltage acquisition signal into current data, and convert the current data into initial light intensity based on the linear relationship between current and light intensity; The relationship between the current output by the ambient light sensor and the light intensity follows a linear response model, which can be expressed as: IPH=K*L+I0, where IPH is the current data; L is the light intensity; K is the responsivity, which represents the sensitivity of the ambient light sensor to light; and I0 is the dark current, which represents the current generated by the sensor due to thermal noise when there is no light.

[0022] In this embodiment, to determine the sensor characteristic curve, a linear model is established, and two-point calibration is performed, including: reading sensor values ​​in a dark environment to determine the zero point; and reading sensor output values ​​under standard illumination. Specifically, two incandescent lamps, 0 lux and 1000 lux respectively, are used. The current values ​​corresponding to the ambient light sensor output are measured, and the slope and intercept of the linear model are calculated. Finally, the linear response model of the ambient light sensor is obtained. Through this model, the corresponding ambient light intensity can be obtained based on the detected electrical signal.

[0023] S5.2: The initial light intensity is calibrated and compensated based on the calibration data and temperature data to obtain the final light intensity value LO. The energy meter MCU obtains the calibration data based on the initial light intensity.

[0024] In this embodiment, step S5.2 specifically includes: S5.21: The acquisition chip sends the initial light intensity to the MCU of the electricity meter; S5.22: The MCU of the electricity meter obtains the corresponding calibration data based on the initial light intensity and returns the calibration data to the acquisition chip; S5.23: The acquisition chip calibrates the initial light intensity based on the calibration data, and performs temperature compensation on the calibrated light intensity data based on the temperature data to obtain the final light intensity value LO.

[0025] The calibration data is obtained through a light intensity tester. Through actual testing, the MCU of the electricity meter stores calibration data corresponding to the initial light intensity. When the initial light intensity data sent by the acquisition chip is obtained, the corresponding calibration data is returned to the acquisition chip.

[0026] Considering that the ambient light sensor is affected by temperature, temperature compensation is required. The compensation relationship between temperature and light intensity is: LO=L*(1+E*(T-T0)); where E is the sensor temperature coefficient, T0 is the reference ambient temperature of 25℃, and T is the current temperature of the electricity meter.

[0027] According to the prior art in this field, the effect of temperature on light intensity is linear, and it usually satisfies the compensation model LO=L*(1+E*(T-T0)). The original light intensity is compensated according to the change in light intensity caused by temperature, and the corrected actual light intensity is obtained, that is, the final value of light intensity.

[0028] By using the temperature compensation described above, the light intensity detected by the ambient light sensor is corrected, eliminating the influence of temperature on the sensor itself, and obtaining more accurate light intensity data, making subsequent data analysis and monitoring more accurate.

[0029] Example 2 To implement the energy meter control method based on an ambient light sensor corresponding to the above embodiments, this invention provides an energy meter control system based on an ambient light sensor, such as... Figure 3 As shown, the system includes an energy meter MCU, an infrared communication module, a light control module, a data acquisition module, and a host computer; wherein, The light control module is connected to the MCU of the energy meter and is used to collect ambient light signals and output voltage acquisition signals to the data acquisition module. The light control module also outputs detection signals to the MCU of the energy meter. like Figure 4 As shown, the light control module includes an ambient light sensor, a first transistor QD1, and a second transistor QD2. The MCU of the energy meter outputs an enable signal M_Light_Control for the light control module. This enable signal is connected to the base of QD1, turning QD1 on and starting the light control module. The output of the ambient light sensor is connected to the base of QD2, and the collector of QD2 is connected to the light control module's detection signal M_Light_Test. The light intensity received by DD1 controls the on / off state of QD2, causing the light control module's detection signal M_Light_Test to change.

[0030] In this embodiment, as Figure 5 As shown, the ambient light sensor is equivalent to a transistor in the circuit. The light control module also includes a first resistor RD1, a second resistor RD2, a third resistor RD3, a fourth resistor RD4, a fifth resistor RD5, a first capacitor CD1, and a second capacitor CD2. The energy meter MCU is connected to the base of QD1 through RD2. The base of QD1 is also connected to the energy meter system power supply DVDD through RD1. The emitter of QD1 is also connected to the energy meter system power supply DVDD. The collector of QD1 is connected to the collector of the ambient light sensor equivalent transistor DD1. The collector of DD1 is connected to RD4. At the same time, the collector of DD1 outputs a voltage acquisition signal VN. The other end of RD4 is connected to the base of QD2. The collector of QD2 outputs the light control module detection signal M_Light_Test. At the same time, this collector is connected to DVDD through RD3. The emitter of QD2 is grounded to GND.

[0031] According to the circuit of this embodiment, the working principle of the light control module is as follows: After the energy meter is powered on, the MCU outputs the light control module enable signal M_Light_Control at a low level, the first transistor QD1 is turned on, and the light control module starts to work. When the external light is strong, the ambient light sensor is turned on. At this time, the base of the second transistor QD2 is at a high level. The output current is different depending on the light intensity. When the output current is applied across RD5 so that the voltage across RD5 meets the turn-on condition of transistor QD2, QD2 is turned on, causing the light control module detection signal M_Light_Test, which is pulled up to the energy meter system power supply DVDD through RD3, to change from a high level to a low level. When the ambient light sensor is blocked, QD2 cannot be turned on. At this time, the light control module detection signal M_Light_Test changes from a low level to a high level. The energy meter MCU determines whether a light control event has occurred by detecting the change in the M_Light_Test signal and executes the corresponding operation.

[0032] In this embodiment, the data acquisition module is connected to the light control module to process the voltage acquisition signal to obtain the final value of the light intensity. The data acquisition module is also connected to the MCU of the electricity meter to transmit the final value of the light intensity to the MCU of the electricity meter.

[0033] like Figure 6 As shown, the data acquisition module includes an acquisition chip UM1. The voltage acquisition signal VN output by the light control module is converted into a sampling signal VP after voltage division and filtering. The sampling signal VP is input to the acquisition chip. The acquisition chip performs ADC processing on the sampling signal and calibrates and temperature-compensates the data after ADC processing. The acquisition chip outputs a sampling communication signal V_RTX containing multiple data frames of sampling data. The sampling communication signal is connected to the communication data receiving terminal M_V_RXD and the communication data sending terminal M_V_TXD of the energy meter MCU.

[0034] According to this embodiment, the acquisition chip includes: The acquisition unit is used to read the voltage acquisition signal VN output by the light control module; The processing unit is used to convert the voltage acquisition signal into current data IPH, and the current data into light intensity L; The compensation unit is used to read temperature data T and adjust the light intensity L using the temperature data; The output unit is used to take the average value of the light intensity values ​​obtained by the compensation unit multiple times and output the final light intensity value.

[0035] In this embodiment, the voltage acquisition signal VN is calculated as follows: VN = Vout = IPH*RL = IPH*(RD4+RD5), where Vout is the output voltage, RL is the load resistance, and IPH is the current data. To meet the requirements of maximum ambient light and output saturation voltage, a suitable load resistance RL should be selected. The selection method for RL is: Vout(max) = VN(max) = IPH(max)*RL≤DVDD 0.4V, where Vout(max) is the maximum output voltage, IPH(max) is the maximum current, and 0.4V is the saturation voltage of the collector and emitter of the equivalent transistor inside the ambient light sensor.

[0036] In this embodiment, the data acquisition module also includes a magnetic bead LM1, a sixth resistor RM1, a seventh resistor RM2, an eighth resistor RM3, a ninth resistor RM4, a tenth resistor RM5, a third capacitor CM1, a fourth capacitor CM2, a fifth capacitor CM3, a sixth capacitor CM4, a seventh capacitor CM5, an eighth capacitor CM6, a ninth capacitor CM7, and a tenth capacitor CM8. The voltage acquisition signal VN is connected to the UP pin of UM1 via the seventh resistor. The UP pin is also grounded via RM1. CM4 is connected in parallel with RM1. The VDD33 pin of UM1 is connected to DVDD, and the VDD33 pin is also grounded via CM1. The VDD18 pin of UM1 is connected to LM1. The other end of LM1 is grounded via CM2. CM2 is connected in parallel with CM3. The RX pin of LM1 outputs the sampling communication signal V_RTX. The RX pin of LM1 is also grounded via CM5. V_RTX is connected to the MCU communication data receiving signal terminal M_V_RXD via RM4. V_RTX is connected to the MCU communication data transmitting signal terminal M_V_TXD via RM3. V_RTX is grounded via CM8. The MCU communication data receiving signal terminal is connected to DVDD via RM5 and is also grounded via CM7.

[0037] In this embodiment, the working principle of the data acquisition module is as follows: the voltage acquisition signal VN is processed by resistor voltage division and capacitor filtering to output a relatively stable sampling signal VP. Then, the sampling signal is input to the acquisition chip. The chip internally performs data calibration and compensation and outputs a sampling communication signal. When the host computer requests to read the light intensity data, the MCU automatically sends the read data frame to the data acquisition module. The data acquisition module transmits the final value of light intensity to the MCU of the energy meter.

[0038] In this embodiment, LM1 is located at the VDD18 power supply terminal of the acquisition chip UM1 and is used for power supply decoupling and high-frequency noise suppression. LM1 allows DC and low-frequency current to pass through, but presents high impedance to high-frequency noise, effectively isolating the interference of digital circuit switching noise on sensitive analog acquisition circuits and ensuring the accuracy of light measurement.

[0039] In this embodiment, considering factors such as quality reliability, design sophistication, and cost control, the acquisition chip UM1 uses a chip that reuses both the signal receiving and signal transmitting ends, which is low-cost and simple, thus achieving optimal design.

[0040] After the MCU of the electricity meter determines that a light control event has occurred based on the change in the detection signal, it executes the electricity meter action. At the same time, the user can use a host computer and infrared communication tools to realize data interaction with the electricity meter, and use the infrared communication module inside the electricity meter to realize real-time reading of light intensity.

[0041] Specifically, to read the light intensity at a specific time, the user needs to use a computer to access the host computer, insert an infrared communication tool, connect the tool to the electricity meter, and operate the host computer to read the light intensity. The host computer communicates with the electricity meter by emitting infrared signals. After receiving the signals, the electricity meter reads the light intensity at that moment and sends the read intensity back to the host computer via infrared communication. The host computer then displays the corresponding data. It is important to note that the infrared communication involves multiple data frame exchanges between the electricity meter's MCU and the host computer to obtain the final reading data.

[0042] The steps to obtain the final value of light intensity LO based on the voltage acquisition signal are as follows: (1) According to Example 1, the linear response model of the current IPH output by the ambient light sensor and the ambient light intensity L is IPH=K*L+I0; (2) The data acquisition module processes VN to obtain the sampled signal: VP=VN*RM1 / (RM1+RM2); (3) The formula for calculating the data acquisition signal VN in the light control module is: VN = IPH * (RD4 + RD5); (4) The temperature compensation relationship of light intensity data is: LO=L*(1+E*(T-T0)); (5) Derive LO by stepwise substitution and elimination: .

[0043] Furthermore, the average value of the collected and compensated light intensity can be taken multiple times to obtain a more accurate final value of light intensity.

[0044] The infrared communication module includes an infrared communication receiving module and an infrared communication transmitting module, such as... Figure 7 As shown, the infrared communication receiving module includes an infrared receiving tube DI1 and a third transistor QI3. The positive terminal of the infrared receiving tube is connected to the base of QI3, the emitter of QI3 is connected to the infrared communication power supply, and the collector of QI3 is connected to the infrared receiving signal Infrared_RXD of the energy meter MCU.

[0045] The infrared communication receiving module also includes an eleventh resistor RI6 and a twelfth resistor RI7. The cathode of the infrared receiving tube DI1 is connected to DVDD, the positive terminal of DI1 is grounded through RI6, and the collector of QI3 is grounded through RI7.

[0046] In the infrared communication receiving module, when infrared communication is not in progress, the base of the third transistor Qi3 is at a low level, and the third transistor is turned on. At this time, the infrared receiving signal Infrared_RXD of the energy meter MCU is at a high level. When infrared communication is in progress, the infrared receiving transistor is turned on, the base of Qi3 becomes high, Qi3 is turned off, and the infrared receiving signal Infrared_RXD of the energy meter MCU is at a low level.

[0047] like Figure 8 As shown, the infrared communication transmitting module includes a fourth transistor Qi2 and an infrared emitting diode DI2. When the infrared transmitting signal Infrared_TXD controlled by the MCU of the energy meter is low, Qi2 is turned on and DI2 transmits signals outward.

[0048] The infrared communication transmitting module also includes a thirteenth resistor RI1, a fourteenth resistor RI2, and a fifteenth resistor RI3. The emitter of QI2 is connected to DVDD via RI2, the base of QI2 is connected to the infrared transmission signal Infrared_TXD of the energy meter MCU via RI1, the collector of QI2 is connected to the positive terminal of DI2 via RI3, and the negative terminal of DI2 is grounded.

[0049] In the infrared communication transmission module, when the infrared transmission signal Infrared_TXD of the energy meter MCU is low, QI2 is turned on, and the infrared emitting tube DI2 transmits signals outward; when the infrared transmission signal Infrared_TXD of the energy meter MCU is high, QI2 is turned off, and DI2 cannot transmit signals outward.

[0050] Through the infrared communication module, multiple data interactions (data reception and transmission) are performed through data frames during infrared communication to obtain the corresponding reading data. The system provided by this invention can not only perform local page turning operations, but also remotely upload ambient light monitoring data, providing data support for energy consumption analysis, environmental assessment, and intelligent operation and maintenance.

[0051] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

[0052] While the specific embodiments of the present invention have been described above, they are not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. A method for controlling an energy meter based on an ambient light sensor, characterized in that, The method includes the following steps: Step S1: After the energy meter is powered on, the energy meter MCU outputs an enable signal for the light control module to start the light control module; Step S2: The ambient light sensor detects the light intensity in real time and converts the light intensity into a photocurrent signal; Step S3: When the light intensity received by the ambient light sensor changes, the detection signal output by the light control module changes level. Step S4: The MCU of the energy meter continuously monitors the level change of the detection signal. When the level changes, the energy meter performs a page-turning operation. In step S5, the light control module outputs a voltage acquisition signal, the data acquisition module processes the voltage acquisition signal to obtain the final value of the light intensity, and transmits the final value of the light intensity to the MCU of the energy meter during the light intensity data reading. The MCU of the energy meter sends the data to the host computer via infrared communication.

2. The energy meter control method based on an ambient light sensor according to claim 1, characterized in that, The data processing method in step S5 includes: S5.1: Convert the voltage acquisition signal into current data, and convert the current data into initial light intensity based on the linear relationship between current and light intensity; S5.2: The initial light intensity is calibrated and compensated based on the calibration data and temperature data to obtain the final light intensity value. The energy meter MCU obtains the calibration data based on the initial light intensity.

3. The energy meter control method based on an ambient light sensor according to claim 2, characterized in that, The relationship between current and light intensity is: IPH=K*L+I0, and the compensation relationship between temperature and light intensity is: LO=L*(1+E*(T-T0)); Where IPH is the current data; L is the light intensity; K is the responsivity, which represents the sensitivity of the ambient light sensor to light; I0 ​​is the dark current, which represents the current generated by the sensor due to thermal noise when there is no light; E is the sensor temperature coefficient; T0 is the reference ambient temperature of 25℃; and T is the current temperature of the electricity meter.

4. A power meter control system based on an ambient light sensor, characterized in that, Using the electricity meter control method as described in claims 1-3, the system includes an electricity meter MCU, an infrared communication module, a light control module, a data acquisition module, and a host computer; wherein... The light control module is connected to the MCU of the energy meter and is used to collect ambient light signals and output voltage acquisition signals to the data acquisition module. The light control module also outputs detection signals to the MCU of the energy meter. The data acquisition module is connected to the light control module and the MCU of the energy meter respectively. It is used to process the voltage acquisition signal to obtain the final value of light intensity, and transmit the final value of light intensity to the MCU of the energy meter during the light intensity data reading. The MCU of the energy meter executes the energy meter action according to the change of the detection signal; When the host computer reads the light intensity in real time, the energy meter sends the final value of the light intensity to the host computer through the infrared communication module.

5. The energy meter control system based on an ambient light sensor according to claim 4, characterized in that, The light control module includes an ambient light sensor, a first transistor, and a second transistor. The MCU of the energy meter outputs an enable signal for the light control module. The enable signal is connected to the base of the first transistor, turning on the first transistor and starting the light control module. The output of the ambient light sensor is connected to the base of the second transistor. The collector of the second transistor is connected to the detection signal of the light control module. The light intensity received by the ambient light sensor controls the on and off states of the second transistor, causing changes in the detection signal of the light control module.

6. The energy meter control system based on an ambient light sensor according to claim 5, characterized in that, The data acquisition module includes an acquisition chip. The voltage acquisition signal output by the light control module is converted into a sampling signal after voltage division and filtering. The sampling signal is input to the acquisition chip. The acquisition chip performs ADC processing on the sampling signal and performs data calibration and temperature compensation. The acquisition chip outputs a sampling communication signal, which is connected to the communication data receiving end and communication data sending end of the energy meter MCU.

7. The energy meter control system based on an ambient light sensor according to claim 6, characterized in that, The infrared communication receiving module includes an infrared receiving tube and a third transistor. When the circuit is in infrared communication mode, the infrared receiving tube is turned on and the third transistor is turned off. The infrared receiving signal of the energy meter MCU is at a low level. The positive terminal of the infrared receiving tube is connected to the base of the third transistor, the emitter of the third transistor is connected to the infrared communication power supply, and the collector of the third transistor is connected to the infrared receiving signal of the energy meter MCU.

8. The energy meter control system based on an ambient light sensor according to claim 6, characterized in that, The infrared communication transmitting module includes a fourth transistor and an infrared emitting diode. When the infrared transmitting signal controlled by the MCU of the energy meter is at a low level, the fourth transistor is turned on, and the infrared emitting diode transmits the signal outward.

Citation Information

Patent Citations

  • An optical sensing device and a method for adjusting the same

    CN102637096A

  • Near-infrared light key circuit

    CN114614809A

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

    CN119445812A

  • Control device for non-contact conductor induction type button of intelligent energy meter

    CN204287282U

  • Testing operation of electric energy meter optics system

    US5268633A