Ryan Walmsley has taken an old claw machine and retro-fitted a Raspberry Pi to control it. A custom controller board (pictured below) gives him 2 dual H-bridges to drive the three motors on the X, Y and Z axis and some Darlington transistors allow him to control the electromagnet inside the claw as well as the front panel light bulbs. The machine has a complicated power system which utilises 12V, 24V and 48V so there are power rails on there, too. Video streaming and code execution is done on an old computer running Ubuntu. Thanks to some very clever use of the GPIO Zero remoting functions, Ryan runs the code on the PC which then triggers the robotic behaviour on the Pi. You can play The Pi Claw over on this custom website which uses Twitch to stream video from the game. The game is only available when Ryan is, normally between 11am and 9pm, UK time.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.