All packs

Controls

Foot pedal for the computer

Step on it to press a key with your hands free: turn a page of sheet music, pause a video or move to the next slide.

  • Easy
  • about 30 min
  • ESP32-S3
  • 6 parts
  • 4 wires
  • 39 lines of code

ESP32 packs are built on real parts: the simulator runs Arduino Uno circuits only.

Idea

Four wires and a few lines of code. The computer sees an ordinary keyboard, so it works in every program without installing anything.

What you learn

Acting as a USB keyboard, and holding a key down for as long as a switch is closed.

How it works

  1. input

    Foot switch

    Mode switch

  2. decides

    ESP32-S3

  3. output

    Computer (USB keyboard)

Powered with 5 V through the board's USB-C port.

A reference design. The sketch is compiled with the real ESP32 toolchain, and its pins are checked against the wiring table automatically. It has not yet been built and tested on real parts by us, so wire it on the bench and run the checks before you build it into a case. Real modules vary: follow the labels printed on yours, not their position in the picture.