Raspberry PI python script to read SCT-013 current sensors and upload to either io.adafruit or a local influxdb
I found lots of arduino projects for energy monitoring but I wanted something for the Raspberry Pi. This python code will take current and voltage readings and then calculate total kilowatts and current cost/kwh based on Ontario time of use pricing.
This project uses:
Raspberry Pi Model 2B, but should work on any model.
ADS1015 Analog Digital converter. I like this unit as it has a GAIN function built in.
SCT-013 Split winding current sensor. This is the type that is calibrated to output 1V for 30A.
UPS with APCUPSD or NUT support and network information server running to grab utility AC voltage
InfluxDB with grafana to display dashboard
There are 3 versions:
You can import my grafana ampread dashboard using the "grafana ampread dashboard.json" file.
You will also find separate files for UPS monitoring in my other projects.