Getting Started With DS3231 RTC Module

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 เม.ย. 2016
  • Getting Started With DS3231 RTC
    In this video we are going to learn, how to program DS3231 RTC module Using Arduino. The DS3231 RTC module is a Extremely Accurate Clock Chip with a temperature sensor built in it.
    This module comes with a rechargeable battery, which helps it to keep track of time date and year even when the power is disconnected from the module. It consumes a little amount of power which help it run for two or three years.
    If you want to buy this DS3231 RTC Module Click the link below:
    Amazon.COM goo.gl/ky7TRC
    Amazon.IN goo.gl/oDngPk
    Get the source code from the link below.
    goo.gl/YRXYKx
    Link
    github.com/rodan/ds3231
    Like Share Subscribe.
    Thanks for watching.
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Hey there I haev a question here I was wondering could you add more to it then just the clock like have 2 or more alarm settings into it

  • @tziki123
    @tziki123 4 หลายเดือนก่อน

    Hi , I have to put the code for the ds3231 every time I build thumthing or only once ?

  • @ozgunkara1930
    @ozgunkara1930 7 ปีที่แล้ว +4

    why channels like this does not get the attention that they deserve?! (1.000.000 subs)

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

      That's the most disappointing fact that new channel has to face, support of people like you can make it to a million. Thank you so much.

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

    Thank You So Much!!!!!! This is the only useful and working video of RTC Time Module on YTBE. I checked like 10 videos until I came to this one. Thank You

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

    A small requests. When you do this kind of instruction, go with a slightly slower pace when you select from various menus. Otherwise, it is difficult to follow

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

    After hand typing 2 of 3 different versions of this library I'm getting a #endif without #if error in my sketch checks. Any suggestions? Its refering to the #endif at the end of the ds3231.H code.

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

    Where did you get the rechargeable battery? What voltage is it?

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

    Can you set alarms to 10 times every day?

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

    Great scott 😀😀😀 i have been following him for 2 yrs

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

    Can you please tell me how to make this rtc operating in 12 hour format ? We are using nano.

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

    can i use 7 segment display directly with out editing this code

  • @VictorSanchez-ze7hy
    @VictorSanchez-ze7hy 5 ปีที่แล้ว

    Hello, I would like a program which return True every second, could you help me how to modify yours to create it ?

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

    Thanks ,really nice SHORT,SWEET,and ON POINT

  • @Michael__
    @Michael__ 7 ปีที่แล้ว

    Thanks, was able to finally get my RTC working on an LCD :)

    • @CoolTroniks
      @CoolTroniks  7 ปีที่แล้ว

      your welcome michael

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

    When I use rtclib, program not upload. Error 1 is come. Why sir ?

  • @inderk6574
    @inderk6574 6 ปีที่แล้ว

    This is among best video in simplest and shortest form . i had been struggling to set the 3231 for pretty long. once i referred this video within 5 mins i could do it thanks a lot Ashish Mumbai india

    • @CoolTroniks
      @CoolTroniks  6 ปีที่แล้ว

      Glad to hear that, Thanks for watching.

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

    It work perfectly in lcd module displaying real time but I want to send time in the message using gsm module please help me

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

    Step one, clean that corrosion off the connector. Haha. Thank you for the video.

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

    Your video really helped me. Thank you very much

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

    everything works fine, but when I disconnect the arduino from the PC, wait a few minutes, connect it again, Time starts from the moment where I cut off the power.
    Where is the fault hardware or software?

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

    it worked thanks for ur tutorial it is very useful

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

    Thanks this works fine very valuable

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

    Pls do videos on ds3231 based clock with tempreture

  • @anamy
    @anamy 8 ปีที่แล้ว

    Nice video, thanks :)

  • @jasum437
    @jasum437 7 ปีที่แล้ว

    what if baterry is not rechargable ?

  • @romanbriley2740
    @romanbriley2740 4 ปีที่แล้ว +5

    Im getting an error that says, 'DS3231_INTCN' was not declared on this scope. its on line 114, please help

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

    Can't get the date to show, only time?

  • @jugnu361
    @jugnu361 6 ปีที่แล้ว

    whats the point of using libraries..

  • @micks24h
    @micks24h 6 ปีที่แล้ว

    module keep time running, but can't get screen to show anything

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

    Great video . How to set time automatically with DS3231 RTC using computer

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

    The battery on the 5v is getting fat. If the Arduino vcc port gives 5V voltage, the same voltage is suitable for the accumulator. why this is happening. Why everyone is connecting the module to 5V.

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

    how to connect lcd?

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

    i cant get the library to show up in IDE, everytime i go to open IDE i get this error " the library " Real time clock can not be used
    library names must have only basic letters or numbers
    (ASCE only and no spaces, and it can not start with a number"
    plz help

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

      change the name " ARDUINO_rtc3231" that should work or just do what the IDE wants

  • @williamna5800
    @williamna5800 7 ปีที่แล้ว

    I have the same board, but with 5v at vcc my poor LIR2032 (which is strange it was shipped with a CR2032 from china, a non-recharge batt)) is charging at 4.7v as several others have posted about. As much fun as it is watching things blow up normally, I'd not leave this thing running at 5v unattended or you'll have some fireworks... or fire... in your house :/

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

    i am getting an error stating "Error compiling for board Arduino/Genuino Uno" wht to do now

  • @randyrampersad6473
    @randyrampersad6473 7 ปีที่แล้ว

    i am getting the program to compile however the date and time that is being set is wrong.

    • @CoolTroniks
      @CoolTroniks  7 ปีที่แล้ว

      You have to set your date and time on the module using the parse cmd function. once it sets then comment out the function and upload again.

  • @Muniraalkharaz
    @Muniraalkharaz 7 ปีที่แล้ว

    PLEASE CAN YOU HELP US HOW DID YOU CONNECT THE LCD SCREEN WITH THE RTC ?

    • @CoolTroniks
      @CoolTroniks  7 ปีที่แล้ว

      www.arduino.cc/en/Tutorial/HelloWorld
      I hope this link will help.

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

    I modified the comment for setting time: // Enter TssmmhhWDDMMYYYY in the Serial Monitor to set time.
    Other Serial Monitor commands are 1, 2, 3, A, B, C, D F, G & S. "T" sets the date/time.

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

    many said wrong you are good ,coorect ths

  • @gabracal
    @gabracal 6 ปีที่แล้ว

    Jeremy(GreatScott)! IS THAT YOU?!

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

    Can you help me with code

  • @jimhill4044
    @jimhill4044 8 ปีที่แล้ว

    i keep getting this error when i try to compile i am using the
    rtc3231.ino file with lcd from your download. i am using arduino 1de
    1.6.8 how can i fix the error.
    C:\unzipped\DS3231_Program\DS3231_LCD\RTC3231\RTC3231.ino: In function ‘void loop()’:
    C:\unzipped\DS3231_Program\DS3231_LCD\RTC3231\RTC3231.ino:41:24:
    warning: deprecated conversion from string constant to ‘char*’
    [-Wwrite-strings]
    parse_cmd(“C”,1);
    ^
    Re

    • @CoolTroniks
      @CoolTroniks  8 ปีที่แล้ว

      Hey Jim, I think you haven't extracted the downloaded file.
      If you have winrar try to extract the file. then you'll going to receive two folder.
      Try right clicking on the RTC3231.ino file inside ds3231_lcd folder, and open with arduino.
      that's what i am doing.
      I hope that will solve your problem

  • @Michael__
    @Michael__ 7 ปีที่แล้ว +6

    Same music as GreatScott lol

    • @CoolTroniks
      @CoolTroniks  7 ปีที่แล้ว

      yeah, liked this music and Great Scott channel too.

  • @hplatlas8228
    @hplatlas8228 6 ปีที่แล้ว

    why the clock reset every time I open the serial monitor

  • @kemoomotivation9266
    @kemoomotivation9266 6 ปีที่แล้ว

    my DS1307 RTC is not keeping the time while the arduino is without power. As soon as I power the arduino back it starts exactly where it left

    • @CoolTroniks
      @CoolTroniks  6 ปีที่แล้ว

      Kareem Mohamed change the battery

    • @kemoomotivation9266
      @kemoomotivation9266 6 ปีที่แล้ว

      Cooltronics l changed the battery but still having the same thing

    • @kemoomotivation9266
      @kemoomotivation9266 6 ปีที่แล้ว

      Thank you for the/your quick reply

    • @CoolTroniks
      @CoolTroniks  6 ปีที่แล้ว

      comment the parse command line, the upload it again.

    • @kemoomotivation9266
      @kemoomotivation9266 6 ปีที่แล้ว

      #include
      #include "RTClib.h"
      #include
      int Con=80;
      LiquidCrystal lcd(7,8,9,10,11,12);
      RTC_DS1307 RTC;
      int ds1 = 2;
      int ds2 = 4;
      int runTimer ;
      int s = 15 ; // time in seconds
      void setup () {
      pinMode(ds1, OUTPUT);
      pinMode(ds2, OUTPUT);
      digitalWrite(ds1,HIGH);
      digitalWrite(ds2,HIGH);
      analogWrite(6,Con);
      Wire.begin();
      RTC.begin();
      // RTC.adjust(DateTime(F(__DATE__), F(__TIME__))); // sets the RTC to the date & time this sketch was compiled
      // January 21, 2014 at 3am you would call:
      RTC.adjust(DateTime(2017, 8, 5, 12, 20, 0));
      lcd.begin(16,2);
      lcd.clear();
      }
      void loop () {
      DateTime now = RTC.now();
      mostrarRTCLCD();
      delay(1000);//

      runTimer = 0;// vital
      for(int duration = 0; duration < 100; duration ++){}}
      void timer() {
      for(int timer = s;timer > 0; --timer){
      lcd.clear();
      lcd.setCursor(12,1);
      lcd.print(timer);
      delay(1000);// step down every 1 sec
      }}
      void mostrarRTCLCD() {
      DateTime now = RTC.now();
      lcd.clear();
      lcd.setCursor(0,0);
      if(now.day() < 10)
      {
      lcd.print("0");
      }
      lcd.print(now.day(), DEC);
      lcd.print('/');
      if(now.month() < 10)
      {
      lcd.print("0");
      }
      lcd.print(now.month(), DEC);
      lcd.print('/');
      lcd.print(now.year(), DEC);
      lcd.setCursor(0,1);
      if(now.hour() < 10)
      {
      lcd.print("0");
      }
      lcd.print(now.hour(), DEC);
      lcd.print(':');
      if(now.minute() < 10)
      {
      lcd.print("0");
      }
      lcd.print(now.minute(), DEC);
      lcd.print(':');
      if(now.second() < 10)
      {
      lcd.print("0");
      }
      lcd.print(now.second(), DEC);
      if (now.hour() == 11 & now.minute() == 41 & now.second() == 00)
      { digitalWrite(ds1,HIGH); // relay is on during countdown
      digitalWrite(ds2,LOW);
      timer(); //Start timer
      lcd.clear();
      } else {
      digitalWrite(ds1,HIGH); // relay is off when time expired
      digitalWrite(ds2,HIGH);
      }}

  • @rongthan3339
    @rongthan3339 6 ปีที่แล้ว

    Xin lỗi, tôi sử dụng chương trình Hello world của bạn và LCD hoạt động. Nhưng khi tải chương trình trên không hoạt động. làm ơn giúp tôi.

    • @rongthan3339
      @rongthan3339 6 ปีที่แล้ว

      Sorry, i used your HELLO WORLD program and LCD operated. But when loading the above program does not work. please help me.

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

    More Tutorials related to D3231 visit

  • @youpattube1
    @youpattube1 6 ปีที่แล้ว

    I agree with Duke. the lesson doesn't agree with what is displayed in the example. I keep getting 2165. why don't you either explain the difference and how to fix it, or take the video down ? It is a waste of time. Now I've got this crap library to try and get rid of.

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

    Every word "DS3231_INTCN" or "DS3231_A2IE" or "DS3231_A1IE" on your code must be modified Like this to avoid error : "DS3231_CONTROL_INTCN" or "DS3231_CONTROL_A2IE" or "DS3231_CONTROL_A1IE"