Go Down

Topic: 4x4 Keypad on I2C (Read 5153 times) previous topic - next topic

aliyesami

Jan 16, 2014, 02:58 am Last Edit: Jan 16, 2014, 05:19 am by aliyesami Reason: 1
can someone point me out the best source to understand how to interface a 4x4 matrix keypad via I2C link ?
I have already put LCD display and RTC on I2C in my design and want to move the keypad also to I2C.
Like there is an I2CLCD.h library is there any such library for keypad?

thanks

graynomad

AFAIK there are no keypads with I2C as a native interface, what is needed is often called a "serial backpack" or similar and I suspect that's what is on your LCD.

So if you can't find a product that already does that you'll have to roll your own with an IO expander IC or another processor.

_____
Rob
Rob Gray aka the GRAYnomad www.robgray.com

mstanley

If you are using the matrix keypad library http://playground.arduino.cc//Code/Keypad from the Arduino Playground then Joe Young has extended it to use I2C.  You can find the Keypad_I2C library here https://github.com/joeyoung/arduino_keypads.  It will require the use of two additional I2C port expander chips but Joe provides documentation and explains everything.

Go Up