Build 2 · ESP32-S3-DevKitC-1 N16R8
Clicky Pad v0
Six keys and a rotary knob on a breadboard. Use a board with pre-soldered headers to build a USB-C macro pad without an iron.
DIY hobby build for ages 14+. Adult assembly required. This prototype is not EN 71 or CE tested.
Parts
Soldering: no, with pre-soldered DevKitC-1 headers. Bring the shared tools and firmware.
| Qty | Part |
|---|---|
| 1 | ESP32-S3-DevKitC-1 N16R8 with headers already soldered |
| 6 | 12 × 12 mm tactile buttons |
| 1 | KY-040 rotary encoder, powered at 3.3 V |
| 1 or 2 | One wide solderless breadboard or two side by side. Leave room to reach both rows of DevKitC-1 headers. |
| 1 set | DuPont jumper wires |
| 1 | Data-capable USB cable that fits each of the board's two USB ports |
DevKitC-1 pinout
Build the keys in a 2x3 cluster. Every key and the encoder switch are active low. Put all switch commons and KY-040 GND on one ground rail.
| DevKitC-1 | Connect to |
|---|---|
| GND | All six switch commons and KY-040 GND |
| IO15 | Key 1 |
| IO16 | Key 2 |
| IO21 | Key 3 |
| IO39 | Key 4 |
| IO40 | Key 5 |
| IO42 | Key 6. Hold for 700 ms to switch layers. |
| 3.3 V | KY-040 +. Use 3.3 V only. |
| IO1 | KY-040 A (CLK) |
| IO2 | KY-040 B (DT) |
| IO14 | KY-040 SW |
| IO19 / IO20 | Reserved for native USB. Leave both open. |
The ESP32-C3 SuperMini does not work as a USB keyboard for this build. Keep the C3 and S3 pin maps separate. The product build uses ARDUINO_USB_MODE=0 and ARDUINO_USB_CDC_ON_BOOT=0.
Wire and flash
Firmware is not publicly available yet. These commands are for reference until the named build targets are available in a PlatformIO project. Use the DevKit's USB-to-UART port for uploads and the serial monitor. Use its native USB port for HID.
- Unplug USB-C and leave battery power disconnected.
- Place the six keys and the encoder on the breadboard. For each key, meter two terminals that connect only when pressed. Use one for the GPIO and the other for the GND rail.
- Wire the rail to DevKit GND. Check each common for continuity.
- Wire IO15, IO16, IO21, IO39, IO40 and IO42 to keys 1 through 6. Verify that no key pad beeps to 3.3 V or 5 V.
- Wire KY-040 GND and 3.3 V first. Then wire A to IO1, B to IO2 and SW to IO14.
- Confirm that IO19 and IO20 are open. Complete the unpowered meter checks.
- Connect the USB-to-UART port directly to the computer. Meter 3.3 V against GND. Expect about 3.2 to 3.4 V.
-
Flash debug and test every input
pio run -e clicky_pad_devkitc_debug -t uploadOpen serial at 115200 baud. Confirm the banner and reset reason. Type each command in this order.
pio device monitor -b 115200help,status,pins,inputsPress each key, turn the knob in both directions and press the knob switch. Confirm each key, the KY-040 quadrature edges and the switch in
inputs. Hold key 6 for 700 ms and confirm the layer change in the log. -
Flash the product and test HID
Once debug passes, close the serial monitor and upload the product environment.
pio run -e clicky_pad_devkitc -t uploadDisconnect the USB-to-UART cable, then connect the native USB port and check that the pad appears as a USB keyboard. Test the keys and knob on the host.
Before use
- Keep 5 V away from the encoder and key inputs. Leave IO19 and IO20 open.
- Keep the bench free of batteries, cameras, microphones and 5 V LED devices.
- Keep the open breadboard and loose tactile buttons away from children. This guide stops at the breadboard prototype.