How to use Arduino Real Time Clock module with DS1302 chip

preview_player
Показать описание
In this video, I'm going through the basics of how you can connect and interface a Real-Time Clock (RTC) module based on the DS1302 IC with Arduino.

A Real-Time Clock, or RTC for short, is an integrated circuit that keeps track of time. It uses a backup battery to maintain time in the event that the main power source is removed.

Additionally, I go over the principle of operation of this chip and why it is required in certain types of projects where time tracking is vital.

The code used in this example can be found in the Instructable for the project:

The library used in the example is Rtc By Makuna

Tools and materials used in this video:

Alternate links on Banggood:

Support my work on Patreon so I can continue producing free content and tutorials!

My recording gear:

How to use Arduino Real Time Clock module with DS1302 chip
#arduino #rtc #realTimeClock #electronics #tastethecode

Get exclusive Taste The Code t-shirts and merch at

Click on the link below to get two months of free premium access to Skillshare and start learning today!

Get $50 off your order on hosting for all of your website needs and learning projects on Dreamhost!
Рекомендации по теме
Комментарии
Автор

This is very well explained, thank you. But I am wondering - you said the battery is being (trickle)charged (0:45). The battery you are using is not rechargeable. Could that be a problem?

krisr
Автор

this one help me creat a real time clock module using RTC thank you

AminahAbdi
Автор

At 10:03, in the serial monitor, a load of junk appears on line 3. What and why is that?

jonathanmitchell
Автор

Great information and nice work. New subscriber

GoodVibesToUsAll
Автор

I hve problem. I first upload the code using cable. Then i unplug it and using battery 9v to it. Btw mine use arduino uno. It doesnt updatind new time. Example i run on 9.00 (10/6/2023) and when i unplug and connect the battery at 10.00 the same day it just show the 9.00am one not the updating

mkcun
Автор

Is there a way to use a battery instead of cable to power source?

Filo-qnpj
Автор

Hi, is there a way to get the day of the week?

Francesco-buhh
Автор

Tambahan program untuk lcdnya bagaimana ya bg?

dwikiadityairfan
Автор

Apakah RTC 1302 bisa terhubung dengan esp 32 cam untuk penjadwalan pengambilan photo dan dikirimkan ke telegram jika bisa menggunakan pin yang mana mohon bantuannya

agilalfarizal
Автор

Hello Bill from South Africa and my sons do online racing I am interested in developing a gearshift device which they can use as a gear shifter on either side of their steering wheels. They currently use ordinary switches but the more complex wheels use Hall Sensors. How can i get more in touch with you to possibly help me to change the switches out for Hall sensors

Equalizer-ZA
Автор

ci sono siti che danno data ora e minuti

Thebasicmaker
Автор

I tried this with my ds 1302. It returns
19/80/2091 44:127:1 +
RTC lost confidence in the DateTime!
data read (20) = "⸮G
Do you know why this happens?

Gold-