Encoder SH1106 shield - Spirik/GEM GitHub Wiki

Encoder shield carries rotary encoder with built-in button and configurable pins to connect SH1106 based (or compatible) display with I2C interface.

Board

Components

Place Component Links/Notes
EN1 Rotary encoder with built-in button EC11 Ali, Amazon, SparkFun
SW1, SW2 DPDT 6-pin slide switch MS-22D16 Ali, Amazon
RST Push-button (momentary switch), 6x6mm Board reset, Ali, Amazon
J1 Male pin headers, 1x3 Headers to set voltage for display
- Jumper cap Cap to short headers J1, Ali
J2 Female or male pin headers, 1x4 Headers to connect to display
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

Use rotary encoder as an input method for GEM. Optionally, connect SH1106 based (or compatible) display with I2C interface. Set switches SW1 and SW2 according to pinout of the display module (if compatible). Select voltage, required by the display, by shorting J1 header with jumper cap (for either 5V or 3.3V supply). Connect display module (directly or via jumper wires) to J2 headers.

Toggle switches SW1 and SW2 only when board is powered off to avoid potential short circuit caused by inner contacts bounce!

Examples

Encoder/SH1106 shield can be used to replicate the following test benches:

  • AltSerialGraphicLCD (as an encoder input device)
  • U8g2 (as both encoder input device and display connection)
  • Adafruit GFX (as both encoder input device and display connection)

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)