3 Minute Code with Volos : ESP32 RTC , Simple Internet Clock (ep4)

Sdílet
Vložit
  • čas přidán 9. 06. 2024
  • In this video, we will talk about the built-in RTC chip that is included in every ESP32 microcontroller.
    This RTC is easy to use but it's not the most accurate clock in the world. After a few days,
    the time on this built-in RTC noticeably lags behind.
    I have used this method many times, but I have never explained it properly. So, the method we use is to
    connect our ESP32 to the internet every few hours, fetch the exact time, and set the built-in clock.
    🛠️HERE is code: github.com/VolosR/InternetClock
    RTC lib: github.com/fbiego/ESP32Time
    Time Zone Map: www.timeanddate.com/time/map/
    Board used in tutorial!
    LilyGo T-Display S3: www.lilygo.cc/0cAg0r
    ☕️ Support me on:
    KO-FI ko-fi.com/volosprojects
    PATREON: / volosprojects
    #esp32 #Arduino #clock #rtc
  • Věda a technologie

Komentáře • 67

  • @TimHayward
    @TimHayward Před 27 dny +28

    I think the CZcams algorithm just hasn't caught on to this series yet. Please keep it up.

  • @lohikarhu734
    @lohikarhu734 Před 27 dny +7

    I *really* like the way you slowly walk through everything, enough time to really see what functions, libraries, and so on... great! Too many presenters go through as fast as they can type, or select an on- screen menu item...you speak carefully and give enough time to see what's going on!
    Dobro!

    • @VolosProjects
      @VolosProjects  Před 27 dny

      Thank you, i always think that my videos are too long, it is nice to see comment like yours. Thank you.

  • @teebeeonline
    @teebeeonline Před 27 dny +5

    I also have a clock but in multiple time zone, most of the code and fonts are copied from your examples. 😊cheers! I am very thankful that you share your design and examples for us.

  • @daytona1212
    @daytona1212 Před 27 dny +5

    Super. Thank you for explaining the code, and the code itself. It would have been great if the dots above the time were seconds appearing one after another, untill 60 and start over again.

  • @craigflorin1071
    @craigflorin1071 Před 24 dny +2

    I love this series. I am working it with the older TTGO with a 135 x 240 pixel display and then adjusting the graphics to fit. I have incorporated what I learn from your videos into other projects. This specific video led me eliminate an external RTC I was using to timestamp a data stream that I capture and store.

  • @rogerthomas7040
    @rogerthomas7040 Před 26 dny +1

    Please don't give up on you coding videos, the viewer count will be lower as fewer people are going to own the device you are doing a complete example for when compared to the number of people who will watch a more review like video of a device.
    I now have a S3 board because of your review/overview videos, so having access to coding examples is a great help.

  • @morpheon_xyz
    @morpheon_xyz Před 12 dny

    This video definitely is helpful because I'm considering getting the Lilygo T Watch, so this would help a lot for writing code for it because my smart watch is starting to give me problems, so please continue the videos and tutorials you're making, because you are the reason I came across displays and devices that suit my projects, and you're one of the very few to do complete code with examples for how to write code for these boards. Keep it up 🙌

  • @Chiavaloni
    @Chiavaloni Před 27 dny +6

    I did a "keychain" with this LillyGo, by ESP NOW (there's a ESP32 DEVKIT controling the "car"), to control door locks, power windows, alarm, headlights and so, for my 1981 Ford Corcel. It's a "charm" the old rusted car with a color "keychain" control... 🤣

  • @edriobranco
    @edriobranco Před 27 dny +1

    Yes, the series is great, it helps to understand several past codes. Do 3 minutes showing how to monitor the battery with this board and how to control the buttons. Thanks.

  • @georgekroonder6655
    @georgekroonder6655 Před 27 dny +1

    Hi Volos, I also very much appreciate this series. I haven’t watched them all, but I like that you go more in depth and explore specific use cases.
    I believe thiamin’s really useful!
    Keep up te good work!

  • @snoopdoc
    @snoopdoc Před 26 dny

    I think the format is great for people that have a basic foundation of understanding, but just need a little nudge in the right direction. Also great for inspiration. Would love to see more on gauges, dials, and meters!

  • @Androidzombie1
    @Androidzombie1 Před 27 dny

    this is really good, i've been looking for small mini projects like this just to learn the ESP32 more :)

  • @aburfitt
    @aburfitt Před 12 dny

    Keep them coming. These are great.

  • @tubeDude48
    @tubeDude48 Před 27 dny +1

    Newest version is quite stunning compared to the last version. I like the rounded edge of the digits!

  • @casualweekday-ytshadowbang2469

    Time can be pretty complex because, for example:
    - Daylight Saving Time
    - Periods for DST may vary depending on the country
    - There exist exceptions where the difference is only 30 minutes

  • @TheIronHeadRat
    @TheIronHeadRat Před 27 dny +2

    Thanks for sharing 👍

  • @HG-Pilot
    @HG-Pilot Před 27 dny

    Hi Volos, a great application for your work would be building gauges and instrument display for outboard marine motors using NMEA 2000 bus. There is a github library for open source NMEA2000 implementation.
    Using esp32 to take NMEA2000 data and display it on a screen or a web interface would be a project that can be easily marketed.
    Cheers,
    A

  • @AlexVitoriano
    @AlexVitoriano Před 27 dny

    Amazing content as usuall. Thanks to share!

  • @williamna5800
    @williamna5800 Před 26 dny

    My comment in the comments since commentary and commitment reduce confusion in this community.

  • @limtbk
    @limtbk Před 27 dny +2

    How do you handle daylight saving start/end? Do you just upload different version of firmware each 1/2 year, or you have solution for that case?
    PS: I have the same device in same case, and use it as clock with battery power (in case of blackout).

  • @davidgriffin79
    @davidgriffin79 Před 2 dny

    Interestingly, I've found that setting the wifi credentials declared as a string causes the compiler (ArduinoIDE) to throw up an error. If you declare the ssid and password variables as constant characters, the compiler is happy and the code works.

  • @wpherigo1
    @wpherigo1 Před 26 dny

    I think it’s a great series.

  • @montechristosmonty3561

    Thank you very much Volos for these videos. They really help and inspire
    While in the topic, I would be interested in waking up the ESP32 by an external RTC. Is this even possible?
    In your video with the e-paper display, you make the ESP32 sleep, but you wake it up by the internal RTC (I checked the code).
    Any directions to this would be appreciated. Keep up the great channel!

  • @Bravo_L
    @Bravo_L Před 24 dny

    Youre amazing! Ty volos!

  • @easypowerwall
    @easypowerwall Před 26 dny

    Keep up the good work. have channel about green energy and YT algorithm didn't picked up my channel either, but I keep posting new content.

  • @ighor
    @ighor Před 26 dny

    you'd better not use delay(1000) but measure the elapsed time of the previous loop() function call and run delay with the calculated value (which will be less than 1000). That way, you likely avoid the scenario where seconds aren't changed, so the display isn't stuck with a specific second value for 2 seconds.

  • @lohikarhu734
    @lohikarhu734 Před 27 dny +1

    Coffee ☕ on the way!

    • @VolosProjects
      @VolosProjects  Před 27 dny +1

      Thank you :)

    • @lohikarhu734
      @lohikarhu734 Před 12 dny

      My wife sees some funny little withdrawals from our bank account... Makes her a bit irritated, but, so geht es, c'est la vie, n'est pas, Dobro Dan!

  • @henrybecker2842
    @henrybecker2842 Před 27 dny

    I really enjoy and learn from these series. Thank you. Have you noticed how accurate the built in RTC is? Did you decide to synchronize after 7200 seconds because you noticed the RTC was drifting?

    • @VolosProjects
      @VolosProjects  Před 27 dny +1

      Thank you Henry for suporting my chanell for so long. I never tried build in rtc, but other people tested it and after 10 hours tike was 3 min off.

    • @henrybecker2842
      @henrybecker2842 Před 27 dny

      @@VolosProjects You are very welcome. With that knowledge, I agree that 7200 seconds, perhaps every every 3600 seconds is a good idea

  • @avr_stm_pro2955
    @avr_stm_pro2955 Před 27 dny

    Thanks 👍

  • @FrankGraffagnino
    @FrankGraffagnino Před 26 dny

    don't gauge success by number of views... measure success by whether or not you enjoyed making it. that's all that matters.

  • @johndoggett3324
    @johndoggett3324 Před 25 dny

    Really like the videos
    I tried this on an esp32 wroom with a round display and the time doesn't update, not sure what is happening

  • @user-dx3gt2dp7f
    @user-dx3gt2dp7f Před 24 dny +1

    It would be interesting if you could show us how to make a clock using an IPS display based on png/jpg images (loaded from a microSD or external links). That means unlimited customization.

    • @VolosProjects
      @VolosProjects  Před 22 dny

      thats great idea, thank you

    • @user-dx3gt2dp7f
      @user-dx3gt2dp7f Před 18 dny

      ​@@VolosProjects You can inspire from elekstube n4, nextube and other nixie ips fake displays. I can send you some ideas and files but I am not sure if your email address is that one with b2016.

    • @user-dx3gt2dp7f
      @user-dx3gt2dp7f Před 18 dny

      @@VolosProjects You can inspire from other nixie ips fake dispalys with NTP clocks.
      I can send you some ideas and files but I am not sure if your email address is that one with b2016.

  • @sergerobitaille2214
    @sergerobitaille2214 Před 24 dny

    I only get a orange screen on the display... looks like the WiFi bit is not connecting...I did put my SSID and password in the sketch...Any suggestion ?

    • @VolosProjects
      @VolosProjects  Před 23 dny

      Hm, i heard that new modems ,5g modems sometimes cousing problems.

    • @sergerobitaille2214
      @sergerobitaille2214 Před 23 dny

      @@VolosProjects Got it working on 2.4G but not connecting on 5G !
      Does the Lilygo T-Display S3 WiFi support 5G ?
      Thank you for your devotion...Your tutorial are essential and well made...I will buy you a coffee.

  • @WagonLoads
    @WagonLoads Před 27 dny

    I would like to find a RTC that I only need to set once every 2 or 3 years.. and
    has a register that says how many crystal ticks there is in a sec..
    If it had such a tick register,
    I could set it to run a 24 hour day as (24h 0m 0s Earth day)
    or set it to run a 24 hour day as (24h 37m 22.5s Mars day)
    Example, if I program it so that I say
    when the Mars Rover was centered between the horizons as seen from Earth, that would be noon on Mars...
    This something I would like to do...

  • @JanDahl
    @JanDahl Před 27 dny

    Maybe you'd get more attention if you used the Cheap Yellow Display too or instead? Thanks for the tutorial though. I'll use it as scaffolding for my project to have my daughter stop asking me how many days there are until her birthday 😊

    • @VolosProjects
      @VolosProjects  Před 27 dny

      Haha, thats nice project.... I tried cheap yellow display, hardware is litlle old and i ran on few problems becouse low psram, i am not sure i want to use it.

    • @JanDahl
      @JanDahl Před 27 dny +1

      @@VolosProjects I think you've figured out why it's cheap 😜

    • @JanDahl
      @JanDahl Před 27 dny

      @@VolosProjects As for the project, I might just add an array of "important dates" and either cycle through them over time/clicks or just use your previous table tutorial to display them.

  • @sp7udb
    @sp7udb Před 22 dny

    Can't compile: exit status 1
    'ledcSetup' was not declared in this scope
    How to repair?

    • @VolosProjects
      @VolosProjects  Před 21 dnem +1

      Go to board manager, your esp32 boards are probably updated to 3.0 version, downgrade it to version less than 3

    • @sp7udb
      @sp7udb Před 21 dnem

      @@VolosProjects now everything works OK. Thanks

  • @lohikarhu734
    @lohikarhu734 Před 27 dny

    . might take a few days for people to catch up with you!

  • @newtlab
    @newtlab Před 27 dny

    0:08 Interesantno je ,nego CZcams ima svoju logiku, za godinu dana češ videti