Skip to main content
All projects

Single-axis embedded control prototype

Arduino Solar Tracker

CompletedPhysical prototypeMay 2025

Our three-person Electronics I team built a prototype that turns a panel toward the brighter side as the light direction changes. Two light-dependent resistors sense the light, and an Arduino Uno directs an SG90 servo mounted in a custom 3D-printed frame.

Completed tracker with an Arduino Uno and breadboard on the base, and an SG90 servo beneath the panel
The assembled prototype. The blue SG90 servo turns the panel on the 3D-printed frame.

Building the tracker

We chose one axis so a pair of light sensors and one servo could handle the movement. After checking the circuit and control logic in Tinkercad, we built the sensor circuits on a breadboard, fitted the servo and panel to a frame designed in Fusion 360, and uploaded the Arduino sketch.

How it finds the brighter side

A raised barrier separates the two light-dependent resistors, or LDRs. When light arrives from one side, the barrier shades one sensor more than the other. Each sensor circuit turns that change in resistance into a voltage the Arduino can read.

  1. Light direction
  2. LDR measurements
  3. Arduino comparison
  4. Servo adjustment
  5. New panel orientation

When the readings are close, the Arduino leaves the panel where it is. This tolerance is a deadband of 10 analog counts. Outside it, the Arduino adjusts the servo command one step at a time, then reads both sensors again from the new orientation.

Overhead view of the tracker's two light sensors at opposing panel edges, the raised divider, and the wired Arduino and breadboard
From above, the sensor pair and the divider show how the physical layout gives the controller a directional signal.

What the prototype did under light

After assembly, we checked the prototype indoors and outdoors by changing which side received more light. These are observations of the physical build.

Directional-light tests on the assembled tracker
Light conditionObserved behavior
LDR1 received more lightTurned toward that side in small steps.
LDR2 received more lightTurned in the opposite direction.
Both readings were closeHeld its position.
The brighter side changedReversed its correction.

What the build established

The prototype demonstrated single-axis light following. The useful signal depended on sensor spacing and barrier alignment, and shadows or reflections could change the direction it detected.

Photovoltaic voltage, current, and energy went unmeasured. Quantifying power or efficiency gains would require comparing the tracker with a fixed panel under the same conditions. Weather resistance and long-term outdoor reliability also remain unverified.

Technical notes

Circuit and frame

Each sensing circuit uses an LDR and a 10 kΩ resistor as a voltage divider. The Arduino reads the divider outputs on A0 and A1 and sends the servo command on digital pin 11. The printed column holds the servo, panel, and sensors in alignment.

Arduino Uno wiring diagram with two light-sensor dividers feeding A0 and A1 and the servo signal connected to pin 11
Wiring layout for the LDR dividers and SG90 servo, with power and ground shared at the Arduino.Inspect full-size figure
Fusion 360 model of the tracker base, supporting column, and rotating panel mount
Fusion 360 model of the custom frame, showing how the column supports the rotating panel mount.

Arduino sketch and travel limits

The sketch starts with a 90° setpoint and waits one second. Each loop samples both inputs and computes their absolute difference. Above 10 counts, it subtracts one degree from the commanded angle when A0 reads higher, or adds one when A1 reads higher. It writes the command and waits 80 ms before the next check.

The examined sketch leaves the position variable Spoint unclamped. A future version would need explicit angle bounds matched to the mechanism and tested at both ends of its travel.

Tinkercad checks before assembly

In Tinkercad, we varied the two simulated light inputs independently to check both directions of servo movement and the hold behavior for close readings. The virtual circuit checked those commands before assembly. Mechanical load, sensor alignment, and reflections became relevant once the parts were assembled.

Tinkercad screenshot with the first light sensor illuminated more strongly and the virtual servo horn rotated
Tinkercad trial with LDR1 set brighter, showing the simulated servo response.
Duration
4 weeks
Course
EE 312 · Electronics I
Project type
Academic team project · 3 students