RoboDuckBuild

Day 20

Head up, on a body of its own

The bench grew the duck's real torso, the battery went in and the neck can finally lift the head. The head learned to hear "open" and "close", and to watch like a duck: still, then one smooth move. Two back covers didn't fit, and the beak still sticks.

The head on its new bench torso in follow mode, running on the battery. The video has no sound.

On Friday the neck couldn't lift the head on 5 V, so everything waited for a battery. This weekend the duck got the battery, a body to stand on, a pair of ears and a more duck-like way of looking at you.

A body for the bench

Simon wanted the bench stand to look like the duck's torso, with a home for the battery, the speaker and its amplifier, and clips to tidy the cables. So instead of a stand that only holds the neck, the core of the duck's real torso went together from Luwu's guide, round its two hip servos. Those are servos 10 and 20, and they got their names first. That makes seven of the fifteen named; the other eight are all in the legs.

Round the core are our own parts: a blue base 230 mm long with a tunnel for the battery, a mount for the servo test board and clips for the cables; a column that grips the two hip servos' output discs the same way Luwu's own hip parts do; and at the back, a tray and cover for the UNO Q and its media carrier, with a grille for the speaker and a slot for the amplifier. The media carrier has no mounting holes and sits over the UNO Q's own four, so nothing can screw through the pair. The tray holds it on two ledges instead.

A render of the bench torso from behind: a white servo block on a white column, standing on a blue base, with a white box at the back that has a slatted grille
The bench torso as drawn, from behind: the duck's real hip block on our column, the battery tunnel in the base, and the cover over the boards with its speaker grille.

Two covers that didn't fit

The first back cover only went on upside down, with its small cable slot at the top. It had been laid out mirrored for printing. That was fixed in the file and it was reprinted.

The second stopped about 4.4 mm short of the tray. Each of the tray's four screw bosses ramped up to 6.4 mm right where the cover's wall comes down, and our check had tested the cover against the battery cage but never against the tray. The lesson: test every pair of printed parts that meet, not just the ones we expect to touch. Simon had already snipped the cover's four locating pins to get it on, and the fixed tray is being reprinted. A third problem, a ledge on the tray that would have covered two of its screw holes, we caught in the file.

A white printed box with a slatted grille and a small cut-out at the top, fitted to the back of the bench torso on a grey mat
The first cover: it only went on this way up, with the cable slot at the top.
A close view of a blue tab on the cover resting on top of a white boss on the tray, with a gap underneath
The second: a ramped boss on the tray holding the cover up.

Ears

The head's microphone now streams to the Mac, where Apple's speech recognition listens for two words. It runs on the Mac itself, with nothing sent away. Say "open" and the beak opens for 30 seconds; say "close" and it shuts. It also knows when it's holding something: if the beak stops short while closing and the servo is still pushing, it grips a little tighter and the eye looks happy. It lets go if you pull, or say "open".

The first run lasted seven hours, and all seven opens and five closes got through. Its favourite word was "call", which it heard 18 times: probably noise, or a misheard "close". It hasn't held anything yet.

Head up

With leads for its plug, the bench went onto one of Simon's 7.4 V airsoft packs, and every servo read 8.2 to 8.4 V. Servo 30, which couldn't lift the neck on Friday, brought the neck and head upright together over seven seconds: 1 to 1.2 A at the start, then about 0.2 A to hold it there.

When the battery runs low, the duck now lies down: neck and head forward, then every servo limp, rather than folding wherever it happens to be. The battery has to come off at the end of a run, because idle servos still draw a little.

Thinking like a duck

With the power to move properly, Simon asked for it to "think more like a duck" and be "more dynamic". The first go hopped towards the face every time a new picture came in, and Simon's verdict was "very jerky". The camera only manages a few pictures a second, so a head that reacts to each one twitches. Now it keeps still while it watches, then makes one smooth move to where the face has been for the last few pictures, and ignores pictures taken while it's moving. That's the mode in the video at the top.

Round that: a small glance every few seconds, a double bob to say hello, and a neck that peers forward at a face across the room and draws back as it comes closer. Come right up close and it recoils: neck back, beak open, head level. The head is heavy for the neck. Leaning back behind upright costs almost nothing, but bringing it forward again took 1 to 1.5 A, so the neck stays forward of upright.

Simon also said the bench felt "hyper delicate" next to the real duck. That was our caution from the 5 V days: any servo straining for a moment stopped everything, while Luwu's servos only protect themselves from overheating. On the battery it now gives way instead. If something pushes back hard for about a second, it eases back to where it started and carries on; three of those in two minutes and it stops.

Simon gave the leads more slack, so it can look further up and down. Leaning one way still catches at about 7 degrees, and one loose signal lead stopped it once. By Sunday evening it had run about five hours on the battery and still read 7.9 V.

The beak still sticks

On Saturday, still on 5 V, the beak jammed after 78 minutes of following faces: it couldn't shut past 3 degrees, then 9. It cleared, but on the battery there's a stiff patch at 9 to 10 degrees open, in the same spot. Something rubs at the hinge, and finding it is next.

Next

Reprint the tray, then power the head from the servo bus through one of the Pololu regulators, so its USB lead no longer runs down through the neck. Until then the head can't turn as far as it should one way. Then find the beak's rub, name the other eight leg servos and start on the legs. Where the new head has got to is on the Head V2 page.