Skip to content

About

A light-guided, dual-axis solar tracker with radio control and ESP8266 diagnostics.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Dual-Axis Solar Tracker

An Arduino controller points a solar panel toward the brightest part of the sky. It compares four photoresistors and drives the elevation and azimuth motors independently. A radio remote provides manual control, and an ESP8266 serves a browser panel for inspecting device logs and setting the clock.

Hardware drawings · Web panel and tracking session · Main Arduino sketch

Assembly drawing of the tracker with close-up views of the elevation shaft and azimuth ring gear

Assembly drawing showing the elevation shaft that tilts the panel and the azimuth turntable that rotates its base.

One tracking cycle

  1. Measure. The controller compares the top and bottom photoresistors for elevation, and the right and left photoresistors for azimuth. Each axis has a stored calibration offset.
  2. Confirm the direction. An imbalance above the sensitivity threshold moves the controller from idle to sunAware. The direction must persist for the configured delay. A change of direction restarts the timer, which helps the tracker ignore a passing shadow.
  3. Move and settle. In followSun, each H-bridge drives its motor in the required direction using PWM. Each axis stops independently as its error closes or changes sign. The controller returns to idle when both axes stop or the 30-second movement timer expires.

The threshold and delay are configurable. The firmware’s fallback settings use a sensitivity of 30 ADC counts and a 10-second confirmation delay. Light sensor · Controller state machine

stateDiagram-v2
    [*] --> idle
    idle --> sunAware: Light imbalance
    sunAware --> idle: Light balances
    sunAware --> followSun: Direction persists
    followSun --> idle: Axes stop or timer expires
    idle --> nightAware: Upper sensor dark
    nightAware --> idle: Light recovers
    nightAware --> foldDown: Darkness persists
    foldDown --> sleep: Fold timer expires
    sleep --> idle: Daylight persists
Loading

The diagram follows automatic operation. Sustained darkness starts a timed fold-down sequence. In sleep, both bridges are off while the controller checks for daylight. The radio remote can switch modes and jog either axis manually. Radio control

Hardware and firmware

flowchart LR
    sensor["Four photoresistors"] -->|Analog inputs| controller["Arduino controller"]
    radio["Radio remote"] -->|Receiver| controller
    controller --> bridgeV["Elevation H-bridge"]
    controller --> bridgeH["Azimuth H-bridge"]
    bridgeV --> motorV["Elevation motor"]
    bridgeH --> motorH["Azimuth motor"]
    controller <-->|Serial| esp["ESP8266"]
    esp <--> sd["SD card"]
    esp <-->|Wi-Fi| browser["Web panel"]
Loading

The main sketch assigns the four analog inputs and both H-bridges. It also connects a radio receiver and a PCF8574 I/O expander for the indicator and Wi-Fi enable signal. The hardware gallery includes the complete assembly, the directional sensor head and the two motor circuits. Hardware drawings and pin map

Web diagnostics

The Read Logs panel plots a selected numeric channel above a timeline of firmware events. The upper graph shows free ESP8266 heap in bytes. The four entries below it follow a single correction from idle to motor movement and back. The original interface uses English controls and Polish event descriptions.

Desktop Read Logs panel with a free-heap graph and four tracker state events

The Set Time view provides date and time pickers at phone width. Both captures use the project’s original web assets and show the same date, 18 November 2026. Mobile view and session data

Source guide

Area Entry point
Main Arduino firmware Tracker sketch
ESP8266 service, time setting and web assets ESP8266 sketch · WiFiModuleESP
Optical feedback and EEPROM calibration SunSensor
Motor control and operating modes SolarController
Radio input from a PC serial port RemoteControllerPC sketch
Component exercises Sun sensor · Indicator · Remote · Serial test peer

The v1, v2 and Backup directories preserve project variants. The links above point to the implementations used by the main sketches. Shared Arduino libraries such as BridgeH, RadioListener, SerialListener and UpdateManager are external dependencies.

About

A light-guided, dual-axis solar tracker with radio control and ESP8266 diagnostics.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages