Inspiration
We kept finding food we’d forgotten about: wilted spinach behind the milk and chicken we’d meant to cook days earlier. Then, when we did cook, we’d have to stop and wash our hands just to scroll to the next recipe step. We built KAI to connect those two moments, from putting groceries away to figuring out what to make with them.
What it does
KAI is a fridge-side kitchen assistant with an e-ink display, voice and gesture controls, and a mobile-friendly inventory page.
- Scan groceries into inventory. Upload a receipt photo from your phone or ask KAI to take one with its connected camera. KAI extracts food items and quantities, skips non-food purchases, and flags ambiguous lines for review.
- Decide what to cook. KAI shows which ingredients are approaching their estimated expiration dates and recommends recipes using what’s in stock, past ratings, and household preferences.
- Follow a recipe hands-free. Once cooking starts, use voice commands or four hand gestures to go back, advance, repeat, or confirm. KAI can run multiple named timers and deduct the ingredients used when you finish.
- Manage the fridge from a phone. My Fridge lets users review and edit inventory, upload receipts, and set allergies and dislikes.
How we built it
The ESP32-S3 device connects over Wi-Fi to a Python and FastAPI gateway running on a Raspberry Pi. The firmware renders the e-ink display locally. The gateway coordinates device state, cooking steps, timers, and audio playback. It supports both WebSocket audio streaming and HTTP audio uploads.
DeepSeek Flash turns receipt images into structured JSON. The inventory service normalizes names for recipe matching, so a receipt line such as ORG LG BRN EGGS becomes egg internally while keeping an English display name. SQLite stores inventory, and the service deducts the earliest-expiring stock first. ElevenLabs handles speech-to-text and text-to-speech. A USB camera connected to the Pi supplies receipt photos and gesture frames. MediaPipe extracts 21 hand landmarks, which a rule-based classifier maps to cooking commands.
Challenges we ran into
Reading a receipt is only half the problem. One test correctly read “Wet Cat Food” but incorrectly treated it as an ingredient. We tightened the extraction rules to exclude pet food and report unclear lines separately. We also tested a restaurant payment slip with no itemized purchases and confirmed it returned an empty list.
Voice and e-ink have different timing needs. We generate spoken replies in segments so playback can begin while the rest of the response is still being prepared. For e-ink, we had to decide which state changes were worth a screen refresh, especially during cooking steps and timers. The device’s onboard camera wasn’t wired in our prototype, so we moved image capture to the Pi’s USB camera.
What we learned
The biggest integration win was agreeing on an interface early. With a shared spec and mock services, four teammates could test inventory, voice, gestures, and firmware independently before connecting them to the same gateway.
We also learned that a voice agent is easier to test when it has explicit actions such as advancing a recipe step or starting a timer. For receipt recognition, we learned to test what should be excluded alongside what should be extracted. A model can read a line perfectly and still make the wrong decision about whether it belongs in the fridge.
What's next
We plan to connect KAI to more sensors and kitchen peripherals. A fridge-door sensor could wake the e-ink display when someone opens the fridge, showing which ingredients to use first without requiring a button press. Over time, we want KAI to use more of these everyday signals to offer timely reminders and help households keep track of food with less manual effort.
Built With
- arduino
- c++
- elevenlabs
- epaper
- esp32
- fastapi
- html
- javascript
- platformio
- python
- uvicorn