Introduction: Node MCU WI-FI CLOCK
In this instructable I will be you the detailed steps to make a clock that displays both time and day using Node MCU Wi-Fi module and a 128 x 32 OLED display.
Supplies
1 x Esp 8266 Wi-Fi module or Node MCU
1 x 128 By 32 OLED display
4 x Female to Female jumper wires
Step 1: Watch the Video If You Feel Lazy to Read
The video gives you the full information. But if you got stuck some where, Here is the detailed steps.
Step 2: Connect the Components According to the Schematic
Connect The Components According To The Schematic
Step 3: Setting Up the Arduino Ide for Node MCU
Step - 1 : Go to Files
Step - 2 : Select preferences
Step - 3 : Paste this in the additional boards manager http://arduino.esp8266.com/stable/package_esp8266com_index.json
Step - 4 : Go to manage libraries and search NTP Client
Step - 5 : Click install
Step - 6 : Search Adafruit SSD 1306
Step - 7 : Click install
Step - 8 : Click install all
Step 4: Download the Code
Download the code from below and make the following modifications.
Attachments
Step 5: Wi-Fi Name and Password
Step - 9 : Enter your Wi-Fi name. make sure it is 2.4 Ghz and not 5 Ghz as it is not supported by Node MCU.
Step - 10 : Enter your Wi-Fi password.
Step 6: Calculation for UTC Offset
Get your UTC value from here: https://www.timeanddate.com/worldclock/?query=
For example: if your UTC value is -4:30 or negative or positive
The first part is hour and the second part is minutes
Multiply hours i.e (-4) with 3600 as there are 3600 seconds in an Hour
Multiply minutes i.e(30) with 60 as there are 60 seconds in a Minute
Add both the values together i.e -14,400 + 1800 = -12600
Step - 11 : Enter the calculated value as -12600
IF YOU GET A POSITIVE VALUE ENTER THE VALUE AS POSITIVE.
Step 7: Upload the Code to Node MCU
Select boards and type NODE MCU and select node MCU 1.0 ESP 12 E mod and then select the correct COM port and then hit upload.
Step 8: Possible Issues You May Run Into
- The display not lighting up. Then the Wi-Fi name or the password may not be incorrect.
- If the time is not correct then the utc offset value may be incorrect. Make sure that the calculation is correct.
Step 9: Thats It. You Finally Made It
Step 10: Subscribe If You Feel I Earned Your Subscription
Feel free to let me know where I could improve this instructable. Or if i earnt your subscription you can check out my channel.
https://www.youtube.com/channel/UCGnZFzWv-a-xBXPcCzoG5NA.
Thank You






