Outside Inside
Sensor – power wire through the hole
The sensor is called a "current indicator." The serious programming is in the Photon. A proto program allowed us to plot the relationship of raw analog sensor values to Watts -- turned out to be a nice straight line. I tested my laptop 45w power charger, a 75w bulb, a 800w toaster and a 1200w clothing iron. The real program takes 40 current samples (1 ms apart) each minute. The maximum value is added to a sum for the hour. The sums for the latest 24 hours are copied to a Particle "variable". That variable is read by a Raspberry Pi -- which produces a summary like this (via a simple PHP program):
Hr 16: 0.16
Hr 17: 1.39
Hr 18: 1.4
Hr 19: 1.39
Hr 20: 1.39
Hr 21: 1.39
Hr 22: 1.39
Hr 23: 0.68
Sat 12/14 kWh: 9.26, cost: $0.83
Michigan Consumers Energy kWh rates for electric vehicles
Oct thru May -- Off peak: .090, On: .103
Jun thru Sep -- Off peak: .085, On: .123
Peak hours: 11:00 up to 19:00
The record above runs from 4pm till midnight for December 14. So I'm paying nearly 3.5 cents per electric mile. At my local $2.60-ish gas per gallon and the Kia's 45 mpg in hybrid mode (under 6 cents per mile) I'm not saving a lot. Gas should be way more expensive. Of course, I only stand out in the cold to pump gas once every 900 miles.
I will be accumulating data and will update this page.
* 12/20: Turned out that the Photon interfered with my wireless garage door buttons. Moved it 15 feet away and to different circuit -- now works ok. But why? Very different wireless frequency.
* 12/20: Turned out that the Photon interfered with my wireless garage door buttons. Moved it 15 feet away and to different circuit -- now works ok. But why? Very different wireless frequency.