Hi,
I just did digital clock watch using arduon Uno and display time and date in the LCD
How can I design buzzer and led for alarm clock
so i want to build alarm clock and set the time e.g. at8 clock ring and light
at 9 clock ring and light as well
This is my code for the clock
#include <Wire.h>
#include "RTClib.h"
#include <LiquidCrystal.h>RTC_DS1307 RTC;
LiquidCrystal lcd (7, 8, 9, 10, 11, 12);void setup () {
Serial.begin(9600);
lcd.begin(16, 2);
Wire.begin();
RTC.begin();if (! RTC.isrunning()) {
Serial.println("RTC is NOT running!");
RTC.adjust(DateTime(F(DATE), F(TIME)));
}
}void loop () {
DateTime now = RTC.now();lcd.setCursor(0,0);
lcd.print("TIME: ");
lcd.print(now.hour(), DEC);
lcd.print(":");
lcd.print(now.minute(), DEC);
lcd.print(":");
lcd.print(now.second(), DEC);lcd.setCursor(0,1);
lcd.print("DATE: ");
lcd.print(now.year(), DEC);
lcd.print("/");
lcd.print(now.month(), DEC);
lcd.print("/");
lcd.print(now.day(), DEC);delay(1000);
}

