Matrix keypad values on serial?

Hi All,

Is it possible to read Matrix keypad values on serial?.

Regards JR

No idea what you mean. What does "on serial" mean?

Hi,

If you mean thishttp://playground.arduino.cc/Code/Keypad, the answer is a yes.

Grumpy_Mike: No idea what you mean. What does "on serial" mean?

Hi Grumpy_Mike ,

I mean when you press numbers on the keypad that number has to go on to the serial.For example if you press number 5 on the keypad that number has to got to the serial.So that i can use the below function for my program.

if (Serial.available()>0)

Regards JR

siutoejai: Hi,

If you mean thishttp://playground.arduino.cc/Code/Keypad, the answer is a yes.

Hi siutoejai,

Yes this one only.Thank You. Regards JR

So that i can use the below function for my program.

No, that is only used when you receive serial data, you want to send serial data. Your original post should have read:-

Is it possible to read Matrix keypad and then send the values through serial?

You need to decide if you want to send the key pad read as an ASCII character or as a data value. Use Serial.write(keyValue) for data value or Serial.print(keyValue) for ASCII

Grumpy_Mike: No, that is only used when you receive serial data, you want to send serial data. Your original post should have read:-

Is it possible to read Matrix keypad and then send the values through serial?

You need to decide if you want to send the key pad read as an ASCII character or as a data value. Use Serial.write(keyValue) for data value or Serial.print(keyValue) for ASCII

Hi Grumpy_Mike,

Thank You.

Regards JR