RTC Ds1307 Arduino Based Alarm System

13,077

24

20

Posted

Introduction: RTC Ds1307 Arduino Based Alarm System

The hardware is the standard setup and is as follows.

DS1307 IC x1.

32MHz crystal x1.

3v battery for backup supply x1.

0.1uf capacitor x1.

Arduino Uno x1.

Jumper wires

Speaker x1

Step 1: Making an Arduino Prototype Board

Step 2: Making DS1307 Circuit

Step 3: Assembling Arduino, LCD and DS1307 :)

Step 4: Code

First compile and upload the code inside rtc_code 1.txt file. After uploading, compile and burn the second code inside LCD rtc_code.txt file.
Note the LCD pin configuration in the code. I have changed the default settings. You can change it by yourself

Step 5: Final Working Hardware

Share

Recommendations

  • Remote Control Contest 2017

    Remote Control Contest 2017
  • Arduino Contest 2017

    Arduino Contest 2017
  • LED Contest 2017

    LED Contest 2017

We have a be nice policy.
Please be positive and constructive.

Tips

Questions & Answers

20 Comments

where is "RTClib.h" file??

https://github.com/adafruit/RTClib

you can download it from Github:

https://github.com/adafruit/RTClib

Hi, How do you make it work only for particular days of the week... I've tried and failed.

I've Tried

if (now.day()=="Tuesday" && now.hour()==14 && now.minute()>=13 && now.second()<=34 )

Great work sir..

sir, do you know how to set an alarm using push button??

Thanks for sharing...
I tried this project but LCD shows weird output.

check your LCD data pins and compare them with the code. I also got such outputs but after lil troubleshooting LCD started working.

Ok dear.. Will try but you have mentioned that first compile and upload the code inside rtc_code 1.txt file and than after compile and burn the second code inside LCD rtc_code.txt file. So, what is the need of compile first code i.e. rtc_code 1.txt.??

When you upload the first code i.e. rtc_code 1.txt in the arduino, it will start communicating with the RTC ds1307 chip(means your current time will start running inside the chip). In order to display this time on the LCD upload the 2nd file named LCD rtc_code.txt to arduino.