Firmware
Six states. One interrupts them all: permission.
Flash from your browser
Version 0.2.0: it compiles, but has not been tested on an assembled N1 yet. One-click flashing from the browser (ESP Web Tools) is coming. Meanwhile, with esptool:
- Download the .bin image below and check its SHA-256.
- Connect the N1 over USB-C.
- Run: esptool.py --chip esp32s3 write_flash 0x0 n1-0.2.0.bin
- It's a full image: it goes at address 0x0.
- SHA256SUMS79 B
- build-info.json361 B
- manifest.json288 B
- n1-0.2.0.bin1.6 MB
What it's built with
- PlatformIO, with Arduino core 3.x.
- LovyanGFX for the display.
- ESP_I2S for the PDM microphone and speaker, on two peripherals.
- WiFiMulti: home Wi-Fi or phone hotspot.
- WebSockets for live status.
- In Arduino, select the XIAO_ESP32S3 board and use GPIO numbers.
State machine
| State | What happens |
|---|---|
| Idle | Session list with colors. The knob picks one. |
| Recording | While you hold Talk. 16 kHz, 16-bit, mono, in PSRAM. 15 s ≈ 480 KB. |
| Sending | The WAV goes out over HTTPS. |
| Waiting | Status arrives over WebSocket. |
| Reply | Text, scrolled with the knob. Optional Piper voice. |
| Permission | Interrupts any state: amber screen, beep, Yes or No. |
Wi-Fi and token
- Two saved networks: home and hotspot.
- The Access token lives in the device configuration.
- Never in the code. Never in the repo.
Screens
The display runs landscape: 320 × 240. The front window measures 42.8 × 32.6 mm.
