README.md 2.29 KB
Newer Older
Grace Copplestone's avatar
Grace Copplestone committed
1 2 3
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.8.1/katex.min.css" integrity="sha384-BDqcjN11/6D69oC63ObubLHNvQR2fNjin6+AzxA3xalB0swTj17TxVV1tL1Q5Png" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.8.1/katex.min.js" integrity="sha384-sKYm5us3z9/bRQA+cc3gPzqwI5RVgL8vJQx1lpBudr9IzHOR8fnFUH68dz1GsTQw" crossorigin="anonymous"></script>

Sam Calisch's avatar
Sam Calisch committed
4
This is documentation for an energy monitoring device built around the nRF52832 system-on-chip from Nordic.  It includes a 2.4 GHz BLE-enabled radio transceiver, a Cortex M4F microcontroller, and a host of hardware peripherals.  The device is capable of extracting current and voltage waveforms from a standard wall power plug without contacting the mains power.  The current is measured inductively, as a mild steel flux guide channels magnetic flux through a sensitive hall effect device.  The voltage is measured capacitively, as the flux guides couple with the conductors in the plug.  Measuring both quantities allows us to separate active from apparent power, measuring the real power used by an appliance plugged through our device.
Sam Calisch's avatar
Sam Calisch committed
5 6 7 8

<a href='bc832-watt'>bc832-watt/</a> includes source files for a PCB built around the BC-832 module (containing the nRF52) from Fanstel.

<img src='img/bc832-watt-1.jpg' width=40%>
Sam Calisch's avatar
Sam Calisch committed
9
<img src='img/bc832-watt-3.jpg' width=44%>
Sam Calisch's avatar
Sam Calisch committed
10 11 12

This device produces around 0.1 volts/amp out of the sensor (or ~1 mV per Watt through the plug).  The nrf adc has a +-0.6V reference, 4x gain, and 12-bit conversion, which might resolve 100mW (maybe finer with oversampling).  Certainly not precision measurement, but good enough for monitoring appliances.

Sam Calisch's avatar
Sam Calisch committed
13 14 15
 The nRF52 radio+microcontroller draws 5mA in transmit and receive, so it could operate well within the specs of a coin cell, or harvest from the power line (say, using http://www.linear.com/product/LTC3588-1) to charge a capacitor for power.  
 
Below, we see the flux guides registered into pockets on the pcb. 
Sam Calisch's avatar
Sam Calisch committed
16

Sam Calisch's avatar
Sam Calisch committed
17
<img src='img/bc832-watt-0.jpg' width=40%>
Grace Copplestone's avatar
Grace Copplestone committed
18 19 20 21 22 23 24 25 26

### Power requirements

The nRF52832 draws 5mA peak @ 3.3V

The Hall Effect Sensor draws xmA @ 3.3V

Assume whole device runs at peak load for 10% of the time

Grace Copplestone's avatar
Grace Copplestone committed
27
$$ 
Grace Copplestone's avatar
Grace Copplestone committed
28
P = IV = 5e-3 * 3.3 * 0.1 = 1.65mW 
Grace Copplestone's avatar
Grace Copplestone committed
29 30 31 32
$$

![equation](http://latex.codecogs.com/gif.latex?Concentration%3D%5Cfrac%7BTotalTemplate%7D%7BTotalVolume%7D)