Arduino Code and Diagram Review
sketch_v3.ino: ESP32 Arduino firmware for a 0-9999 counter.diagram_v3.json: Wokwi wiring diagram.Table
| Function | ESP32 GPIO | Net / target |
|---|---|---|
| 74HC595 SER/DS | GPIO23 | SR_DATA |
| 74HC595 SRCLK/SHCP | GPIO18 | SR_CLOCK |
| 74HC595 RCLK/STCP | GPIO5 | SR_LATCH |
| Digit 1 common cathode | GPIO13 | DIG1 |
| Digit 2 common cathode | GPIO12 | DIG2 |
| Digit 3 common cathode | GPIO14 | DIG3 |
| Digit 4 common cathode | GPIO27 | DIG4 |
| +1 button | GPIO32 | BTN_UP |
| -1 button | GPIO33 | BTN_DOWN |
| Reset button | GPIO25 | BTN_RESET |
Source files
Implemented circuit
Pin mapping
Important hardware caveats