How nkakarla08/solar-tracking-system works
This is ESP32 firmware for a solar-panel tracker with automatic cleaning and a locally hosted monitoring/control dashboard. The documented workflow reads light and panel-power sensors, adjusts the panel in AUTO mode, and triggers cleaning below a 25% threshold; users can also select MANUAL mode and control the motor and relays through the dashboard. The sampled source shows sensor/PWM behavior, dashboard generation, HTTP handlers, and Wi-Fi access-point setup, but does not show all initialization and route-registration code. Other README-described behavior is represented as documented capability.
Main entry points: solarNikitha.c Tracking control task
Components 13
Sensing and Tracking
- Tracking control task
main/solarNikitha.c - Servo PWM
main/solarNikitha.c
Cleaning Control
- Power threshold
main/solarNikitha.c - Relay handlers
main/solarNikitha.c
Web Interface
- Live dashboard
main/solarNikitha.c - HTTP handlers
main/solarNikitha.c - Wi-Fi access point
main/solarNikitha.c
Device Firmware
- Mode control
main/solarNikitha.c
Other components
- Panel operator
- LDR sensors
- Solar sensor
- Servo motor
- Cleaning relays
Connections 14
- LDR sensors → Tracking control task: provides readings
README.md - Solar sensor → Tracking control task: provides readings
README.md - Tracking control task → Servo PWM: sets duty
main/solarNikitha.c - Servo PWM → Servo motor: drives
README.md - Tracking control task → Power threshold: checks power
README.md - Power threshold → Relay handlers: triggers cleaning
README.md - Relay handlers → Cleaning relays: switches relays
main/solarNikitha.c - Panel operator → Live dashboard: views and controls
README.md - Wi-Fi access point → Live dashboard: hosts
README.md - Live dashboard → HTTP handlers: sends control requests
main/solarNikitha.c - HTTP handlers → Relay handlers: sets relay state
main/solarNikitha.c - HTTP handlers → Mode control: changes mode
main/solarNikitha.c - Mode control → Tracking control task: selects control mode
README.md - Tracking control task → Live dashboard: updates display data
main/solarNikitha.c