AI-Powered Solar Charging System

An intelligent solar panel orientation system that maximizes energy capture using light sensors and servo control

Light-Sensitive Tracking

Uses dual light sensors to detect intensity differences and automatically adjusts panel orientation for optimal sunlight exposure.

Web Interface

Real-time monitoring and control through a web interface with data visualization, manual controls, and system status updates.

ESP32 Powered

Built on ESP32 with HTU21DF temperature/humidity sensor and servo motor control for precise panel positioning.

System Overview

This AI-powered solar tracking system automatically optimizes solar panel orientation to maximize energy capture. Key components include:

  • ESP32 microcontroller with WiFi capabilities
  • Dual light sensors (LDR) for light intensity comparison
  • Servo motor for precise panel positioning
  • HTU21DF temperature and humidity sensor
  • Voltage sensor for panel output monitoring
  • LCD display for local status updates

The system operates in both automatic and manual modes, with a web interface for remote monitoring and control.

AI Solar Panel Prototype

Project Demonstration

Watch my demonstration of the AI Solar Tracking System featured on the university's Facebook page.

System Features

Web Interface Web Interface

Web Control Interface

The responsive web interface allows real-time monitoring of system parameters and manual control of panel orientation.

Real-time Monitoring Real-time Monitoring

Data Visualization

Graphical representation of light intensity differences, temperature, humidity, and voltage readings over time.

Hardware Prototype Hardware Prototype

Hardware Implementation

The physical prototype showing the solar panel, light sensors, and servo mechanism for precise positioning.

Technical Specifications

Component Specification
Microcontroller ESP32 with WiFi and Bluetooth
Light Sensors Dual LDR (Light Dependent Resistors)
Servo Motor Standard hobby servo (180° rotation)
Environmental Sensor HTU21DF Temperature & Humidity
Voltage Measurement Analog input with voltage divider
Display 20x4 I2C LCD
Web Server AsyncWebServer with SPIFFS
Control Modes Automatic (AI) and Manual

AI Control Algorithm

The system uses an intelligent algorithm to determine optimal panel positioning based on real-time light sensor data analysis.

Key Algorithm Features

Light Difference Threshold

Detects significant light intensity differences (10.0 units threshold)

Night Mode

Activates when light levels drop below 500.0 units

Smoothing Factor

0.2 smoothing for stable operation without jitter

Bi-directional Rotation

Automatic clockwise/counter-clockwise adjustment

Speed Prediction

Adjusts movement speed based on light difference

Web API Endpoints

GET
/data
Retrieve all sensor data in JSON format
{
  "lightLeft": 845.0,
  "lightRight": 920.0,
  "temperature": 28.5,
  "humidity": 65.2,
  "voltage": 4.8,
  "servoPosition": 90
}
POST
/setManualMode
Toggle between automatic and manual control modes
POST
/manualControl
Send manual movement commands (left/right/center)
direction left | right | center
GET
/
Serve the web interface (HTML, CSS, JS)

Ready to Implement This Solution?

This project demonstrates my capabilities in AI, IoT, and renewable energy systems. I'd be happy to discuss how similar solutions could benefit your organization or to customize this system for your specific needs.