Thanks Kevin, this is another great reference video for future use. I like the details you include as they are essential to work on a project like this.
Absolutely amazing video. Thank you. The only best video I've found for using the Arduino with this particular chip. All other videos simply use the standard DS1307 module. I don't want to use that because where I'm from, an original part costs a kidney and an eye.
If you just want to wake up the Arduino sometimes, but don't care about the exact time, then you can do this without the RTC(C). There is a limit to the amount of time you can make the Arduino sleep, but you can just make it sleep again immediately if there is no action to be taken.
Hello Kevin There is a one arduino board that has a RTC build on board well it has a 32khz crystal on it. Te arduino zero pro Which i used recently i been using it as a RTC clock for 2 months now and have only lost about 20 seconds of time. that chip alone is only 2.95 then you need the crystal for it and other little parts so maybe around 4 dollars for all. But it does make a good RTC clock chip and cheap too.
just found this. Awesome content! I will totally be using this in an upcoming project. quick q- Why would you subtract 48 and not add in regards to the ascii table?
Why do you convert the raw data (which is stored in BCD) to decimal (actually you're converting it to binary). An example is if you don't convert it you can display the value of seconds with the command "Serial.print(rtcSeconds, HEX)" instead of "Serial.print(rtcSeconds)" and save a few lines of code.
Prewritten library hides a lot of stuff that you otherwise wouldn't see/implement yourself. To learn how to extract data, format it and use it however you want is the skill every engineer needs. Cheers!!
I meant if the battery is drained from the circuit while the circuit is supplied from an external source. I'm not a moron. Calm down turbo (therealnightwriter).
As said by Peter, RTCs draw little to no current. Depending on the power circuitry, some devices can disable battery drain while powered externally. With an RTC, I wouldn't worry much about battery drain; they can run a few decades to centuries on one battery.
At the risk of sounding stupid, what is wrong with using the DS1371 boards that are so cheap and readily available (~$USD 0.50)? I don't see any difference in performance. Do any of you?
Excellent tutorial as always Kevin. We've been using the DS3231 RTC's for quite a while now: edwardmallon.wordpress.com/2014/05/21/using-a-cheap-3-ds3231-rtc-at24c32-eeprom-from-ebay/ The eeprom that usually comes with the DS was my initial reason for going with that RTC, and this made me curious what drew you to the MCP7940?
They made a comparison of DS3231, PCF8563, MCP79400, DS1307 accuracy. DS3231 is the winner. switchdoc.com/2014/12/benchmarks-realtime-clocks-ds3231-pcf8563-mcp79400-ds1307/
Man, please never ever stop making these videos.
Thanks Kevin, this is another great reference video for future use. I like the details you include as they are essential to work on a project like this.
Absolutely amazing video. Thank you. The only best video I've found for using the Arduino with this particular chip. All other videos simply use the standard DS1307 module. I don't want to use that because where I'm from, an original part costs a kidney and an eye.
great video, very detailed and very understandable, thanks Kevin keep doing this great job.
I know I'm very late to the party but damn that's excellent work! Keep it up, PLEASE!
If you just want to wake up the Arduino sometimes, but don't care about the exact time, then you can do this without the RTC(C). There is a limit to the amount of time you can make the Arduino sleep, but you can just make it sleep again immediately if there is no action to be taken.
Hello Kevin There is a one arduino board that has a RTC build on board well it has a 32khz crystal on it. Te arduino zero pro Which i used recently i been using it as a RTC clock for 2 months now and have only lost about 20 seconds of time. that chip alone is only 2.95 then you need the crystal for it and other little parts so maybe around 4 dollars for all. But it does make a good RTC clock chip and cheap too.
Excellent tutorial, thank you!
Thanks for these great videos !
welcome back its amazing video thanks
Very detailed video. Thank you
just found this. Awesome content! I will totally be using this in an upcoming project. quick q- Why would you subtract 48 and not add in regards to the ascii table?
Great work Kevin!
I've had enough of the DS1307 and its quirks. I'm looking for a good alternative, and this looks very promising.
Why do you convert the raw data (which is stored in BCD) to decimal (actually you're converting it to binary). An example is if you don't convert it you can display the value of seconds with the command "Serial.print(rtcSeconds, HEX)" instead of "Serial.print(rtcSeconds)" and save a few lines of code.
is it possible to code multiple schedules of alarm each with its own output pins of the arduino board?
Would these steps and info work with the RTC DS1302 chip?, i mostly have problems with mine now..
That's a nice little chip. So long Maxim ;)
would the code work with th ds 1307 rtc . if not please can you adjust it .
most of the code i cant understand
Great Video, Nice find, Thanks .
sir can you make a video that synchronize 2 clock by obtaining time stamp from gsm sim card
you are amazing!
Nice video (: I found it working for mcp79410 also (: what is the difference between these to RTC's? (:
Great video. But why do you need include wire.h library in your code when that library is already built in Arduino?
Prewritten library hides a lot of stuff that you otherwise wouldn't see/implement yourself. To learn how to extract data, format it and use it however you want is the skill every engineer needs. Cheers!!
does it take leap years and leap seconds into account?
Do you know if the battery drains from the circuit while it is connected?
I meant if the battery is drained from the circuit while the circuit is supplied from an external source. I'm not a moron. Calm down turbo (therealnightwriter).
The datasheet says that the battery supply is disabled when Vcc is above 1.5V (+/-0.2V), but with 3V on Vbat, current draw is only 1.2uA.
As said by Peter, RTCs draw little to no current. Depending on the power circuitry, some devices can disable battery drain while powered externally. With an RTC, I wouldn't worry much about battery drain; they can run a few decades to centuries on one battery.
A CR2032 has roughly 225mAH capacity. An RTC drawing 1.2uA, 24 hours a day would last for 21 years.
At the risk of sounding stupid, what is wrong with using the DS1371 boards that are so cheap and readily available (~$USD 0.50)?
I don't see any difference in performance. Do any of you?
The link for the mcp7940N is "dead"..... Where would one get a hold of it.
link is good, but depending on country, may not be available through digikey. Just search for MCP7940N - should be able to find the IC
JC, 35 minutes for a RTC? WTH were you doing? :)
lol, sit back and enjoy the show
Thank you for the length... This is informative and useful!
Excellent tutorial as always Kevin. We've been using the DS3231 RTC's for quite a while now:
edwardmallon.wordpress.com/2014/05/21/using-a-cheap-3-ds3231-rtc-at24c32-eeprom-from-ebay/
The eeprom that usually comes with the DS was my initial reason for going with that RTC, and this made me curious what drew you to the MCP7940?
They made a comparison of DS3231, PCF8563, MCP79400, DS1307 accuracy. DS3231 is the winner. switchdoc.com/2014/12/benchmarks-realtime-clocks-ds3231-pcf8563-mcp79400-ds1307/
Will this clock adjust to time changes. I want to put it in a device, but idk how to update it if I seal it up