-
Notifications
You must be signed in to change notification settings - Fork 39
Encoder SH1106 shield
Alexander Spiridonov edited this page Feb 3, 2025
·
6 revisions

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

| 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 |
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!
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)
- 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)
- Test bench (push-buttons):
- Example 01: Basic
- Example 02: Blink
- Example 03: Party Hard!
- Test bench (rotary encoder):
- Example 05: Encoder
- Example 06: Todo List