Detecting your theme preference to prevent flashing...
SolarLog - 4skl's blog
Published on

SolarLog


SolarLog System 🌞

A comprehensive solar panel voltage monitoring system that combines ESP32 hardware with a React Native mobile app for real-time solar energy monitoring and analysis.

What It Does

SolarLog tracks solar panel voltage in real-time using an ESP32 microcontroller and displays the data through a mobile app. The system provides:

  • Real-time monitoring: 60Hz voltage sampling with 5-second averaging
  • Historical data: 24-hour data storage with trend analysis
  • Mobile dashboard: Interactive charts and voltage analysis tools
  • WiFi connectivity: REST API for seamless data access

System Components

ESP32 Hardware

  • Voltage measurement from 0-15V solar panels
  • Simple voltage divider circuit (two resistors)
  • WiFi-enabled data collection and API server
  • Persistent data storage across power cycles

React Native App

  • Live voltage monitoring dashboard
  • Historical data visualization
  • Device configuration and management
  • Data export capabilities

Quick Setup

Hardware: Connect your solar panel through a voltage divider circuit to the ESP32’s ADC pin (GPIO36).

Circuit:

Solar Panel (+) ----[47kΩ]----+----[15.1kΩ]---- GND
                               |
                          ESP32 ADC Pin

Software: Configure WiFi on the ESP32, install the mobile app, and connect to start monitoring.

Key Features

  • Accurate measurements: 12-bit ADC resolution with optimized voltage divider
  • Smart storage: 1-hour RAM buffer + 24-hour flash storage
  • Real-time API: JSON endpoints for current readings and historical data
  • Cross-platform: Works on both Android and iOS devices

Technical Specs

  • Voltage Range: 0-15V (recommended for most solar panels)
  • Sample Rate: 60Hz → 5-second averages
  • Storage: 720 recent samples + 17,280 historical samples
  • Connectivity: WiFi (2.4GHz) with REST API

SolarLog makes solar panel monitoring accessible and comprehensive—perfect for anyone who wants real-time insights into their solar energy generation with professional-grade data collection and mobile visualization.

A screenshot worth 1000 words : Full screenshot of the SolarLog client view

Wiring Closeup picture of the device wiring

Global picture of the esp32 setup with solar panel

Links: