This entry details the setup for using the Adafruit Phone style 4x3 Matrix Keypad. I liked the way this one looked, even though there wasn't good documentation how to use it. I wanted to prevent utilizing so many digital pins, so I went the I2C route with the PCF8574 board.
This board is generic and can take any device with up to 8 pins and allow you to control it with I2C messages.
Wiring
This first bit is key. Since the keypad is not labeled, and there was no documentation, it took me a while to realize that pin order is as shown below. Pin 0 mapping is shown in brown in the image below.In regards to connecting to the Arduino, it's the standard I2C connections:
Coding
I wasn't able to find a perfect (out of the box) solution for controlling this guy, but after a bit of modification of an existing script, this combination of driver and *.ino gets the basic communication down.https://github.com/blendmo/Arduino/tree/master/i2cKeypad
No comments:
Post a Comment