All packs

Lights

Dinosaur phone stand

A dinosaur that holds your phone, with a row of lights down its back. Tap its head for the next light effect.

  • Easy
  • about 40 min
  • ESP32-C3
  • 6 parts
  • 6 wires
  • 43 lines of code

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

Idea

Each effect is a few lines that decide the colour of every LED from one counter that keeps going up. Once you see the trick you can invent your own.

What you learn

Animating LEDs from a frame counter, and stepping through modes with one input.

How it works

  1. input

    Touch sensor (head)

  2. decides

    ESP32-C3

  3. output

    LED stick

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.