That first turntable used a DC motor, which lacks precision, resulting in inconsistent movements which vary with the weight of the object placed on it. “We wanted something more precise,” recalls Martin, “and we wanted a remote that we didn’t keep losing, so we put it as a page on a web server.”
In addition, they simplified the original version’s 3D-printed gearing system, which included a worm gear, to use two gears instead of three.
Web-based spinning
Raspberry Pico W has a web server running on it, based on Simon Prickett’s Phewap project. On that server sits a page that shows a virtual remote. “The buttons trigger some MicroPython code that tells the turntable’s stepper motor to turn, then 3D printed gears translate the movement from the motor to the bearing, which in turn moves the turntable.” The ‘lazy Susan’-style bearing, as used in turntables for the dining table, features multiple metal balls between two circular metal plates for low-friction movement.
Since the stepper motor they used requires a fairly hefty voltage, a 20V Power Delivery trigger board is used to step up the voltage supplied via USB-C. “Using PD triggers was one of the good bits: it makes for a much smaller build than having to try to cram a power brick in there too. They’re really cheap too, so it’s a rare win-win.”
VEEB chose Raspberry Pi Pico W for the project due to “a flat refusal to use C, due to lack of skill, and the knowledge that the documentation for Raspberry Pi stuff is less sparse than for other microcontrollers,” says Martin. “When we get stuck, there’s usually someone that has run into a similar problem and documented it somewhere.”
Learning process
Martin reckons the project took around a year to complete, working on and off. “There were a few mini projects in there: learning enough OpenSCAD for the gears, learning enough CSS for the remote page, getting the stepper motor to work. It was one of those things that you keep going back to when you learn something new during another project.”
An impressive stop-motion video of a roller-skate and disco ball for the Twirly Shirley YouTube video was shot using a camera taking photos at set intervals, but a possible upgrade would be to use a Raspberry Pi single-board computer to automate the process. “An SBC could take photos and send requests for the turntable to move,” notes Martin. “The last thing we made used web sockets to make a Pico listen for signals being broadcast from a [Raspberry] Pi with a camera attached.”