A 3D-printed desk companion robot driven by an ESP32-C3 Mini. YETI displays animated facial expressions on a small OLED, reacts to capacitive touch gestures, shows live weather and clock data, and is configured entirely through a local web interface — no app or cloud account required.
The enclosure is the Compagnon 309 by Leroyd on MakerWorld.
- Animated face — 11 expressions (happy, sad, angry, surprised, love, sleepy, dead, wink, and more) rendered geometrically with smooth blink transitions
- Touch gestures — single tap cycles expressions, double tap opens info screens, long press triggers love mode with Star Wars theme
- Piezo buzzer — non-blocking tone sequencer with boot chime, tap clicks, and Star Wars main theme on long press
- Haptic feedback — vibration motor pulses in sync with buzzer patterns, including the Star Wars rhythm
- Live weather — fetches current temperature and conditions from Open-Meteo (free, no API key). Support for Fahrenheit or Celsius.
- 3-day forecast — daily max temperature and weather condition for the next 3 days
- NTP clock — syncs time on boot, configurable UTC offset
- Local web UI — configure WiFi, location, timezone, and units at
http://yeti.local - Offline mode — full gesture and expression support even without WiFi
- Sleep mode — blanks display after 5 minutes idle, wakes on touch
| Component | Spec | Notes |
|---|---|---|
| Microcontroller | ESP32-C3 Super Mini / Mini | 160 MHz RISC-V, 320 KB RAM, 4 MB Flash |
| Display | 0.96" SSD1306 OLED, I²C, 128×64 px | 26 mm × 26 mm module |
| Touch sensor | TTP223 capacitive touch module | 18 × 16 mm max footprint |
| Wiring | Dupont jumper wires | ~7 cm recommended for SDA/SCL |
| Magnets (optional) | 8 × 2 mm neodymium, ×4 | For mounting in each foot slot |
| Vibration motor (optional) | Micro motor module | Fits dedicated internal slot |
| Piezo buzzer (optional) | Any 3.3V-compatible buzzer |
| Signal | ESP32-C3 GPIO |
|---|---|
| OLED VCC | 3.3V |
| OLED GND | GND |
| OLED SDA | GPIO 8 |
| OLED SCL | GPIO 9 |
| Touch VCC | 3.3V |
| Touch GND | GND |
| Touch I/O | GPIO 7 (fallback: GPIO 5) |
| Buzzer (optional) | GPIO 5 |
| Vibration motor (optional) | GPIO 10 |
Note: The touch sensor input is configured with
INPUT_PULLDOWNto minimize noise and prevent phantom triggers. If the sensor is unresponsive, swapTOUCH_PINinconfig.hto GPIO 5. Some TTP223 modules only work on GPIO 5 with certain boards.
- Model: Compagnon 309 by Leroyd (MakerWorld)
- Layer height: 0.2 mm, 2 walls, 15% infill
- OLED slot: 26 × 26 mm
- Touch sensor slot: 18 × 16 mm (pins face inward)
- Magnet slots: 8 × 2 mm in each foot (optional)
- Only the rear panel needs reprinting if ESP32-C3 position changes
- PlatformIO CLI installed
- USB-C cable connected to the ESP32-C3
# Compile only
pio run
# Compile and upload to connected ESP32-C3
pio run --target upload
# Open serial monitor (115200 baud)
pio device monitor
# Compile + upload + monitor in one step
pio run --target upload && pio device monitor
# Clean build artifacts
pio run --target clean| Library | Version |
|---|---|
| Adafruit SSD1306 | ^2.5.9 |
| Adafruit GFX Library | ^1.11.10 |
| ArduinoJson | ^7.2.0 |
On first boot (no WiFi credentials stored), YETI starts an open access point:
- SSID:
YETI— connect from any phone or laptop - PASS
123456789 - Open a browser to
http://192.168.4.1 - Fill in WiFi SSID, password, latitude, longitude, timezone, and temperature unit (F/C)
- Click Save — YETI writes the config to non-volatile storage and reboots
After setup, YETI connects to your WiFi automatically on every boot and is reachable at http://yeti.local.
To re-enter setup mode from the device: double-tap to open info screens → single-tap to reach the Network screen → long-press for 3 seconds.
| Gesture | Face Mode | Info Mode |
|---|---|---|
| Single tap | Advance to next expression | Advance to next info screen |
| Double tap | Open info screens | Return to face mode |
| Medium press (~1 s) | Show purr expression + play purr sound (holds until sound ends) | — |
| Long press (3 s) | Show love expression + play Star Wars theme (holds until music ends) | Restart in AP setup mode (Network screen only) |
| Expression | Description | In auto-cycle |
|---|---|---|
| Happy | Slight top lid, pupils looking down | Yes |
| Neutral | Slight top lid, centred pupils | Yes |
| Sad | Raised bottom lid, angled brows | Yes |
| Surprised | Fully open eyes | Yes |
| Love | Eyes replaced with hearts | Yes |
| Sleepy | Top lid 50% closed, pupils down | Yes |
| Angry | Top lid 25%, inward brows | Yes |
| Dead | Eyes replaced with X shapes | Yes |
| Blink | Fully closed (transition only) | No |
| Wink L / Wink R | One eye closed | No |
| Purr | Heavy squinted eyes, pupils down, content smile | No |
Idle animations run continuously: eyes blink every ~3.5 s, pupils wander every ~8 s. Expressions auto-cycle every 2 minutes.
Double-tap from face mode to enter info mode. Single-tap to cycle through four screens.
Screen 1 — Clock & Weather Displays time and date synced via NTP, alongside current temperature and weather icon.
14:35
Sat 22 Feb
72F [ ICON ]
- Large Temp: Rounded Fahrenheit or Celsius temperature (configurable).
- Weather Icons: Custom-drawn icons for Clear, Cloudy, Rain, Snow, Storm, and Fog.
Screen 2 — 3-Day Forecast Three-column layout showing the max temperature and weather condition for today and the next two days.
Forecast
────────────────────────────
Today | Mon | Tue
☀️ | 🌧️ | ☁️
72F | 65F | 70F
Clear | Rain | Cloudy
Screen 3 — Network
Network
────────────────────────────
WiFi: Connected
IP: 192.168.1.42
RSSI: -54 dBm
http://yeti.local
Screen 4 — Firmware
Firmware
────────────────────────────
Version: 1.0.0
Board: ESP32-C3
Up: 2h 15m 03s
Touch: GPIO7
Info mode auto-exits to face mode after 30 seconds of no interaction.
Once YETI is connected to WiFi you can update the firmware without a USB cable.
- Build the firmware binary:
pio run
- Open
http://yeti.local/updatein a browser (also linked from the bottom of the config page). - Click Choose File, select
.pio/build/yeti/firmware.bin, then click Upload & Flash. - YETI shows a progress bar on its OLED while the binary is being written.
- On success the display shows "Update OK!" and YETI reboots automatically.
Tip: If
yeti.localdoesn't resolve, find the IP address on the Network info screen (double-tap → single-tap twice) and navigate tohttp://<IP>/update.
| Route | Method | Body param | Description |
|---|---|---|---|
/ |
GET | — | Config page (pre-filled from current settings) |
/save |
POST | ssid, pass, lat, lon, tz, faren |
Save settings to NVS and reboot |
/update |
GET | — | OTA firmware upload page |
/update |
POST | multipart firmware (.bin) |
Flash new firmware and reboot |
/api/status |
GET | — | JSON with WiFi status, IP, RSSI, temp, weather, time, unit preference, and stored coordinates |
/api/simulate |
POST | event=single|double|medium|long |
Inject a touch event |
/api/expression |
POST | expr=0..10 |
Set face expression directly |
/api/buzz |
POST | pattern=boot|tap|double|long|happy|sad|alert|starwars|purr |
Trigger a buzzer pattern |
┌──────────┐
power-on ──▶ │ BOOT │ ──▶ show logo 1.5 s
└──────────┘
│
┌──────────┴──────────────┐
│ no WiFi creds │ creds stored
▼ ▼
┌────────────┐ ┌──────────────┐
│ SETUP_AP │ │ FACE │ ◀──── default state
│192.168.4.1 │ │ (face mode) │
└────────────┘ └──────────────┘
│ ▲
double-tap │ │ double-tap
▼ │
┌──────────┐
│ INFO │
│ 3 screens│
└──────────┘
│
long-press on │
network screen ▼
┌────────────┐
│ SETUP_AP │
└────────────┘
FACE ──▶ SLEEP after 5 min idle
SLEEP ──▶ FACE on any touch
src/
├── main.cpp — State machine, loop(), touch dispatch
├── config.h — Pin numbers, timing constants, enums, ForecastDay struct
├── display.h/.cpp — DisplayManager: face rendering, info screens, animations
├── touch.h/.cpp — TouchHandler: gesture classification
├── network.h/.cpp — NetworkManager: WiFi, NTP, weather + 3-day forecast, web server
├── buzzer.h/.cpp — BuzzerManager: non-blocking tone sequencer (LEDC)
└── motor.h/.cpp — MotorManager: non-blocking vibration motor driver
platformio.ini — Build configuration
Apple Silicon: platformio.ini pins espressif/toolchain-riscv32-esp@12.2.0+20230208 — the only ARM64-native RISC-V toolchain version compatible with framework-arduinoespressif32@3.20017. The -march=rv32imc_zicsr_zifencei build flag is required.
No float printf: The Arduino ESP32 framework ships with CONFIG_NEWLIB_NANO_FORMAT=y, which removes %f/%e/%g support from printf. Using float format specifiers causes a runtime crash (Guru Meditation / Illegal instruction). Always convert floats to integers before formatting.
32-bit Time Compliance: Although time_t is 64-bit on newer ESP32 cores, YETI uses uint32_t for internal time storage and logic where appropriate to ensure compatibility with 32-bit architectural constraints and standard C-time casting.