Self-tuning current transformer
An electricity usage monitor may include a coupling component to attach the electricity usage monitor to an electrical circuit to monitor electricity usage of the electrical circuit, an analog-digital converter (ADC) configured to convert analog current readings captured by the electricity usage monitor into digital values, a processor operably coupled to the ADC, and a non-transitory, computer-readable medium operably coupled to the processor and comprising instructions which, when executed by the processor, cause the processor to perform operations. The operations may include determining a standard deviation of the digital values, based on the standard deviation, adjusting a gain of the ADC, and transmitting a signal to a server comprising the digital values.
1 . A method of electricity usage monitoring, comprising:
receiving a plurality of readings captured by an electricity usage monitor;
converting, by an analog-digital converter (ADC) of the electricity usage monitor, the plurality of readings to digital values;
determining a standard deviation of the plurality of readings captured by the electricity usage monitor, based on the digital values;
adjusting a gain of the ADC based on the standard deviation; and
transmitting a digital communication comprising the digital values and the adjusted gain of the ADC.
2 . The method of claim 1 , wherein the gain of the ADC is adjusted to be proportional to a multiple of the standard deviation of the digital values.
3 . The method of claim 1 , wherein adjusting the gain of the ADC comprises adjusting the gain based on an average of the digital values.
4 . The method of claim 1 , further comprising decoding the digital values using the adjusted gain of the ADC.
5 . The method of claim 4 , further comprising receiving an acknowledgement indicating that the gain was adjusted at a remote computing device based on the standard deviation before the adjusting the gain of the ADC at the electricity usage monitor.
6 . The method of claim 5 , wherein the digital communication further comprises ADC buckets associated with the digital values.
7 . The method of claim 1 , further comprising:
determining a new standard deviation of the plurality of readings; and
based on the new standard deviation, updating the adjusted gain of the ADC.
8 . The method of claim 1 , further comprising:
determining a difference between the standard deviation and a standard deviation threshold; and
updating the adjusted gain of the ADC based on the difference.
9 . A method of electricity usage monitoring comprising:
receiving, by a server system, from an electricity usage monitor, a digital communication comprising readings captured by the electricity usage monitor converted into digital values by an analog-digital converter (ADC) of the electricity usage monitor;
receiving, by the server system, an adjusted gain of the ADC;
updating the server system based on the adjusted gain of the ADC; and
decoding, by the server system, the digital values based on the adjusted gain.
10 . The method of claim 9 , wherein the electricity usage monitor utilizes a first lookup table for converting the readings into digital values.
11 . The method of claim 10 , wherein the first lookup table is based on the adjusted gain of the ADC.
12 . The method of claim 10 , wherein the server system stores a second lookup table.
13 . The method of claim 12 , wherein updating the server system comprises adjusting the second lookup table based on the digital communication, such that the second lookup table matches the first lookup table.
14 . The method of claim 12 , wherein the first lookup table and the second lookup table comprise ADC buckets associated with the digital values.
15 . The method of claim 12 , wherein decoding the digital values comprises referencing the second lookup table to determine measurement values.
16 . The method of claim 9 , further comprising:
transmitting, by the server system, an acknowledgement of the adjusted gain of the ADC.
17 . The method of claim 9 , wherein the adjusted gain of the ADC is proportional to a multiple of a standard deviation of the digital values.
18 . A method of electricity usage monitoring comprising:
receiving, by a server system, from an electricity usage monitor, a digital communication comprising a plurality of readings captured by the electricity usage monitor converted into digital values by an analog-digital converter (ADC) of the electricity usage monitor;
determining a standard deviation of the plurality of readings, based on the digital values;
adjusting a gain of the ADC based on the standard deviation; and
transmitting, to the electricity usage monitor, the adjusted gain of the ADC.
19 . The method of claim 18 , further comprising decoding, by the server system, the digital values using the adjusted gain of the ADC.
20 . The method of claim 18 , further comprising receiving an acknowledgement indicating that the gain has been adjusted at a remote computing device based on the standard deviation before the adjusting the gain of the ADC at the server system.