From the Loftsmith Workshop

ESP32 wall keypad case for 3x4/4x4 membrane keypad + OLED

Gives your ESP32 door or shed keypad a proper home on the wall. The flat front has a recessed spot for the membrane keypad, a small window above it for the OLED, and a slot at the bottom. Change the keypad and board sizes to fit yours.

2 parts · 78 g · 92 × 32 × 133 mm

by Loftsmith Workshop

Rounded grey wall case with a pale front panel, a small screen window and a recessed keypad area
Loading the 3D view
Loading the 3D view
Loading the sizes…

They show up here as sliders as soon as the model is built.

Parts

  • housing · PETG · Back face down on the bed, open side up; no supports (overhang 1.9%)

    About 56 g and 78 min at 2 walls / 15% infill (engine estimate). PETG because the two 1.4 mm snap arms flex every time the faceplate goes on or off; at the 0.6 mm snap deflection they see 4.4 MPa across the layers, against an allowable of 5 MPa for PETG.

  • faceplate · PLA · Front face up; the keypad recess, screen bevel and ribbon slot print as open pockets, so nothing bridges

    About 22 g and 33 min at 2 walls / 15% infill. PLA for a stiff, crisp front; it only has to resist key presses (0.42 mm deflection at a 20 N press).

Print settings

Layer height
0.2 mm
Walls
2
Infill
15%
Supports
None
Notes
Engine estimate at 2 walls / 15%: about 81 g and 1 h 55 min for both parts (housing ~56 g PETG, faceplate ~22 g PLA). Print them as two separate jobs in their own materials. The snap arms and teeth are thin enough to print solid at any wall count. 3 walls / 15% raises it to about 113 g and 2 h 40 mi

Hardware

  • ESP32 dev board (DevKit style) · Default pocket fits 55 x 28 mm; the Board length (48-64 mm) and Board width (25-31 mm) sliders cover other ESP32 boards. Header pins point up toward the faceplate.
  • Membrane matrix keypad, 3x4 or 4x4 · 65-80 mm wide, 65-85 mm tall, about 1 mm thick, with the ribbon tail leaving the bottom edge at the centre. Examples: Adafruit 419 (70 x 77 mm, 85 mm ribbon).
  • I2C OLED module, 0.96 in SSD1306 or 1.3 in SH1106 · 4-pin header along the top edge, pins soldered toward the back.
  • 2 × #6-32 screws for a US single-gang box, or 2 pan-head wood screws (3.5-4 mm) with wall plugs · Through the two 4 mm slots on 83.3 mm centres.
  • 2 × Double-sided foam tape strip · One strip on each rail under the ESP32 board.
  • 12 × Female-female jumper wires · Keypad (7-8 wires) and OLED (4 wires) to the board.
  • USB power lead, up to 4 mm cable · Plug body up to 12 x 6.5 x 24 mm. The cable leaves through the notch at the bottom of the back.

Assembly

  1. Lay the USB lead into the notch at the bottom of the housing from the back, so it runs out under the case.
  2. Screw the housing to the gang box (#6-32) or to the wall (screws and plugs) through the two slots. Drive the top screw now: it sits inside the OLED cradle and is covered once the screen is in.
  3. Plug the USB lead into the ESP32, put a strip of foam tape on each rail, and press the board into its pocket, USB end down.
  4. Fit the jumpers to the OLED header, then drop the OLED into the cradle with the glass facing out.
  5. From the front, thread the keypad's ribbon connector through the slot in the faceplate. Peel the backing and press the keypad into its recess.
  6. Wire the keypad and OLED to the board, then press the faceplate into the rim until both side teeth click. To open it, lever a coin in the notch at the bottom edge.

Good to know

  • This is a case for a hobby keypad. It is not a security or alarm product and carries no certification. Use it with low-voltage USB power only, and never bring mains wiring into it; the gang-box opening is for low-voltage wires.
  • OLED glass and active-area positions come from typical module listings, not one specific part. The window leaves about 0.9 mm around the active area, so check your module before printing.
  • The board is held by foam tape in a locating pocket, not by screws.
  • The faceplate snap is a light hold: about 5 N calculated pull-off force. It is meant to come off for service and has not been tested on a real print.
  • The depth assumes jumpers about 19.5 mm tall above the board. Raise the Inner depth slider if your connectors are taller or the headers point down.
  • The faceplate is PLA, which softens around 55 °C. Keep it out of direct sun and away from heaters.
  • Fits and strength were checked in the Loftsmith engine only. The 0.6 mm snap engagement and the 0.25 mm faceplate gap depend on your printer's tolerances, so print the faceplate and test the fit before stocking up on filament.

Comments