All packs

Pets

Desk cat with moods

A small cat whose face is drawn on a screen. Touch its head and it is happy and meows; leave it alone and it dozes off.

  • Medium
  • about 60 min
  • ESP32-S3
  • 8 parts
  • 12 wires
  • 107 lines of code

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

Idea

The face is not a picture file. It is drawn from circles, triangles and lines, so changing a mood means changing a few numbers. This is the gentlest way into screen graphics.

What you learn

Drawing shapes on a colour screen, reading a touch sensor, and making sound with tone().

How it works

  1. input

    Touch sensor (head)

  2. decides

    ESP32-S3

  3. output

    TFT 1.54 in

    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.