← All projects in the gallery

Solar Dashboard

by jonathan harrocks

Seven hundred watts on a shed roof and the four numbers that matter: what the array is making, what the house is drawing, where the battery is, and which way the difference is going. Two INA219s share one bus - one on the array, one on the load - which is the cheap way to do this and is why their addresses differ. State of charge is a lead-acid rest curve on the battery voltage: it reads pessimistic under load, which is the direction you want to be wrong in. The battery is drawn as one, and the bar inside it is its state of charge. The chart carries two series on one set of axes, which is the comparison you actually look at - generation against consumption, not either alone - and holds a day: ninety-six points a quarter of an hour apart.

About this design

Solar Dashboard is an LVGL interface for the Sunton ESP32-8048S070 (7" RGB) (ST7262 800 x 480, GT911 touch), with 1 screen and 24 widgets, made for Arduino (C++) on LVGL 9.

Screens

  • Screen1

Hardware and build

Board
Sunton ESP32-8048S070 (7" RGB)
MCU
ESP32-S3
Display
ST7262
Resolution
800 x 480
Touch
GT911
Graphics library
GFX Library for Arduino
LVGL
v9
Exports to
Arduino (C++)
Peripherals
INA219 (current)
Libraries
lvgl, GFX Library for Arduino, Adafruit INA219

Notes from the author

Array, house, battery and net power, with a day of history on one chart.

Using it

Open a copy in the designer and it is yours to edit: restyle the screens, move it to another board, and export the Arduino (C++) project. Designing is free, and a copy needs no account. Open the designer.