4x4 matrix keypad as input to set time and alarm

Hi there,

i want to use a 4x4 matrix keypad to set the current time and alarm. Basically i want to use the keypad to enter the time and display it on a 16x2 LCD and the alarm rings when the set time is reached.

Can anyone help with the code?

What have you got so far?

What Arduino and RTC are you using? Is the LCD a shield with the four buttons on it or standalone?

Is this a school assignment?

Yes it is a school assignment. I am using the arduino Uno and a DF Robot v1.1 LCD shield for arduino.

When i press star on the 4x4 keypad the arduino must prompt me to set the time and # to save the time.
When i press "*0" it should prompt me to set the alarm and # to save the alarm time.

I am still new to arduino and my coding skills are very basic so help would be much appreciated and thanks for the reply marco.

OK. Here are some hints. Normally around here if you are doing an assignment people want to see some effort from the OP before they chip in.

  1. Make sure that you are able to run the keypad. You should be able to use some form of library and example program - print out the characters to the serial monitor to prove to yourself that you can read the characters.

  2. If you are using a real time clock you will need to let the world know which one you are using. DS1307 or DS2321 are common ICs that can be used. Libraries available also have example code. You can access some through my libraries link below - there is also some code for an alarm clock using LCD shield in both libraries.

That's a start.