25 KEY MEMBRANE KEYPAD
5x5  MATRIX KEYPAD

Arduino Sketch

  Click for high res photo

 

 

 

 

 

 

 

I am using an Arduino MEGA 2560 mainly because I need ten continuous  I\O pins.  You can often get a MEGA on eBay for less than $15 with free shipping.

 

A 10 pin header can be used as a female to female adaptor.

 

 

You can get one of these keypads from BG Micro ASC1048

 

For a more complex enhancement of the keypad sketch check out the 40 switch keypad.

 

 

 

   
Download, install and import

Download here: keypad.zip
Put the Keypad folder in "arduino\libraries\".
In the Arduino IDE, create a new sketch (or open one) and select from the menubar "Sketch -> Import Library -> Keypad".

You will find the Arduino sketch for the BG Micro keypad in the Keypad\Examples folder.

Click for high res

The Crossroads ATmega1284P board has 10 continuous I/O locations so the keypad can be connected without jumper wires.  The sketch has two sets of code defining the pins used.  One for Mega2560 the other for the Crossroads board.  Just comment out the one not used.

 

 

Jim F - Calgary Alberta Canada wrote a Simulator for the Keypad in Processing 2

 

Roger's Embedded Microcontrollers Home Page     


This page written by Roger Schaefer. Last updated August 3, 2014