DS1302 RTC with arduino tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2020
  • 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/ds1302-rtc-with-a...
    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...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 92

  • @brianmudd9631
    @brianmudd9631 ปีที่แล้ว +2

    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 ปีที่แล้ว

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

  • @tumusimebrian3110
    @tumusimebrian3110 8 หลายเดือนก่อน

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

  • @wisnuindrawan6496
    @wisnuindrawan6496 3 ปีที่แล้ว

    wowo thanks a lot, know i understand about rtc

  • @Reliantification
    @Reliantification 3 ปีที่แล้ว +1

    YOU ARE THE BEST THANK YOU IT WORKS

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      thanks!

  • @ryugatsuchiya9018
    @ryugatsuchiya9018 2 ปีที่แล้ว

    hats off to you mate, it worked.

    • @miliohm
      @miliohm  2 ปีที่แล้ว

      Thanks

  • @goddess_ofchaos
    @goddess_ofchaos 3 ปีที่แล้ว +1

    Wow, you've really helped me here thanks!

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Thanks, just don't forget to subscribe!

    • @munyitananamasonda5976
      @munyitananamasonda5976 ปีที่แล้ว

      @@miliohm

    • @munyitananamasonda5976
      @munyitananamasonda5976 ปีที่แล้ว

      my ide reject the library for ds 1302 what should i do

    • @miliohm
      @miliohm  ปีที่แล้ว

      @@munyitananamasonda5976 what it said?

  • @_o.0_.
    @_o.0_. 3 ปีที่แล้ว +1

    my guy!!! Solid video

    • @miliohm
      @miliohm  3 ปีที่แล้ว

      Thanks!

  • @dwalker7013
    @dwalker7013 2 ปีที่แล้ว

    can you use time lib, to setup 1302?

  • @tigrannersisyan7860
    @tigrannersisyan7860 3 ปีที่แล้ว

    Thank you !

  • @derekbrookes9497
    @derekbrookes9497 2 ปีที่แล้ว +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  2 ปีที่แล้ว

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

    • @derekbrookes9497
      @derekbrookes9497 2 ปีที่แล้ว

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

  • @xdeathstrokex_o4291
    @xdeathstrokex_o4291 2 ปีที่แล้ว

    Can I store counter data to external rtc module?

  • @borakuran7614
    @borakuran7614 ปีที่แล้ว

    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?

  • @TechnoEveryday
    @TechnoEveryday 2 ปีที่แล้ว +1

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

  • @KL-fq7wn
    @KL-fq7wn 2 ปีที่แล้ว

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

  • @graceramos3488
    @graceramos3488 ปีที่แล้ว

    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?

  • @fabianralph5472
    @fabianralph5472 5 หลายเดือนก่อน

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

  • @yusufguler1662
    @yusufguler1662 2 ปีที่แล้ว

    amazing really help alot subcribing

  • @lasithaweerasinghe3794
    @lasithaweerasinghe3794 ปีที่แล้ว

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

  • @cosanostra-9949
    @cosanostra-9949 ปีที่แล้ว +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!.

    • @carlitoune
      @carlitoune ปีที่แล้ว

      did you fix it if yes how

    • @ibingproject
      @ibingproject 6 หลายเดือนก่อน

      Me too

  • @sufisongsroohanichannel5577
    @sufisongsroohanichannel5577 3 ปีที่แล้ว

    We can use this deta aurdino uno

  • @jeffcarpenter9559
    @jeffcarpenter9559 ปีที่แล้ว

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

  • @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 2 ปีที่แล้ว

      @@miliohm lmao

  • @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.

  • @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

  • @guillaume8437
    @guillaume8437 2 ปีที่แล้ว

    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.

  • @eyram4010
    @eyram4010 ปีที่แล้ว

    how do I download the file from github?

  • @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...

  • @cadillacescalade5428
    @cadillacescalade5428 ปีที่แล้ว

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

  • @user-hf4ju7wz7j
    @user-hf4ju7wz7j 9 หลายเดือนก่อน

    Я фанат

  • @m0kcun
    @m0kcun 10 หลายเดือนก่อน

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

    • @m0kcun
      @m0kcun 10 หลายเดือนก่อน

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

  • @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

  • @pengenjadiilmuan9631
    @pengenjadiilmuan9631 3 ปีที่แล้ว +1

    Mpun kulo jempolin nggih,

    • @miliohm
      @miliohm  3 ปีที่แล้ว +1

      Nggih maturnuwun mas

    • @Andi-gy6dj
      @Andi-gy6dj 3 ปีที่แล้ว

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

    • @aetechcorp9961
      @aetechcorp9961 2 ปีที่แล้ว

      @@miliohm jenengan wong jawa?

    • @miliohm
      @miliohm  2 ปีที่แล้ว

      @@aetechcorp9961 nggih mas

  • @wayne5x
    @wayne5x ปีที่แล้ว

    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  ปีที่แล้ว

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

    • @wayne5x
      @wayne5x ปีที่แล้ว

      @@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  ปีที่แล้ว

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

    • @wayne5x
      @wayne5x ปีที่แล้ว

      @@miliohm ok bro, thanks.

  • @kunto_wicaksono
    @kunto_wicaksono 2 ปีที่แล้ว

    Library ds3231 bsa buat ds1307 tdk?

    • @miliohm
      @miliohm  2 ปีที่แล้ว

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

  • @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?

  • @NotGreig
    @NotGreig 8 หลายเดือนก่อน

    You never even showed it worked? Why

    • @miliohm
      @miliohm  8 หลายเดือนก่อน

      you didn't watch the video?

  • @sanji6176
    @sanji6176 2 ปีที่แล้ว

    Serial monitornya ga bisa dipakai di arduinodroid

    • @sanji6176
      @sanji6176 2 ปีที่แล้ว

      Tolong bantuannya

    • @miliohm
      @miliohm  2 ปีที่แล้ว

      @@sanji6176 mohon maaf ga familiar sama arduinodroid

    • @sanji6176
      @sanji6176 2 ปีที่แล้ว

      @@miliohm arduino ide versi android mas

    • @miliohm
      @miliohm  2 ปีที่แล้ว

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

    • @sanji6176
      @sanji6176 2 ปีที่แล้ว

      @@miliohm iya mas gapapa

  • @user-yl5es7jl1z
    @user-yl5es7jl1z 2 ปีที่แล้ว

    kuy

  • @alexayers9463
    @alexayers9463 3 ปีที่แล้ว

    Huh?

  • @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

  • @cadillacescalade5428
    @cadillacescalade5428 ปีที่แล้ว

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