Free virtual lab
Solar sun tracker
Two light sensors either side of a solar panel tell a servo which way to turn, so the panel follows the sun across the sky.
- Read each LDR through a voltage divider on an analogue pin
- Compare the two readings
- Turn the SG90 toward the brighter side
- Add a dead band so it does not jitter
Loading the lab…
Try free. Guest progress lasts while this page is open. Register to save on this device.

