All packs

Sensors

Mini distance beeper

The closer something comes, the faster it beeps and the redder its light, like the parking sensor on a car.

  • Medium
  • about 45 min
  • ESP32-C3
  • 8 parts
  • 10 wires
  • 58 lines of code

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

Idea

A distance on its own is just a number. Turning it into a rhythm and a colour lets you understand it without looking, which is the whole point of a parking sensor.

What you learn

Mapping one measurement onto a beep rate and a colour blend.

How it works

  1. input

    HC-SR04 (3.3 V)

  2. decides

    ESP32-C3

  3. output

    RGB LED

    Buzzer

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.