Case study · In-house product · 2026

HiiH: an AI desk companion robot, from breadboard to product design.

HiiH is a palm-sized robot with animated eyes, a voice and a head that moves. You talk to it, and it answers with Claude. We designed the hardware, wrote the firmware, built the server and the app around it, and took the body through two design iterations.

Product
HiiH Robotics (in-house)
Our role
Hardware, firmware, cloud, app
Status
Working prototype
Core stack
ESP32 · FreeRTOS · FastAPI · Claude
HiiH concept render: a white, rounded companion robot with a dark glass visor, glowing cyan eyes, sensor ears, articulated legs and hub-motor wheels
Concept render of where HiiH's industrial design is heading. The working prototype is described below.

The brief: personality that stays useful.

Desk companion robots are delightful in week one. In the user reviews we studied, the pattern repeats: the novelty fades by week three, and by month two the robot sits unused because it has nothing to do every day.

HiiH was designed around that problem. It keeps the character (expressive eyes, small movements, a voice) and adds a daily reason to talk to it: answers from a capable AI model, and access to the tools people already use, such as their calendar, email and task list.

Two constraints shaped the engineering: the hardware had to stay inexpensive, and the robot had to respect privacy, so it only listens once it hears its wake word.

Split-brain architecture. Real-time on the robot, heavy AI on the server.

A low-cost microcontroller can't run a large language model, but it can run eyes, audio and motors in real time. So HiiH splits the work: the ESP32 handles everything that must feel instant, and a companion server handles speech and reasoning over a WebSocket link.

  1. 01 · ESP32 firmware

    On the robot

    • On-device wake word (ESP-SR)
    • I²S microphone capture at 16 kHz
    • I²S speaker playback
    • OLED eye engine at 20 fps
    • Servo motion control
    • WebSocket client
  2. 02 · Python · FastAPI

    Companion server

    • WebSocket server for audio and state
    • Speech-to-text
    • Conversation and reasoning with Claude
    • Text-to-speech with ElevenLabs
    • Tool orchestration over MCP
  3. 03 · APIs and integrations

    Cloud services

    • Claude API (Anthropic)
    • Speech services
    • MCP connectors designed for Gmail, Calendar, Drive, Tasks, Notion, Slack and GitHub

Robot ⇄ server: WebSocket over local Wi-Fi · Server ⇄ cloud: HTTPS

One conversation, end to end.

  1. 01

    Wake

    The wake word is detected on the robot itself, so nothing is streamed until you address it. Eyes switch to LISTENING.

  2. 02

    Capture

    The INMP441 microphone records 16 kHz audio. Voice-activity detection on RMS amplitude decides when you've finished speaking.

  3. 03

    Understand

    Audio streams over WebSocket to the companion server and is transcribed. Eyes switch to THINKING.

  4. 04

    Reason

    Claude answers, calling tools such as your calendar or tasks when the question needs them.

  5. 05

    Speak

    The reply is synthesised, converted to 16 kHz PCM and streamed back to the MAX98357A amplifier. Eyes pulse in SPEAKING.

Prototype hardware.

PartComponentWhy
MicrocontrollerESP32-WROOM-32, dual-core 240 MHzMoved from ESP8266, which has no I²S audio bus
DisplaySH1106 1.3″ OLED, 128×64, I²CAnimated eyes, 20 fps
MicrophoneINMP441 I²S MEMS16 kHz mono capture
Audio outMAX98357A I²S Class-D amplifierDrives a small 8 Ω speaker
Motion3× SG90 servosPan, tilt and base rotation
PowerUSB-C, 5 VAlways-on desk device

Firmware. Built in PlatformIO for the ESP32.

  • Eye animation engine

    Six expressive states (idle, listening, thinking, speaking, happy, sleeping) rendered as a FreeRTOS task at 20 frames per second, with idle drift and natural blinking.

  • Real-time audio

    Two I²S buses with DMA buffers: one for the microphone, one for the speaker, so the robot can listen and talk without blocking its animations.

  • Motion behaviours

    Servo moves are eased in small steps rather than jumped, and wrapped as named behaviours: nod, look left, look right, scan and centre.

  • Connectivity

    Wi-Fi provisioning through a setup portal, and a persistent WebSocket link that carries audio one way and state commands the other.

The software around the robot.

A consumer robot is only as good as its setup and account system. HiiH has a real product backend, not a demo script: users sign in, pair their robot and keep their own conversation history.

  • Web dashboard with Google sign-in
  • 6-digit code pairs a robot to a signed-in user
  • Conversations stored per user and device in MongoDB
  • Every robot API requires an authenticated user
  • Mobile app scaffolded in Expo (React Native) with the pairing flow

Design iterations. From a desk cube to a robot that roams.

Prototype

Stationary desk companion

A compact body with OLED eyes and a 3-servo head (pan, tilt, base), powered over USB-C. This is the version running today.

v1 concept · rejected

Tall, with a lift arm

Added tank treads, a head-mounted webcam and a small lift arm. In review it was too tall and the arm added cost and complexity without a clear use.

v2 concept

Low, long and roaming

About 22 cm long and 12 cm tall, on tank treads with differential drive. The arm is gone, leaving four actuators: neck pan, neck tilt and two drive motors.

Concept render · next

Wheel-legged companion

A glossy shell, a glass visor for the eyes and wheel-legs that can balance, crouch and hop. A design exploration for the product version, not yet engineered.

What the v2 body changes

  • Power

    A robot that drives around a desk can't stay on a cable. The v2 body needs a battery, with charging circuitry and transport certification for lithium cells.

  • Traction

    Tread grip has to be tested on the surfaces desks are actually made of, including glass and laminate.

  • Cable routing

    Camera data and servo signals both pass through a neck that pans and tilts, so the harness has to survive constant movement.

  • Privacy

    Adding a camera changes the privacy story. The plan is on-device processing and a physical shutter, so the robot never feels like a surveillance device.

Where HiiH is today.

Working now

  • ESP32 firmware, OLED eyes, microphone and speaker
  • End-to-end voice loop: listen, transcribe, reason, speak
  • Wi-Fi provisioning and device WebSocket
  • Dashboard sign-in, device pairing and conversation history

Next on the roadmap

  • ESP32-S3 with a dual-microphone array and echo cancellation
  • Bluetooth onboarding and cloud device claiming, like smart-home products
  • Over-the-air firmware updates and per-device credentials
  • Roaming v2 body with treads and a head-mounted camera
  • Custom PCB, enclosure and CE / FCC certification

Building a connected device or robot?

HiiH is how we work on client projects too: one team across firmware, cloud, AI and app, from the first bench prototype to a product people can set up themselves.