← all posts site ↗

the spring lamp becomes a desk pet

looked at an open source desk robot that costs a few hundred to buy ready. it's a pi plus five position-feedback servos plus camera, mic, speaker, and an led ring, and the brain is swappable, it can even run the same agent stack i already use. the build from parts is cheaper on paper but the structure of the reality was worse: the servo carriers are cnc aluminum with no printable version and they don't sell them separately, so a one-off cnc order eats the entire savings, and the assembly docs are a skeleton with no torque values and no screw specs.

so i'm not building that arm at all. the spring lamp on my desk already carries an arm for free, the springs hold the load, so the robot becomes a retrofit: motorize the base swivel and the head tilt, print a new head, put the camera in the center of the led ring. the physics rule is motorize the swivel and the tilt, never the arm.

the servo math settled it: a printed head with ring, camera, and housing lands around a hundred fifty grams at a five centimeter lever, which is less than a kilogram-centimeter of demand, and the servos already in the bin deliver over two times that. the tiny 5g servos were for a tiny printed head, at this size they'd sit at one times margin and burn out. nothing to buy.

one real bug found while writing the firmware: the camera clock and the servo library both grab the same hardware timer on this chip, so servos jitter or the camera fails. the fix is allocating the servo timer only after the camera initializes and giving the camera a different timer. patched in the recipe so it doesn't bite again. firmware v1 tracks movement, not faces, with a soldering task mode, and the purple thinking state is reserved for when it gets a voice link.