How to make Real Time Clock With Alarm using Arduino and RTC DS3231

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • In this video, titled "How to Make a Real-Time Clock with Alarm Using Arduino and RTC DS3231" by Mohammad Ansar Robotics, you'll discover a detailed and easy-to-follow guide for creating a real-time clock with an alarm feature. Don't forget to subscribe and like the video to support the channel!
    Code, Schematics and Proteus Simulation Download link:- marobotic.com/...
    Components Details () {
    Solderless Breadboard:- marobotic.com/...
    Arduino Uno:- marobotic.com/...
    16×2 LCD Display:- marobotic.com/...
    Push Button:- marobotic.com/...
    RTC ds3231 Module:- marobotic.com/...
    100R Resistor:- marobotic.com/...
    4.7k Resistor:- marobotic.com/...
    1k Resistor:- marobotic.com/...
    Buzzer:- marobotic.com/...
    Male to Male Jumper Wires:- marobotic.com/...
    Battery clip:- marobotic.com/...
    Battery 9v:- marobotic.com/...
    }
    We regularly uploads exciting videos like this
    Suscribe us For More Videos
    Muhammad Ansar
    +923378655465
    Visit My Website:- marobotic.com/...

Комментарии • 265

  • @cw4608
    @cw4608 4 года назад +7

    Thank you very much sir. Subscribed - your work is neat, your demonstrations linear and easy to follow even though I do not speak your language. The extra info provided is well organized, clear, and detailed.

  • @User67632
    @User67632 4 года назад +2

    Sir Your clock project is working fine i tried it thankou sir for your support

  • @ambalangodachandrasiri6361
    @ambalangodachandrasiri6361 25 дней назад +1

    Thank you very much Sir, Very help viodes , Thanks

  • @clauscaio6367
    @clauscaio6367 3 года назад

    salve sono italiano e invece di comperare una sveglia uso il tuo progetto che funziona perfettamente ,grazie.

  • @frazfahad85
    @frazfahad85 3 года назад +3

    Sir, cool project, I like it.

  • @shajukv4719
    @shajukv4719 3 года назад

    I tried it and it is working fine .Thank you sir for your support

  • @rafiul1522
    @rafiul1522 3 года назад +1

    It’s Working perfect keep it up brother love from Bangladesh

  • @user-prince5670
    @user-prince5670 6 месяцев назад +1

    Very useful

  • @gamingskool17
    @gamingskool17 3 года назад +5

    Sir, Code is not working. It always shows that DS3231 Library is missing.. I had tried installing all the versions including yours but still not working.

    • @dark_musafir
      @dark_musafir 10 месяцев назад

      Same problem
      Can you fix it is ?

  • @vikramjeetpaul
    @vikramjeetpaul 4 года назад +1

    very nice project, keep it M.Ansar

  • @dashelbernardo6104
    @dashelbernardo6104 Год назад

    THANKYOU VERY MUCH... how can I make this clock alarm everyday ......thankyou so much I will definitely recommend this to my students

  • @AAdnaanmtl
    @AAdnaanmtl 4 года назад +1

    Excellent work sir

  • @_.cancelado._
    @_.cancelado._ 3 года назад +1

    Saludos desde Colombia....No me quería funcionar al inicio, me salia error de librerías, pero Copie y Reemplace la carpeta DS3231 que estaba ya en Librerías de Arduino en la Biblioteca del PC....Y Wauuuu, funciona excelente, gracias hermano por el aporte, tenia ya un programa parecido, pero este esta completo. EXCELENTE. hoy 06 Abril 2021.

  • @Frangrimau
    @Frangrimau 2 года назад +1

    I made it and it works perfect! Its possible to stop the alarm by pressing a button? Like a snooze? Thanks

  • @abhaygamer-cu5fx
    @abhaygamer-cu5fx 2 года назад +3

    Can I used RTC of any other model? Like DS1302

  • @jawadahmed6966
    @jawadahmed6966 3 года назад +3

    Honestly mei ne is topic pe bhot videos dekhi hein mgr ye sab se alag hei

  • @lambert8443
    @lambert8443 2 года назад +2

    When I compile the code, the display shows me that there is no match for the call to 'DS3231(const unit8_t&, const unit8_t&) need help!

  • @ldp-UTube
    @ldp-UTube 3 года назад +4

    when I do compiling, it display (rtc. was not declared in scope) what does it mean? and how can i solve?

    • @slciz9460
      @slciz9460 3 года назад

      just do digitalread fuction
      bruh you are soo many copycats

  • @Andi-gy6dj
    @Andi-gy6dj 3 года назад +3

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

  • @andyt1816
    @andyt1816 7 месяцев назад

    Hello, I am doing your project to be able to graduate from school, but I am using a 16x2 blue 16-pin LCD display and it does not give me characters, what could be this error, please help me, thank you

  • @prabha2z649
    @prabha2z649 3 года назад +2

    When I compiling code display show me that no matching for call to 'DS3231(const unit8_t&, const unit8_t&)'

  • @desimunda444
    @desimunda444 4 месяца назад

    Can you please upload the same project without alarm function?? I have tried a lot to understand the code but can't understand anything for the button operations.

  • @fouzanjaved5441
    @fouzanjaved5441 3 года назад +2

    Sir, when I do upload the code, it displays Unable to open HEX file, 'C;\Users\ST\AppData\Local\Temp\arduino_build_334389\Real_Time_Clock_with_Alarm.ino.hex'. [AU1] in proteus 8 CAD Software
    , what does it mean? and how can I solve it? Sir, help me?

  • @manomyrtle18
    @manomyrtle18 3 года назад +1

    Thank you so much.. It really worked perfectly..

  • @sakchaikkk7032
    @sakchaikkk7032 2 года назад +1

    Thank you very much, this helps me a lot. Can I set multiple alarms?

  • @drelectronics13
    @drelectronics13 3 года назад +1

    Aap bohot acche se tutorial dete ho

  • @janakirenga
    @janakirenga 3 года назад +3

    Hi Ansar, thank you for the clock project, It is working flawlessly. But the day is showing Tuesday instead of Monday. I tried several times by setting it to Monday with the push buttons. But again it is showing Tuesday. Is it required to set it in code, If yes where and how to change it, Please do reply. Thanks once again for your nice projects.

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад +2

      welcome bro set the time

    • @janakirenga
      @janakirenga 3 года назад +2

      @@MuhammadAnsar I tried setting the time but still the time is showing 24 Hrs in advance. Please tell me how to correct it exactly. Thanks.

    • @user-gu7hx9rw4j
      @user-gu7hx9rw4j Год назад

      hello...did u use the same libraries provided in the description..or did u installed any other library i mean ds3231 library

  • @Arif-tz5tf
    @Arif-tz5tf 2 года назад +1

    Bhaijaan how to make a annual timer module using rtc and arduino which can be triggered at specific date and time

  • @AbdullahiIbrahim-qr2hn
    @AbdullahiIbrahim-qr2hn Год назад +1

    After uploading what am i suppose to press to start the clock because its not diplaying anything

  • @govindhanotia
    @govindhanotia Год назад +1

    excellent work

  • @AzeemKhan-hr3td
    @AzeemKhan-hr3td 3 года назад +1

    When code is campile with ide then arduino circuit is may compulsory to add system /laptop or not?

  • @xicor8631
    @xicor8631 Год назад +1

    Hi bro new with arduino but why does the file not working it says "no such file or directory

  • @kamisettysaisaidheekshitha1202
    @kamisettysaisaidheekshitha1202 3 года назад +1

    nyc project..... can you
    please upload the links of components in amazon/any websites

  • @desimunda444
    @desimunda444 4 месяца назад

    When I compile and upload the code to proteus,it shows the next day. Ex if today is Monday it's shows Tuesday like wise

    • @MuhammadAnsar
      @MuhammadAnsar  4 месяца назад

      set day

    • @desimunda444
      @desimunda444 4 месяца назад

      @@MuhammadAnsar Already set the day, but my question is once i compile and run it on proteus it shows the next day. Then I use the button to set correct day. After stopping the proteus and re run the simulation the day automatically changes

  • @munjilhossain5336
    @munjilhossain5336 3 года назад +3

    Can we make LED clock with it. if yes , please make a video on it.thanks

  • @rickinhodutil
    @rickinhodutil 3 года назад +2

    good night!! very much your project, would it be possible to add a time in the alarm clock? for example put a field where you can select how long it stays dispersing.

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад +1

      Yes you can!

    • @rickinhodutil
      @rickinhodutil 3 года назад +2

      @@MuhammadAnsar is it hard to do? can you give me this light?

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад +1

      @@rickinhodutil Check this video:- ruclips.net/video/DI-pfmb4nT0/видео.html

    • @rickinhodutil
      @rickinhodutil 3 года назад +2

      @@MuhammadAnsar wow, congratulations!! you are a genius, thank you

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад +1

      @@rickinhodutil welcome

  • @slciz9460
    @slciz9460 3 года назад

    Liked the asmr at the start. lol xD

  • @elifozturk
    @elifozturk 3 года назад

    Thanks for your work. It was very useful.

  • @frazfahad85
    @frazfahad85 3 года назад +1

    Sir, can I direct connect the connections without adding the breadboard in real time RTC 3231 project? Can this project works or not?

  • @iamantiromantic
    @iamantiromantic 2 года назад

    Hello! Thank you a lot! But there is a problem here, buzzer does not sound, what do you think?

  • @rahulwaghela7701
    @rahulwaghela7701 2 года назад +1

    And please make vidio on how to make time setter for led

    • @MuhammadAnsar
      @MuhammadAnsar  2 года назад

      Check this video:- ruclips.net/video/DI-pfmb4nT0/видео.html

  • @gharatcreations1910
    @gharatcreations1910 Год назад

    An error occurred while uploading the sketch
    avrdude: ser_open(): can't set com-state for "\\.\COM14"
    uploading time i am getting this error please solve my problem .When i use uno uploading is working prefect .

  • @gomezveloso9992
    @gomezveloso9992 2 года назад +1

    Hello, how can i change the language for the day?

  • @sanjogkumarbarik7460
    @sanjogkumarbarik7460 2 года назад

    whats the use of 1k resistor...? why it is connec ground with contrast pin...??

  • @ankitjaiswal3315
    @ankitjaiswal3315 Год назад

    When I compile the code, the display shows me that there is no match for the call to 'DS3231(const unit8_t&, const unit8_t&)
    please help me very urgent sir
    tell me solution

  • @satish95139
    @satish95139 3 года назад

    excellent

  • @wadihhanna
    @wadihhanna 3 года назад +1

    Excellent work !

  • @ariesdiscoshow2316
    @ariesdiscoshow2316 4 года назад +2

    buen dia, excelente proyecto bien explicado, te pregunto como hacer que el reloj sea 12h?

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад +3

      if(t.hour>12){hh=t.hour-12;}// for removing 24 houre
      else{hh=t.hour;}

    • @ariesdiscoshow2316
      @ariesdiscoshow2316 3 года назад +1

      @@MuhammadAnsar ok, muchas gracias

  • @jackoliver8514
    @jackoliver8514 3 года назад

    Nice work sir. I m having a problem with proteus file. My ide is not generating hex file. If there is another way to run sim, please let me know. And showing tuesday, today is thursday! How can i change the day?

  • @smartups1
    @smartups1 2 года назад +1

    School bell ka project app nay video main upload Kia hay .

  • @yogeshitaliya473
    @yogeshitaliya473 4 года назад +1

    Nice one bhai

  • @ianacoustic6685
    @ianacoustic6685 Год назад +1

    hello sir can i request?please create a tutorial about how to set time and date using the buttons please help me im a student thankyouu im using ds3231 rtc

  • @sakimpranto
    @sakimpranto 3 года назад

    when i was run proteus why that is not sound?
    how to be a add sound function in arduino??

  • @lotfibouchiba1537
    @lotfibouchiba1537 Год назад

    merci beaucoup maitre

  • @angeloevangelou918
    @angeloevangelou918 2 года назад +1

    Hello, nice work!, can we have variable time for the time the alarm stays on? so make a period timer? thank you!

  • @amynrw550
    @amynrw550 3 года назад +1

    Super

  • @User67632
    @User67632 4 года назад +2

    Sir this clock project code showing error when i compiled this code so sir can you please give me link of right code

  • @akutahu7677
    @akutahu7677 3 года назад +1

    thank you bro ...

  • @User67632
    @User67632 4 года назад +2

    Sir can you give the download link of libraries which you have used in aurdino clock code

  • @chetnakachhwaha8219
    @chetnakachhwaha8219 8 месяцев назад

    The code is not working: "error: redefinition of 'class DateTime'
    class DateTime"

  • @fouzanjaved5441
    @fouzanjaved5441 3 года назад +2

    Sir, I really like the Real-Time Clock with Alarm using Arduino and RTC DS3231. Sir, I compile the code on how to make the Real-Time Clock with Alarm using Arduino and RTC DS3231 in Arduino Uno, the sketch did not show me the address that shows on your laptop the way, you compile the address to the proteus 8 professional. Sir, what is the reason that my sketch did not show me the address to the proteus 8 professional, the way, you copy and paste the address of the Proteus 8 professional from the code you compile from the Arduino s' Real-Time Clock With Alarm using Arduino and RTC DS3231? Please reply to my question. Thanks, sir.

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад +1

      open the arduino ide software go to file and Press the preferences and salt the
      show verbose output during: [X]compilation [ ]upload

    • @fouzanjaved5441
      @fouzanjaved5441 3 года назад +1

      @@MuhammadAnsar, Sir, the cross sign says yes or not and the [ ] sign upload says yes or not. Sir, I am confused by the two signs [X]compilation [ ]upload. Which one is the sign? Please tell me, sir. Thank you, sir.

  • @cyborg856
    @cyborg856 8 месяцев назад

    Sir it is showing error related to all the rtc related files, can you please send me the library download link

    • @inciay
      @inciay 8 месяцев назад

      Same problem :/

  • @candrasniper3404
    @candrasniper3404 3 года назад +1

    The code comments are using Indonesian language.

  • @fouzanjaved5441
    @fouzanjaved5441 3 года назад +1

    Thank you, sir for accepting my friend request on facebook account.

  • @govindhanotia
    @govindhanotia Год назад

    dear sir please make digital clock with ds3231, 4 seven segment, 4 time setting switch

  • @jopiebangoen5616
    @jopiebangoen5616 2 года назад +1

    May you make a tutorial , like talking clock using arduino?

  • @desimunda444
    @desimunda444 4 месяца назад

    Please upload Arduino Uno library for proteus

    • @desimunda444
      @desimunda444 4 месяца назад

      Please upload the library of the same Uno board u have used in the proteus

  • @zatieika24
    @zatieika24 3 года назад

    In the first line of coding , i got an error at "Memanggil" . anyone have a solution . please reply in ASAP

  • @electronicsideas1361
    @electronicsideas1361 3 года назад

    some error C:\Users
    skam\OneDrive\Documents\Arduino\libraries\Arduino_POST_HTTP_Parser: Missing 'paragraph' from library

  • @motazmsaddak5242
    @motazmsaddak5242 3 года назад +1

    assalamu alaikum... nice work... I want to make one with I2C LCD 16*2. How can I do it... what changement would be in the code

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад

      add the i2c lcd library

    • @sanjaynoida
      @sanjaynoida 2 года назад

      Change lcd library only

    • @jaysethiya198
      @jaysethiya198 Год назад

      @@sanjaynoida what changes we have to do in hardware I mean in i2c there is four pin so we have to remove all the pin which is connected the lcd to Arduino and just join these four pin ?

  • @saputrasss211
    @saputrasss211 Год назад

    Bro... the coding DS3231 rtc(SDA, SCL); And Time t; is not work, can you send me coding again??

  • @jameshendri4814
    @jameshendri4814 3 года назад

    Hi Ansar when i compile the sketch i get "rtc was not declared in this scope" i have made no changes to your code. Any advise please. Thank you.

    • @sanjaynoida
      @sanjaynoida 2 года назад

      Delete last 3231 library and save new from the link

  • @jito7921
    @jito7921 3 года назад +1

    What should change in code for am/pm clock.

  • @user-jx9tl3ol6u
    @user-jx9tl3ol6u Месяц назад

    code is not working.

  • @mycomputer1429
    @mycomputer1429 6 месяцев назад

    display nahi chal raha kya karu kuch show nahi horaha hai

  • @AmirulHakim-yd9rx
    @AmirulHakim-yd9rx 3 года назад

    Sir..I have tried this project but using LCD that attached to I2C...i find that only UP button is working

  • @m.mudiralmusyafa7148
    @m.mudiralmusyafa7148 3 года назад +1

    Please make how to be able to set 2 alarms at once

  • @Youssef.Belhadj
    @Youssef.Belhadj Год назад

    sorry i don't speak hindi but i have a question how to add more than one alarm pls

  • @dineshkumarnaik2807
    @dineshkumarnaik2807 2 года назад +1

    Is bala clock me every 1 hour ke bad alarm Bajega keya?
    Nahi tho bo bala be video kar do

  • @fouzanjaved5441
    @fouzanjaved5441 3 года назад

    sir, can you please tell me the real Time Clock With Alarm using Arduino and RTC DS3231 library?

  • @jaysethiya198
    @jaysethiya198 Год назад

    How this lcd is connected to breadboard directly without i2c module? Pls reply 🙏🏻

  • @thetechtalkcorner
    @thetechtalkcorner 2 года назад +1

    Plz send me Arduino Uno code , download link not work

  • @tachmidfadillah9905
    @tachmidfadillah9905 3 года назад

    can anyone help, why can't my circuit enter the set time menu?
    ada yang bisa bantu,kenapa di rangkaian saya tidak bisa masuk ke menu set time?

  • @techworldxyz
    @techworldxyz Год назад +1

    What's the purpose of that 2 10 k resister

    • @MuhammadAnsar
      @MuhammadAnsar  Год назад

      not use the 10k resister its 4.7k and 1k
      its use for the lcd contrast setting

  • @rajibsarkar196
    @rajibsarkar196 3 года назад +1

    Sir show a weekly multi timer

  • @jaysethiya198
    @jaysethiya198 Год назад

    What you done at 15:00 time on your laptop? my code is uploaded but it does not show anything pls help😀

    • @MuhammadAnsar
      @MuhammadAnsar  Год назад

      code is ok check your hardware

    • @jaysethiya198
      @jaysethiya198 Год назад

      @@MuhammadAnsar I also checked hardware too but it does not show any out put😢

  • @tekdhami4925
    @tekdhami4925 3 года назад

    Can we set single alarm or many

  • @gwenez8789
    @gwenez8789 4 месяца назад

    where is the code

  • @User67632
    @User67632 4 года назад

    Sir can you give download link of "Button.h" library by creating by your own

  • @user-gu7hx9rw4j
    @user-gu7hx9rw4j Год назад +1

    Hi Ansar, thank you for the project but it is showing errors at every line related to rtc and ds3231
    can u please tell me how to verify it..i tried installing different ds3231 library from the google, but still it is showing error at same places

    • @MuhammadAnsar
      @MuhammadAnsar  Год назад

      the link given in the description of the video also contains the library

    • @user-gu7hx9rw4j
      @user-gu7hx9rw4j Год назад

      I tried installing that library but it is showing library is not available

    • @user-gu7hx9rw4j
      @user-gu7hx9rw4j Год назад

      can u please tell me, from where did you installed ds3231 library from.
      I'll try to install it from the site.
      please tell me.....@@MuhammadAnsar

    • @cyborg856
      @cyborg856 8 месяцев назад

      ​@@user-gu7hx9rw4j bro did you get your issue resolved, I am also getting the same issue

  • @mahedihassan7611
    @mahedihassan7611 3 года назад

    Brother how to i convert it 12 hours format please told me

  • @ramadhanalvin1166
    @ramadhanalvin1166 3 года назад +1

    can i get the library it's not add in link you gift

  • @samanjayatileka2060
    @samanjayatileka2060 2 месяца назад

    This person, no an answer question

  • @saleemmarwat7541
    @saleemmarwat7541 3 года назад +1

    temperature kaisy measure krta hy??

  • @tekdhami4925
    @tekdhami4925 3 года назад

    hello sir..how many alarm can we set ?

  • @bachir7723
    @bachir7723 3 года назад

    No maching rtc(SDA, SCL)

  • @sunithavlvl4528
    @sunithavlvl4528 3 года назад +1

    This code work only in arduino uno. When i change that arduino nano will it work

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад

      yes it will work on all boards who have similar chip like Atmega328 etc

    • @sunithavlvl4528
      @sunithavlvl4528 3 года назад +1

      Thanks you reply sir

    • @sunithavlvl4528
      @sunithavlvl4528 3 года назад

      Can i upload the code in android phone

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад

      @@sunithavlvl4528 Welcome

    • @sunithavlvl4528
      @sunithavlvl4528 3 года назад

      Can i upload the code in android phone

  • @mahedihassan7611
    @mahedihassan7611 3 года назад +1

    Brother i am a business student i have no idea how to convert this time in 12 hours can you give me the code of 12 hours..

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад

      send email

    • @mahedihassan7611
      @mahedihassan7611 3 года назад

      mahedidwk06@gmail.com

    • @mahedihassan7611
      @mahedihassan7611 3 года назад

      @@MuhammadAnsar mahedidwk06@gmail.com

    • @mahedihassan7611
      @mahedihassan7611 3 года назад

      @@MuhammadAnsar i tried because of few knowledge i changed it as 12h but then the problem is date & Day won't change or update. can you send me the 12h formate code. email: mahedidwk06@gmail.com

  • @akhilraj334
    @akhilraj334 2 года назад

    Error programme. I cant upload it

  • @asifmobile355
    @asifmobile355 3 года назад

    bhai jan 12h ki file ka trika kar kia hay pleas btana zror