74HC165 input shift register with ESP32

Supply 3.3-5 V Bus GPIO
PLCPD4D5D6D7Q7NGNDQ7DSD0D1D2D3CEVCC

Pins and ESP32 wiring

PinRoleESP32 pinNotes
PLInput (the ESP32 drives it)D25Parallel load, active LOW: pulse LOW to capture the inputs
CPInput (the ESP32 drives it)D26Clock
D4Not wired to the ESP32—Parallel input 4
D5Not wired to the ESP32—
D6Not wired to the ESP32—
D7Not wired to the ESP32—
Q7NNot wired to the ESP32—Inverted serial output, not needed
GNDGroundGND
Q7Output (the part drives it)D27Serial data out: to an ESP32 input
DSNot wired to the ESP32—Serial in from the next 74HC165. Tie to GND on the last one
D0Not wired to the ESP32—Parallel input 0: to a button with a pull-up or pull-down
D1Not wired to the ESP32—
D2Not wired to the ESP32—
D3Not wired to the ESP32—
CENot wired to the ESP32—Clock enable, active LOW. Tie to GND
VCCPower3V3

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.