My Robot Duck Finally Wakes Up, Smoke and All
Episode 4 of my Open Duck Mini v2 build: power, software, a flat-topped battery that never touched the contact, a little magic smoke and an Xbox controller driving the head, ears and eyes.
Watch the videoLearn the skills for this build
Ahoy there makers!
This is episode four of my Open Duck Mini v2 build, and it is the one where the duck finally gets power and software. It is also the one where I buy boards I didn’t need, rip a copper trace off a circuit board and let a little magic smoke out of a battery management board. If you want to see all of that happen, the video is here: My Robot Duck Finally Wakes Up, Smoke and All. This article is the written version, with the gotchas, the parts and the things I would do differently.
Where we are: a quick recap
The Open Duck Mini is a little bipedal robot, roughly 40 cm tall, and a miniature take on Disney’s BDX droids. It was created by Antoine Pirrone (Hackaday also credits Gregoire Passault) and is sponsored by Pollen Robotics and Hugging Face. Everything is open source: the Open Duck Mini repo has the parts and assembly guide, and the Open Duck Mini Runtime has the software that runs on the Raspberry Pi.
So far in the series:
- I bought the electronics and materials, and started researching reinforcement learning (RL), which is how this duck is taught to walk.
- I 3D printed all the parts.
- I assembled the parts and wired up the electronics.
If you want the learning side of the project, I have a whole Open Duck reinforcement learning series. It starts with I Taught a Computer to Learn From Its Mistakes, and the rest of the series is linked from the video description .
This episode is about power and software. The question for the day: can I get power and software into this thing without breaking it? Spoiler: I break things.
The battery that never touched the contact
The duck runs on 18650 cells, the rechargeable lithium cells about the size of a fat AA battery. I put a brand new, fully charged cell in the holder, connected everything up and got nothing. No lights, no life.
Naturally, I decided the board was bad. I even bought replacement boards. Plural.
Here is what was actually going on. My cell has a flat top, and the cheap battery box I was using has no spring at the positive end to push the cell along. Many 18650s have a small raised nub on the positive end (a “button top”), and that nub is what reaches the contact. Mine had no nub, so the cell was sitting a tiny gap away from the metal. Lygte-info’s flat-top versus button-top page describes exactly this failure.
I pushed the cell into place by hand, the multimeter jumped from zero to a proper voltage, and the boards were fine all along.
The lesson: check the contact with a meter before you buy anything. A holder with a spring or a raised contact fixes it properly, or use a button-top cell.
While I was down this rabbit hole I asked a couple of AI assistants for help. Gemini’s advice about the battery didn’t match what the meter showed, and Claude’s did. The meter, as ever, had the final word.
The BMS and the magic smoke
The BMS, or battery management system, is the little board that looks after the cells. It stops them being over-charged or over-drained, and with more than one cell in series it also keeps them balanced with each other. To do that, my BMS needs a cable to the midpoint between the cells, called the balance or midpoint cable.
I didn’t have one. I couldn’t find anything about the BMS in the assembly guide (it has no BMS section, and lists the wire only as “Some wire”), so I had to work out that the cable was missing and add it myself. Treat that as my experience rather than official guidance, because I could not find any official documentation for it.
And while I was soldering that cable on, I accidentally bridged the middle pad to ground with a blob of solder. Magic smoke appeared.
If you haven’t met the term, “magic smoke” is the engineers’ joke for the smoke that escapes when you overstress a component. The Jargon File defines it as a substance trapped inside chips that makes them work, and once it escapes, they stop. I got the solder off quickly.
The lesson: look at your solder joints, and put a meter on the pads for continuity to ground before you apply power. I clearly didn’t check enough, and I would love to hear what you would have checked.
Ripping a trace off the IMU
The IMU, or inertial measurement unit, is the sensor that tells the duck which way is up and how fast it is tilting. The one I bought came with header pins soldered on, and I wanted to take them off.
I pulled, and I pulled the copper trace off the board along with them.
Luckily, the board has a Qwiic connector, a little plug-in connector that carries the I2C signals, and that still worked. So I use Qwiic and the damaged pins no longer matter. The assembly guide mounts a BNO055 IMU, and the runtime includes a raw_imu.py script so you can check the readings.
The lesson: if you need to remove header pins, use heat and take them off one at a time, gently. Do not just pull.
Heat-set inserts: accuracy matters
A quick practical one. Heat-set inserts are the little brass nuts you melt into the plastic. The guide just says to insert the M3 inserts in the holes and gives no method, so alignment is left to you. If an insert is slightly off, the screw won’t line up with its hole, and you will find that out at the worst moment. Take your time and keep the iron straight.
Finishing the wiring
- Terminal HAT on the Pi. A HAT is “hardware attached on top”: a board that sits on the Raspberry Pi and, in this case, gives you screw terminals. No fiddling with tiny header pins, and it made assembly much easier. I’m using a (the official runtime is only tested on the Raspberry Pi Zero 2W, so check yours).
- My Servo Helper PCB. I made this printed circuit board a while back. Here it handles the ground connections for the foot switches and powers the two ear servos.
- Not wired yet: the microphone and speaker. I bought the wrong speaker and it is too fat to fit in the head. The project’s own README says speaker and microphone are not part of the current version, so skipping them is fine for now. If you know a slim speaker that works, tell me.
For reference, the assembly guide puts the foot switches on GPIO 22 (left) and GPIO 27 (right). My terminal HAT setup differs from the Pi Zero header the guide assumes, so double check your pins .
Software: waking the duck up
With the Pi set up, I tested the servos, the eyes and the foot switches, and they all work.
Next, the fun part: driving it with an Xbox controller over Bluetooth. The runtime README documents it. Hold the sync button until the light blinks, then pair, trust and connect with bluetoothctl. When the light stops blinking and stays on, you are connected. You can test with xbox_controller.py.
Once connected, the stick tilts the head, the triggers move the ears, and in my setup the buttons drive the eyes (the eye buttons are my own setup, not something the README documents).
Bus servos, then stand, sit and walk
The bus servos in the legs were waiting on a USB cable, and it has just arrived. The runtime has scripts/check_motors.py for this.
Then the big question: will it stand, sit and maybe walk? I treated these as tests.
The documented route to walking is a reinforcement learning policy checkpoint plus joint offsets found with find_soft_offsets.py, which is where the Open Duck RL series comes in.
Gotchas and what is still wrong
| Problem | What happened | Fix |
|---|---|---|
| Dead power | Flat-top 18650 did not reach the contact in a springless box | Spring or raised-contact holder, or button-top cells; meter first |
| Missing BMS cable | No guidance in the guide for the midpoint cable | Add it yourself, and double check pads before soldering |
| Magic smoke | Solder bridged the BMS middle pad to ground | Inspect and meter the pads before power |
| Torn IMU trace | Pulled header pins off the board | Heat and remove one pin at a time; use the Qwiic connector |
| Misaligned inserts | Inserts a little off, screws did not line up | Slow down, keep the iron straight |
| Wrong speaker | Too fat for the head | Find a slim one |
Still on the list:
- Cable lengths. The guide doesn’t give any, so I used my best guess, and some are too short when the head moves to an extreme. That makes me wonder what else I have missed.
- A melted cable on the battery pack. A pack can deliver a lot of current, so a melted cable is a warning sign. I don’t yet know why it melted , and this pack gets swapped before any more powered tests.
Your challenge
Here is where I need you, the same as every episode. How would you route and relieve strain on those head cables? And what battery setup do you trust? Tell me in the comments (or on the video), and I will try the best fix in the next episode.
If you take one thing from this episode, check the boring stuff first: meter the battery contact before you blame the board, get the BMS cables right before you pick up the soldering iron, and take header pins off gently.
Parts list
| Part | Notes | Link |
|---|---|---|
| Open Duck Mini v2 parts and BOM | 3D printed parts, servos and electronics | Open Duck Mini repo |
| Raspberry Pi | Runtime tested on the Zero 2W | |
| Terminal HAT for the Pi | Screw terminals for the wiring | |
| 18650 cells and battery holder | Use a spring holder or button-top cells | |
| BMS board with midpoint balance cable | Needs the midpoint cable for series cells | |
| BNO055 IMU with Qwiic connector | Damaged header pins, Qwiic still works | |
| Servo Helper PCB | My own board for foot-switch grounds and ear servos | |
| Xbox One controller | Bluetooth control | n/a |
| Slim speaker and microphone | Not wired yet |
Links
- Open Duck Mini repo
- Assembly guide
- Open Duck Mini Runtime
- Hackaday write-up
- Flat-top vs button-top cells
Conclusion
The duck has power, eyes, ears and a head that tilts, plus a few scars. The legs, the microphone and the speaker are still to do. Can you get power and software into a robot duck without breaking it? Mostly. I broke a trace, a battery cable and my dignity, but the duck is awake.
Watch the full build, mistakes included, in the video: My Robot Duck Finally Wakes Up, Smoke and All. See you next time.
Happy making!
Build files
- github.com/apirrone/Open_Duck_MiniCode on GitHub