Head V2
A new head for the duck, on a frame inside with a cover that lifts off. It started as a second head built alongside the first. Since 28 October, V1 is being rebuilt on the same frame, so the two versions differ only in the camera.
Why a new head
The first head works: the eye glows on its round screen, the camera sees and the duck can quack. But fitting it all in meant cutting the bottom off the hood, and up close it's janky. The clip holding the XIAO is weak, the camera lens is barely held, the amplifier wobbles and the speaker never pushed home properly.
The root of it was a removable face carrying every part, plus fit checks that left out the head's three servos and every cable. The diary has the story: Head V2: starting again, in parallel.
The first plan was a frame for V1's parts and a different one for V2's. A day later V1 took V2's eye and lost its speaker too, and the two became one design with a swappable camera: One head, two cameras.
Where it's got to
- Rethink and parts chosen
- V1 to share the same frame
- Parts ordered
- Design approved
- CAD and fit checks
- V1 printed, built and wired
- V1 tested on the bench
- V2 camera fitted and tested
- V1 and V2 compared on the duck
Renders and the print plates go here once the design is agreed.

What changes
The biggest change isn't in the head at all. The sound moves to the UNO Q, the board that already does the thinking, and a speaker in the body, so the head is left with the eye, the microphone and a camera.
| The first head | The new head, V1 and V2 | |
|---|---|---|
| How it's built | Everything hangs off a face plate that comes out of the hood, held by three magnets. Boards are held by clips, melted pegs and push-fits. | A printed frame inside the head carries every part, held by self-tapping screws. The hood is a plain cover with no electronics on it. |
| The eye | A Waveshare 1.28" round screen, its eight wires soldered to the XIAO. | Seeed's Round Display for XIAO, the same 1.28" size. The XIAO plugs straight into its back, so there's no screen wiring. |
| The board in the head | A XIAO ESP32-S3 Sense runs the eye, the camera, the microphone and the sound. | A new XIAO ESP32-S3 Sense runs the eye and the microphone, and V1's camera. |
| The sound | An amplifier and speaker in the head. The UNO Q makes each sentence, then sends it over Wi-Fi before it can play. | The amplifier and the speaker move to the body, fed from the Media Carrier's line out. Nothing to do with sound goes up the neck. |
| Down the neck | Power and two data wires, beside the servo bus. | V1: nothing new, with the head powered from the servo bus inside it. V2: just the camera's flat cable. |
| Soldering at the XIAO | Wires soldered to its pads, because header pins wouldn't fit. | None: it has pre-soldered pins and plugs into the display. |
| Taking it apart | Lift the face out by its eye ring, with every cable still attached. | Undo one screw and lift the hood off. There's nothing to unplug. |
V1 and V2: just the camera
The two versions are the same head. The camera sits on its own small plate, held by two screws, and both cameras put their lens in the same spot behind the same camera ring. V1 is built first. Turning it into V2 means lifting the hood off, swapping the camera plate, unplugging the OV5640 and laying in the cable.
| V1 | V2 | |
|---|---|---|
| The camera | Seeed's OV5640 for the XIAO Sense, with autofocus, on a ribbon of about 80 mm. | A Raspberry Pi Camera Module V2. |
| Where the pictures go | Over Wi-Fi from the XIAO to the UNO Q, as now. | Down a flat cable through the neck, into the UNO Q through Arduino's Media Carrier. |
So comparing them tests exactly one thing: a camera over Wi-Fi against one on a cable.
Should it be quicker?
It should, in the places that matter. Both versions gain from the sound moving:
- Speaking. The first head had to receive a whole sentence over Wi-Fi before it could play, a noticeable pause on a long one. Now the UNO Q plays it the moment it's ready.
- The bill. The voice and the beak servo share one clock, so the bill moves exactly with the words instead of drifting with Wi-Fi delays.
V2 should also be quicker at seeing, and that's what the comparison will show:
- Seeing. V1's camera compresses every frame, sends it over Wi-Fi, and the UNO Q unpacks it before it can look for a face. Wi-Fi adds a delay that varies and drops frames. V2's camera plugs straight into the UNO Q, with no wireless hop.
- Seeing to moving. In V2 the camera, the face tracking and the neck servos all live on one board, so "see a face, turn to it" becomes one tight loop.
The catch: one busy board. The UNO Q now walks, watches, talks and plays sound on one modest four-core processor, and the walking mustn't stutter. So the walking loop gets top priority, the camera runs at a sensible size (640 × 480 is plenty for finding faces), and speech gets made before the duck needs to say it, not mid-stride.
The cables
The first head's wiring took more room than its electronics, so the new head's is planned before anything is printed. In V1 nothing new goes down the neck at all: the speaker lives in the body, the pictures go over Wi-Fi, and the plan is to power the head from the servo bus inside it, through a small regulator, rather than run a power pair. V2 adds just one thing: the camera's flat cable, beside the servo bus. Any new wire is thin silicone, cut to length after a dry fit with the head turned and tilted as far as it goes.
The hard one is V2's camera cable. The head turns a long way, and the cable has to get past every joint between the head and the body. Flat camera cables bend happily along their flat side, but they don't like being twisted, creased, or flexed at the same spot over and over. When they fail, it's usually right next to the plug. The ideas being designed in:
- A coil at the turn. The cable wraps loosely round the axis the head turns on, so turning winds and unwinds the coil a little instead of bending one spot. Car steering wheels carry their airbag wiring the same way.
- Loops at the nods. Each joint gets a loop with a generous bend, tied firmly either side, so the loop is the only part that moves and the plugs never do.
- Limits. The head is limited in software so it can't turn further than the loops are built for.
- A swappable part. The cable plugs in at both ends and costs a few pounds, so it's treated as a part that can be replaced, with a spare on the shelf.
- A test before it goes on. Thousands of turns on the bench stand with the camera running, watching for dropped frames.
The parts
Prices and links are on the parts list.
- Seeed Round Display for XIAO (1.28")
The eye, in both versionsArrived - Seeed XIAO ESP32S3 Sense, pre-soldered headers
Drives the eye and V1's camera; its microphone listensArrived - Seeed OV5640 Camera for XIAO ESP32S3 Sense
V1's cameraArrived - Raspberry Pi Camera Module V2 (IMX219)
V2's camera, wired to the UNO QOrdered - Flex Cable for Raspberry Pi Camera, 450 mm
V2's camera cable, down the neckOrdered - Camera cable joiner, 15-pin to 15-pin
Joins the two camera cables at the base of the neckOrdered - Camera Adapter Cable for Raspberry Pi 5, 300 mm and 500 mm
From the base of the neck to the Media CarrierOrdered - Arduino UNO Media Carrier
Camera sockets and audio out for the UNO QAlready had - Adafruit PAM8302 mono 2.5 W amplifier
The speaker in the body, driven from the UNO QOrdered - Right-angle 3.5 mm plug to bare wires
Line out to the amplifier (optional)Ordered - CY slim 90° 3.5 mm stereo lead, 3-pole, 15 cm
Line out to the amplifier, what we used in the endArrived - Pololu 5 V 1 A step-down regulator (D24V10F5)
Power for the head and the amplifierArrived - Right-angle USB-C power pigtails, 6 pack
5 V into the XIAONot yet
What happens to the first head
It stays in use until V1 is rebuilt. Then its screen, its XIAO and camera, and its amplifier become spares, and its speaker moves to the body.
Its firmware and wiring are on the head's code and wiring, and how it was designed is on what we changed.