DS3231 Real Time Clock with Raspberry PI Pico and Badger2040

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 เม.ย. 2024
  • Visit PCBWay, the sponsor of this Video: www.pcbway.com/
    It is quite confusing if we should describe the Raspberry Pi Pico as having a Real Time Clock or not. I explain why and how to add an external Real Time Clock, the DS3231 in this video.
    I add a DS3231 module to a Badger2040 to build an analogue clock and temperature display.
    The examples from this video can be found on GitHub at:
    github.com/jondurrant/Badger2...
    github.com/jondurrant/RP2040D...
    This example was based on the work of Victor Costin and his SimpleDS3231 project:
    github.com/CostinV92/SimpleDS...
    This project makes use of the Badger2040 that I have talked about in a previous video, • Taking a look at the B... . Along with SNTP which was also a subject or a former video • SNTP on Raspberry PI P... .
    Sponsor: PCBWay: www.pcbway.com/ PCB prototyping, assembly, 3D printing, CNC, sheet metal fabrication and injection moulding.
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @elektron2kim666
    @elektron2kim666 3 หลายเดือนก่อน +1

    I'm testing 2 DS3231 at the moment. One gave 2-3 seconds off and the other gave 10 seconds off over a month. I also found and bought 2 rechargeable coin batteries, but one RTC circuit is still having 3 AAA batteries connected and came out to be better in that first test. Both have nice analogue clock graphics and numbers updating every second, so I'm happy with that whole thing. The further builds of what I thought about will take a bit more "work."

    • @DrJonEA
      @DrJonEA  2 หลายเดือนก่อน

      Thank you for sharing. That is really interesting. 10 Seconds a month was more than I was expecting. Does anyone else have stats on time slip on these devices?

  • @elektron2kim666
    @elektron2kim666 7 หลายเดือนก่อน +1

    I use the internet in a "Pico 8" app and it gets hot to run on Raspberry Pi 3B/3B+/whatever. Now I want the Pico to take care of showing a nice clock and nothing got hot in my stress tests, but my breakthrough is MMBasic being simpler to code with all sorts of connections and text/graphics. I also want to "read" the sunshine (solar panel ideas), temperature and maybe log the data.

    • @DrJonEA
      @DrJonEA  7 หลายเดือนก่อน

      Sounds like a fun project.

  • @qzb2ymig
    @qzb2ymig 11 หลายเดือนก่อน +1

    I needed to make a synchronizer for my Self Winding Clock Company clocks. Basically it needs to wake up once per hour, assert a pin that will control the synchronizing signal to the SWCC clock. I need to have a run time of 6 months on a battery. I used a DS3231 for this. On startup it queries time via NTP, and sets the DS3231 time. I set the DS3231 alarm and make the pico go dormant, to wake on interrupt from the clock. When the alarm triggers the pico wakes, synchronizes the SWCC clock, resets its alarm, and goes dormant again. It will periodically query the time via NTP, once a week is enough for my purposes. It remains to be seen how long it lasts on a single battery charge, but signs are good I will exceed my 6-month goal.

    • @DrJonEA
      @DrJonEA  11 หลายเดือนก่อน

      That sounds excellent Ralph. Great project.

    • @Nickle314
      @Nickle314 10 หลายเดือนก่อน +1

      The Lightning detector hardware is interesting.
      GPS gives the location of the sensor.
      GPS gives a once per second interupt.
      So you know very accurately how many microseconds the clock takes between each interupt
      Now measure when you receive the strike over the radio part, recoding the microsecond from the system clock
      Now you can divide to get a very accurate time to the microsecond.
      Send to the central server.
      ie. The GPS can be used to measure temperature changes in the clock, and that is used to compenstate

  • @marekh2233
    @marekh2233 11 หลายเดือนก่อน +1

    Ok.

    • @DrJonEA
      @DrJonEA  2 หลายเดือนก่อน

      :-)