ESP32 Projects
Start a build
Markdown

Nova V2 for ESP32-S3

An ESP32 display project for ESP32-S3 involving TFT display, OLED display, Microphone.

ESP32-S3See upstream buildUnrated
Parts and source

Before you start

Check the exact TFT display, OLED display, Microphone configuration against the upstream wiring or parts list.

Upstream README

Nova V2

Nova is a voice assistant I built into a copper cage on my desk. It runs on a single ESP32-S3 with no PC or server in between: you say "Hey Nova", it wakes up, and you're talking to OpenAI's realtime voice model. You can cut it off mid-sentence, and it remembers you between conversations.

V1 on the left, Nova V2 on the right

Schematic

How it started

Last summer I built V1 and called it Nora. It was a small copper cage with one mic, a tiny OLED and one speaker, but the ESP32 only shuttled audio back and forth. A Python script on my laptop did the actual talking to Gemini Live, so it was really a laptop accessory.

It taught me a few things the hard way. The OLED kept dying from noise, the amp supply hummed, the speaker crackled until I put resistors on the I2S lines, and a battery should never touch a bare metal frame. Nora sits on a shelf now with its battery out.

Nova V2 started as an upgrade and turned into a different project. The frame is 2 mm bare copper wire I bent by hand into a hexagon, and the whole frame is the circuit's ground. There's no PCB and no case: every part is soldered straight onto the copper.

What it does

  • Wakes up on "Hey Nova". The wake word runs on the chip, so no audio leaves the device before that.
  • Talks to OpenAI GPT-Live over a WebSocket, straight from the ESP32-S3.
  • Lets you interrupt. It removes its own voice from the mic signal in software, so it can hear you while it's talking.
  • Remembers notes about you, even the ones it forgot to save while talking: after each conversation, a second model reads the transcript and decides what's worth keeping and what's out of date.
  • Searches the web and sets timers and alarms by voice, and changes its own volume, brightness and settings.
  • Checks the weather every hour and pulls a short news digest three times a day.
  • Has its own copper-coloured UI on a 1.8" screen, and a web panel at nova.local for live logs and wireless updates.

How it works

flowchart LR
    MIC["2x INMP441 mics"] -->|asleep| WAKE["WakeNet: Hey Nova"]
    MIC -->|awake| AEC["Echo canceller"]
    REF["Copy of what the speakers play"] --> AEC
    AEC --> LIVE["OpenAI GPT-Live"]
    LIVE -->|voice| SPK["2x MAX98357A + speakers"]
    SPK --> REF
    LIVE <-->|delegation| BACK["Backend model: search + tools"]
    BACK --> MEM[("Flash: notes, timers")]
    LIVE -->|captions| TFT["1.8 inch screen"]

While Nova is asleep, only the wake word engine listens. After "Hey Nova" that engine is unloaded, a session with OpenAI opens, and the mic is streamed through the echo canceller. GPT-Live doesn't call tools itself: when you ask for a search or a timer, it hands the job to a backend model, which calls the functions the firmware exposes.

Echo cancellation without a codec

Voice assistant boards usually have an audio codec that feeds the speaker signal back as a reference. Nova only has two I2S amps, so I build that reference myself. Everything Nova says is kept in a 4-second buffer, a calibration command plays white noise to find the speaker-to-mic delay (81.6 ms on this cage), and Espressif's AEC subtracts it from the mic.

A gate after the AEC only lets through sound that's clearly louder than the leftover echo. At 80% volume the leftover is usually 12–17 dB below the original, enough to talk over Nova at a normal voice.

Running out of RAM

TLS, the wake word engine and the AEC all need internal RAM, and early builds kept failing the TLS handshake with "Memory allocation failed". I moved every big buffer to PSRAM and made the wake word engine exist only while Nova sleeps. The firmware also sets two 17 KB blocks aside at boot, so there's always room for a TLS connection.

The mics that kept dropping out

Both mics would cut out at random, mostly while I was typing, and the multimeter said everything was fine. I added a loopback test where the ESP32 feeds its own clock into the data pin; it passed every time, so it wasn't the firmware. A live monitor that lights the LED per mic did the rest: I wiggled the joints, the colour changed, and it was a cold solder joint. After resoldering, 600 checks came back clean.

Picking the model

I tried three live voice models on the same board, behind the same interface, before settling on one.

Gemini 3.8 Live GPT Realtime 2.1 GPT-Live 1
Time to first audio ~1.0–1.2 s ~1.2–3.5 s ~0.8–1.5 s
Short Turkish phrases transcribed right often wrong often wrong yes
Turn taking waits for silence semantic VAD listens while it talks

GPT-Live was the fastest, the only one that got short Turkish phrases right, and it can listen while it talks, which makes interrupting it feel natural.

Hardware

Part Notes
ESP32-S3 N16R8 16 MB flash, 8 MB PSRAM
2x INMP441 I2S mics on one bus (one L/R pin to GND, the other to 3V3), hanging from the lower front corners
2x MAX98357A I2S amps, both playing the same mono signal; GAIN and SD left floating
2x 5 cm 8 Ω 5 W speakers One on each side of the cage
1.8" ST7735 TFT 160x128, SPI
2x 18650 in parallel TP4056 USB-C charger, MT3608 boost to 5 V
47k/47k divider Battery voltage on an ADC pin

Battery negative never touches the cage; the cage joins ground at the boost converter's output. I scrape the copper clean before every joint, and the signal wires to the mics are thin enamelled wire.

Function GPIO
Right amp BCLK / LRC / DIN 42 / 2 / 41
Left amp BCLK / LRC / DIN 10 / 11 / 9
Mic SCK / WS / SD 12 / 13 / 14
TFT BLK / CS / DC / RST / MOSI / SCK 4 / 5 / 6 / 7 / 15 / 16
Battery ADC 3
BOOT button / RGB LED 0 / 48

The schematic is hand-drawn and a little behind; firmware/nova_live/config.h is the source of truth.

Building it

Arduino IDE with the esp32 core 3.3.12 or newer. Board: ESP32S3 Dev Module, PSRAM: OPI PSRAM, Flash Size: 16MB, Partition Scheme: Custom, Flash Mode: QIO 80MHz. Libraries: Adafruit GFX and Adafruit ST7735 and ST7789 (ArduinoJson is already in the folder).

  1. Copy secrets.example.h to secrets.h and fill in your Wi-Fi, OpenAI API key and an OTA password.
  2. Give Nova a personality in kisilik.h. I left it empty on purpose. If you want it to know you, copy kisisel.example.h to kisisel.h.
  3. Flash over USB the first time. After that you can update from nova.local or the IDE's network port.
  4. Run a once over Serial to measure the echo delay, then e to turn interrupting on.

The screen is in English by default; set UI_ENGLISH to 0 in config.h for Turkish.

Tests

The conversation logic, tools, memory, echo math and screen renderer also build on Linux and run against a fake GPT-Live server:

cd firmware/tests/nova_live_masaustu
bash build.sh ../../nova_live
./t_wake && ./t_arac && ./t_echo && ./t_ekran

Each should end with SONUC: GECTI ("passed").

Known limits

  • GPT-Live is billed per connected minute (about $0.05), silence included, so sessions close on their own after a short silence.
  • When you interrupt, Nova stops only after the server has transcribed you, so there's a short delay.
  • The "Hey Nova" model is Espressif's English one, trained on synthetic voices. It works, but you have to say it clearly.
  • Very loud playback pushes the speakers out of their linear range and the echo cancellation gets worse.
  • Comments and logs are in Turkish.

Credits and license

Thanks to Espressif ESP-SR for WakeNet, the AEC and the "Hey Nova" model, and to RIO, which showed me codec-less echo cancellation on an ESP32-S3 was doable. Also Adafruit GFX and ST7735, ArduinoJson, the Chakra Petch font (OFL) and Open-Meteo.

MIT licensed; third-party parts keep their own licenses.