74HC165 input shift register with ESP32
Supply 3.3-5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| PL | Input (the ESP32 drives it) | D25 | Parallel load, active LOW: pulse LOW to capture the inputs |
| CP | Input (the ESP32 drives it) | D26 | Clock |
| D4 | Not wired to the ESP32 | — | Parallel input 4 |
| D5 | Not wired to the ESP32 | — | |
| D6 | Not wired to the ESP32 | — | |
| D7 | Not wired to the ESP32 | — | |
| Q7N | Not wired to the ESP32 | — | Inverted serial output, not needed |
| GND | Ground | GND | |
| Q7 | Output (the part drives it) | D27 | Serial data out: to an ESP32 input |
| DS | Not wired to the ESP32 | — | Serial in from the next 74HC165. Tie to GND on the last one |
| D0 | Not wired to the ESP32 | — | Parallel input 0: to a button with a pull-up or pull-down |
| D1 | Not wired to the ESP32 | — | |
| D2 | Not wired to the ESP32 | — | |
| D3 | Not wired to the ESP32 | — | |
| CE | Not wired to the ESP32 | — | Clock enable, active LOW. Tie to GND |
| VCC | Power | 3V3 |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Sources
- Nexperia 74HC165 datasheet, Pinning: pin 1 PL to pin 16 VCC; function table; supply 2 to 6 V
Try it in 3D in BoardPilot
Related parts
1x4 membrane keypad (4 keys)433 MHz receiver (XY-MK-5V)4x3 membrane keypad (12 keys)4x4 membrane keypad5-way navigation button moduleArcade button 30 mm with LED
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.