Simple & Easy Arduino Alarm Clock with DS1302
HTML-код
- Опубликовано: 5 окт 2024
- Simple & Easy Arduino Alarm Clock with DS1302
Components Needed:
Arduino Nano (or Uno)
USB cable for arduino
DS1302 rtc module
16x2 LCD with I2c module
3 push buttons
breadboard
connecting wires
Arduino codes:
drive.google.c...
WATCH, TRY & LEARN
please like, subscribe and share for more videos of experiments to come.
Thank you for watching... - Наука
Nice project dude! we'll try to do this project in our school and hope it works. More power to your channel!
Thanks for the comment, I am preparing to have more informative and helpful videos in the future.
A very useful video, short, clear, and most importantly useful, I downloaded the code, uploaded it to the Arduino and everything works, only in my case the LSD initialization looked like this: “lcd.init();” instead of "lcd.begin();" and I used Arduino Uno, thank you.
Hello , can used ds 1307? Or Need any changes in the code. You can make the reloj with rtc ds3231 in my country is very hard found the rtc 1302.
Beautiful project!!! But how do i activate alarm for only 3 seconds without me having to stop it using the button
In the alarm function, you can just adjust the delay for the specific time you want then at the end of function change the mode = 1 , to exit in the loop of the alarm
@@JRECT which function ? i tried but its not working. Where add delay?
thank you very much, it is very good project for beginner
Glad you like it!
Hello, this project is excellent. I have a question I would like the alarm to sound every day without setting it daily, can help me
We're almost done doing this clock but we have a problem. In our lcd, it shows
3:85:85 PM
45,2165 SAT
What do you think is the problem? Please help us
same bro, have you fixed this?
Hi, can you give me more details?
Did you use all the same components? how about the code did you modify something?
If you did not change anything and follow the steps, try to check your DS1302 rtc module separately, try to check this video ruclips.net/video/McFwGz4srOw/видео.html
Is there a way to integrate other melody instead of the buzzing sounds on the alarm clock? like a song melody for example? Anyways, great project bro keep it up!
Hi, yes, there is, you can use tone() functions. Check this link ruclips.net/video/L7H5PiJLeBc/видео.html
I've included the I2C library u recommended in your previous video. I even deleted existing other I2C libraries. But still getting that library i2c.begin error. Plz help me
Napakahusay Naman po Good job
Salamat po.
Hi, I did everything you did but the lcd only display boxes on the top row and nothing on the bottom row. What should I do to fix this?
Hi, try to adjust the potentiometer at the back side of LCD.
hello, can u make a video using arduino uno and please upload the codes. thank you
Hi, you can use the same arduino codes with uno, just use the same pin connections.
hello mister, how about using ds1307 rtc ? can you change the code @@JRECT
Hello from 2024, I will like to know assuming I connect my Arduino through a Bluetooth module. How can I dynamically set the time instead of having it pre programmed. Thanks
May I know how to get the current date & time? When compile, by default it's showing 1st Jan 2000 instead of current one
Does it save the time you set even after you unplug or lost of power supply?
Yes it will as long that there's cr2032 battery in the RTC module.
great project...congratulations...can I add about 50 events with different days and times???how do I do that??
Nice one you are talented
Will it work of you use a different RTC module?
Hello, ive already connected the wires and uploded the codes, but my LCD still doesnt show anything just the buzzer that rings momentarily, pls help
Hi, kindly try to adjust the potentiometer at the back of lcd.
Our buzzer doesn't work when its alarming. What do you think is the problem? please help us 🙏🙏
First of all make sure the connection is correct and the polarity of the buzzer, secondly make sure that you are using active buzzer not passive buzzer
Hi, i have a question, if you set up an alarm , will it be off after when it rings, or it will be repeated the next day? I need the answer asap, so if you have the answer please let me know, thanks in advance
no matching function for call to
LiquidCrystal_2C:begin()'
however I did download the right library.
hi, do you mean the same library with this video ruclips.net/video/z4CX3UaJHFo/видео.html ? ,if not try to delete the existing library for lcd i2c then download the library with the link i send. Just make sure also that there's no other i2c lcd library installed.
@@JRECT I've tried but it still happens like that
hi, try to check the codes - just notice in the error you send above there is missing letter I, so maybe only wrong spelling in the include library in the codes that maybe it was delete unexpectedly while doing something in the codes
it's either the spelling of the include library or the library installed there was a conflict with other libraries or wrong library
help me ,it is error
exit status 1
no matching function for call to 'LiquidCrystal_I2C::begin()'
hi, did you already install the library for lcd_i2c?
if not please check this video, and the link for library is available at description ruclips.net/video/z4CX3UaJHFo/видео.html
I double checked all my connections i am using arduino uno but lcd wont display text even if i adjust potentiometer... i even tested the lcd 1602a i2c individually and it does display an output.
Hi why does our buzzer doesn't work when alarming? What do you think is the problem? Plss help us. Thank you.
First of all make sure the connection is correct and the polarity of the buzzer, secondly make sure that you are using active buzzer not passive buzzer
Thank you so much, very helful.
Awesome video dude!
I tried to execute your code but I get a message of
warning: invalid conversion from 'int*' to 'int' [-fpermissive]
EEPROM.write(addrActive, 0);
can you help me with this? Thank you so much
Hi, did you already solved your problem?, if not make sure that you download the correct library and codes, and try to upload and test before modifying anything.
sir how may i change the code to stop the alarm from deactivating once rung. I would like the alarm to ring everyday at the said time without the need to set it everyday
Hi, you can comment out this part:
EEPROM.write(addrActive[x], 0);
so it will not deactivate once it was rung
@@JRECT Hello
by comment this line the alarm deactivation button (red button) no longer works :)
I tried to add to the alarm function: if (digitRead.... mode =1
not working
any ideas?🤔
@JR-ECT i am using a arduino uno can you tell me where to connect the jumper wire to the breadboard. Please let me know thank you.
pwede po ba i set yung repeat ng alarm? like tutunog ulit yung alarm every day or every monday-wednesday lang?
nice tutorial and project
Thank you!
Hello, I am making an alarm clock that triggers a motor upon ringing. Any ideas on how to integrate a motor into this system?
Hi, you can use a relay to connect the motor, then you can just another output in the code that will trigger the relay.
Just wanna ask is the code same for arduino nano and arduino uno because I will need to change the nano to uno cause I don't have nano
Yes it will be the same code for uno and nano, just don't forget to change the board in uploading the codes.
Hello! Did you use the Arduino Nano v3.0 CH340G microcontroller? Thank you
Yes, correct
Nice making 👍 good job bro
Thank you so much 😀
Nice lods keep safe gdbless
hello, if we're using a battery, what type of battery do you suggest? we can't find any answers on google, this is our last hope😭 thank you for making this vidd♥️♥️
battery as power source
For easy power source, just use powerbank then use the usb cable. But if you are asking for battery, 9v battery, or any battery with a range of 6-12v will be fine to connect in Vin pin of Arduino nano.
If you are looking for rechargeable battery, I prefer 18650 battery connected to charging module that will provide 5v output that will connect to 5v pin of Arduino board
@@JRECT Thank you very much!!
I make this project for my sister birthday🙂. Then I change default time and date to current time and date, but they not update.😔 How can I fix that?🙄😕
hello JR-ECT
I just opened the arduino code and when I press verify it says no matching function for call to "liquidcrystal_i2c::begin()"
and what should i do?
sorry my english is a bit bad
hi, did you already install the library for lcd_i2c?
if not please check this video, and the link for library is available at description ruclips.net/video/z4CX3UaJHFo/видео.html
@@JRECT I have downloaded the appropriate library according to the video, but it still won't turn on,
after that I tried the word begin, I changed it to init, then there was no writing as before. But the new problem is that the LCD doesn't want to show the time,
and I have seen from the component cable there is nothing wrong.
so what should i do?
I instead tried to mount a arduino uno on to the breadboard but it didn't work any suggestions please
If you are using arduino uno, just use jumpers wire to connect arduino and breadboard
@@JRECT you the man
Hello, I have a question. How to change 12h to 24h. Thank for response.
hi, in the clockDisplay() function you can check the if statements, you need to uncomment some if statements and modify. If you want I can send you a revised code with 24 hour format, just send me your email add.
@@JRECT Hi, I dit it. Everything work well. Thanks
nice, glad to hear.
what an awesome.content my homies
Galing naman po.
Salamat po
i used ds3231 rtc module.when i upload the code the initial time didnt came as it as current time.i tried rtc sample code but buzzer didnt ring
Pls also put the link of website from where did you find all the libraries
same card same connections but have no matching function for call to 'LiquidCrystal_I2C::begin()' error. ı try all versions but not working
Hi , i have a question is this code will start well if i use i2c clock model?!????
Hi, thanks for sharing this with us. Please, can you help us to make a project?
hi, can use ds3231 intead of ds1302 rtc?
You can use but you need to modify the codes because of the library
@@JRECT thank you
@@JRECT by the way do you have simple clock with alarm and light auto and auto off depend on time settings?
diagnostics says 'virtuabotixRTC.h' file not found, after compilation, it says fatal error, and No such file or directory, can you help me?
Hi Bernabe Beduya, it means that they did not found the library for the RTC, you can check and install the library from this video ruclips.net/video/McFwGz4srOw/видео.html , if there's any problem just feel free to message.
Wow, cool!
Thanks.
Nice. Thank you so much 🙂
You are most welcome and appreciated your comment.
Kindly like, subscribe and click notification bell to receive latest upload update.
After uploading the codes, Lcd shows
12:00:00 AM
0/2000
What do you think is the problem? Please help us, this is for our project 🙏🙏🙏
we already set it but nothing happened
Try to test the RTC module alone. It might be the problem.
Try to check my tutorial about the RTC module only
@@JRECT we already tried it. maybe the rtc is defected that's why. Thank you so much 🙏🙏🙏 your vids is so amazing
If you try the other tutorial for only RTC and it's not working, most probably the problem is RTC module.
Hi, can you help me about the LCD?
Can you give me details of the problem
I set the time but it doesn't show up on the lcd display and the time doesn't move.
Hello, the lcd display doesn't seem to display any text after I uploaded the code to the arduino. Everything seems to work except there is no text on the lcd monitor.
kindly try to adjust the contrast of LCD, by rotating the potentiometer at the back of lcd i2c module
same problem did you find nay solution?
@@jeonheejinie it was different for mine. It was a coding issue but potentiometer might work
@@jeonheejinie I tried to adjust the contrast of the lcd but still, it wasn't able to display the time. My LCD is 1602 module blue with pin header
Kindly try to check the i2c address.
Hello I use arduino uno and as I read everything should work fine but when i put everything together and upload the code the display shows only the squares like yours does in the video when you upload the code, but on mine the time never shows up. I hope maybe you could help please?
hey did you find any solutions?
@@nazanin2027 LiquidCrystal_I2C lcd(0x27, 16, 2); here you change to 27, it is at very begining
i am geting only boxes on screen plz tell me how to fix it
Try to adjust the potentiometer at the back of the lcd.
Thanks; Does it work with DS3231?
Hi Daniel, it will not work with DS3231, the library that we used in the code is for DS1302.
Hey there
My LCD just shows black boxes despite downloading the correct libraries and codes. Also I am doing this project wth Arduino UNO. Any suggestions?
Hi, try to adjust the contrast of the display, by turning the potentiometer at the back of the LCD
@@JRECT Tried that too but still the same problem
Any other suggestions?
kindly try to check that you are connecting the LCD i2c module to the correct pins of Arduino Uno, SDA -> A4 , SCL -> A5
kindly try to do this tutorial first regarding LCD i2c with Arduino Uno, ruclips.net/video/z4CX3UaJHFo/видео.html
@@JRECT Also I am using Arduino M795 pushbutton. Does this affect the working?
is it possible to add more slots instead of just only 5 slots?
Yes it is possible.
@@JRECT Hello master how to add more slots? Thanks for the reply
@@JRECThow to add more slot sir can you tell it
Excellent
Can you share the code
Good job
Thanks
thanks bro...
You're welcome!
Could you help me.How do I find your library?
check my other video about DS1302 RTC the link for the library is there
ruclips.net/video/McFwGz4srOw/видео.html
Hello, i have successfully work it out !!! I was so happy, nice project too. But i wanted to test it on LCD without i2c, i changed the codes ( the libraries , void setup begin part, and backlight) and also changed the pins connection - RS = 12, en = 11, D4 = 5, d5 = 4, D6 = 3, D7 = 2 (LCD pins to Arduino Pins). The outcome is the LCD shows the alarm mode straight away and when i press the set button, the mode changes then goes back to alarm mode rapidly, the buzzer is ringing all the time as well. Do you know what's wrong with it?
Hi Agnes, glad to heard it from you. The problem might be occurred when you modify the codes, kindly check the there's no conflict in the digital pins that we used when you added the pins for LCD, kindly check also the parameters that you did not change anything else other than LCD codes.
Hello.. I want to do this project for my final year can you guide me please
bakit wala pong nalabas sa lcd yung sa akin?
@@JRECT sir may problem po sa akin. pwede mo po ba ako tulungan?
Sir, nacheck niyo na po ba ung potentiometer sa likod ng LCD? mostly kpag walang output na display dahil sa contrast.
If i will make a timer, how source code, please...🙏🙏
My LCD only shows the white boxes, any idea why this is? Thank you!
same, you found any solution?
how about the cuckoo clock.. can you teach me ?
if you want the same thing, but the only difference will be the sound which is cuckoo, it will be easy.
@@JRECT cuckoo clock is analog movement.. with the bird sing comes out every our
Great project, but I can't download the code. Can you publish it as text or something like that? Thanks a lot! Bye!
Thanks for the comment, I will check it later, and will reply to you, or if you want you can send me an email at jrelectronicstechnology@gmail.com and I will send you the codes via email.
can we use battery to power this circuit? if we can use, what kind of battery and where we will put it? pls reply 🙏
Yes, you can use battery. Any battery that can supply 5-12v in the Vin of the arduino nano. Or you can just use a powerbank and just connect the usb cable
@@JRECT thank you so much 🙏🙏🙏🙏
@@JRECT When we're programming the device, it says that no matching function for call to 'LiquidCrystal_I2C::begin()'. Can you help me?
@@secret7195 just delete that line
buzzer it doesn't work with arduino why ?
Check if it is properly connected, and also the polarity. And make sure that your buzzer is active buzzer
To check your buzzer: ruclips.net/video/L7H5PiJLeBc/видео.html
Hello sir, can I ask why the code doesn't run? It says no file or directory. How can I fix it?
Make sure that you downloaded the libraries used.
Can't add library file.. please help
Paano Po kapag ds1307 rtc module Po
.hellow po.. ang galing paturo po..
salamat po
Please share the code
Where is virtuabotics library
the link for that library was on the description of this video: ruclips.net/video/McFwGz4srOw/видео.html
Thanks sir
Code need my pls
kindly check on description, there is a link for the code
Not open this aurdino program
hi, can you tell me more about this problem, just make sure that you have arduino IDE to open the codes
Please give me correct code
Hi, the codes in the description is correct, there might be a error because of missing library and you can found the i2c library in this link of my other video ruclips.net/video/z4CX3UaJHFo/видео.html please check
it used to work for you, now it doesn't ERROR lcd.init(); // initialize the lcd I wrote 16.2 there and it still doesn't work, it's broken Your program doesn't work anymore mate
i can't find the file 'virtuabotixRTC.h' on internet ? (file, not only the text)
the third button is not working, why?
ERROR lcd.init(); // initialize the lcd
Hello, can you please upload virtuabotixRTC.h library
Hi, you can check the library here in the description of this video ruclips.net/video/McFwGz4srOw/видео.html