All packs

Lights

Motion ghost lamp

A little ghost that sits dark and quiet until someone walks past. Then it glows and lets out a wail.

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

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

Idea

The motion sensor notices warmth that moves. It needs half a minute to settle after power-on, which is why it seems jumpy at first.

What you learn

Reading a motion sensor, keeping something on for a set time after a trigger, and a smooth pulse of light.

How it works

  1. input

    Motion sensor

  2. decides

    ESP32-C3

  3. output

    LED ring

    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.