Skip to content

measure solar panel voltage and current on M5Stack, transmit via MQTT to Node Red

Notifications You must be signed in to change notification settings

axwax/M5StackSolar2MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M5StackSolar2MQTT

measure solar panel voltage and current on M5Stack, transmit via MQTT to Node Red

Hardware / BOM

High-Level flow

  • Solar panel
    • Ammeter wired in line between solar panel and controller
    • Voltmeter wired in parallel to the solar panel
  • Solar Controller
    • M5Stack plugged into USB output of solar controller
  • M5Stack
    • connect to Wifi & MQTT
    • measure voltage and current every couple of seconds and display on screen
    • transmit via MQTT every 20 seconds as a JSON object on topic "SolarPanel"
  • Node-Red
    • receive and parse the JSON object on topic "SolarPanel"
    • calculate power and convert units
    • upload resulting data to InfluxDB
  • Grafana
    • load data from InfluxDB and display it

Installation

  • Install and configure
  • Create a database in InfluxDB
  • Import M5Stack project to UIFlow, adjust your MQTT details and upload to M5Stack
  • Import Flow to Node-Red, configure MQTT and InfluxDB details and deploy
  • Import Panel to Grafana and configure InfluxDB details

Images

solar panel M5Stack wiring Grafana

About

measure solar panel voltage and current on M5Stack, transmit via MQTT to Node Red

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published