Simple time display, set with two buttons [no extra hardware]

Hi there,

I was just wondering if there's a way of displaying a clock on the LCD display.

I understand the difficulty behind a real clock without an extra board, but before I buy the extra HW, I was wondering if I could create something like 00:00 and set hours and minutes with two buttons.

I'd appreciate some advise on this.

[Arduino Leonardo with LCD 20x4]

Thanks!

Yea, that's possible. The buttons just add 1 their unique variables, and if they go beyond 12 or 23(H), reset back to 0, and same for minutes.

http://rogerparks.com/allprojects/other/simple-arduino-lcd-clock/

SEE ATTACHED SCHEMATIC
NOTE THE VOLTAGE DEVIDER
YOU WILL NEED TO ADD YOUR SWITCHES WIRED PER THE SCHEMATIC
The following array shows the high limit analogRead value for each buttton
int adc_key_val[5] ={ 30, 150, 360, 535, 760 };

1602+LCD+Shield+Sch.pdf (163 KB)

raschemmel:
http://rogerparks.com/allprojects/other/simple-arduino-lcd-clock/

SEE ATTACHED SCHEMATIC
NOTE THE VOLTAGE DEVIDER
YOU WILL NEED TO ADD YOUR SWITCHES WIRED PER THE SCHEMATIC
The following array shows the high limit analogRead value for each buttton
int adc_key_val[5] ={ 30, 150, 360, 535, 760 };

Not sure if this will work with my setup. I use <LiquidCrystal_I2C.h> // F Malpartida's NewLiquidCrystal library

That circuit has nothing whatsoever to do with the lcd.