Showing posts with label wifiprojects. Show all posts
Showing posts with label wifiprojects. Show all posts

Friday 3 July 2020

LETS BUILD WI-FI CLOCK


In this tutorial i am showing how to make a simple  wi-fi clock.  The important feature of this clock is we can build this with just 2 things.and we dont need a RTC module for time

Those two things are
1.esp8266 (nodemcu,wemos d1 etc.)


2.8*8 led matrix 






We are not using any RTC modules for this project for this clock! you may ask then how to update time.?
Well the answer is  Network Time Protocol (NTP).
you can get date and time from NTP server (with a precision within a few milliseconds of UTC) 

NTP-Network time protocol

It’s a standard Internet Protocol (IP) for synchronizing the computer clocks to some reference over a network.
The protocol can be used to synchronize all networked devices to Coordinated Universal Time (UTC) within a few milliseconds.Coordinated Universal Time (UTC) is a world-wide time standard, closely related to GMT (Greenwich Mean Time). UTC does not vary, it is the same world wide.





About the programming side

  • NTPClient.h is time library which allows NTP server synchronization.
  • ESP8266WiFi.h library provides ESP8266 specific WiFi methods we are calling to connect to network
First You need to adjust the UTC offset for your timezone in milliseconds
I am from india that is +5.30
That is 5.5*60*60=19800
If you are from russia  offset is +1
And that is 1*60*60=3600

Board URL

Libraries







Please watch video to know more