Solar Tracker
Built a Solar Tracker that aligns solar panels with the Sun’s position, increasing efficiency by 35%.
A solar panel bolted flat to a roof is a little like a sunflower that never turns: it catches full sunlight for only a couple of hours a day and quietly wastes the rest. The Solar Tracker was built to fix exactly that. Instead of sitting still, it follows the Sun across the sky from sunrise to sunset, keeping the panel aimed as close to head on as possible so the light strikes the surface at its most productive angle. That single change lifted energy capture by roughly 35% compared to a fixed setup.
Where the idea came from: the spark for this build was a Brown Dog Gadgets video on YouTube (@BrownDogGadgets) that walked through a simple light following solar panel. I was struck by how elegant the core concept was, so I set out to replicate it myself and understand every piece of it from the sensors up to the code.
### How it senses the Sun
The clever part is how the tracker figures out where the Sun actually is, and it does not use GPS or a clock. Mounted on top of the panel are four light sensors (Light Dependent Resistors, or LDRs) arranged in a small quadrant, one for each corner: top left, top right, bottom left, bottom right. A low divider between them casts a shadow whenever the panel is not pointed straight at the Sun, so the four sensors end up reading slightly different amounts of light. Those tiny differences are the whole trick. If the Sun drifts to the right, the right sensors brighten and the left ones dim, and that imbalance is exactly the clue the system needs.
### Moving on two axes
The Arduino constantly compares the sensors in pairs. It averages the top two against the bottom two to decide whether to tilt up or down, and the left two against the right two to decide whether to swing left or right. Each comparison drives its own servo motor, giving the panel two independent axes of movement: one for vertical tilt (elevation) and one for horizontal rotation (azimuth). The panel nudges itself toward the brighter side until all four sensors read nearly the same value, which only happens when it is facing the Sun dead on. At that point it holds still, and the whole cycle repeats a few times a second as the Sun keeps moving.
### The brain behind it
The logic runs on an Arduino microcontroller programmed in C/C++. The code reads the four analog sensor values, works out the difference between each pair, and translates that into precise angle commands for the servos. It is written to react quickly but smoothly, avoiding the jitter you get if a tracker overcorrects on every passing cloud, and it includes limits on how far each servo can turn so the mechanism never over rotates or strains itself. Cheap, widely available parts like the Arduino and the LDRs also mean the entire design is easy to replicate, which makes it a genuinely practical option for classrooms or off grid setups.
### Why it beats a fixed panel
A static panel only hits peak output during the narrow window when the Sun happens to line up with it. The tracker, by contrast, stays near optimal alignment the entire day, which turns a sharp midday spike into a broad, sustained power curve from morning to evening. Prototype testing backed this up with an average 35% increase in energy output, confirming the core idea that aiming the panel is worth the small amount of power the motors consume.
### Where it could go next
There is plenty of room to grow. Adding IoT connectivity would let you monitor energy production, panel orientation, and light intensity live from a phone or the web. Layering in a bit of machine learning could let the tracker predict the Sun's path from the date, location, and weather, so it could pre position itself instead of relying purely on what the sensors see in the moment. At its heart though, the project is a small, honest demonstration of a big idea: a handful of cheap sensors, two motors, and some careful code can make clean energy noticeably smarter.
At a glance
- Timeline
- Nov 2019 - Dec 2019
- Type
- Hardware Project
- Impact
- Increased efficiency by 35%
- Inspired by
- Brown Dog Gadgets (@BrownDogGadgets) on YouTube
Technologies
- Arduino/Microcontroller
- LDR Sensors
- Servo Motors
- C/C++ (Embedded)
- Solar Panel Technology
Categories
- Hardware
- Finance
- Sustainability
Links
Machine-readable version of this page: https://www.sherwinvishesh.com/project/solar-tracker.md | site index: https://www.sherwinvishesh.com/llms.txt
Copyright 2026 Sherwin Vishesh Jathanna. Text may be quoted with attribution. The design and source code are not licensed for reuse.