Arduino LCD Keypad Shield – Clock Application

UPDATED: I removed all delay(); calls because they were not accurate enough, and there was a time drift. Instead, now there is a while(); that waits until the required time has passed.

Recently I found here a really cheap LCD shield with buttons for Arduino.

Today it arrived, and I made a simple clock program to test it out. It’s a little slow when refreshing the screen, but it’s perfect for the price.

A really cool application would be to use it together with a Raspberry Pi to execute simple commands and see a small web server’s status.

Here are some pictures, a video, and the code for the clock application. It is using the LCDKeypad C++ class which can be found here.

21 thoughts on “Arduino LCD Keypad Shield – Clock Application”

  1. Hello Freddie.
    I hope you can help me also
    This is My error.
    : LCDKeypad does not name a type :
    Maybe it is the LCDkeypad librey ?
    Please give me the link.
    Greetings from the Netherlands
    Jack.

    Reply
  2. i’ve download the LCDKeypad library and include it in my sketch for your coding but i get an error ‘Class LiquidCrystal’ has no member named ‘button’. help me please.

    Reply
  3. sketch_feb27g.ino:2:23: error: LCDKeypad.h: No such file or directory
    sketch_feb27g:10: error: ‘LCDKeypad’ does not name a type
    sketch_feb27g.ino: In function ‘void setup()’:
    sketch_feb27g:21: error: ‘lcd’ was not declared in this scope
    sketch_feb27g.ino: In function ‘void buttonListen()’:
    sketch_feb27g:46: error: ‘lcd’ was not declared in this scope
    sketch_feb27g:51: error: ‘KEYPAD_RIGHT’ was not declared in this scope
    sketch_feb27g:56: error: ‘KEYPAD_LEFT’ was not declared in this scope
    sketch_feb27g:61: error: ‘KEYPAD_UP’ was not declared in this scope
    sketch_feb27g:78: error: ‘KEYPAD_DOWN’ was not declared in this scope
    sketch_feb27g.ino: In function ‘void printSetting()’:
    sketch_feb27g:114: error: ‘lcd’ was not declared in this scope
    sketch_feb27g.ino: In function ‘void printTime()’:
    sketch_feb27g:164: error: ‘lcd’ was not declared in this scope

    Reply
  4. when I copy lap to error because of this LCDKeypad lcd code; my board is funduino “arduino” help me

    This report would have more information with
    “Show verbose output during compilation”
    enabled in File > Preferences.
    Arduino: 1.0.6 (Windows 7), Board: “Arduino Uno”
    sketch_dec14a.ino:2:23: error: LCDKeypad.h: No such file or directory
    sketch_dec14a:10: error: ‘LCDKeypad’ does not name a type
    sketch_dec14a.ino: In function ‘void setup()’:
    sketch_dec14a:21: error: ‘lcd’ was not declared in this scope
    sketch_dec14a.ino: In function ‘void buttonListen()’:
    sketch_dec14a:46: error: ‘lcd’ was not declared in this scope
    sketch_dec14a:51: error: ‘KEYPAD_RIGHT’ was not declared in this scope
    sketch_dec14a:56: error: ‘KEYPAD_LEFT’ was not declared in this scope
    sketch_dec14a:61: error: ‘KEYPAD_UP’ was not declared in this scope
    sketch_dec14a:78: error: ‘KEYPAD_DOWN’ was not declared in this scope
    sketch_dec14a.ino: In function ‘void printSetting()’:
    sketch_dec14a:114: error: ‘lcd’ was not declared in this scope
    sketch_dec14a.ino: In function ‘void printTime()’:
    sketch_dec14a:164: error: ‘lcd’ was not declared in this scope

    Reply

Leave a Reply to william Cancel reply