gathered the parts list for the esp32-s3 sense desk lamp: small metal gear servos are the load-bearing choice, the plastic gear 5g ones strip fast and the bigger servo already in the bin is heavier than this head needs. power is the part everyone misses: a usb-c pd trigger board turns any pd charger into a real five volt rail, and a big electrolytic cap on the rail near the servos stops camera brownout resets. common ground everywhere, the board powered from the five volt pin not the three three. a level shifter on the led data line is cheap insurance if colors glitch.
the pin map is the constraining part: the camera owns a dozen pins, the sd card slot eats four more, the mic takes two, so the usable ones are a handful: data, pan, tilt, two buttons, and avoid the boot pin. servo signal pins run fine at three point three volts.
the code is one capture loop running about ten to fifteen frames per second, downscaled to a tiny frame in software. brightness read for ambient, frame difference for a motion centroid, that's the person, and a hot pixel blob detector that sees a soldering iron tip glow and flips the lamp into task mode: aim at the work area, bright cool white. five states total, idle through sleep, exponential easing on the servos with a deadzone so they don't jitter and whine. a boot sweep centers the horns so you can hard mount them neutral.