arduinoProjects

Getting Time From NTP Server Made Straightforward

ashwiniEach 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.

Fig. 1: NTP communication format structure
Fig. 1: NTP communication format construction

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.


Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button