ESP8266 NodeMCU Tutorial | NTP Client & 0.96 OLED Display with Time Based Automation (Without RTC)

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ค. 2024
  • @MaisonUp4049
    In this ESP8266 NodeMCU tutorial, we'll guide you through creating a versatile IoT project that connects to an NTP server, displays the time on an OLED screen, and even incorporates time-based automation, all without the need for an RTC module. By the end of this guide, you'll have a deeper understanding of the ESP8266 NodeMCU, NTP client functionality, OLED displays, and automating actions based on the time.
    *Project Highlights:*
    - Connect your ESP8266 NodeMCU to your Wi-Fi network for seamless communication.
    - Utilize an NTP client to fetch accurate time data from an NTP server, ensuring precise timekeeping.
    - Display the current time on an OLED screen using the Adafruit_SSD1306 library.
    - Explore the coding intricacies behind formatting and displaying time, complete with AM/PM indicators.
    - Learn how to design a smooth text scrolling effect on the OLED screen for an engaging visual experience.
    - Implement time-based automation to control an LED based on specific activation and deactivation times.
    - Utilize the built-in WiFiUDP and NTPClient libraries to simplify network communication and time synchronization.
    - Understand the logic behind device activation based on time conditions, all within the Arduino framework.
    *Code and Resources:*
    drive.google.com/file/d/1-RJf...
    *Video Contents:*
    0:00 - Introduction
    0:42 - Components Required
    1:04 - Setting Up Development Environment
    1:58 - Hardware Connections
    2:20 - CODE Explanation
    4:36 - Uploading the CODE
    4:50 - Final Result and Demonstration
    This tutorial is perfect for beginners and enthusiasts alike, offering detailed explanations, step-by-step instructions, and code breakdowns. By the end, you'll have a functional IoT project that seamlessly integrates various components and functionalities, enhancing your skills in both hardware and software development.
    If you're excited to delve into the world of ESP8266 NodeMCU, NTP clients, OLED displays, and time-based automation, don't forget to give this video a thumbs up and subscribe for more insightful tutorials. Feel free to connect with us on our social media platforms for updates and inquiries.
    🌐 Connect with us:
    Website: www.maisonup.in
    Email: admin@maisonup.in
    #ESP8266NodeMCU #NTPClient #OLEDTimeDisplay #TimeBasedAutomation #IoTProject #ArduinoTutorial

ความคิดเห็น • 9

  • @MrBobWareham
    @MrBobWareham 7 หลายเดือนก่อน

    Very nice project I am going to copy your project for my bedside table, very handy, so thank you very much for your time and effort and sharing your code, Bob in the UK

    • @MaisonUp4049
      @MaisonUp4049  7 หลายเดือนก่อน

      Glad it was helpful!

    • @MrBobWareham
      @MrBobWareham 7 หลายเดือนก่อน +1

      Thanks for your video I made it, and it worked very well it now sits by my bedside table,
      I just got to set up the alarm function, but do wish it was a bit larger the display is so small, thanks Bob @@MaisonUp4049

  • @itzikamar7659
    @itzikamar7659 8 หลายเดือนก่อน +1

    Hi thanks for the great tutorial
    i have delay of 2 hours ahead.
    can i change somthing to get the Exact time.
    thanks

    • @MaisonUp4049
      @MaisonUp4049  8 หลายเดือนก่อน +1

      If you want to set a time zone that is 2 hours ahead of UTC, you'll need to adjust the UTC offset accordingly in the code. Since you're ahead of UTC, you subtract the offset. 2 hours would be equivalent to 7200 seconds (2 * 3600 seconds). Here's the line of code with the UTC offset adjusted for a time zone that is 2 hours ahead of UTC:
      Replace the existing line:
      timeClient.setTimeOffset(19800); // UTC offset in seconds (19800 seconds = UTC+5:30) with timeClient.setTimeOffset(-7200); // UTC offset in seconds (2 hours ahead of UTC)
      Feel free to reach out for further questions..

    • @czapatasv
      @czapatasv 4 หลายเดือนก่อน

      Fantastic code, thaks a lot for sharing, maybe in the near future you can weather also, but at this moment is a great job from yours, mery christmas @@MaisonUp4049

  • @kerrytobias8753
    @kerrytobias8753 4 หลายเดือนก่อน +1

    Very nice project by chance can you assist me with changing the UTC to central standard time i believe it is -6 I did try but no joy. Respectfully Kerry

    • @czapatasv
      @czapatasv 4 หลายเดือนก่อน +1

      I follow the recommendation, so my case is equal like you (using GMT-6), the line code change for this one: timeClient.setTimeOffset(-21600); //ofset -6 x 3600, and after 1 min is sync

    • @MaisonUp4049
      @MaisonUp4049  3 หลายเดือนก่อน

      Glad we could help :)