RTC (Real Time Clock) with Arduino - Low Cost MCP7940N

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024

Комментарии • 43

  • @jotchava
    @jotchava 7 лет назад +6

    Man, please never ever stop making these videos.

  • @garthhowe297
    @garthhowe297 7 лет назад +2

    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.

  • @regal_7877
    @regal_7877 3 года назад

    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.

  • @alekovar
    @alekovar 6 лет назад +1

    great video, very detailed and very understandable, thanks Kevin keep doing this great job.

  • @vonries
    @vonries 5 лет назад

    I know I'm very late to the party but damn that's excellent work! Keep it up, PLEASE!

  • @rondlh20
    @rondlh20 7 лет назад

    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.

  • @DiyintheGhetto
    @DiyintheGhetto 7 лет назад

    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.

  • @kieranj67
    @kieranj67 6 лет назад +1

    Excellent tutorial, thank you!

  • @abdulazeez.98
    @abdulazeez.98 7 лет назад +2

    Thanks for these great videos !

  • @Bruder_chill
    @Bruder_chill 7 лет назад

    welcome back its amazing video thanks

  • @aneeshkola5170
    @aneeshkola5170 Год назад

    Very detailed video. Thank you

  • @AlleyBeachElectric
    @AlleyBeachElectric 5 месяцев назад

    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?

  • @gribley48
    @gribley48 7 лет назад

    Great work Kevin!

  • @nrdesign1991
    @nrdesign1991 7 лет назад

    I've had enough of the DS1307 and its quirks. I'm looking for a good alternative, and this looks very promising.

  • @george8bitsworth
    @george8bitsworth 7 лет назад +1

    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.

  • @mnunez6153
    @mnunez6153 7 лет назад

    is it possible to code multiple schedules of alarm each with its own output pins of the arduino board?

  • @Tapperje16
    @Tapperje16 7 лет назад

    Would these steps and info work with the RTC DS1302 chip?, i mostly have problems with mine now..

  • @GeorgeGraves
    @GeorgeGraves 7 лет назад

    That's a nice little chip. So long Maxim ;)

  • @kemoomotivation9266
    @kemoomotivation9266 7 лет назад

    would the code work with th ds 1307 rtc . if not please can you adjust it .
    most of the code i cant understand

  • @pontiac60001987
    @pontiac60001987 6 лет назад

    Great Video, Nice find, Thanks .

  • @reshadrei1788
    @reshadrei1788 3 года назад

    sir can you make a video that synchronize 2 clock by obtaining time stamp from gsm sim card

  • @michaellove7912
    @michaellove7912 2 года назад

    you are amazing!

  • @rasmushaun1773
    @rasmushaun1773 5 лет назад

    Nice video (: I found it working for mcp79410 also (: what is the difference between these to RTC's? (:

  • @DuongTrongHue
    @DuongTrongHue 7 лет назад

    Great video. But why do you need include wire.h library in your code when that library is already built in Arduino?

    • @kunalsalvi8382
      @kunalsalvi8382 4 года назад

      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!!

  • @deldarel
    @deldarel 7 лет назад

    does it take leap years and leap seconds into account?

  • @decompyler
    @decompyler 7 лет назад +1

    Do you know if the battery drains from the circuit while it is connected?

    • @decompyler
      @decompyler 7 лет назад +3

      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).

    • @Peter_S_
      @Peter_S_ 7 лет назад +2

      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.

    • @aaro1268
      @aaro1268 7 лет назад +1

      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.

    • @Peter_S_
      @Peter_S_ 7 лет назад +1

      A CR2032 has roughly 225mAH capacity. An RTC drawing 1.2uA, 24 hours a day would last for 21 years.

  • @pirateman1966
    @pirateman1966 7 лет назад

    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?

  • @MrEriksson25
    @MrEriksson25 7 лет назад

    The link for the mcp7940N is "dead"..... Where would one get a hold of it.

    • @Kevindarrah
      @Kevindarrah  7 лет назад

      link is good, but depending on country, may not be available through digikey. Just search for MCP7940N - should be able to find the IC

  • @rj44319
    @rj44319 7 лет назад +1

    JC, 35 minutes for a RTC? WTH were you doing? :)

    • @Kevindarrah
      @Kevindarrah  7 лет назад +8

      lol, sit back and enjoy the show

    • @decompyler
      @decompyler 7 лет назад +3

      Thank you for the length... This is informative and useful!

  • @edwardmallon4646
    @edwardmallon4646 7 лет назад

    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?

  • @AlexAwwesome
    @AlexAwwesome 6 лет назад

    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/

  • @BoredT-Rex
    @BoredT-Rex 9 месяцев назад

    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