Тёмный

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

Volos Projects
Подписаться 96 тыс.
Просмотров 7 тыс.
50% 1

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

Наука

Опубликовано:

 

29 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 68   
@TimHayward
@TimHayward 2 месяца назад
I think the RU-vid algorithm just hasn't caught on to this series yet. Please keep it up.
@VolosProjects
@VolosProjects 2 месяца назад
I hope, thank you Tim.
@lohikarhu734
@lohikarhu734 2 месяца назад
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 2 месяца назад
Thank you, i always think that my videos are too long, it is nice to see comment like yours. Thank you.
@daytona1212
@daytona1212 2 месяца назад
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.
@teebeeonline
@teebeeonline 2 месяца назад
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.
@Chiavaloni
@Chiavaloni 2 месяца назад
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... 🤣
@VolosProjects
@VolosProjects 2 месяца назад
Hahah, i love it😀
@craigflorin1071
@craigflorin1071 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 2 месяца назад
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.
@VolosProjects
@VolosProjects 2 месяца назад
Thank you Roger, i will not give up :)
@morpheon_xyz
@morpheon_xyz 2 месяца назад
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 🙌
@edriobranco
@edriobranco 2 месяца назад
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.
@VolosProjects
@VolosProjects 2 месяца назад
Thank you! Next week :)
@snoopdoc
@snoopdoc 2 месяца назад
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!
@VolosProjects
@VolosProjects 2 месяца назад
Totally agree! Tnx .
@georgekroonder6655
@georgekroonder6655 2 месяца назад
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!
@VolosProjects
@VolosProjects 2 месяца назад
Tnx my friend.
@Androidzombie1
@Androidzombie1 2 месяца назад
this is really good, i've been looking for small mini projects like this just to learn the ESP32 more :)
@VolosProjects
@VolosProjects 2 месяца назад
Glad I could help!
@HG-Pilot
@HG-Pilot 2 месяца назад
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
@casualweekday-ytshadowbang2469
@casualweekday-ytshadowbang2469 2 месяца назад
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
@williamna5800
@williamna5800 2 месяца назад
My comment in the comments since commentary and commitment reduce confusion in this community.
@tubeDude48
@tubeDude48 2 месяца назад
Newest version is quite stunning compared to the last version. I like the rounded edge of the digits!
@aburfitt
@aburfitt 2 месяца назад
Keep them coming. These are great.
@TheIronHeadRat
@TheIronHeadRat 2 месяца назад
Thanks for sharing 👍
@VolosProjects
@VolosProjects 2 месяца назад
Thanks for watching
@guililuize585
@guililuize585 22 дня назад
Thank you!
@AlexVitoriano
@AlexVitoriano 2 месяца назад
Amazing content as usuall. Thanks to share!
@VolosProjects
@VolosProjects 2 месяца назад
Glad you enjoyed it!
@easypowerwall
@easypowerwall 2 месяца назад
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.
@wpherigo1
@wpherigo1 2 месяца назад
I think it’s a great series.
@VolosProjects
@VolosProjects 2 месяца назад
thank you :)
@davidgriffin79
@davidgriffin79 Месяц назад
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.
@limtbk
@limtbk 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).
@Bravo_L
@Bravo_L 2 месяца назад
Youre amazing! Ty volos!
@VolosProjects
@VolosProjects 2 месяца назад
Than you.
@FrankGraffagnino
@FrankGraffagnino 2 месяца назад
don't gauge success by number of views... measure success by whether or not you enjoyed making it. that's all that matters.
@VolosProjects
@VolosProjects 2 месяца назад
Thank you Frank, you are right. :)
@ighor
@ighor 2 месяца назад
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 2 месяца назад
Coffee ☕ on the way!
@VolosProjects
@VolosProjects 2 месяца назад
Thank you :)
@lohikarhu734
@lohikarhu734 2 месяца назад
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!
@avr_stm_pro2955
@avr_stm_pro2955 2 месяца назад
Thanks 👍
@VolosProjects
@VolosProjects 2 месяца назад
Thank you too
@montechristosmonty3561
@montechristosmonty3561 2 месяца назад
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!
@henrybecker2842
@henrybecker2842 2 месяца назад
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 2 месяца назад
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 2 месяца назад
@@VolosProjects You are very welcome. With that knowledge, I agree that 7200 seconds, perhaps every every 3600 seconds is a good idea
@johndoggett3324
@johndoggett3324 2 месяца назад
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 2 месяца назад
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 2 месяца назад
thats great idea, thank you
@user-dx3gt2dp7f
@user-dx3gt2dp7f 2 месяца назад
​@@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 2 месяца назад
@@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.
@WagonLoads
@WagonLoads 2 месяца назад
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 2 месяца назад
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 2 месяца назад
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 2 месяца назад
@@VolosProjects I think you've figured out why it's cheap 😜
@JanDahl
@JanDahl 2 месяца назад
@@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.
@sergerobitaille2214
@sergerobitaille2214 2 месяца назад
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 2 месяца назад
Hm, i heard that new modems ,5g modems sometimes cousing problems.
@sergerobitaille2214
@sergerobitaille2214 2 месяца назад
@@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.
@lohikarhu734
@lohikarhu734 2 месяца назад
. might take a few days for people to catch up with you!
@sp7udb
@sp7udb 2 месяца назад
Can't compile: exit status 1 'ledcSetup' was not declared in this scope How to repair?
@VolosProjects
@VolosProjects 2 месяца назад
Go to board manager, your esp32 boards are probably updated to 3.0 version, downgrade it to version less than 3
@sp7udb
@sp7udb 2 месяца назад
@@VolosProjects now everything works OK. Thanks
@newtlab
@newtlab 2 месяца назад
0:08 Interesantno je ,nego RU-vid ima svoju logiku, za godinu dana češ videti
@VolosProjects
@VolosProjects 2 месяца назад
vidjet cemo da, hvala na komentaru.
Далее
Customize Your ESP32 LCD with Any Font Imaginable
14:49
Kettim gul opkegani😋
00:37
Просмотров 1,6 млн
ESP32 OBD2 Gauge #ep2
3:16
Просмотров 34 тыс.
I tried finding Hidden Gems on AliExpress AGAIN AGAIN!
13:01
I found PERFECT display
51:32
Просмотров 557 тыс.
Telefonu Parçaladım!😱
0:16
Просмотров 27 млн