DS1302 RTC with arduino tutorial

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • In this video, we learn how to use DS1302 RTC (Real Time Clock) with Arduino the simple way.
    You can support us and unlock premium projects code by joining our membership by clicking the link below:
    / @miliohm
    You can download library and sketch here :
    miliohm.com/ds...
    Music :
    "LAKEY INSPIRED - Chill Day" is licensed under a Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
    Music provided by BreakingCopyright: • [Non Copyrighted Music...

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

  • @brianmudd9631
    @brianmudd9631 2 года назад +4

    Thank you sooooo much. I have tried many DS1302 libraries with little to no success. Yours not only works well but is also considerably smaller and very easy to understand.

  • @JerryEricsson
    @JerryEricsson Год назад +1

    WOW, after 2 days of pulling out my ever dwindling hair over getting this module set up to work, I find your library and sketch. Then after reading how to set the time, I have a WORKING MODULE!! You have come to my rescue, and are, at least for today, My hero!! Thanks for sorting this out for me! Now on with the build!

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

    After trying out all libraries from Arduino IDE library manager, only virtuabotixRTC you introduced in your video works. Thanks. One point to share with others reading this post. I can only read the time accurately when I also connect the GND pin to my Arduino board. Vçc pin is not necessary.😅

  • @fabianralph5472
    @fabianralph5472 11 месяцев назад +1

    2023, time goes fast, increases by 6 seconds for 1 second IRL

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

    wow thanks alot ....after so much time been looking for the solution

  • @derekbrookes9497
    @derekbrookes9497 3 года назад +3

    Hi, great video and easy to follow, but when the arduino is unplugged and then plugged back in the rtc starts counting from the values set with myRTC.setDS1302Time() can't you use something like "now" so that the time does not reset or take the time which is on the rtc

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

      You should pay attention to the video. It should commented once it uploaded.

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

      @@miliohm yes I saw it the second time around - comment out the set date ok thanks

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

    I just have the DS1302 alone (Not in a module) how can i connect it to my arduino UNO? And the link for downloading the library is not wotking

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

    I want to integrate the ds1302 module with the max7219 dot matrix module and see the words and numbers written in the serialmonitor section over the dot matrix. what should i do? can you help me?

  • @cosanostra-9949
    @cosanostra-9949 2 года назад +1

    Thanks for tutorial. I have a question about issue with not remember time after some day. Battery is alright = 3,1 V. It's working okay, but after some day it is reset and go back to Current Date / Time: 00/00/2000 00:00:00 and then starting count again, but not time what it was set up during upload. Thanks for advice!.

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

    hello, may I know when the start of the day starts? is it saturday? so if my day right now is friday, I'm gonna put 7?

  • @Apsr99
    @Apsr99 3 месяца назад

    Do this code work's in esp bords?

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

    im trying to get the olsed to work but all tutorials wont have rtc or wont have oled display im stuck

  • @KL-fq7wn
    @KL-fq7wn 2 года назад

    can this code support auto adjust for DST - day light saving?

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

    Hi friend, you know. I have a problem with DS1302 module. Time is set at 01/ENE/2000 00:00 (suddenly) I mean, it works well for many days, if energy turn off, time is ok when energy turn on againg. You may think that the battery is not working right (less voltage than 3 V), however, battery is ok. The problem happends in every module I have. Have you heard about this problem with DS1302 module? . Thanks

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

      Did you already erase the line where the code set the time at setup?

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

      @@miliohm yes friend, i mean, im not using your example, because i know how to use the ds1302.
      My proyect works, the problem is that after das the ds1302 set 1 ene 2000

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

      @@wayne5x im not sure why, never faced the same problem.

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

      @@miliohm ok bro, thanks.

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

    Sorry but the library didn't work! I went in the library manager,
    searched for RTC by Makuna and opened File>Examples>Rtc by Makuna
    compiled and it ran just great. I am surprised that not much people are having problem to compile it correctly...
    I connected it on an Arduino Nano.

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

    how to connect to the metrix display and whats the code for that

  • @IcyUuUu
    @IcyUuUu 3 года назад +1

    my guy!!! Solid video

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

    its good but i have a question u are working with an ardoino mega does it work with a ardoino uno ?

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

      No, it's arduino Uno. But this will works on mega and nano too

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

      I am using a Leonardo right now and it works fine.

  • @Faizan-r1h
    @Faizan-r1h 17 дней назад

    how to use RAM memory of this chip?

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

    hats off to you mate, it worked.

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

    can you use time lib, to setup 1302?

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

    Can I store counter data to external rtc module?

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

    if the battery runs out? what happen need to re-upload the coding everytime ????

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

      one more question, if its battery is dead. i need to update the time. how to do the user input ??

  • @TechnoEveryday
    @TechnoEveryday 2 года назад +1

    🆒 Thank you so much for uploading this video.
    👍👍👍👍👍
    Sharing with community 🇵🇰

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

    How to use this with a sketch?
    To make a project work in real time by using this ?

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

    Hello, how are you? What happens is that the exercise does not help me since it stays at the time I assign it, would you help me?

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

      Did you comment the time settings after first upload? You need to do that.

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

    Hi, I have a problem with the serial monitor because the time is not updated and it always appears, could you help me, I would appreciate it very much

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

      Maybe you don't comment the set time. You should upload the code for second time but with set time commented. So it will not set time every starting up. You could watch more carefully

  • @Reliantification
    @Reliantification 4 года назад +1

    YOU ARE THE BEST THANK YOU IT WORKS

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

    We can use this deta aurdino uno

  • @goddess_ofchaos
    @goddess_ofchaos 3 года назад +1

    Wow, you've really helped me here thanks!

  • @AND.Ortega
    @AND.Ortega 3 года назад +1

    thanks for the video, could you connect it to a stepper motor on the next vedeo?

    • @miliohm
      @miliohm  3 года назад +1

      RTC with stepper? What for?

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

      @@miliohm lmao

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

    how do I download the file from github?

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

    wowo thanks a lot, know i understand about rtc

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

    Library ds3231 bsa buat ds1307 tdk?

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

      belum pernah coba, lebih baik pakai library yang sesuai saja.

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

    amazing really help alot subcribing

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

    i am having a problem, my time and Date is wrong 00:00:00 and 0/0/2000

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

      did you already set the time at setup?

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

    nggawe jam kikuk pie bang?
    nyuwun ilmune

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

      Jam kikuk nganggo Arduino?

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

      @@miliohm yes... help me?

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

    Takipteyiz....ws2812b led ve bu videodaki parçaların aynısıyla bir saat yaparsanız süper olur emeğe ve bilgiye saygılar...kolay gelsin...

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

    Thank you !

  • @pengenjadiilmuan9631
    @pengenjadiilmuan9631 4 года назад +1

    Mpun kulo jempolin nggih,

    • @miliohm
      @miliohm  4 года назад +1

      Nggih maturnuwun mas

    • @Andi-gy6dj
      @Andi-gy6dj 4 года назад

      @@miliohm In the next project, I request the DS3231 clock setting with the smartphone on the LCD OLED

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

      @@miliohm jenengan wong jawa?

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

      @@aetechcorp9961 nggih mas

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

    Я фанат

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

    Serial monitornya ga bisa dipakai di arduinodroid

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

      Tolong bantuannya

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

      @@sanji6176 mohon maaf ga familiar sama arduinodroid

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

      @@miliohm arduino ide versi android mas

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

      @@sanji6176 iya mas, maksudnya saya belum pernah pakai jadi ga tau

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

      @@miliohm iya mas gapapa

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

    You never even showed it worked? Why

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

      you didn't watch the video?

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

    how to make it 24hours

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

      It's already 24 hours format

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

      how to make led strip only on for certain time and off for certain time

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

      @@adamiskandar7845 ya tinggal dibuat if kondisi aja mas, misal if waktu== 10 then nyala, else mati. Misal gitu

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

      @@miliohm ouh org indo

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

      @@miliohm mana lagi bagus, ds3231 ke ds1302 ke ds1307

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

    Huh?

  • @ด.ช.โดนัด
    @ด.ช.โดนัด 2 года назад

    kuy

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

    I just uploaded this sketch from the page copied and pasted it and it's getting highlighted for
    #include