Alarm Clock

Hi guys,

Yes I know I am new, but I am in need of help. I have an Arduino Uno, a 16x2 LCD, and I am looking to build an alarm clock! I have looked all over and I can not find anything useful for me because every website offering a tutorial uses an RTC chip or a PHI-1 lcd shield and I don't have either of those. I have wired up the lcd and four push buttons, but am stuck on the code. I would like for the alarm clock to print the day, month, year, and of course the time along with the alarm setting. I am open to any suggestions! Could anyone offer any help or any links to projects that are using the same parts as me? Thanks everyone!!

You can read the post

http://forum.arduino.cc/index.php?topic=157496.5

I read the post, but it seems that the code uses a shield? I do not have one.

With or without the shield, 16x2 LCD still the same LCD module and it operate the same, only the button you need to change, if you not using the AnalogButtons. the rest is the same.

BillHo:
With or without the shield, 16x2 LCD still the same LCD module and it operate the same, only the button you need to change, if you not using the AnalogButtons. the rest is the same.

So i uploaded the sketch and changed the buttons, but the screen is frozen on 20/01/2013 8:00:00. How can I set the time and start the clock?

Could I adapt this could to become an alarm clock? I would like to be able to set the alarm by using the pushnuttons I have wired up

#include <Time.h>
#include <LiquidCrystal.h>

LiquidCrystal lcd(7, 6, 5, 4, 3, 2);

//set the current time here
int s=50;
int h=12;
int m=59;

void setup(){

servoMain.attach(12); // servo on digital pin 10
servoMain.write(0); // Turn Servo back to center position (90 degrees)
lcd.begin (16,2);
delay(500);
lcd.clear();
lcd.print("Current Time:");
lcd.setCursor(0,1);

pinMode(10, INPUT);
digitalWrite(10, HIGH);
}

void clc(){
lcd.clear();
lcd.home();
lcd.print("Current Time:");
lcd.setCursor(0,1);
}

void loop(){

lcd.setCursor(0,1);
while(millis()%1000 != 0);
s +=1;
if(s==60){ s=0; m +=1;}
if(m==60){ m=0; h +=1;clc();}
if(h==24){h=1;}

lcd.print(int(h/10));
lcd.print(h%10);
lcd.print(":");
lcd.print(int(m/10));
lcd.print(m%10);
lcd.print(":");
lcd.print(int(s/10));
lcd.print(s%10);
}

bemur22:
So i uploaded the sketch and changed the buttons, but the screen is frozen on 20/01/2013 8:00:00. How can I set the time and start the clock?

Show us how have change the code with your buttons.