Skip to main content
Supported by EDGE AI FOUNDATION · Part of the Internet of Communities™
Radar Snowman: a glove puppet animatronic on a Pico 2 W
intermediate
ExploreProjectsRadar Snowman: a glove puppet animatronic on a Pico 2 W

Radar Snowman: a glove puppet animatronic on a Pico 2 W

A second-hand snowman glove puppet with a Pico 2 W, four servos and a 24 GHz radar inside, that decides if you've been naughty or nice.

Dr Jon EA
Dr Jon EA
Published Nov 20, 2026
• intermediate 72 100•servo3D printinganimatronicsraspberry pi picopico 2 w
Radar Snowman: a glove puppet animatronic on a Pico 2 W

Description (the short paragraph under the title)

I cut the head off a snowman glove puppet and built a robot inside it. He sleeps until someone walks in, then wakes up, turns to look at you and waves. Stand and chat and he nods along. Step closer than a metre and the star on his hat turns red and he shakes his head. No camera: a 24 GHz radar sees straight through his fur. A Raspberry Pi Pico 2 W drives four servos, the radar and a 7 LED star, and a small hierarchical state machine gives him a personality.

Details

Why

This is the sequel to my Halloween radar skull, which taught me servo easing, radar presence detection and a simple state engine. The question for the snowman was whether those tricks scale: twice the servos, a soft body instead of a hard shell, a skeleton designed from scratch, and a character that has to feel friendly rather than predatory.

The body

A glove puppet is made for a hand, and a hand moves everything from below. Servos need something solid to push against, and I wanted the head to pan and tilt on its own and each arm to move by itself. So the head came off at the neck. It became a cap on a pan and tilt plate, lined with an old white sock so it has enough stretch to turn and tilt. The body became a sleeve that slides over the skeleton, with the puppet's arms over bent rods that swing forwards like a hug

The skeleton is a stack of 3D printed cylinder sections designed in Blender: the control board at the bottom, the arm servos in the middle and the pan and tilt on top, about 13 cm up. The radar sits behind a window at the front, and sees straight through the plastic and the fur.

The brain

  • Raspberry Pi Pico 2 W on the driver board from my Robot Santa build
  • Four hobby PWM servos on GPIO 18 to 21: head pan and tilt on PWM slice 1, the arms on slice 2
  • Keywave KW307 24 GHz radar on UART1 at 115200 baud, read by interrupt
  • A 7 LED WS2812B disc on GPIO 5, now a star on his hat

My servo library allowed one servo per PWM slice, and the board's headers sit on just three slices. Both channels of a slice share one counter, and every hobby servo wants 50 Hz, so two servos can share a slice. I forked the library: a servo table indexed by slice and channel, a shared wrap interrupt that steps both servos, and a critical section around starting and finishing a move. That's up to 16 servos on an RP2350A.

Above that sit a small kinematic framework built on Eigen, so the code can say "look at that person" rather than "pan servo to 112 degrees", and a polled animation class for waves, hugs, nods, head shakes and a dance.

The personality

A hierarchical state machine in about 300 lines of plain C++: Asleep, and Awake containing Waking up, Idle, Looking, Greeting, Entertaining, and Attending with its own Nod, Wave, Shake and Pause. Events nobody handles bubble up to the parent, so "go to sleep" is one transition that works from anywhere.

Almost every decision comes from radar distance:

  • Near inside 1.5 m, far beyond 2 m, with the gap as hysteresis so he doesn't flicker at the boundary
  • Star colour: green at 2 m or more, blue at 1 m, red by 70 cm
  • Weighted random gestures: nods most likely, then waves, and a head shake whose weight climbs under 1 m to eight times its normal value by 70 cm
  • The gap between gestures stretches from 2.5 s close up to 15 s at 3 m

A still person gets a slow two-second turn with sine easing; someone walking past gets quick 50 ms moves with exponential easing.

What went wrong

  • I modelled every part except the bolts, so the printed sections wouldn't slide together. Model your fasteners.
  • His arms stopped waving on filming day: a long extension lead couldn't carry the current when several servos moved at once.
  • Single-frame radar spikes flipped his star red and started greetings. A median of the last five readings plus a light exponential average fixed it, with about two frames of delay.
  • A stray break meant he picked the first moving target, not the nearest.
  • The main loop could read distance from one radar frame and angle from the next. A sequence counter (odd while the interrupt is writing) fixed it without locks.
  • Starting a new move on a servo that was still moving blocked the main loop and froze the star, so he now waits for each move to finish.

Components

QtyPart
1Raspberry Pi Pico 2 W
1Servo driver board (my Robot Santa board; anything that breaks out GPIO 18 to 22 works)
4Hobby PWM servos
1Keywave KW307 24 GHz radar module
1WS2812B 7 LED disc
1Snowman glove puppet (Little Town, bought second hand)
1Old white sock
13D printed armature (STLs in the repo)
15 V supply that can handle four servos moving together, on a short, heavy lead