ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

#139

real time clock

RTC

esp8266 rtc

NTP

ntp servers

Time Server

ntp time

Date Time

wemos d1 mini

wemos d1 mini project

internet of things

programming

Wemos

C++

esp8266 projects

microcontrollers

electronics

Beginners

Arduino

gadgets

LCSC Electronics

Автор: Ralph S Bacon

Загружено: 2019-03-29

Просмотров: 23069

Описание: I need to know the date & time for my project - but no DS3231 RTC (Real Time Clock) module is required.

More Asian Brands Lower Price http://lcsc.com
Sponsored by LCSC Electronics - More Asian Brands, Lower Prices, 4 Hours Ready for Shipping

All this and more in my Github:
https://github.com/RalphBacon/No-Real...

So my current Home Alone project requires the Date and Time to work properly. I immediately ordered a small RTC shield for my Wemos D1 mini - only to quickly realise I should not have bothered as I can get the date and time very accurately from a Network Time Protocol server and keep a local, accurate clock that drifts very infrequently thanks to a wonderful library, courtesy of Arduino.cc

And the local clock can be updated every so often by another call to the NTP pool, perhaps once a day or so.

Works like a dream. Even better, should the call to the NTP fail there is no need to panic. Eventually, it will resync and all will be well again.

Here we dive deep into the simple C++ code that is required to do all this with the help of a couple of libraries.

In a future video, I'll show you how you can convert the UTC (universal coordinated time) to local time. Easy to do, and works worldwide.

Links (these may be affiliated which means that they might help my channel at no cost to you)

Wemos D1 Mini ESP8266 One is cheap but better value if you get 3 or 5. Also check out the different warehouses, in USA, CN and UK.
https://www.banggood.com/Wemos-D1-Min...

What I'm using for parameter and data, a micro SD card shield:
https://www.banggood.com/3Pcs-WeMos-M...

A power shield so you can it from a 7-12v supply (but the 5v phone charger on the ESP8266 board works too):
https://www.banggood.com/3Pcs-WeMos-D...

All about the NTP protocol:
https://tttapa.github.io/ESP8266/Chap...

List of all ports in use:
https://en.wikipedia.org/wiki/List_of...

More on time zones (I will implement this in my project code):
https://github.com/JChristensen/Timezone

If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey!

My channel and blog are here:
------------------------------------------------------------------
   / ralphbacon  
https://ralphbacon.blog
------------------------------------------------------------------

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
#139

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]