what is this?
a little companion that sits on my desk. it has a tiny screen for a face with eyes that blink, glance around and change with its mood. it keeps the time, rings alarms and runs timers, and if you pick it up and shake it, it gets dizzy.
it's inspired by cozmo, the toy robot with the big personality, and by sesame, an open-source walking robot that gets a lot of character out of one small oled. mine is my own design.
the 3d model on this page is laid out in real millimetres. turn on x-ray and hover over a part to see what it is. press shake to see it get dizzy, or dimensions to see how big each part is. it's a little character with a big head, a small body and two feet: about 117 mm wide (ears included), 72 mm deep and 124 mm tall, or 143 mm to the tip of its antenna.
what does it do?
clock. it gets the time over wi-fi from the internet (ntp) and turns it into toronto time, with daylight saving handled in the code.
alarm and timer. the pico hosts a small web page on my home wi-fi, so i set alarms and timers from my phone. a shake turns off a ringing alarm.
eyes. two animated eyes on the oled that blink, look around and change shape with its mood, which is the trick sesame uses so well.
shake. pick it up and shake it, and it plays a dizzy animation with a wobbly sound.
sound. alarm chimes, timer alerts and little robot chirps from a buzzer.
what can it sense?
one thing, but it's a good one: a motion sensor (accelerometer and gyro). it feels when it's picked up, tilted, tapped or shaken. that is what drives the dizzy eyes and lets a shake turn off an alarm.
why a robot
i honestly want a cool thing to build and add to my projects, i've always enjoyed the concept of robot friends when i was younger, owning bb-8 and cozmo really inspired me to start developing my very own robot!
parts
most parts come from pishop.ca. the motion sensor, the oled and the rocker switch come from amazon.ca, and the screws from home depot. canadian dollars, as of november 2026.
| part | size | shop | price |
|---|---|---|---|
| raspberry pi pico 2 w with headerthe brain, with wi-fi. the pins come already soldered on | 51 x 21 mm | pishop | $11.95 |
| half-size 400-pin breadboardholds the pico and shares power between the parts | 85 x 55 x 9.7 mm | pishop | $3.95 |
| passive buzzer brickits voice: chirps, chimes and alarms. pins are s, v and g | 19 x 27 mm | pishop | $3.95 |
| female to female jumper wires, 40 x 20 cmfor wiring straight to the pico later, inside the printed body | - | pishop | $2.95 |
| male to female jumper wires, 40 x 20 cmbreadboard to each module | - | pishop | $2.95 |
| male to male jumper wires, 40 x 20 cmbattery plug to breadboard. also needed for the servos in version 2 | - | pishop | $2.95 |
| 3 x aaa battery holder with on/off switchholds the three aaa cells. its own switch is just left on | 63.5 x 36.8 x 15.7 mm | pishop | $2.95 |
| 1n4001 diode, 10 packstops usb power flowing back into the batteries | - | pishop | $2.45 |
| mini rocker switch, kcd1, 2 pin on/off, pre-wired, 10 pack (daiertek)the on/off switch, in the back of the head. it goes in the battery's red wire. it uses 1, so 9 are spares | about 21 x 15 mm | amazon | $11.99 |
| mpu6050 motion sensor (gy-521), pre-solderedaccelerometer and gyro: feels being picked up and shaken | about 21 x 16 mm | amazon | $12.00 |
| m4 x 16 mm flat head machine screws, 12 pack (paulin)hold the head's back cover and the battery base on, threading straight into the plastic. it uses 6, so half are spares | m4-0.70 x 16 mm | home depot | $4.48 |
| 0.96 inch i2c oled, 128 x 64, white, with casethe face. ssd1306 driver, 4-pin header already on | about 27 x 28 mm, plus its case | amazon | $13.76 |
| pishop | $34.10 | ||
| amazon | $37.75 | ||
| home depot | $4.48 | ||
| total, before tax | $76.33 | ||
that's about $86.25 with 13% hst, before shipping. plus three aaa batteries (rechargeable nimh with a charger, or plain alkaline).
wiring
| pico pin | goes to |
|---|---|
| gp0, gp1 (pins 1, 2) | oled sda, scl (i2c0) |
| gp2, gp3 (pins 4, 5) | mpu6050 sda, scl (i2c1) |
| gp15 (pin 20) | buzzer s (signal) |
| 3v3 out (pin 36) | the breadboard's power rail, which feeds vcc on the oled and the mpu6050, and v on the buzzer |
| gnd (pin 38) | the breadboard's ground rail, and the battery's black wire |
| vsys (pin 39) | the battery's red wire, through the rocker switch and then the 1n4001 diode (silver stripe towards the pico) |
the oled and the motion sensor are on separate i2c buses, which is easier to debug. they could share one bus, since their addresses are different.
power
three aaa batteries in a holder, or usb. the pico takes anything from 1.8 to 5.5 v on its vsys pin and makes its own 3.3 v, so three aaa cells (about 3.6 to 4.5 v) power it directly. never use four cells: that is too much voltage.
the battery goes in through a 1n4001 diode. it loses about 0.7 to 1 v, which is fine, and it means usb and the batteries can both be plugged in at once safely.
a rocker switch in the back of the head turns it on and off. it sits in the battery's red wire, so it connects or disconnects the batteries: i is on, o is off. usb still works with it off, so the pico can be programmed. the battery holder's own switch is badly made and hard to reach, so it's just left on.
rechargeable nimh aaa cells (eneloop or similar) should last roughly 8 to 15 hours, depending on how much the screen and wi-fi are used. that's a rough estimate until i can measure it.
the software
micropython, written in thonny, with everything in one main.py file. it needs the micropython firmware made for the pico 2 w (its rp2350 chip), not the one for the original pico w.
the oled uses the ssd1306 driver, and the buzzer plays tones by pulsing its pin (pwm).
how it all fits
the shape follows the parts. the breadboard is the biggest piece at 85 x 55 mm, so it stands upright inside the head, and the head is sized around it with 5 mm walls all round. that's also why the head is big and the body is small, which is what makes it look like a little buddy.
head. the oled sits in a window in the front wall, held from behind by a printed clip. the breadboard stands behind it, held by a rib on the left wall and a rail on the right. the back cover has two small posts that reach forward to just behind it, so it can't slide backwards once the cover is on. it's pushed to the left so the pico's usb connector sits flush against the inside of the left wall, lined up with a 13 x 9 mm hole through the wall and the left ear. the buzzer sits against the right wall, behind the right ear, which is a little grille.
body. two pieces. the battery base at the bottom holds the battery holder in a pocket. the upper body sits on top, with a shelf for the motion sensor and the diode. the body reaches right up to the underside of the head, with no neck. the wires run up through a hollow collar on top of the body to the breadboard in the head.
on/off. the rocker switch snaps into a hole in the back cover of the head. the wall is thinned to 2 mm round the hole so its clips can grip.
the antenna and the arms are just for looks.
dimensions
every size you'd need to remake the model, in millimetres. they come from the same numbers as the 3d model, so they always match it. press dimensions on the model to see the main ones drawn on.
overall
- width, with ears117 mm
- depth (the head)72 mm
- height, to the top of the head124 mm
- height, to the antenna tip142.5 mm
- wall thickness, everywhere5 mm
head
- width x height x depth110 x 75 x 72 mm
- bottom, up from the desk49 mm
- front corners (seen from the side), radius20 mm
- back corners, radius6 mm
- left and right edges, rounded7 mm
- back cover: thickness, and where it splits off5 mm, 5 mm in from the back
- inside: width x height x depth100 x 65 x 62 mm
face
- dark panel, width x height54 x 34 mm, corners 13 mm radius
- panel centre: up from the head's bottom, left-right38 mm, centred
- panel stands out from the face0.4 mm
- screen window, width x height21.7 x 10.9 mm, 1.5 mm above the panel's centre
ears
- diameter, and how far they stick out30 mm, 3.5 mm
- blue ring diameter24 mm
- centre: up from the head's bottom, back from the face37.5 mm, 41.6 mm
- left ear: usb hole, long way front to back13 x 9 mm, centred on the ear, through the ear and the wall
- right ear: 7 sound holes2.2 mm diameter, 5 mm apart in a hexagon, centred 49.5 mm back from the face, at the ear's height
antenna
- stalk: diameter, height above the head3.2 mm, 11 mm
- ball: diameter, centre above the head9 mm, 14 mm
- positioncentred left-right, 37 mm back from the face
body
- width x height x depth76 x 47 x 70 mm
- bottom, up from the desk (it stands on its feet)2 mm
- corners (seen from the side), radius12 mm
- left and right edges, rounded5.4 mm
- battery base height, upper body height28 mm, 19 mm
- collar on top (hidden in the head's floor): diameter, height28 mm, 5 mm
arms and feet
- arms: diameter, total length, tilt outwards13 mm, 29 mm, 18 degrees
- arm centres: apart, up from the desk, forward of the middle84 mm, 29 mm, 2 mm
- feet (squashed balls): width x height x length26 x 16 x 38 mm
- feet centres: apart, up from the desk, forward of the middle36 mm, 8 mm, 18 mm
screws (m4 x 16 mm flat head, no nuts)
- head: 4 screws in the sides, 2 per sidecentres 13 mm and 62 mm up from the head's bottom, 12 mm forward of the back
- head tabs (on the back cover): width x height x depth12 x 12 x 13.5 mm
- body: 2 screws in the back of the battery base48 mm apart, 23 mm up from the body's bottom
- body tabs (on the upper body): width x height x depth13 x 17 x 9 mm
- on/off rocker switch: hole in the back cover (width x height)13 x 19 mm, upright, centre 21 mm right of the middle and 58 mm up from the head's bottom
- rocker switch: pocket round the hole on the inside21 x 27 mm, cover thinned to 2 mm
- countersink, for the screw heads8 mm across, flush
- pilot holes in the tabs, for the screws to thread into3.4 mm diameter, through the tab
3d printing it
every printed piece has 5 mm walls, so it's solid enough to be picked up and shaken. it's held together with six m4 x 16 mm flat head screws (in the parts list), and no nuts. the screws are countersunk, so their heads sit flush, and each one threads straight into a 3.4 mm pilot hole printed in its tab, cutting its own thread in the plastic. don't over-tighten them, or the thread strips. no glue except for the small parts.
- head, front shell: the face, top, sides and both ears in one piece, open at the back. it prints face down.
- head, back cover: a 5 mm plate with the on/off switch's hole in it, and four tabs that reach forward into the head, two against each side wall. four screws go in from the sides of the head (two per side), through the wall and thread into a pilot hole in each tab.
- upper body: with the motion sensor's shelf. a short hollow collar on its top pushes up into a hole in the head's floor and twists in with a quarter-turn lock. it's hidden inside the floor, so the head sits straight on the body.
- battery base: the bottom of the body, with the feet. two screws go through its back wall and thread into two tabs that hang down from the upper body, and a lip on the front of the upper body hooks inside it.
- arms and antenna: printed separately and glued into holes.
the oled's case and the motion sensor aren't listed with exact sizes, so i'll measure both when they arrive and adjust the model before printing.
getting inside
- to turn it on or off: press the rocker switch on the back of the head. nothing to open.
- to plug in usb: the cable goes into the hole in the left ear. the hole is 13 x 9 mm, so the plug's plastic body fits in too.
- to change the batteries: undo the two screws on the back of the battery base, tip the upper body and head back to unhook the front lip, and lift them off. lift the holder out of its pocket, slide its cover open and swap the three aaa cells. the wires need a little slack for this.
- to reach the breadboard, pico, buzzer or oled: undo the two screws on each side of the head and pull the back cover off. everything in the head is right there, and the breadboard slides out of the back. the switch's wires need a little slack so the cover can come off.
- to reach the motion sensor or diode: take the battery base off, and they're on the shelf just inside the upper body.
- to take the head off: twist it a quarter turn on the body and lift.
future plans (v2)
the next upgrade turns version 1 into the head, with a new wheeled base under it. everything from version 1 carries over. here are the new parts:
- two servos that spin all the way round, with wheels (ef90d), $8.95 each, to drive it
- an sg90 servo for a lift arm on the front that pushes, lifts and pulls things, $4.95
- a us-100 ultrasonic sensor to measure distance, $5.95 (remove the jumper on its back to use trigger and echo)
- a tracking module that looks down for the edge of the desk, $6.95, so it never drives off
- probably a cytron robo pico carrier board (about $21): servo ports, a motor driver, a buzzer, sensor ports and a lipo charger, with no soldering. it's 88 x 72 mm, bigger than the earlier wheeled design
- probably a rechargeable lipo battery instead of aaas
the wheels should add about $50 to $55.