I've tried to find info but with no luck. I'm trying to make a project - barcode scanner - using RPI zero. I need a keypad to input quantities when I scan a barcode. I am unable to find any phone-style keypad dedicated to RPI, so I was advised to use one of the following:

  1. https://www.dfrobot.com/product-2267.html
  2. https://www.waveshare.com/4x4-keypad.htm
  3. https://botland.store/keyboards-for-arduino/4468-keyboard-matrix-4x4-tact-switch-analog-output-waveshare-4431-5904422305628.html

The problem is I cannot find any documentation about how to connect it to the RPI. I mean wiring and a code (best would be in Python) Any hints? Thanks in advance :)

  • 2
    i have a difficult time believing that you found nothing when you googled rpi keypad
    – jsotola
    Oct 2, 2021 at 2:48
  • also you can get barcode scanners that behave like a usb keyboard... so why not just another keyboard? they have usb numpads
    – Abel
    Mar 7 at 13:33
  • Look for USB number pad.
    – NomadMaker
    Jul 5 at 17:17

1 Answer 1


The question is:

How do you want to connect the keypad to the Raspberry Pi?

You could either go via USB or via GPIO, the latter is more compact for hardware.

Look for the CARDKB-MINI-KEYBOARD by M5Stack, it is very easy to integrate via I2C interface (four wires) and easy to use with Python reading out GPIO.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.