how to get value from keypad of two parameters and store it in different charact

i want to get two user inputs from keypad .algorithm should look something like this.I know how to obtain character array by pressing keypad.just how to separate i don't know

getkeypad()
{
getting a string of numbers
12345B52
year=1234
week=52

}

I don't know what this is either:

getkeypad()
{
getting a string of numbers
12345B52
year=1234
week=52

}

What language?

Why would you support entering non-digits, when you only care about some of the digits?

How is the keypad going to return a B?

You need to have a key on the keypad mean "the complete value has been entered; convert the string to a value, and store that value". It is then easy to count the number of times that key is pressed, to know what to do with the value (that is, where to store the value).

How many keys on your keypad? Aside from the 0 to 9, what meaning have you assigned to the other keys?

How will you deal with fat-fingering? I can hardly hammer 3 keys in a row without reaching for the backspace key. Are your users better typists than me? Not that that would be even remotely hard, but you should have a way of dealing with mistakes.

its not language .I just showd an example.am getting characters from keypad,the character B is to differentiate the two parameters

I think mostly a * or # is used to indicate that a value was entered. So prompt user for first value, let user type a value (keep in mind what PaulS said) and press the assigned 'enter' key and save. Prompt for the next value, go through the same process and done.

PaulS:
Why would you support entering non-digits, when you only care about some of the digits?

How is the keypad going to return a B?

You need to have a key on the keypad mean "the complete value has been entered; convert the string to a value, and store that value". It is then easy to count the number of times that key is pressed, to know what to do with the value (that is, where to store the value).

How many keys on your keypad? Aside from the 0 to 9, what meaning have you assigned to the other keys?

How will you deal with fat-fingering? I can hardly hammer 3 keys in a row without reaching for the backspace key. Are your users better typists than me? Not that that would be even remotely hard, but you should have a way of dealing with mistakes.

keypad has characters A,B,C,D,,# out of which i have already used A,,# for other purposes.* key promts the user to enter again.and yes I have figured out how to do it ,but am not getting the results of codes I have tried .

Hi,
Can you post a link to data/specs of your keypad.

What model Arduino are you using?
Have you written any code?
Have you got the keyboard connected to your controller?

Thanks.. Tom... :slight_smile:

Hi,
Is this new thread associated with this thread?

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

Tom... :slight_smile: