Keys shield - Spirik/GEM GitHub Wiki

Keys shield carries 6 push-buttons (momentary switches) and a self locking switch to toggle between pull-up and pull-down resistor connection modes.

Board

Components

Place Component Links/Notes
R1-R6 10K resistor, SMD 1206
SW1-SW6, RST Push-button (momentary switch), 6x6mm Ali, Amazon
SW0 DPDT 6-pin self locking switch, 8x8mm Ali, Amazon
PWR Female or male pin headers, 2x3 Spare headers with +5V and GND rails, optional
- Arduino stackable headers To stack on top of other shields

Operation

Push-buttons can be used either in pull-up mode (so the LOW means that the button is pressed - e.g. when using U8g2 library for key presses detection in provided examples) or pull-down mode (so the HIGH means that the button is pressed - e.g. when using KeyDtector library for key presses detection in provided examples) based on the position of SW0 switch (not pressed - pull-up, pressed - pull-down).

Toggle switch SW0 only when board is powered off to avoid potential short circuit caused by inner contacts bounce!

Silkscreen markings on the board indicate which GEM key identifier is sent when button is pressed when using with examples provided with the library.

Examples

Keys shield can be used to replicate the following test benches:

Files

  • Autodesk Fusion .f3z - project, containing schematic and board views
  • Gerber files .zip - ZIP-archive of Gerber files (including .xln file for drilling)
  • Schematic .pdf - PDF with schematic exported from Fusion project
  • SVGs .zip - ZIP-archive of SVG files that can be used for DIY fabrication of boards (including board outline, top and bottom copper layers, silkscreen layer)