4x4 membrane keypad with blue number keys and red A to D, star and hash keys, flat tail and 8-pin connector

4x4 Membrane Matrix Keypad - 16 Keys for Arduino and ESP32

$3.49 NZD
Save 12% at 5+
Skip to product information
SKU: MOD-KEYPAD-4X4-MEMB

4x4 Membrane Matrix Keypad - 16 Keys for Arduino and ESP32

$3.49 NZD
Buy more, pay less Prices shown are per unit. Add enough of this item and the lower rate applies on its own at checkout. There is no code to enter and you do not need to buy a pack. Choosing a tier here just sets the quantity for you. Larger quantities go out in the same bag, so packing, handling and postage cost us less per unit. We pass that saving straight on to you, so you can buy more for less. Discount codes don't stack with these prices. If you use a code at checkout, you get the code or the quantity price, whichever saves you more, and the price per unit changes to match.

Easy 30-day returns · 12-month warranty

Included: datasheet (PDF), Quick Start card in your parcel and wiring help by email

Availability:
Order before 7:30am (12pm weekends) for same-day dispatch
Delivery $5.99 urban, free from $50

NZ Post 1-2 days urban, 2-4 days rural

Order by Mon 21 Dec urban or Wed 16 Dec rural for Christmas

NZ Post doesn't guarantee these dates, so earlier is safer.

Delivery Details
  • Urban delivery from $5.99, free on orders from $50.
  • Rural delivery from $9.99, free on orders from $88.
  • Free pick-up in Te Awamutu.
  • We dispatch every day except public holidays.
Shipping policy

A 4x4 membrane matrix keypad with 16 keys (0 to 9, A to D, * and #) for adding number entry, a PIN code or a simple menu to an Arduino, ESP32 or Raspberry Pi Pico project. It is a passive switch matrix, so it works with both 3.3V and 5V boards, plugs onto male header pins or male jumper wires through its 8-pin 2.54mm connector, and has a peel-off adhesive back for mounting on a box or panel.

Specifications

Layout4 rows x 4 columns, 16 keys
Keys0-9, A-D, * and #
Connector8-pin female header, 2.54mm pitch
PinoutPins 1-4 rows, pins 5-8 columns
Board voltage3.3V or 5V (no power pin)
Pins used8 digital pins
Panel sizeAbout 69 x 76mm
MountingSelf-adhesive back with liner
Arduino libraryKeypad (Library Manager)

Datasheets

What's in the box

1×
4x4 membrane keypad

With its flat tail and 8-pin connector fitted, adhesive liner on the back.

Great for

A PIN-code door lock with a servo or relay
Entering numbers into a timer or counter
Menu buttons for an LCD or OLED project
A calculator or quiz game on an Arduino

Wiring & getting started

  1. Connect the 8 pins

    With the keys facing you and the tail pointing down, pin 1 is the right-hand socket, marked 1 on the connector. Start from that socket and work leftwards: on an Uno or Nano, run keypad pins 1 to 8 to D9, D8, D7, D6, D5, D4, D3 and D2 with male-to-male jumper wires. No resistors or power wires are needed.

  2. Install the Keypad library

    In the Arduino IDE, open the Library Manager, search for Keypad and install "Keypad by Mark Stanley, Alexander Brevig".

  3. Test it

    Copy the short test sketch from the Quick Start guide above (rowPins {9, 8, 7, 6}, colPins {5, 4, 3, 2}), choose your board and port, and upload. Open the Serial Monitor at 9600 baud: each key you press prints once.

  4. Mount it

    Peel the liner and press the keypad onto a clean, flat surface. Pass the tail through a slot instead of folding it hard at the edge.

Note: On an ESP32, avoid GPIO 34 to 39 (input only, no pull-ups) and the boot pins 0, 2, 5, 12 and 15. Any other eight general pins work.

Frequently asked questions

Which pins are the rows and which are the columns?
Pins 1 to 4 are rows 1 to 4 and pins 5 to 8 are columns 1 to 4. With the keys facing you and the tail pointing down, pin 1 is the right-hand socket, marked 1 on the connector, and the pins count leftwards from there. Row 1 carries 1, 2, 3 and A; column 4 carries A, B, C and D.
Will it work with a 3.3V board like an ESP32 or Pico?
Yes. The keypad is only switch contacts with no power pin, so it runs at whatever voltage your board's pins use. On an ESP32, avoid GPIO 34 to 39 and the boot pins 0, 2, 5, 12 and 15.
Do I need resistors?
No. The Keypad library turns on the board's internal pull-up resistors on the row pins and scans the columns itself.
How do I connect it to my board?
The tail ends in an 8-pin female header with 2.54mm spacing. Plug male-to-male jumper wires into it, or push it straight onto a row of 8 male header pins on your own board.
Can it read two keys at once?
It reads one key reliably, and two keys in different rows and columns. Pressing three keys at the corners of a rectangle can show a fourth key that was not pressed, so design menus around one key at a time.
How do I mount it?
Peel the paper liner off the back and press the keypad onto a clean, flat, dry surface. Cut a slot about 22mm wide for the tail so it does not have to fold sharply at the edge.

Have a question about this product?

Send it through and we will get back to you by email.

About NZN

Useful parts, fair prices and someone local to help.

I'm Lukas, an engineering student and maker based in Te Awamutu. NZN grew out of a CNC build that dragged on for months because every missing cable, bolt or electronic part meant another overseas order. I started the shop so Kiwi makers can spend more time building and less time waiting for the next parcel.

  • Stocked here in New Zealand

    Stock is held here in New Zealand, and every order is dispatched by the next day, except on public holidays. The timer beside Add to cart shows when yours goes out. NZ Post aims for 1-2 days urban and 2-4 days rural. In Te Awamutu and Kihikihi you can choose local delivery at checkout: same day if you order before 8am, otherwise next day.

  • Fair prices, clearly shown

    Where a product has quantity pricing, the price for each quantity is listed above Add to cart. Free delivery starts at $50 for urban addresses and $88 for rural addresses.

  • 30-day returns and 12-month warranty

    Get in touch if something is not right and we will help sort it.

  • Practical product support

    Ask a product question and get help from a real person in New Zealand who knows the range.

You may also like

Christmas delivery details