How ramlasha/techtonic-robo works
Kibi-Kibi is an event-kiosk robot pairing an ESP32-S3 body with a laptop-based Python brain. A visitor triggers the robot; the backend greets them, captures speech using the laptop microphone, transcribes it offline, matches event facts, asks Groq to phrase an answer, synthesizes speech offline, and plays it on the laptop. The backend and ESP32 coordinate over USB serial. The README also documents the robot’s sensors, display, servo, LEDs, and speaker. The sampled backend currently captures and plays audio on the laptop, so those paths are shown as implemented; unsampled firmware behavior is based on README documentation.
Main entry points: main.py Session orchestrator · config.py Runtime settings · KibiKibi.ino ESP32 firmware · serial_link.py USB serial link
Components 13
Robot body
- ESP32 firmware
KibiKibi.ino
Interaction control
- Session orchestrator
robot_backend/main.py - USB serial link
robot_backend/serial_link.py - Laptop microphone
robot_backend/mic.py
Answer pipeline
- Offline transcription
robot_backend/stt.py - Fact matching
robot_backend/rulebook.py - Event facts
robot_backend/data/rulebook.json - Answer phrasing
robot_backend/llm.py - Offline speech synthesis
robot_backend/tts.py
Configuration
- Runtime settings
robot_backend/config.py
Other components
- Visitor
- Groq API
- Laptop speaker
Connections 17
- Visitor → ESP32 firmware: triggers
README.md - ESP32 firmware → USB serial link: sends trigger
README.md - Session orchestrator → USB serial link: commands and awaits
robot_backend/main.py - USB serial link → ESP32 firmware: USB protocol
robot_backend/serial_link.py - Session orchestrator → Laptop microphone: records audio
robot_backend/main.py - Session orchestrator → Offline transcription: transcribes audio
robot_backend/main.py - Session orchestrator → Fact matching: searches facts
robot_backend/main.py - Fact matching → Event facts: loads
README.md - Session orchestrator → Answer phrasing: requests answer
robot_backend/main.py - Answer phrasing → Groq API: requests phrasing
robot_backend/llm.py - Session orchestrator → Offline speech synthesis: synthesizes answer
robot_backend/main.py - Session orchestrator → Laptop speaker: plays audio
robot_backend/main.py - Runtime settings → Session orchestrator: configures
robot_backend/main.py - Runtime settings → Laptop microphone: configures
robot_backend/mic.py - Runtime settings → Offline transcription: configures
robot_backend/stt.py - Runtime settings → Answer phrasing: configures
robot_backend/llm.py - Runtime settings → Offline speech synthesis: configures
robot_backend/tts.py