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.

  1. Read each LDR through a voltage divider on an analogue pin
  2. Compare the two readings
  3. Turn the SG90 toward the brighter side
  4. 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.