Skip to content

An arduino code that reads Current Transformer (CT sensor) data, SRNE Mppt controller data, and SNAT PSW inverter. The data collected will be transmit to a HTTP server via POST with a CSV formatted data. The device used in this project is Wemos D1 mini.

Notifications You must be signed in to change notification settings

kerpz/ArduinoEnergyLogger

Repository files navigation

ArduinoEnergyLogger

An arduino code that reads Current Transformer (CT sensor) data, SRNE Mppt controller data, and SNAT PSW inverter. The data collected will be transmit to a HTTP server via POST with a CSV formatted data. The device used in this project is Wemos D1 mini.

Please refer to the screenshots below.

Applications

  • Solar and Energy Datalogging
  • Diagnostics
  • Consumption Analysis

Supports

  • CT Sensor
  • SRNE Mppt Controller
  • SNAT PSW Inverter

Files

  • ArduinoEnergyLogger.ino - main file
  • analog.h - support file for ct sensor reading (based on emon) [Edit cpp/h].
  • display.h - support file for displaying data via OLED [Edit cpp/h].
  • post.h - support file for posting data to a HTTP server IoT.
  • srne.h - support file for extracting data from a srne mppt controller.
  • snat.h - support file for extracting data from a snat psw inverter.
  • webserver.h - support file for the device webserver, used for wifi and device configurations/informations [Edit cpp/h].
  • utils.h - helpers.
  • hardware - directory of hardware design eagle files
  • screeshot - directory of images used for README

Wiring for CT sensor, SRNE, and SNAT

CT sensor                 Wemos D1 mini
divider circuit --------- ADC0 (A0)
(2 x 100k ohms and 10uF)

SRNE                      Wemos D1 mini
Rx ---------------------- D7
Tx ---------------------- D8

SRNE                      Wemos D1 mini
Rx ---------------------- D5
Tx ---------------------- D6

Screenshots (Grafana display)

Alt text Alt text

Screenshots (Device Webserver)

Alt text Alt text Alt text Alt text Alt text

NOTES

  • Still in beta test

TODO

  • Device mass production

About

An arduino code that reads Current Transformer (CT sensor) data, SRNE Mppt controller data, and SNAT PSW inverter. The data collected will be transmit to a HTTP server via POST with a CSV formatted data. The device used in this project is Wemos D1 mini.

Topics

Resources

Stars

Watchers

Forks