From the Bench - Raspberry Pi: Adding a DS3231 RTC (Real Time Clock)

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.พ. 2021
  • Viewer Jeremy asked about adding an RTC (Real Time Clock) to his Raspberry Pi. It's a simple and straightforward process!
    The RTC Modules I use (affiliate link): amzn.to/3jMKGFq
    The Adafruit How-to: learn.adafruit.com/adding-a-r...
    Alternate How-to, though slightly out of date: thepihut.com/blogs/raspberry-...
    As always, Like, Comment and Subscribe!
    -- Like what I'm doing? Buy me a Coffee: www.buymeacoffee.com/stfuandfish
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Very helpful.
    Thankyou

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

    Very well explained. Great video. Thank you !

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

    I find this interesting, although I understood very little...lol. I feel like I missed out on learning some things in school that I might have enjoyed.

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

      I could slow it down some in another episode and talk about RTC's. And you shouldn't feel bad for not learning something. Especially because you can learn it now.

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

      @@stfuandfish Do I need this Papi?

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

      That's up to you. If you're using it for anything that is time critical, down to the second then it would be worth the few minutes to do it. But, just for an educational reason there's no reason not to. The RTC's are actually very inexpensive and it only takes a few minutes to do.

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

    Can you add the ds3231 to raspberry pi zero?

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

      Sorry, you are using the ds3231 to raspberry pi zero ! Sorry

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

      @@tomadams1066 Yes, on all but the microcontroller.

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

    Hi, I have a question, I did your tutorial (very good) and it works, but sometimes when I reboot the raspberry for any reason, it shows the wrong time, but the rtc module still holds the right time (I checked it on the console and is the correct time). Is there any solution??

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

      You could add the sync commands to the system startup (towards the end, after network starts).
      Odd that it slips that much. Or is it off for a while (days)?

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

      @@stfuandfish thank you for answring me, it happens almost half of the time I turn it on, but the RTC module always has the right time. how do I add the sync commands to the system startup?? sorry I'm new to raspberry and Linux

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

      @@cesaraponte7212 No problem! We all start somewhere.
      Can you make sure you disabled the fake-hwclock in the earlier portion of the video? Double check that those are indeed disabled and let me know.
      sudo apt-get -y remove fake-hwclock
      sudo update-rc.d -f fake-hwclock remove
      sudo systemctl disable fake-hwclock
      Thinking about it, I don't think the RTC would function properly without the fake-hwclock removed, but do check on it.
      I've been thinking about doing another video on RTC's and Ras Pi. Maybe I should. I can work on a new video in the next few days.

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

      @@stfuandfish yeah I disabled the fake-hwclock and everything, is like when I reboot it, the sapberry goes back to enabling the fake-hwclock, i dont know, is weird because when I put those commands again, it tells me that what you get in your video that thos packages are uninstalled and that some functions are masked, the same you got.
      I'll keep looking. thank you

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

      That's odd! I'll try it on a bone stock load and see if I can duplicate it.