Getting Started | Real-Time Clock vs. NTP Tracking Time w/ Arduino & ESP32 (DS3231 RTC) | BRK-00026

preview_player
Показать описание
• Your support helps me post videos more frequently:
BTC: 1ZpLvgETofMuzCaKoq5XJZKSwe5UNkwLM
==========
• Find me on:
==========
• My shops:
==========
• Description:
This is a getting started series for the products found on my online shops!
In this video, we setup a DS3231 real-time clock (a higher precision version of the DS1307) to keep track of time using an Arduino Uno and an ESP32 development board:
Real-Time Clocks allow us to easily and accurately keep track of seconds, minutes, hours, week, date, month and year information. They're typically used for time-stamping sensor data while it's being logged. Using an external (CR2032 coin cell) battery, the RTC is able to keep tracking time even when it loses power.
==========
• Related vids:
==========
• Project parts:
ACROBOTIC Development Boards for ESP32:
ACROBOTIC DS3231 RTC Real-Time Clock Breakout Board:
==========
• Project code:
Arduino Library for the DS3231: Available through Tools – Manage Libraries... – RTClib
Arduino Library for getting time data from an NTP server: Available through Tools – Manage Libraries... – NTPclient
==========
• Music:
==========
#Arduino #RTC #ESP32
Рекомендации по теме
Комментарии
Автор

nice one actually i was using ds3231 lib it self but i always had problems with ntp sync
like there is a part which people need to sync their time with ntp instead of time on the device i leave the function below for those who need it:
void SyncTime()
{
struct tm timeinfo;
if (!getLocalTime(&timeinfo)) {
Serial.println("Failed to obtain time");
return;
}
Serial.println(&timeinfo, "%A, %B %d %Y %H:%M:%S");
//rtc.adjust(DateTime(year, month, day, hour, minute, second));
+ 1900, timeinfo.tm_mon + 1, timeinfo.tm_mday, timeinfo.tm_hour, timeinfo.tm_min, timeinfo.tm_sec));
}

TheAlibigdeli
Автор

Great Video! I believe ESP32 has an inbuilt RTC available in it. Can you we use the ESP32- RTC to get time data and will it work properly if we provide battery power without interruption for ESP32? (Anyone have tried it, please let me know as well) Thanks in advance

praveenraj
Автор

Phineas: "Ferb, I know what we're gonna do today!"


Cisco: "Allright! Let´s do this!"


Tnx! Just perfect, as allways!

muctop
Автор

Can I use the rtc lib with the RV3032 rtc? I dont find any lib for that one :(

SophiaCoffee_Mindest
Автор

Nice video. Thanks!
What I'm looking for - is the complete solution: To connect to the NTP server (Maybe using the NTPclient example that comes with the ESP8266 basic library, using simple UDP communication), and use its input to update the DS3231 module - so also when off-line the time will stay correct.
Would you please make "Part 2" Video with this complete proccess?
Many thanks!

Dvir
Автор

Estou usando uma esp 8266, quais pinos se usa?

dniellobodesousa
Автор

Nice! Thank you! What I was looking for!

andrasparanici
Автор

Would this board be good to trigger a wake up interrupt? If I wanted to put a device into deep sleep (like a weather sensor) and have it awake could this do it? What's the battery life on this? Thank you

rgmtb
Автор

muy bueno el video .y la camiseta de maradona

jorgeDeveloper
Автор

Hey, love the vid! Can you make a tutorial on making a esp8266 remote controll for a rc projects like a rc car

imottofeivel