EASY Arduino Alarm Clock based on DS1302 RTC

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2018
  • Hello, this is an Arduino based project, it's an Alarm Clock made with Arduino UNO, 4*4 Matrix keypad, DS1302 RTC, LCD i2c screen and a buzzer, you can reprogram the time on the RTC module and you can set the alarm on it, the code is very clear and easy so you can modify it or embbed it in your projects, hope you like it.
    Please consider a Like and Subscribe
    Wiring and codes:
    surtrtech.com/2018/10/14/simp...
    How to setup RTC DS1302 with keypad and Arduino:
    goo.gl/cySS9x
    Arduino 4*4 Keypad Matrix and LCD i2c:
    goo.gl/gm7tMJ
    LCD i2c Arduino tutorial:
    goo.gl/o5gqYY
    How to simply use RTC DS1302 with Arduino:
    goo.gl/GmCKSi
    Arduino Modules playlist:
    goo.gl/aYuv4Y
    Arduino Projects playlist:
    goo.gl/sL4Bge
    Facebook: / surtrtech
    Twitter: / surtrtech
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @Blue-tv8zu
    @Blue-tv8zu 4 ปีที่แล้ว +1

    So im working on a project that i have to set a led on when a certain the certain hour comes. I tried to use your code as a example but since im a newbie and i wont be using lcd and a keypad just the rtc module i need your help

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

    Thank you so much ,You are my god

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

    Hello! Can i modify your code with a week/month timer? And i will use a single button for it to function? If i press the button the Week/Month timer will start?

  • @user-bc9oj2gc8n
    @user-bc9oj2gc8n 2 ปีที่แล้ว

    If the power is turned off, does it save the entered settings or not?

  • @harshkhullar6228
    @harshkhullar6228 5 หลายเดือนก่อน

    hey! i am taking help from ur video for my project so can u tell me which libraries should i download for ds1307 and for pinpad, i2c led and a buzzer?? hope u will reply soon!! thank you

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

    could I use push buttons instead of the keypad?

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

    great job, please show us how to make the same using a nodeMCU

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

    exit status 1
    redefinition of 'virtuabotixRTC myRTC'
    how can i fix this?

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

    Hello, sir, this video is very knowledgeable and entertaining at the same time! I'm a student who is actually working with the RTC module, and more stuffs connected to it. I'm having a problem with the programming of the codes because i'm still a newbie in this kind of field. How can I use buttons to increase/decrease the minutes of the RTC and make the buzzer ring when the time desired by adjusting the minutes is met? Thank you!

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

      The alarm over here permits you to ring when the hour/minute you set before is met... the code is done in a very basic and beginner way.

  • @bhoomika_gowda
    @bhoomika_gowda 10 หลายเดือนก่อน

    Hello can you please write a code and show connection for water spray with servo motor to spray on the alarm time? Please help sir we are doing a project

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

    I am interested in your video, can I make a program like this but not a buzer but a motor dc using motor driver ?
    thx

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

      Sure you can do it, but the little issue here is that a dc motor driver will at least be needing 2 pins, here I used all of them, even if you remove the buzzer you'll still need another pin.
      If you don't need to control the direction and speed of the dc motor you can use a transistor or a relay which will be fine to turn on and off your motor.
      But if you want to control the speed and direction you should do some changes: either try to use the keypad with less wires (one wire method ex), or get a bigger board like Mega.

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

    how to set multiple alarm at a time

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

    can i ask that when i change the tone at your (//You can modify the tone or make your own sound) to happy birthday song but it not show the message when alarm is ringing right away and when i press any key it doesn't turn off the alarm. Help

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

      Try to not make a long song there, there's a loop over there that keeps ringing until you press a button that's read by "getkey" function, and as you can see the code I used has a total of 200ms delay, which is quick and the button can be read. there's probably a better way to break that loop at any time... I didn't research enough

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

    I have problems with redeclaration of liquid crystal i2c.. Can you help me???

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

      Hello, what it the problem?
      Check if your library is installed correctly, and check if you don't have more than 1.

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

    Hi, i use your code as my reference in my ongoing project, which is related to gardening. I add some sensors to your code, now upon pressing the keypad i have encountering delays. Can i ask some help? Thanks

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

      Hi, let me know if I get your question, so when you press a button it takes time for your Arduino to get it? Is it for every button or only when the program is looping and you press the buttons that set time or alarm?

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

      @@SurtrTech if i press A, it take 1+seconds for me to go into the alarm menu.

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

      @@r1qqq That's because the other functions you've added take time to finish, you could think of interrupts but they're for crucial functions and they're usually short, so it won't come handy :/, you could also think to put the other functions in a while loop (and it keeps going for a certain amount of time or if a key is pressed).
      Those are just some idea to try, sorry I've never tried them in a project yet.

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

      @@SurtrTech thanks for the clarification, thats what im thinking rightnow. Im gon update u after i found a solution to it. Thanks again! Very responive tech channel and very helpful

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

      @@r1qqq You're welcome.

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

    hi, I uploaded the code and the various libraries, then compile but an error message appears on the screen :
    no matching function for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int, int, int, int, int, int, int, int)'
    how do I solve this problem?

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

      did you solve the problem

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

    Hi sir, how I can make many alarms on it and how I can produce the time and date or the day

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

      Hello, try to contact me on facebook, I'll look for a code that can set 3 alarms it was done by another, "produce time...?" sorry I didn't understand what you want to mean.

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

    Hi, can I use DS1307 RTC for this project instead of DS1302 RTC?

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

      Yes, just use the correct library for it, and you can replace the functions to set the time and update it...

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

    Hello. When I did this, the first alarm worked but when I set another time after the first alarm stopped, the buzzer didn't alarmed. :(((

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

      I don't know about the issue, but you can contact me and tell more details

  • @discordaccount-wp5tl
    @discordaccount-wp5tl ปีที่แล้ว

    Hey is there any way i can contact you i just needed help

  • @maxxima-wb7yk
    @maxxima-wb7yk 10 วันที่ผ่านมา

    How to make this one without using breadboard, please someone help

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

    sir how to replace ds 1302 rtc with ds3231
    what changes we have to done in program

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

      Library and all functions and entity declaration related to it...
      Virtuabotix
      myRTC (i,i,i)
      myRTC.Hours/minutes/sec ....
      All these should be replaced with similar functions from the DS3231 library you're using

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

      @@SurtrTech sir
      i completely check the code
      make more changes in the code
      but i cant find the solution on that practically
      sir can i send you the code on mail
      sir can you please check this code

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

      Send to FB page, I'll just check the functions... I can't check the whole project

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

      @@SurtrTech sir i send the code on FB

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

    Is this alarm rig everyday? Or for one day

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

      Normally, it should ring everyday, because only "B" key deactivate it for all,
      When turning the alarm off, it only quits the ringing sequence

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

    Hola, es que el archivo del código me aparece dañado y no lo puedo ver, me lo podría volver a compartir por favor o enviarme otro link por favor!

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

      Hello, this is the code link drive.google.com/file/d/1SDiRCwpN9OmBrSFV9qVLvPQQ8XDYOM-3/view it's a just an archive and you'll find the code there, I just cheked all links looks okay

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

      If you still find the problem, tell me and I'll reupload

  • @87_ecearunmohan76
    @87_ecearunmohan76 5 ปีที่แล้ว

    can i make three alarms using the above circuit, please provide me the code for three alarms bro

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

      Hello, I apologize I can't do it for the moment, if you give me some times may be I can do it.

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

      @@SurtrTech 1 year

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

    why time counter is blink.can u fix that?

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

      Hi, Are you talking about the blinking on the video or in your personal project?
      On the video is just the refresh rate of the LCD isn't synchronized with the refresh rate of the camera.
      If you're having the same issue in your project, you can add a little delay on the loop program.

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

      hi, in project..i use I2C lcd but the timer counter is blinking.i try delete lcd.clear but the timer seconds count like crazy..how i can fix that..tq

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

      @@zeistgeist1105Do not remove the lcd.clear, you can try to add a little delay for the loop 100ms or 200

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

      that a litle help and fixing that blinking...i'm try 100 0r 200ms but nothing happen so i decide to make 1000ms,is fix but still got small blinking..by the way tq for that tutorial

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

      @@zeistgeist1105 No problem, just for the delay it should be before the lcd.clear() otherwise you'll clear the screen and wait that delay with a blank screen.

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

    hi, im having problems with your code it says: no matching functions for call to 'LiquidCrystal_I2C::LiquidCrystal_I2C(int, int, int, int, int, int, int, int, int)' would you be able to help?

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

      Hello, that's a library problem, you have installed more than one that have the same name, so now instead of looking at the library like I used, the code looks inanother one but finds that they don't have the same number of arguments...
      Solutions: You either replace the library and functions in the code with the one you prefer to use, or remove other libraries.

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

      @@SurtrTech i have deleted all libraries and only put the ones necessary and it still shows this error, however i added a POSITIVE to the end of the constructor and added in the whole suggested library which shows no errors except error compiling to arduino exit status 1, any idea to fix that? thank you!

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

      @@MrLordofgames Which libraries did you remove... make sure to remove only those who have the same name as liquidcrystal_i2c, doing this you don't have to add something to the constructor or function... If you add something it will be an error.
      Restore what you removed, and look only for libraries that have the same name, you'll find them in Documents/Arduino/Libraries and make sure you didn't install others in other library placements

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

      @@SurtrTech im sorry for the confusion i accidentally altered the code, the code seems to be working now, thank you for your time man i appreciate it!

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

      except now the LED only displays white boxes and no text im really sorry, would you be able to help again?

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

    What if we have no keypad matrix?

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

      You can just program it everytime you need, or have few buttons for inputs to set it