ESP ZeroCode AI · Community

Ollama Remote

Ollama Remote

A local LAN ollama network server chat remote with a push to talk button that allows you to talk to an LLM and it talks back on the same device.

ESP32-S3 display audio sound
Download the firmware Open-source licences

What it does

Manual

Device Type
Ollama Remote — a handheld, BMO-themed voice terminal for a local AI served by LocalAI. It solves the friction of walking to a PC to ask a local model something: pick up BMO, hold the big button on his face, ask your question out loud, and hear the answer spoken back in BMO's voice. Everything stays on the local network behind one standard LocalAI docker container — no cloud account, no app, no keyboard. The whole interaction is one screen and one button, deliberately minimalist, with BMO's Adventure Time face carrying every status.

Hardware
chip: esp32s3 — board: m5-cores3 — boardName: M5Stack CoreS3 — gpios: audio_dac: 0 · 13 · 14 · 33 · 34 — display_lcd: 3 · 35 · 36 · 37 — i2c_master: 11 · 12 — note: No external wiring. Every peripheral in this product is already soldered onto the CoreS3; the board's free pins and its Grove ports stay unused. The GC0308 camera is present on the board but not used by this product. — peripherals: part: display_lcd — kind: ili9341 320x240 IPS LCD — role: BMO's face and the entire UI. Draws the idle/listening/thinking/speaking/sleeping/error faces, the on-screen push-to-talk button, the transcript text and the on-screen keyboard. — wiring: on-board · part: lcd_touch — kind: ft5x06 capacitive touch — role: All user input: the press-and-hold push-to-talk button, the Retry button, the Forget gesture, the setup keyboard, and waking the device from sleep. — wiring: on-board, shares the internal I2C bus · part: audio_adc — kind: es7210 dual-mic array — role: Captures the user's speech while the push-to-talk button is held. Two mics give a usable signal from arm's length in a quiet room. — wiring: on-board, I2S plus the internal I2C bus · part: audio_dac — kind: aw88298 class-D speaker amp — role: Plays BMO's spoken reply and the few UI feedback tones. — wiring: on-board, I2S plus the internal I2C bus · part: power_ctrl — kind: axp2101 power manager — role: Battery level and charging status, and the rails for the LCD, mics and amp. Also the source of the battery gauge on BMO's idle face. — wiring: on-board, internal I2C bus · part: gpio_expander — kind: aw9523 — role: Internal to the board — latches and reset lines. Not addressed by the application; the board support layer owns it. — wiring: on-board · part: buttons — kind: physical side buttons — role: Power and reset only. Deliberately NOT used as application input — push-to-talk lives on the touchscreen so the buttons can never be hit mid-sentence. — wiring: on-board

Inputs
kind: touch — label: Push-to-talk button — hardware: On-screen button occupying the lower third of the LCD, reached through the ft5x06 touch panel. Held active by contact, not a tap. — behavior: Press and hold anywhere on the button to start recording; the face changes to listening immediately and a level indicator pulses with the mic level. Release to stop recording and send the question. There is a minimum useful recording length of about 0.3 s — a shorter tap is treated as an accidental touch, plays a soft 'uh?' blip and stays idle. Recording also stops automatically after 30 s so a stuck touch cannot hold the mic open forever. If the release lands while the device is still reconnecting Wi-Fi, the audio is held and sent as soon as the link is up, for up to 10 s before erroring. · kind: touch — label: Retry button — hardware: On-screen button rendered under the error face whenever the device is in the error state. — behavior: Tapping Retry re-runs the step that failed — reconnect Wi-Fi, re-send the question to LocalAI's chat endpoint, or re-send the recording to its transcription endpoint — without losing the conversation. The face goes back to thinking while it retries. · kind: touch — label: Forget gesture — hardware: Long-press (1.5 s) anywhere on BMO's face while he is idle. — behavior: Wipes the conversation memory and starts a fresh one. BMO blinks twice and returns to a clean idle face. Nothing else is reset — Wi-Fi and server settings survive. · kind: touch — label: On-screen keyboard and settings — hardware: BMO-themed full touch keyboard plus the seven-box LocalAI settings screen reached from the idle face. — behavior: Used on first run and any later time the server IP, the port, an endpoint path or a model name needs changing. The Wi-Fi network is NOT edited here — joining or changing networks is the WPS flow above, because a password field on this keyboard is exactly the fiddly interaction the product is trying to avoid. Each field is typed directly on the LCD with the same keyboard; a tick confirms and a cross cancels. Settings are committed only when the user confirms, so an abandoned screen leaves the previous configuration intact. · kind: touch — label: Network scan row and WPS pairing — hardware: Tappable network rows on the setup screen, and a countdown ring once a network is chosen (esp_wifi WPS push-button enrollee, which the esp32s3 supports). The row itself is the only control — there is no SSID entry field and no separate Join button anywhere in this flow. — behavior: ONE tap on a network row is the whole gesture: it selects that network's SSID and immediately starts a 2-minute WPS push-button session for it, then switches the screen to the countdown and says out loud and on screen 'press the WPS button on your router'. The tap never merely fills a text box and never waits for a second confirmation — the row it was tapped on IS the network being attempted, and it stays visibly marked as the active attempt. The tap must always produce immediate visible feedback, because a silent no-op is the failure this flow has already had in practice: the touched row highlights on touch-down, shows a spinner on that same row within ~100 ms, and the screen changes to the countdown as soon as the WPS session is armed. If the WPS session cannot be started at all — WPS unsupported by the router, the station not ready yet, or the radio still busy — the row gives a brief 'couldn't start WPS' shake and the error face explains it, rather than sitting still. If the router accepts, the credentials are handed over by the router itself, saved to NVS and the server settings screen opens. If the 2 minutes run out he offers Try again (a fresh session, same SSID still selected) or Rescan. Tapping a different row while a session is running cancels that session and starts a new one for the new SSID, so the tapped network is always the one being attempted. The joined network's name is remembered and re-joined automatically from then on, so WPS is needed once per network, not once per boot. · kind: sensor — label: Microphone array — hardware: es7210 dual mics, 16 kHz mono, 16-bit PCM, recorded to RAM in short chunks. — behavior: Active only while the push-to-talk button is held. There is no always-on listening and no wake word — the mic is electrically idle in every other state, which is what keeps the product honest about only making the sounds the AI makes.

Outputs
kind: display — label: BMO's face — the primary status indicator — hardware: ILI9341 320x240 LCD. BMO's body fills the screen in mint (#7FD4C1) on the dark teal face panel (#0E3B3B); eyes and mouth in warm off-white (#F5F5EF). — behavior: One face per state, and the face is the whole status language: IDLE — relaxed round eyes, slow breathing bob, small battery gauge in the corner. LISTENING — eyes wide, brows up, mouth slightly open, a soft level ring around the button pulsing with the mic input so the user can see he is hearing them. THINKING — eyes glance up and to the side with three dots cycling (the 'computing' look); this state can last several seconds and the dots must never stop moving, because a still screen reads as a frozen device. SPEAKING — mouth animates in time with the audio envelope, eyes happy. SLEEPING — eyes closed in flat curves, screen dimmed to near-black. ERROR — one eye squints, mouth a small wavy frown, plus one short line of plain language under the face (e.g. 'No Wi-Fi', 'Can't reach Ollama', 'Didn't catch that') and the Retry button. No spinners, no menus, no chrome — the face IS the UI, matching the Apple-Watch-minimal brief. · kind: display — label: Transcript strip — hardware: A two-line text strip at the top of the LCD, small and low-contrast so the face stays the focus. — behavior: Shows the recognised question while BMO thinks, then the reply while he speaks. Long replies scroll a line at a time. The strip clears back to nothing a few seconds after idle, so the device looks calm when at rest. If a reply is too long to speak in one go it is read in order, and the strip tracks the part being spoken. · kind: speaker — label: BMO's voice — hardware: AW88298 amp driving the on-board speaker, playing the audio returned by /v1/audio/speech. The device asks LocalAI for 16 kHz mono WAV so it can play the body straight out without transcoding, and resamples on the fly if the served voice model returns a different rate (LocalAI voices commonly emit 22.05 or 24 kHz). — behavior: Speaks the reply in whichever TTS voice model LocalAI serves — the device is deliberately agnostic: it plays whatever audio /v1/audio/speech hands back, so the voice can be swapped by changing the served model without ever reflashing BMO. Volume is set once in settings and persists; there is no physical volume control. Playback can be interrupted by pressing the push-to-talk button again, which stops the audio immediately and starts a new recording. · kind: speaker — label: Minimal UI blips — hardware: Same speaker, very short synthesised tones. — behavior: Two or three quiet blips only, all local: a soft tick when recording starts, a short blip on an accidental too-short tap, and a two-note chime when the error face appears. No music, no background sounds, no startup jingle — the product must make no sound that is not either the AI or an acknowledgement of a press. · kind: battery — label: Battery gauge — hardware: AXP2101 fuel gauge rendered as a small BMO-styled indicator on the idle face. — behavior: Hidden while the face is doing anything else so it never clutters the screen. Turns amber at 20% and a small blinking BMO-style 'eh' at 10%, at which point a spoken warning is allowed.

Connectivity
stack: wifi — transport: esp32s3 station mode, 2.4 GHz — purpose: Joins the user's home LAN using WPS push-button pairing — no password is ever typed on the device. The credentials are delivered by the router, stored in NVS, and re-joined automatically on every wake. · stack: http — transport: plain HTTP over the LAN, no TLS — purpose: Three plain REST calls against ONE LocalAI instance listening on a single port — the Ollama default port 11434. (1) POST `multipart/form-data` to `/v1/audio/transcriptions` with the recorded audio as `file` and `model=whisper-1`, and read the `text` field back; (2) POST JSON to `/v1/chat/completions` with the conversation as a `messages` array and the configured chat model, and read `choices[0].message.content`; (3) POST JSON to `/v1/audio/speech` with `model`, `input` and `voice`, and receive the audio body. Each endpoint has its own URL path box and its own model box because LocalAI names a model on every request and different installs serve different ones; a stock docker setup answers on these three paths with `whisper-1` and `tts-1` pre-filled, so the defaults need no edits. All of it lives behind the single IP and single port, which is why the device carries one port box rather than three. No cloud, no account, no external dependency.

Commissioning
method: on-device touch setup wizard — instructions: Setup is two short screens and neither of them asks for a Wi-Fi password, because typing one on a 320x240 keyboard is the fiddliest thing this device could ask of anyone. SCREEN 1 — BMO shows a curious face, scans, and lists the 2.4 GHz networks in range as big tappable rows (signal strength shown as bars, strongest first). ONE tap on a row is the whole gesture and it must do the join immediately: the tapped row highlights, spins on itself within ~100 ms, that SSID becomes the one being attempted, and the screen switches to the WPS countdown with BMO saying 'press the WPS button on your router'. There is no SSID field to fill and no second Join button — the row the user touched IS the request, and a tap that only populates a text box counts as a bug in this flow. Tapping a different row mid-session cancels and restarts on the new SSID. When the router accepts, the credentials arrive by themselves, BMO smiles, they are written to NVS and SCREEN 2 opens. If the window expires he pulls a sad face and offers Try again (a fresh WPS session, same SSID still selected) or Rescan. If WPS cannot be started at all, the row shakes briefly and the error face explains why rather than the screen sitting still. SCREEN 2 — the LocalAI server settings, seven boxes on one screen, all pre-filled with the stock docker defaults: IP reading 192.168.2.136 with the last octet pre-selected for quick editing; one port box reading 11434, Ollama's default port, because the single backend serves chat, transcription and speech on that one port; then a path box each for chat (/v1/chat/completions), transcription (/v1/audio/transcriptions) and speech (/v1/audio/speech); then a model box each for the chat model, `whisper-1` and `tts-1`, because LocalAI names a model on every request and every install serves different ones. In the normal case the user changes only the last three digits of the IP and taps the tick, leaving the port, all three paths and all three model names untouched. Each box opens by tapping it, edits in place on the same keyboard, and keeps its value until the screen as a whole is confirmed. A tick confirms; BMO then shows a hopeful face while he runs a one-shot health check against all three endpoints on that one port. Success: he smiles, says 'hi, I'm BMO', drops to the idle face and remembers everything in NVS. Failure: the error face names the ONE endpoint that did not answer — transcription, chat or speech — with a back arrow to the settings screen so a typo can be fixed. — payload: No values are supplied at flash time. Wi-Fi credentials are never supplied by a person at all — they arrive through WPS and land in NVS. The LocalAI settings are entered on the device and also stored in NVS: the server IP (pre-filled 192.168.2.136, last octet pre-selected), the single port (11434), the three endpoint paths (/v1/chat/completions, /v1/audio/transcriptions, /v1/audio/speech) and the three model names (chat model, whisper-1, tts-1) — all pre-filled so a stock LocalAI docker container needs no edits beyond the IP.

Business Logic
powerOnBehavior: On power-up the AXP2101 releases the rails, the LCD draws BMO's idle face while the S3 boots, and he blinks once. Wi-Fi re-joins in the background. About 1.5 s after the face appears — or as soon as Wi-Fi is up, whichever is later — BMO is listening for a press. If no network is configured at all, the setup wizard takes over the screen; if a network is configured but unreachable, he sits on the idle face with a small worried side-eye and retries quietly in the background rather than blocking the user behind an error screen. There is no boot jingle and no logo splash — the face is the first thing on screen. — automationRules: Hold-to-talk: contact on the on-screen button gates the microphone. No contact, no mic. This is the product's one hard rule. · 30 s recording cap — a held touch cannot record forever. · 30 s silent-retry budget on LocalAI's chat endpoint before the error face appears; the retries are invisible to the user except that the thinking dots keep going. · 60 s idle timeout → screen off and Wi-Fi down. Any touch wakes it. · Conversation memory is RAM-only and dies on reboot; only the Forget gesture clears it within a session. · Speech never starts until the complete first audio chunk of the TTS reply has arrived, so BMO does not stutter at the start of a sentence. — dayToDayOperation: Pick BMO up and tap the screen — he blinks awake from sleeping and shows his idle face, and Wi-Fi comes back up within a second or two. Hold the large button on his face, speak, and let go. His eyes go wide while you talk, glance up with the thinking dots while the LAN box transcribes and the model composes, and then he grins and answers out loud in his own voice with the reply scrolling quietly along the top. Ask a follow-up without doing anything else, because he still remembers what you were talking about. When the subject changes, long-press his face and he blinks twice — fresh start. Put him down and after a minute he closes his eyes and the screen goes dark. If the model load is slow the thinking dots just keep going; if something is genuinely broken he pulls a wavy-mouthed sad face, tells you in five words what went wrong, and offers Retry. The defining feel is that there is only ever one thing to do and BMO's face tells you exactly which state you are in.

Factory Reset
trigger: From the settings face, hold the 'Forget BMO' row for 3 full seconds; a ring fills around it while held, and releasing early cancels. — effect: Erases the Wi-Fi credentials, the LocalAI server IP, the port, the three endpoint paths, the three model names, the volume and the conversation memory from NVS, then reboots into the setup wizard with a clean BMO (IP back to 192.168.2.136, port back to 11434, paths back to /v1/chat/completions, /v1/audio/transcriptions, /v1/audio/speech, models back to whisper-1 and tts-1). This is the escape hatch for the case that matters most in the field — a device that has joined the wrong network and can no longer reach anything, where there is no way to fix it from the UI because the error face only offers Retry. It matters more with WPS than it did with a password: a device stuck on the wrong network cannot re-run WPS from the error face, so the reset must stay reachable. Because the device has no physical button reserved for this, the settings row is shown even in the error state.

Failure Modes
scenario: Wi-Fi network is down or the router is off — behavior: At boot, after ~10 s of failed join attempts BMO shows the error face saying 'No Wi-Fi' with Retry. During a session the connection simply drops: the next press records as normal, then the send waits up to 10 s for a re-association before falling through to the same error face, with the recording kept so Retry does not make the user repeat themselves. He re-associates quietly in the background at all times. · scenario: The router has WPS turned off, or it is a WPS-PIN-only router — behavior: This is the one real cost of dropping the password field, so it is a first-class state rather than a generic error. The WPS session cannot start or the router refuses: BMO does not sit on a dead countdown. He shows the error face with 'Your router said no to WPS' and two choices — Try again (for a router where the user simply pressed the button too late) and a small 'Type password instead' escape hatch that reveals the keyboard password field for this one join. The escape hatch exists because a router with WPS disabled would otherwise make BMO permanently unjoinable, and it stays hidden in normal use so setup remains tap-and-go. · scenario: A network row is tapped but nothing happens — behavior: Treated as a defect, not a state. Every tap must land somewhere: either the WPS session starts (row highlights, spinner, countdown) or the row shakes and the error face says why WPS could not begin — 'WPS isn't supported on this network', 'still turning the radio on, try again', 'a WPS session is already running, tap again to restart'. The screen must never remain unchanged after a tap. The most common real cause is a scan that finished after the screen was drawn: the row's SSID is then re-checked against the live scan result on touch, and if that network has vanished the row shakes and the list refreshes instead of attempting a join for a network that is gone. · scenario: WPS session times out because the router button was not pressed in time — behavior: After the 2-minute window BMO pulls a sad face with a countdown that already emptied and offers Try again (a fresh session) or Rescan. The chosen network stays selected, so retrying is one tap and no re-typing. · scenario: 5 GHz-only network, which WPS enrolled from an esp32s3 cannot join — behavior: The scan lists 2.4 GHz networks only, so a 5 GHz-only SSID never appears — the user is not offered a network the radio cannot use. If their 2.4 GHz and 5 GHz networks share one name and the router hands over a 5 GHz-only profile, the join fails and the error face says 'that looks like a 5 GHz network' with a hint to enable the 2.4 GHz band, rather than looping on WPS. · scenario: LocalAI container unreachable, or it is not running — behavior: The thinking dots continue while the device retries quietly for up to 30 s. Then the error face says 'Can't reach LocalAI' with Retry. The transcript of the question stays visible so the user can see what was asked. Because all three endpoints share one port, a wrong IP or a stopped container is one coherent failure, and the health check at setup tells the user which of the three endpoints answered while others did not — usually meaning a missing model rather than a missing server. · scenario: LocalAI is reachable but slow because a model is loading into memory — behavior: This is expected and must not look like failure: on first use LocalAI loads the chat or TTS model into memory, which can take longer than a warm call. The thinking dots keep moving for the full 30 s window, and a first-token wait longer than that does show the error face but with a distinct 'LocalAI is still loading the model' wording, whose Retry re-attaches to the same request where possible rather than starting over. · scenario: Speech-to-text returns nothing usable (silence, mumbling, background noise) — behavior: BMO shows the error face with 'Didn't catch that' and Retry, which re-sends the stored recording. A cancel returns to idle. He never invents a question to send to the model. · scenario: The speech endpoint fails after a good answer — behavior: The answer is not lost: the reply text stays on screen showing in full, with a small muted-speaker marker, and a small 'speak again' button re-posts to /v1/audio/speech. The chat model is not re-asked, because the answer already exists, and the conversation memory still gets the exchange because the round-trip genuinely happened. · scenario: No transcription model installed, so the question is recorded but cannot be transcribed — behavior: The error face says 'no Whisper model installed' with Retry. This is the most likely LocalAI failure in practice, because a fresh `docker run` answers on every endpoint but serves no models until some are installed — so the health check at setup explicitly verifies models rather than just ports, and this error names the missing model and the endpoint rather than reporting a dead server. The recording is kept so Retry re-sends it rather than making the user repeat themselves. · scenario: LocalAI returns an error status or malformed JSON — behavior: Treated as unreachable, but the plain-language reason is derived from the HTTP status and the endpoint that produced it — 'LocalAI says no such model' when a configured model name is not installed, or 'no such endpoint' when a path box has been edited to something LocalAI does not serve — rather than a generic connection error. Because all three calls go to one port, the distinction between 'server down' and 'model missing' is made from the status code, not from which port answered. · scenario: Power blip or battery pulled mid-conversation — behavior: The conversation lives in RAM, so it is gone; the device boots to the idle face with settings intact and starts a fresh conversation. Nothing else is lost and nothing needs re-configuring. · scenario: Battery drains to critical — behavior: At 10% BMO shows an amber gauge and says a short warning once. At 5% he saves nothing that needs saving, closes his eyes with a small sleeping face and powers the rails down cleanly rather than brown-out resetting. Plugging in USB starts the charge and BMO wakes on the next touch. · scenario: The user holds the screen and walks away with a finger down — behavior: The 30 s recording cap ends the recording and sends whatever was captured; if it was silence, the STT-empty path takes over and BMO says 'Didn't catch that' rather than hanging.

Power Management
batteryPowered: true — sleepMode: Aggressive idle sleep: after 60 s with no touch and no audio activity the LCD backlight goes to zero, the AW88298 and ES7210 are powered down, and the Wi-Fi station is disconnected so the radio stops drawing current. The S3 enters light sleep between wake checks rather than a full power-down, so the conversation stays in RAM and waking is instant. While audio is recording or playing, sleep is inhibited. — wakeSources: Touch on the LCD (ft5x06 interrupt) — the intended way back, and any touch anywhere on the screen counts, not just the button · Power button press (the board's own hardware wake) · USB power applied — notes: Charge state is read from the AXP2101 and drives the gauge and the low-battery behaviour above. The board's unused GC0308 camera is left unpowered so it costs nothing. WPS is a one-off at join time: the credentials land in NVS and normal wake-ups re-associate with them directly, so aggressive sleep costs nothing in re-pairing.

Custom Behavior
noWakeWord: The selected audio stack offers always-on wake-word listening, and this product deliberately does not enable it. Push-to-talk only: the mic is gated by the on-screen button, which is both the interaction the user asked for and the reason the device can claim it makes no sound and captures no speech outside an explicit press. — voiceIsServerSide: The BMO voice is the TTS voice model served by LocalAI. The firmware contains no voice at all — it posts text to /v1/audio/speech and plays the audio that comes back. This keeps the product honest about 'no sounds besides the AI' while letting the voice be swapped by changing which TTS model LocalAI serves, without touching BMO's hardware. — faceAsProtocol: There is no menu, no status bar and no navigation. The face is the entire status language, and every reachable screen is either the idle face, one of its states, or the keyboard. This is the Apple-Watch-minimal constraint enforced at the design level: any feature that would need a second screen does not belong in this product. — memoryIsRamOnly: Conversation history is kept in RAM for the session and wiped on reboot. There is no storage of what the user said or what the model answered beyond the currently running conversation — a privacy property that also makes the Forget gesture meaningful. — onDeviceOnlySetup: Provisioning happens on the device alone — no phone app, no BLE, no Wi-Fi hotspot portal, and no Wi-Fi password ever typed. The network is joined by WPS: scan, tap the SSID, press the router's WPS button, done. The LocalAI settings are seven pre-filled boxes (IP 192.168.2.136 with the last octet pre-selected, port 11434, the three endpoint paths and the three model names), so the normal case is three keystrokes. This comes from the sensible observation that a 12-character password on a 320x240 keyboard is the worst interaction this device could ask for, while the server fields are short, typed once, and mostly already correct. — localAiDefaults: The backend is the standard LocalAI docker container, not a hand-assembled stack, and the defaults are its real defaults: port 11434 (Ollama's own default, since that is the port the user's stack answers on), /v1/chat/completions, /v1/audio/transcriptions and /v1/audio/speech, with whisper-1 and tts-1 pre-filled as the audio model names. One container therefore replaces the three separate services an earlier version of this spec assumed, which is why the device carries a single port box: LocalAI is OpenAI-compatible on one port by design, and naming a model per request is what makes the three model boxes necessary where a single model box used to be. Only the chat model name has no safe default, because it depends entirely on what the user pulled. — wpsOnlyWithEscapeHatch: Wi-Fi joining is WPS push-button only — the primary flow never shows a password field. The one exception is a deliberate, hidden escape hatch that appears only after the router refuses WPS (or offers PIN pairing only), because a device with no password fallback would be permanently unusable on a router with WPS disabled. The default path stays two taps; the fallback exists so the product cannot brick itself against a real router. — tapIsTheTrigger: On the network list a tap is not a selection and not a form field — it is the join request itself, and it fires immediately on release of the touch. The intended reading of the screen is 'tap the network and press your router's WPS button', with nothing between those two actions. This is written down explicitly because an earlier revision described the row as filling an SSID, and a build followed that wording into a text box that then waited for a Join button that did not exist — leaving a tap looking broken. The rule for anyone editing this product: a scan row has no second step, and every tap must produce visible change within ~100 ms or it is a bug.

Published 9 Nov 2026 · version 3
Firmware and source licensed Apache-2.0; photos and text CC-BY-4.0.
The firmware includes open-source software — open-source licences and notices; some components may be used only with Espressif chips.
Built with ESP ZeroCode AI — describe a device, get production firmware.
Terms of Service · Privacy Policy