Heliostat Phase 4: Saving settings
Holding on to the time and location while powered off
Phase 4: Now that we are capable of calculating the position of the sun, we want to get rid of the hardcoded values for the time and location. To save the time, we’ll use an extra piece of hardware, namely a Real Time Clock or RTC. The location we’ll store in the flash memory of the ESP32 board or in an EEProm. By doing so, we can power down the ESP32 board, bring it back up and still have correct values for time and location.