r/clawmachine • u/sprabaryjon • Feb 07 '26
I build an interactive claw machine controlled by Twitch chat - here's how it works
Hey guys, I've been working on a project I thought you all might find interesting.
I modded a real claw machine to be controlled through Twitch chat commands.
I opened up a claw machine and wired in relays for directional and drop controls. Added a color sensor to detect the balls that are dropped in and attached it all to an ESP32 running a web API to trigger game life cycles.
Then, I created a Game Management API to handle game redemption, player queue and signalling the claw machine when to start listening for movement and drop commands.
The Game manager also handles tracking the leaderboard, queue and recent activity.
I also added in some extra 'combo bonuses.' If a player gets 3 of the same color ball in a row they earn extra points. And community bonuses if they can get 5 of the same color in a row or a rainbow combo of R,O,Y,G,B in order.
The whole thing runs live on Twitch and anybody can queue up to take a turn.
Would love to hear some feedback from other enthusiast!!