Single-axis embedded control prototype
Arduino Solar Tracker
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.

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.
- Light direction
- LDR measurements
- Arduino comparison
- Servo adjustment
- 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.

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.
| Light condition | Observed behavior |
|---|---|
| LDR1 received more light | Turned toward that side in small steps. |
| LDR2 received more light | Turned in the opposite direction. |
| Both readings were close | Held its position. |
| The brighter side changed | Reversed 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 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.

- Duration
- 4 weeks
- Course
- EE 312 · Electronics I
- Project type
- Academic team project · 3 students