For years, I’ve thought about getting back into C++. I barely remember anything from college beyond declaring a variable and printing a line, but I’ve always wanted to give it another go. Maybe dabble in robotics. Maybe do something with Python and a Raspberry Pi.
For a long time, those thoughts stayed exactly that: thoughts.
Then I got volunteered. Or, more accurately, voluntold.
Talking to my nephew and hearing how excited he was about building a robot finally got me moving. I wanted to build something for him, help him learn how it worked, and learn a few things myself along the way.
He had already named it Larvo and put together a cardboard version of his vision. My cardboard-box build is nowhere close to what he had in mind. We’ll call that room for improvement.
A gentlemen’s agreement
My nephew’s vision was a robot that could walk, talk, and interact with the world around it. I liked his ambition. I also knew I needed to set some expectations about what his uncle could realistically build.
So we talked about starting slowly. We could work on a first version, see whether he enjoyed learning about the process and the development behind it, and build toward the bigger vision in phases.
We made a gentlemen’s agreement. To start, Larvo should be able to do five things: talk, see, hear, show expressions, and move its hands.
A great start. Just five things.
Now I had to figure out how to build them.
Choosing the hardware
Most of my development work involves websites, applications, APIs, and the systems that connect them. I’ve also done some carpentry, 3D printing, and laser cutting, so making something physical wasn’t entirely unfamiliar.
But this was different. I hadn’t touched a breadboard or soldered anything in ages, and there was plenty I needed to learn before I could help someone else learn it.
I spent time looking into different options with my personal assistant and research partner, ChatGPT. Everyone seems to have one now. Mine was helping me work out how to turn an eight-year-old’s robot idea into a collection of parts I could actually put together.
We landed on a Raspberry Pi build with three important conditions.
First, no soldering. I wanted the first version to be something we could assemble and work on without needing to solder connections.
Second, it needed to run from a battery bank. A regular power bank, rather than a battery wrapped in plastic with wires coming out of it.
I told myself those decisions would make things easier for my nephew. There’s a good chance I was making them easier for myself, too.
Third, it needed to be safe for my nephews. That meant no internet access during use, no biometrics such as facial recognition, and safeguards to keep the LLM’s responses kid-friendly.
Then I started looking at what everything would cost.
Dang. This stuff adds up.
Here is the hardware I settled on:
| Hardware | Purpose |
|---|---|
| Computing | |
| Raspberry Pi 5, 8 GB | Runs the main application and the local speech and LLM processing. |
| Active Cooler | Keeps the Raspberry Pi cool. |
| SanDisk Extreme PLUS 128 GB microSD card | Provides storage for the Pi. |
| Interaction | |
| Hosyond 5-inch, 800 × 480 DSI touchscreen | Displays the animated face and touch-based parent controls. |
| Logitech Brio 101 USB webcam | Provides both the camera pictures and microphone input. I didn't want to deal with two separate components. |
| HONKYOB USB mini speaker | Plays Larvo’s voice and sounds. |
| Movement | |
| Raspberry Pi Pico 2 W | Receives movement commands from the Pi and coordinates the arm movements. |
| Dorhea PCA9685 servo driver | Controls the arm servos based on commands from the Pico. |
| Two Hiwonder LFD-01 servos | Move the two arms. |
| Power and wiring | |
| Anker 20,000 mAh power bank | Provides the battery power for the build, lasts a really really long time. |
| 52Pi PD Power Expansion Board | Handles power delivery from the power bank to the Pi. |
| Wiring and connections: USB screw-terminal adapter, 3 A inline fuse, 18 AWG wire, jumper wires, USB cables, and display cable | Connect the power, controllers, display, and other components, with an inline fuse for overcurrent protection. |
The physical tools were fairly modest: scissors, a multimeter, and the screwdrivers supplied with the hardware. The cardboard body had its own design challenges.
Making it work offline
Larvo’s everyday speech and AI processing run locally on the Raspberry Pi. Once it is set up, a conversation does not depend on an online AI service.
The interaction starts with “Hey Larvo.” Larvo plays a ready sound, listens to the question, turns it into text, generates an answer, and speaks the reply.
Different tools handle those steps. openWakeWord listens for the wake phrase, Whisper transcribes the question, LFM2.5-VL generates the answer, and Piper gives it a voice. Python connects them and coordinates the camera, expressions, controls, and movements.
I first tested the screen, camera, microphone, speaker, models, and servos separately, then brought them into one application. That gave me smaller problems to solve while building toward the complete interaction.
Finding the right models
There were several choices to make here. Conversation, pictures, speech recognition, and speech output each needed attention.
Teaching Larvo its own name
One of the more amusing problems was getting Larvo to recognize “Larvo.”
At first, Whisper handled both the wake phrase and the question. It would hear “Largo,” “Lara,” or something else. My nephew had given the robot a name; getting the software to agree took a little more work.
The improvement was to give wake detection its own job. I trained a custom “Hey Larvo” model for openWakeWord, using synthetic speech and checking the pronunciation. Wake detection improved, and Whisper could concentrate on transcribing the question that followed.
I used Google Colab to train that wake-word model. Once installed, the trained model runs locally on the Pi along with the rest of the everyday conversation system.
Turning questions into text
For question transcription, I tested Whisper’s tiny.en and base.en models with saved microphone recordings and live speech. In one recorded comparison on the Pi, transcription took about 1.3 seconds with tiny.en and 2.8 seconds with base.en. Those were individual measurements from that test.
I also tried sherpa-onnx with a streaming Zipformer model and Vosk on the laptop. Both processed the sample quickly, but they misheard the test phrase. That small comparison did not give me a convincing replacement, so Whisper stayed in the build.
Conversation and camera questions
For conversation and vision, I explored LFM2.5-VL-1.6B and Qwen3.5-2B, trying ordinary questions, pictures of objects, and different camera image sizes. LFM2.5-VL became the model in the integrated build, running through llama.cpp.
One camera test captured the difference between recognizing an object and understanding the situation. Larvo correctly identified an apple, then described it as though Larvo was holding it. I added clearer instructions about describing what the person in front of the camera was holding.
That was a useful reminder to pay attention to the whole answer. Getting the object’s name right was only part of the job.
Making the voice quicker
Piper initially loaded its voice model for every reply. Keeping that model loaded between replies removed the repeated loading delay.
Producing and playing the speech still takes time, but this was a useful improvement to the conversation without changing the voice itself.
Giving Larvo a face and a wave
The face brought me back to familiar territory: HTML, CSS, and JavaScript, running in a kiosk browser on the touchscreen.
The animated eyes and mouth give Larvo expressions and help show what it is doing. That matters when someone is waiting for a reply. I want the face to make the interaction easy to follow.
For movement, the Pi sends commands to the Pico, which runs MicroPython and works with the servo driver to move the arms. The application uses predefined waves, giving Larvo a small physical gesture to go with its face and voice.
OpenCV supports face tracking and detection of printed Captain and Boss badges. Those badges add playful context to the conversation.
The face and movements also give my nephew something visible to experiment with. A change to an expression or a wave is something he can immediately see, which feels like a good place to start exploring the code together.
A few practical additions
The AI once answered “two times seven” incorrectly, so I added a small calculator for clear two-number arithmetic. Some tasks benefit from a dedicated piece of ordinary code inside the larger AI application.
The touchscreen also has parent controls protected by a four-digit PIN. A sleep request opens that screen, and the PIN confirms the action. Sleep stops microphone capture, camera activity, and conversation, and the saved sleep setting survives a restart and/or reboot.
Learning while helping him learn
I’m used to solving problems in software, but Larvo brings together code, electronics, physical construction, and interaction in a way I hadn’t worked with before. Python became the main language for this build, with MicroPython handling the arm-control code on the Pico.
That is part of what made me want to do this.
I don’t have to know everything before we begin. I do need to be honest about what I know, what I still need to figure out, and what we can reasonably try next.
I want my nephew to see that process, too: breaking an idea into smaller pieces, trying something, finding out why it doesn’t work, and changing it. If he enjoys that part, there is plenty of room for the project to grow.
It is also giving me a reason to follow through on something I had been talking about for years. Apparently, an eight-year-old with a robot design was the motivation I needed.
From cardboard to whatever comes next
Larvo is now a working robot. It listens, speaks, answers questions about camera pictures, shows expressions, and moves its arms. It can tell short stories, track faces, and recognize its printed badges. The five things we agreed on have become a real first version.
The next phase is improving response speed and speech accuracy, and giving Larvo a body that gets closer to my nephew’s design. I’d like to replace the cardboard with a 3D-printed shell and explore more of the robotics side as we go.
If he keeps enjoying the process, we can keep expanding it together. For now, there is a working robot inside that cardboard box, and plenty for both of us to learn.
Thanks, buddy, for pushing me into building Larvo. I still have some work to do to catch up with your design.