A program in Arduino for a solar tracker.
PSUEDOCODE:
Turn until you find the sun's position in the sky
Record angle turned (or amount of time)
Turn until you find the sun's position in the sky
Record angle turned (or amount of time)
Repeat forever:
Use last two angles/times found, predict and go to where sun will appear next
Make corrections to find where the sun actually is
Record angle turned (or amount of time)