September 2026

Cat yoga

A wooden cat that stretches with you when you’re sleepy.

The finished wooden cat mid-stretch, front legs reaching forward and head turned up, on a plywood base

An automaton from my physical computing course, built on a cam: turn a shaft, and an off-center wheel pushes a follower up and down. This one taught me how a cam moves, and how much the gearing and the motor decide whether it moves well.

Type
Physical computing
Duration
September 2026
Role
Designer and builder
Tools
Illustrator, laser cutter, Arduino, Tinkercad
Materials
Plywood, dowels

Overview

A cat that stretches when you’re sleepy.

The interaction is simple. When the cat senses that you’re sleepy (a yawn behind your hand, or your cheek resting on both hands), it stretches with you. A webcam watches for the two trigger poses, and a servo turns the cam that lowers the cat into a stretch and lifts it back up.

My reference was a hand-cranked stretching cat automaton ↗ I’d always wanted to make. It has no gears at all: the crank turns the shaft, an off-center cam pushes the follower, and a pushrod carries the motion to the cat’s belly. The legs hang loose on pivot pins, so they swing on their own as the body rises and falls. My job was to replace the hand with a motor and a trigger.

Yawn, and the cat stretches with you.
Both trigger poses, and the change in the cat’s pose.
The finished plywood cat in its low stretch pose, front legs reaching forward and tail curled up
The full stretch.
01

Servo, gears, camshaft.

My first plan put the servo’s gear right on the camshaft, beside the cam. When I talked it through with Cody, he pointed out that this would put the most force on the gear and wear it out. Instead, he suggested a small servo gear driving a larger gear on the camshaft, so the servo pushes from far out on the shaft’s radius, where it needs the least effort.

Then came a lot of fit testing. I measured the ridge on the servo horn so the small gear would sit flush without sanding, and cut a row of test holes in a scrap corner to find the diameter that held the dowel snugly but still let it spin. I even re-printed the camshaft gear slightly smaller so it would hold without glue.

Marker sketch of the first plan: a camshaft between two supports with the servo gear mounted beside the cam
My first plan, with the servo gear on the camshaft.
Sketch of a small servo gear meshing with a large gear
Cody’s suggestion: a small gear driving a large one.
Notebook page of gear and cam sketches, with the chosen layouts on the bottom half
Gear and cam layouts. I went with the bottom half of the page.
Calipers measuring the servo horn’s center ridge
Measuring the horn’s ridge.
A laser-cut wooden gear seated flush on the servo horn, held up next to a second gear
The small gear, flush on the horn.
A plywood scrap with a row of test holes of increasing diameter
Test holes for the tightest fit that still spins.
The gear pair, done.
On the camshaft. Thin collars kept friction low.
I chipped a few teeth while testing, and they still turned smoothly.
02

Designing the cat.

Watching my reference closely, I noticed the pushrod seemed to sweep past the front legs’ pivot as the cat moved. I was confused until I overlaid the standing and stretching poses, aligned to the body. The whole motion turned out to be a simple turn about one point.

That gave me the cat’s structure. Two outer layers on each side hold the front legs, and the middle layers have a cut-out pivot zone for the pushrod to move through freely. The back legs’ pivot rod runs through all six layers for stability. The body is glued tight, and the limbs rest loosely on their rods so they can swing.

For the cam, I measured how far the pushrod needed to sit from the shaft at the lowest point (the stretch) and the highest (standing), and drew an egg-shaped cam between those two heights. It worked the first time.

Line drawing of the standing and stretching poses overlaid on each other, with the body aligned and the limbs fanned out in pink
Overlaying the two poses showed a single turn about a point.
Cut-file drawing of the cat’s body layers, labelled with a glued dowel between layers and loose pivot dowels for the leg and arm
The body layers and their pivots.
Cut-file drawing of three stacked leg pieces and a small foot pivot
How the leg layers stack on a pivot.
The laser cutter bed with cat pieces nested tightly in a plywood sheet
Nesting the curves tightly.
The cut plywood cat pieces laid out before sanding
Cut out, and in need of lots of sanding.
Diagram of the cam: an egg shape over a circle, marked 7 mm for the stretch and 45 mm for standing
7 mm of lift for the stretch, 45 mm for standing.
The finished egg-shaped wooden cam on the camshaft beside the gears and servo
The cam, on the first try.
Everything together, not yet glued. It worked!
03

The crit-day problem, and the piezo fix.

Once everything was assembled, I timed the stretches: anywhere from 3.0 to 3.3 seconds from standing, to full stretch, and back. So I couldn’t just run the servo for 3.2 seconds per yawn. After two or three yawns, the cat started and stopped in seemingly random places, and the interaction stopped making sense.

The cause was the servo I’d picked. A continuous servo can’t stop at a set position, and too much varied from turn to turn to time it: friction at the cam, the guide hole and the cat’s belly, tension on the gears, the lurch of the motor starting and stopping, and a lopsided cam the follower sometimes slid down and sometimes perched on.

So I gave the cat a sense of touch. A trigger stick that turns with the mechanism brushes a piezo sensor once per turn, and the code stops the motor when it feels that tap. The piezo was so sensitive it would stop the stretch as soon as the stick began dragging past, so the code ignores it for one second after each yawn. I taped the piezo loosely to the wall on purpose, so the two parts could sway against each other instead of jamming.

Phone stopwatch with five laps between 3.01 and 3.28 seconds
Five stretches, five different times.
The cat at its high point, standing
Resting: the cat at its high point.
The cat at its low point, mid-stretch
Stretching: the cat at its low point.
The trigger stick tapping the piezo.
Tinkercad breadboard view of an Arduino Uno wired to a servo and a piezo
Tinkercad wiring.
Schematic: a piezo on the Arduino Uno’s A0 and ground, and a servo on pin 9, 5 volts and ground
The schematic.

Learnings

What did I learn?

  1. 01

    Choose the motor for control, not flexibility.

    I picked a continuous servo for the cat so I’d have options. A 180° servo that stops where you tell it would have been the better choice. Next time, I’d design the gearing around a positional servo. Still, I’m proud the piezo got me past it.

  2. 02

    Test one motion at a time.

    I tested at every stage of assembly, and movement was always easiest to understand when I isolated it: just the follower, then just the legs, then everything together.

  3. 03

    Prototype the fit before the part.

    Scrap test holes, tolerance strips and a cardboard box saved me many recuts. The one time I skipped a check, designing for 4.5 mm material and cutting 3 mm plywood, I paid for it in loose joints.

  4. 04

    Design for where it will live.

    Next time, I’d give the cat what the kite got: a clear acrylic wall would protect the mechanism and still show it off.

How I used AI. I talked through my ideas with Cody rather than AI, and designed every part myself in Illustrator, with the gear and box generators he recommended. Claude helped me figure out which parts to buy and planned the kite’s wall-power circuit, and Copilot wrote most of the cat’s interaction code. That let me spend my time on the mechanisms.

Get in touch

Want to talk mechanisms? Any thoughts?

bhargs@bhargs.com
Next project Petals and Kiln Explore