Build guide
Press to Talk
A push-to-talk box for your desk, about 121 × 105 mm. The whole front of the lid is the talk button: press anywhere and it clicks down. At the back sit a knob you turn and press, a small mic hole and a bar of eight LEDs. ESP32-C3 inside. Bring your own firmware.
Your kit contains the printed parts, electronics, all ten mounting and hinge screws, the lid-return spring, spring shims, connecting wire and heat-shrink. Start with the checklist below; you do not need a 3D printer. Firmware is up to you: see Make it yours. Disconnect USB power while you build.
At a glance
- Printed parts
- 8, plus 6 spring shims
- Difficulty
- Soldering
- Build time
- about 2 h
Parts checklist
Printed parts
Body
Lid
Knob and meter
Spring shims
Electronics
Fasteners
| Size | Qty | Where | |
|---|---|---|---|
| M2 × 6 | 4 | 2 hinge axles (lid to cap), 2 for the C3 clamp bar | |
| M2 × 8 countersunk | 2 | cap to base, upward through the base floor | |
| M2 board screws | 4 | 2 for the amplifier, 2 for the encoder |
Use the screws supplied for each position. The board screws should hold the board without bottoming out.
Tools
Wiring
Connect everything with USB power disconnected and check the labels on the actual boards. The microphone and amplifier share GPIO6 and GPIO7. GPIO8 is the C3's onboard LED, not the LED stick.
| Part | Pin | Goes to |
|---|---|---|
| MX switch | one leg / other leg | GPIO1 / GND |
| INMP441 microphone | SCK · WS · SD · L/R | GPIO6 · GPIO7 · GPIO0 · GND |
| VDD · GND | 3V3 · GND | |
| MAX98357A amplifier | BCLK · LRC · DIN | GPIO6 · GPIO7 · GPIO5 |
| VIN · GND | 5V · GND | |
| KY-040 encoder | CLK · DT · SW | GPIO3 · GPIO4 · GPIO20 |
| + · GND | 3V3 · GND | |
| LED stick | DIN | GPIO10 |
| 5V · GND | 5V · GND | |
| Speaker | + / − | amplifier output, as labelled |
Assembly
1Prepare the base
Fasteners 2× M2 × 6 (C3 clamp bar), 2× M2 board screws (amplifier)
- Place the C3 on its four pads in the base, its USB connector to the rear opening and the solder tails clear of the floor. Fit the printed clamp bar and screw it down with two M2 × 6.
- Seat the 40 mm speaker in the round pedestal at the front left, sound face up toward the lid grille. Keep its leads clear of the lid.
- Put the MAX98357A on the two short rear-left posts under where the cap sits, components up, and screw it down with two board screws.
- Clip the MX switch stem-up into the square holder near the front centre until its clips catch under the lip. Route its leads through the lower side openings, clear of the lid stops. No screws.
Check The USB plug goes in cleanly, the C3 is held without bending, the speaker faces the grille and the switch clips are engaged.2Populate the cap
Fasteners 2× M2 board screws (encoder)
- Put the clear meter insert in its recess. Seat the LED stick in the cap cradle with its LEDs lined up with the meter cells. Lay the mic board flat under the cap roof, its port at the roof hole.
- Fit the printed holder: slide its end rings over the cap screw posts and its legs around the cradle. Route the mic leads through its wire corridor.
- From below the cap, pass the KY-040 shaft through the knob opening, header end facing inward to the left. Line its two holes up with the cap posts and screw it down with two board screws.
- Set the loose encoder spacer on the base floor under the board edges. It supports knob presses; keep it clear of the pin tails.
Check The holder is a backstop and does not push the LED stick up; the mic port is open and no lead is trapped.3Join the lid and cap
Fasteners 2× M2 × 6 (hinge axles)
- On the bench, line the lid's hinge lugs up with the cap's lugs.
- Drive one M2 × 6 from the inside at each side into the cap lug. Its tip is the lid's axle: tighten into the cap lug only, so the lid stays free.
Check The lid pivots smoothly without binding.4Wire it up
- Solder and connect every part as in the wiring table, with USB unplugged.
- Connect the speaker to the amplifier output, matching the terminal labels.
- Insulate every joint with the supplied heat-shrink and route the leads clear of the hinge, the screw posts and the spring.
Check Every connection and its polarity matches the table before you power anything.5Spring and closure
Fasteners 2× M2 × 8 countersunk
- Stand the supplied spring upright in the base's round spring cup.
- Lower the cap and lid onto the base, guiding the spring's top end into the guide tube under the lid.
- Screw the cap down with the two M2 × 8 countersunk screws, upward through the base floor.
- Press the knob onto the encoder shaft, lined up with its bore. Don't force it.
- If the lid returns weakly, add a shim under the spring: 1, 2 or 3 mm. Use only as much as it needs to come back to its resting stops without lifting above them.
Check Press and release the lid: it returns to its stops without binding. The knob turns and clicks without flexing its board, no lead is pinched and the USB port is free.
Make it yours: firmware
Press to Talk ships without firmware. Inside is a standard ESP32-C3 SuperMini with an I2S microphone, an I2S amplifier and speaker, a push-and-turn knob, a lid switch and eight WS2812 LEDs, so you decide what talking does: a voice assistant, a walkie-talkie to another device, a dictation key or a mute button for calls.
Build it with an AI coding assistant
Any AI coding assistant can draft firmware (ESPHome, Arduino or ESP-IDF) from a clear hardware description. Paste this and change the “Write firmware that” part:
I built a push-to-talk box on an ESP32-C3 SuperMini (USB-C, 3.3 V logic).
Hardware and pins:
- Lid switch (MX): one leg GPIO1 with internal pull-up, other leg GND. Pressed = talk.
- INMP441 I2S microphone: SCK GPIO6, WS GPIO7, SD GPIO0, L/R to GND, 3V3.
- MAX98357A I2S amplifier + 40 mm speaker: BCLK GPIO6, LRC GPIO7, DIN GPIO5, 5V.
The mic and amp share the I2S clock pins.
- KY-040 encoder (3V3): CLK GPIO3, DT GPIO4, push SW GPIO20.
- WS2812 stick, 8 LEDs: DIN GPIO10, 5V.
Avoid GPIO 2, 8, 9 (strapping); GPIO8 is the onboard LED.
Write firmware that: records while the lid is held and sends the audio over Wi-Fi to
my voice assistant, plays the reply on the speaker, sets the volume with the knob and
shows listening / thinking / speaking on the LED bar.
Keep Wi-Fi and keys in a separate secrets file.
Ideas
- Talk to a voice assistant (Home Assistant Assist or your own) and hear the answer.
- Mute and unmute your microphone in calls, with the LED bar showing the state.
- Dictation key: hold to dictate into the app in front.
- Walkie-talkie between two boxes on your Wi-Fi.
- Knob as a volume dial for your computer.