Day 17
Cleaner and stronger: the new head goes together
The new head's parts arrived and went straight into a best-guess frame. A camera holder that wouldn't hold, a cap that printed as spaghetti and a plug that hit the frame later, the head is together: one board stack, one ribbon and one power plug where the first head had a nest of jumper wires.
The parcel from The Pi Hut came today: Seeed's Round Display, a new XIAO ESP32-S3 Sense and the OV5640 camera on its long ribbon. Yesterday we drew a best-guess frame for the new head so there'd be something to try them in, and by the evening the head looked like the photo above. Here's the first head for comparison:

Simon's verdict: "so so so much cleaner and stronger".
Into the frame
The XIAO plugs straight into the back of the display, so the eye and the board that drives it are one stack with no wiring at all. The stack sits in a round pocket in the frame, held at its rim by small printed tabs, with the XIAO's USB-C socket level and pointing towards the camera. One of the four tab spots landed right on a little on/off slide switch on the display's rim, so it uses three, and a few tab heights were printed to find the one that clamps it snugly.


A tip if you're building one: the display has a tiny two-way DIP switch on its back, for battery sensing and the backlight. Both go ON for this build, and so does the slide switch on the rim.
The first head's camera hung off the XIAO on 6.3 mm of ribbon, so the two had to sit together as one block, and that block was much of what made the face so crowded. The OV5640's long ribbon lets the camera sit in its own small PETG holder at its window while the XIAO stays behind the eye. The small heat sink that came with it goes on the camera's back. The big one belongs on the back of the XIAO, but that side faces the display, so it waits. The new XIAO came with a camera of its own too, an OV3660, which goes in the spares box.
Underneath it all is Luwu's white servo support, reprinted with three screw bosses on top. The frame screws down onto those with self-tapping screws straight into the plastic, no inserts.

Three things that didn't work
- The camera holder wouldn't hold. The first PETG holders came off the textured plate with loose first layers and strings across their lens holes, and fell out of the frame as soon as the hood was off. The second try had small flat ribs and held neither the camera nor itself: "lightest tap and it falls out". Version three prints each part on its own plate, slowly, with pointed crush ribs that stand 0.4 mm proud outside and 0.25 mm inside the camera pocket. The lesson for PETG push-fits on this printer: build in about 0.1 to 0.2 mm of interference a side on ribs that can crush. Faces sized for a neat clearance come out loose.
- The regulator cap printed as spaghetti. The little cap over the 5 V regulator printed open side down, so its flat 13 mm roof had nothing under it. And the XIAO's Wi-Fi antenna, a 38 × 18.5 mm sticker, had nowhere good to go: the fin on the frame was far too small. The new cap prints upside down, roof on the bed, with a flat shelf on top for the antenna, set to one side of the regulator rather than straight over it.
- The power plug hit the frame. The right-angle USB-C plug that powers the XIAO ran into the frame's right arm. The second frame takes that arm over the servo support and then down in a thick curve, joining low under the camera, so the space round the XIAO and its plug is open. The first go at it looked spindly in the slicer; Simon's idea of curving the corner and making it much thicker is what went in the head.


It wakes up
The head's firmware now has a setting for the new display. Flashed over USB, the new head joined the Wi-Fi with the eye running at about 21 frames a second, and the camera and the microphone both working. Two things came out upside down, the picture and the eye, and both are flipped in software. The OV5640's autofocus needed a library of its own, and now it focuses continuously.
It runs warm. With the camera on all the time, the XIAO's chip sat at 62 to 64 °C. Now the camera goes to sleep after 15 seconds with nobody watching, and wakes for the next picture in about 0.4 seconds. Two minutes after it went to sleep, the chip was down to 59 °C and still falling.
On the bench it runs from USB for now. The plan on the duck is to feed it from one of the Pololu regulators, under that cap.
Naming the servos
Each servo needs its own ID before it's built in: 10 to 14 and 20 to 24 for the legs, and 30 to 34 for the neck and head. They're set one at a time through a Feetech FE-URT2 USB adapter on the Mac, with a little script of ours that offers the next ID in turn, refuses repeats and centres each servo. The servos' plugs don't fit the adapter's sockets, which took some working round.

Two are done so far, 30 and 31, the neck servos. The rest were waiting for labels, so each one gets its number on as it's named. Those arrived today: 13 mm round stickers, with a sheet of numbers ready to print.
Next: name and label the other 13 servos, see whether the new camera holder grips, and fit the regulator so the head can run from the servo bus. Where the new head has got to is on the Head V2 page.