ES-118ESP32IntermediatePremium

ESP32 ST7789 Robot Eyes: Colour Eyes That Blink, Look Around and Change Mood at the Press of a Button

Build a robot face that watches you from your desk. The ESP32 draws two big eyes on a 240 x 240 colour ST7789 display that blink on their own and now and then glance elsewhere. Each button press changes the mood: happy, angry, sleepy, surprised and back to normal, with colour and shape blending smoothly. Turn the potentiometer and the eyes follow it. Frames are drawn on a canvas in memory and sent in one go, so nothing flickers. Uses the Adafruit ST7789 library.

0.0(0)
ESP32 ST7789 Robot Eyes: Colour Eyes That Blink, Look Around and Change Mood at the Press of a Button
Make a little robot face that watches you from the corner of your desk, dozes off when it is bored and frowns when you press the button. It also works as a ready-made eye module for a robot, a toy or a model head. You learn how to drive a colour TFT display over SPI, how to stop flicker by drawing on a canvas in memory and sending it in one go, how to time animation with millis without blocking, how to make random blinks and glances, how to blend smoothly between moods and how to read a potentiometer.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions