I’ve actually done both those things in real life believe it or not. But for the solar tracking I went lazy and used a pair of photoresistors and some canned PID code with a little tuning for my motor.
And I fix lawnmowers for most of my neighborhood.