Follow Along Guides

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.

Clicky Pad overview

Parts

Soldering: no, with pre-soldered DevKitC-1 headers. Bring the shared tools and firmware.

Clicky Pad v0 bill of materials
QtyPart
1ESP32-S3-DevKitC-1 N16R8 with headers already soldered
612 × 12 mm tactile buttons
1KY-040 rotary encoder, powered at 3.3 V
1 or 2One wide solderless breadboard or two side by side. Leave room to reach both rows of DevKitC-1 headers.
1 setDuPont jumper wires
1Data-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.

Clicky Pad point-to-point wiring
DevKitC-1Connect to
GNDAll six switch commons and KY-040 GND
IO15Key 1
IO16Key 2
IO21Key 3
IO39Key 4
IO40Key 5
IO42Key 6. Hold for 700 ms to switch layers.
3.3 VKY-040 +. Use 3.3 V only.
IO1KY-040 A (CLK)
IO2KY-040 B (DT)
IO14KY-040 SW
IO19 / IO20Reserved 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.

  1. Unplug USB-C and leave battery power disconnected.
  2. 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.
  3. Wire the rail to DevKit GND. Check each common for continuity.
  4. 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.
  5. Wire KY-040 GND and 3.3 V first. Then wire A to IO1, B to IO2 and SW to IO14.
  6. Confirm that IO19 and IO20 are open. Complete the unpowered meter checks.
  7. Connect the USB-to-UART port directly to the computer. Meter 3.3 V against GND. Expect about 3.2 to 3.4 V.
  8. Flash debug and test every input

    pio run -e clicky_pad_devkitc_debug -t upload

    Open serial at 115200 baud. Confirm the banner and reset reason. Type each command in this order.

    pio device monitor -b 115200

    help, status, pins, inputs

    Press 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.

  9. 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 upload

    Disconnect 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.

Troubleshoot USB, serial or input problems

Before use

Handling and Compliance Notes