• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Another Parametric Matrix Keypad 3D Printer File Image 1
Another Parametric Matrix Keypad 3D Printer File Image 2
Another Parametric Matrix Keypad 3D Printer File Thumbnail 1
Another Parametric Matrix Keypad 3D Printer File Thumbnail 2

Another Parametric Matrix Keypad

Steve DeGroof avatarSteve DeGroof

July 24, 2023

printables-icon
DescriptionCommentsTags

Description

Update: I've done a minor redesign to make the keys a bit more responsive and to make assembly easier. The original file have been moved to a folder for reference purposes.

This is the latest version of my matrix keypad design. It can be printed entirely in PLA or PETG. The only other material you need is 22AWG solid wire.

The OpenSCAD code can generate a model for any size keypad by specifying the number of rows and columns, and the text for each key cap. You may also need to alter the text size of some keys in order to get the text to fit. There's an overall font setting, which I've got set to Oswald Bold. If you don't have that installed, the OpenSCAD will use the default font.

Printing
There's no need to print the entire keypad at once. I printed the base, cover and keys separately, in different colors, for example. You could also print some keys in different colors from the rest. To achieve contrasting text on the keys, change filament at 0.4mm and 0.8mm height.

Construction
(refer to the build image for steps)

  1. Strip wires and run through the horizontal (row) channels of the base. Make sure the wires stay flat against the base. The left ends might pop up. If they do, tack them down with glue or a filament pen.
  2. Run wires through the vertical (column) channels. These should rest on top of the bridges inside each key cavity.
  3. Snap the cover over the base. There's a notch in the upper right of the cover where the wires come out.
  4. Pop the keys through the cover and push down until they snap in place. It's a tight fit, so don't worry about forcing it.

Operation
Pressing a key forces a column wire against a row wire, closing the connection on what amounts to a momentary push button. In order to read the keys, you'll need a microcontroller with at least enough configurable I/O pins to attach to all wires. Scanning the keys requires detecting which row and column wire are touching. The way I typically scan is:

  1. Set all row pins to floating input and all column pins to input with pullups.
  2. One at a time, set a row pin to output and force it “LOW”.
  3. With one row forced low, read each column pin.
  4. If a pin reads “LOW”, return the current row and column number. 

Note: The reason for setting the non-activated row pins to input is to avoid a short circuit when several keys are pressed at once. 

License:

Creative Commons — Attribution

Related Models

Thor Mjolnir Hammer Bic Pen preview image

Thor Mjolnir Hammer Bic Pen

effektz profile image

effektz

9,096

Diverse Schilder / various labels  for hobby & makers preview image

Diverse Schilder / various labels for hobby & makers

RPK profile image

RPK

2

Cute Fluffy Puppy Figurine to Print preview image

Cute Fluffy Puppy Figurine to Print

bonowski. profile image

bonowski.

3

Vorpal The Hexapod Walking Robot preview image

Vorpal The Hexapod Walking Robot

vorpal profile image

vorpal

4,987

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi preview image

MakerZ – Open Source 1/28 RC Drift Chassis by Fails & Makes | Açık Kaynak 1/28 RC Drift Şasisi

Fails&Makes profile image

Fails&Makes

Customizable EU License Plate Keychain preview image

Customizable EU License Plate Keychain

John_M profile image

John_M

45

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED preview image

Snap-Together Mini Minecraft Jack-O-Lantern with integrated LED

scottrlindsey profile image

scottrlindsey

4,456

Small Parts Storage Drawers - Organizer preview image

Small Parts Storage Drawers - Organizer

GT 3D Makers profile image

GT 3D Makers

29

10