Each now and again, you come throughout an concept the place retaining time is a first-rate concern. For instance, think about a relay that must be activated at a sure time, or an information logger that has to retailer values at exact intervals.
The very first thing that involves our thoughts is to make use of a real-time clock (RTC) chip. However since these chips aren’t correct, we have to maintain doing handbook changes to maintain them synchronised.
The answer right here is to make use of community time protocol (NTP). The ESP8266 NodeMCU has entry to the web, so you may get day of the week and exact time inside a couple of milliseconds of Coordinated Common Time (UTC) totally free! And also you don’t want any extra {hardware} circuitry.
Obtain supply code
This undertaking shall be printed in a couple of weeks. If you wish to entry it now, consult with Electronics For You’s December 2022 Concern–print or ezine version.