Lesson 19 - DS3231 RTC Module

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 เม.ย. 2024
  • ZS-042 Module, aka. DS3231 RTC Module with AT24C32N EEprom chip and CR2032 battery. Demonstrate the Elegoo sketch provided in the tutorial covering the DS3231 RTC Module. Then I show my RTC alarm clock with my custom SimpleAlarmClock Library. A beginner's guide to the Most Complete Starter Kit by Elegoo.
    Hello everyone, I'm Rick the Tech Enthusiast here with the next Elegoo Lesson. This is the next lesson on my Arduino UNO Series covering the Most Complete Starter Kit by Elegoo. I try to follow the included tutorial and will point out any changes or corrections as I find them.
    As mentioned before, I purchased this Elegoo starter kit and Elegoo isn't sponsoring me. I just thought it would be fun to do a video of each Lesson as I was learning the Arduino environment.
    We’ll need a few things from your Elegoo Arduino UNO kit. I’ll list the items below. In this lesson we’re going to check out the DS3231 RTC module, aka. ZS-042 module. The ZS-042 module includes a DS3231 real time clock and calendar, AT24C32N EEPROM chip, and CR2032 battery. I’ll step through the Elegoo provided tutorial and briefly explain how code makes this happen. We’ll build and configure a simple circuit that is provided in the tutorial to demonstrate the functionality. Then will show an alarm clock circuit, complete with snooze alarm, and new SimpleAlarmClock.h library. I hope you enjoy it.
    Parts you’ll need for the tutorial:
    * Elegoo Arduino UNO R3 board
    * ZS-042 Module (aka. DS3231 RTC Module)
    * Four female-to-male jumper wires
    The next lesson will be Lesson 20: Sound Sensor Module
    Links:
    This lesson’s sketch and associated drawings can be found at [Github](github.com/rmorenojr/ElegooTu...)
    SimpleAlarmClock.h library can also be found at [Github](github.com/rmorenojr/SimpleAl...)
    Various Parts can be found: (Note these are Amazon Associates links)
    (Full Disclosure: I get a little credit/$ if you purchase a linked item.)
    * Amazon Elegoo Arduino kits: www.amazon.com/gp/search?ie=U... Arduino
    * Elenco 350 Piece Pre-formed Jumper Wire Kit on Amazon : amzn.to/2z6sCCw
    * Logitech M510 Wireless Mouse on Amazon: amzn.to/2z4FF7F
    * Elegoo EL-KIT-001 UNO R3 Project Complete Starter Kit with Tutorial for Arduino (63 Items) on Amazon: amzn.to/2KxZ8mA
    * Elegoo’s web site www.elegoo.com/ www.elegoo.com/product/elegoo...
    Software:
    * Fritzing Software: fritzing.org/download/
    * Arduino Language Reference (English): www.arduino.cc/reference/en/
    * Tutorial - Using DS1307 and DS3231 Real-time Clock Modules with Arduino tronixstuff.com/2014/12/01/tu...
    * Arduino and DS3231 real time clock with alarms, temperature monitor and remote control • Arduino and DS3231 rea...
    * Forum Thread on ZS-042 module: forum.arduino.cc/index.php?to...
    Affiliate Links that Help my channel:
    * Try Prime Discounted Monthly Offering: amzn.to/2PnVgSA
    * Try Amazon Prime 30-Day Free Trial: amzn.to/2E5Hy4O
    * Prime Student 6-month Trial: amzn.to/2ElxwNE
    * Join Amazon Prime - Watch Thousands of Movies & TV Shows Anytime - Start Free Trial Now: amzn.to/2PsEZvE
    * Give the Gift of Amazon Prime amzn.to/2EkFaYG
    * Kindle Unlimited Membership Plans: amzn.to/2QJl548
    * Try Audible and Get Two Free Audiobooks: amzn.to/2QD2B5v
    * Amazon.com - Read eBooks using the FREE Kindle Reading App on Most Devices: amzn.to/2Ptpdkl
    Sign up and fund an M1 account using the link, and we'll both get $10 to invest: mbsy.co/tsrBR
    ♫♪ Credits ♪♫
    Royalty Free Music from HookSounds.com, by artist Rodrigo Vicente - [FutureBass_Full](www.hooksounds.com)
    Royalty Free Music from "Constance" Kevin MacLeod - [Welcome to the Show]( incompetech.com/music/royalty...)
    This is another video for my Arduino tutorial series. If you like the series, be sure to rate and subscribe.
    Thanks for watching
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    A most complete and comprehensive project video. Very well thought-out and presented. I rate you with the best. Thank you for making this interesting tutorial.

  • @berkcan2439
    @berkcan2439 3 ปีที่แล้ว +6

    This is the real lesson. Others with arduino don't teach low layer or hardware information.

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

    Thank you so much for the details, really nice video. Wish you the best.

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

    finally i founded wich diod i need to get off to use battery . Thank you , dude !

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

    Nice video tutorial ❤️ go ahead...

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

    This video is great! However, I'm still confused in some areas and would like to take you up on your offer to make a more detailed video on the library you created.

  • @user-tr6co8mw4j
    @user-tr6co8mw4j 3 ปีที่แล้ว +2

    Thanks for your great simple explanation in this video .How to use a library to set time automatically with DS3231 RTC?

  • @cristianobrito2463
    @cristianobrito2463 4 ปีที่แล้ว

    👏👏👏👏👏👏👏 parabéns vc é um herói dos sem paciências.

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

    In MMBasic, it's quite simple. Something like RTC gettime to give time$ and date$ the data. RTC getreg/setreg 3 (register 3), variable/value or from/to the RTC. RTC settime 2024,12,31,20,30,59. Option system i2c gp0,gp1 (setting up the wires, gp0=SDA, gp1=SCL as an example I have working.) - VCC/ground is not software..... It's in the manual, if this is confusing.
    A pico will update time$, date$ as long it's on and start up with a reset to 2000,1,1,0,0,0 then autorun.bas or clock.bas in flash (option autorun 1 for example) can start with rtc gettime. Every now and then maybe again.
    MMBasic is a normal flash like the others to begin this specific adventure.

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

    I would love a detailed walk through of the code. I am doing a similiar project with 7 seg display and an FM radio.

  • @MikeNewham
    @MikeNewham 5 ปีที่แล้ว +1

    Great tutorials. Learning lots here.!
    Was wondering if the AT24C32N EEPROM chip can be programmed to retain temperature readings - or - do you need a separate data logger (in addition to the MCU)?

    • @rickmorenojr
      @rickmorenojr  5 ปีที่แล้ว +1

      The EEPROM can be programmed to hold just about anything, you're only limited by storage capacity. I think I reference in the show notes an AT24C32N EEPROM stand alone library that can be used do this.

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

    Thank You

  • @hardwarepogrammer1481
    @hardwarepogrammer1481 5 ปีที่แล้ว

    Great👍

  • @brechts3013
    @brechts3013 4 ปีที่แล้ว

    Where can I find the 'DS3132.h' library you used in your video? This library would be perfect for a project im working on

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

      DS3131.h library is included as part of the Elegoo's Tutorial which can be downloaded from their web site. The DS3132.h library that was already installed in my Arduino IDE probably can be found by searching DS3132 libraries. I think I have a link in the show notes for the Elegoo Tutorial. I noticed that they have updated their tutorial, so I'm not sure what's different.

  • @alyssajaylene2767
    @alyssajaylene2767 5 ปีที่แล้ว

    What is the correct battery for this module? The LIR2032? I heard using the CR2032 is not good in the long run as it can explode

    • @rickmorenojr
      @rickmorenojr  5 ปีที่แล้ว

      The RTC included in the Elegoo kit does not have the charging diode and resistor. So a CR2032 is ok. However, if you have an RTC from someone else, please check that manufacturer's datasheet for the correct battery.

  • @kaumamathew9614
    @kaumamathew9614 4 ปีที่แล้ว

    Bro how to change program for i2c lcd 16*2

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

    is it possible to add a 3rd alarm?

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

    hi sir, it is possible change alarm to timer?

  • @Yash-Gaikwad
    @Yash-Gaikwad ปีที่แล้ว

    I am trying to make a pet feeder. I am looking into clock modules which would run on low power like cmos cell or aaa battery, and not required to have a microcontroller attach or running . I found out clock modules like ds3231etc runs on cmos cell for months. But I realized it can only trigger two alarm daily. Is there any other module with at least around 6-10 alarms capability daily or any way to increase alarms capability of ds3231. So that I can amplify the alarm signal and use it trigger motor or servo that will dispense the treat/food. I was unsuccessful in finding such module, I also tried to find cheap circuit board of a commercial pet feeders on amazon. Still nothing.
    Thanks in advance.

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

      I am building a chicken coop automatic door, which only needs two alarms and thought I could maybe use just this module, but it needs more circuitry to turn on/off motors. In any case, you need to setup this chip and that requires a microprocessor, so you need one already. They are cheap these days, I'm using a esp32 with wifi and its under $10 and has lots of examples.

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

    Thanks, I like your library, however it does not seem to work! I tried to setup an alarm interrupt by adding 10 seconds to the current time, but it never fires. There are so many conflicting ds3231 libraries, it has been a pain, but rtc_ds3231 doesn't conflict and works, so my hardware is good, it is just an ugly library..

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

    Hi, I appreciate your effort to create a video and custom library. I am a beginner and you did what i want means own customization but you didn't provide much information about your library how to use it. Could you provide some information about it. It really helps a lot. Thanks

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

      this teacher is a joke

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

    how to at relay timer, it on and off it depends on time schedule,

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

    It's Warking

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

    Rick, to play it safe, should I not connect the RTC module to 5 volts and just power it from a non chargeable CR2032?

  • @jstagzsr
    @jstagzsr 4 ปีที่แล้ว +1

    wait wait wait..... i just got this in the mail. i specifically bought this one because i thought it did NOT charge the battery like the previous ones i used to use did.. but when you show the one in this video that still does charge the battery, thats the one i have.. what the hell.. i dont have time to order another one now. this is going in a project im making for my brother because he loves the one i built for myself. how do i disable the charging? he has young kids. im not trying to burn his house down because some idiot on ebay misrepresented what he had (or i misread it)

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

      If I recall correctly, there's a diode and a resistor that needs to be removed. My video shows where they might be.

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

    why the alarm not working?

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

    Can you guide for more accurate like a few second a year plz. DS3231 is 2 minutes a year

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

      Possibly, with a different module. I was just going over the module provided in the Elegoo kit.

  • @eleobo
    @eleobo 5 ปีที่แล้ว

    HOW TO MAKE MY OWN RTC MODULE WITH EEPROM PLEASE HELP ME

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

      Sorry, just going over the modules provided in the Elegoo kit. The Elegoo Tutorial is Lesson 19.

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

    Thank you sir.
    But I don't find the ds3231. I want to turn off a fridge everyday from 9pm to 7am

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

    What are the values of the resistors?

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

      The basic lesson doesn't require any resistors. My alarm clock uses 100, 330, and 330 ohm resistors and 10K ohm potentiometer. The schematic can be found in the GitHub link in the show notes above.

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

      @@rickmorenojr Thanks! I couldn't find the schematics above, i looked everywhere ;-)

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

      @@DavidNijman The basic schematic is in the Elegoo Tutorial's PDF. My modified schematic, the alarm clock, should be a png file on GitHub. Here's the path: Lesson 19 - Real Time Clock Module/RTC_schem.png (github.com/rmorenojr/ElegooTutorial/blob/master/Lesson%2019%20-%20Real%20Time%20Clock%20Module/RTC_schem.png)

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

    10:45 Polska Górooooooooooom

  • @kvamsidharvamsi5800
    @kvamsidharvamsi5800 5 ปีที่แล้ว +1

    I need 7 seg display

    • @rickmorenojr
      @rickmorenojr  5 ปีที่แล้ว +1

      7 segment display will be in Lesson 27.

    • @kvamsidharvamsi5800
      @kvamsidharvamsi5800 5 ปีที่แล้ว

      @@rickmorenojr when will you upload bro

    • @MikeNewham
      @MikeNewham 5 ปีที่แล้ว +1

      Great@@rickmorenojr , i have a TM1637 - 4 digit - 7 Segment module here, that i'd like to use (and thus replace the more bulky LCD). It's currently installed in the forehead of a Star Wars stormtrooper - along with the DS3231 and a Pro Mini :) I'd like to alternate the time display with the temperature display. In fact i just ordered this little module that seems to allow for a lot of what i'm looking for - bit.ly/2WJgka7

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

      @@MikeNewham Nice looking module. I'll have to get one.

  • @DJMagicmagie0muziek0en0meer0
    @DJMagicmagie0muziek0en0meer0 5 ปีที่แล้ว

    make more videos

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

    Why don't you give us a copy of the code? would make life easier for everyone

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

    I'm Relay Sorry 🙏

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

    Not warking 👎👎👎👎

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

    I am sorry... I know it takes A LOT of effort to make these videos but if you are trying to teach people, I think you have WAAAAYYY too much technical jargon. You have lost your audience in the first minute. I know this is sounding like a very negative comment but I think you have a lot to offer and you are losing too many people with all your hex and serial number readings. Simplify... And then give the user the info to research further

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

      Yes. But sorely needed! So many youtube videos: "And alarms! Exit stage left."