Mark Baldridge is just out of high school, and wanted to tackle a project in a medium he knows and loves: pinball! He hand-built a pinball machine based on the online comedy duo Rhett&Link and controls all the electronics with a Raspberry Pi.

Being familiar with Python and Linux, Mark thought the Raspberry Pi to be a logical choice as a controller, but realized there were some limitations. The Pi only has a limited number of I/O pins, whereas his pinball machine would have many more switches, solenoids, and LEDs that would have to be individually controlled.
To overcome this hurdle, Mark used I2C, a master/slave buss interface for microcontrollers and peripherals. This interface was used with the MCP23017 microchip. This configuration makes it possible to increase the number of addressable GPIO pins on the Pi from 16 to 112!

The increased power needed by such components as the solenoids was handled by several transistors. The final product is quite impressive, with bumpers, flippers, lights, and a vertical-mounted LCD display. This young maker has created a formidable pinball machine.
[via Tech Fruits]










Love it, great project.
Might want to add a 1N4004 across that solenoid so he doesn’t blow up the IRL520
What ka1axy said.. A snubber diode across the solenoid would be a good idea. The diode’s cathode on the +24 side of the solenoid and it’s anode on the transistor side of the coil. Here is an example. http://www.prc68.com/I/Images/Coil-Diode.jpg
// What's Trending
Raspberry Pi Design Contest
Seventeen Sneaky Secret Hides
10 Things to Connect to Your Raspberry Pi
Lost PLA Casting from 3D Prints
Teardrop Camper Trailer
DIY 3D Laser Scanner Using Arduino
New Project: DIY 3D Laser Scanner Using Arduino
5 Million LEGO Brick Star Wars X-Wing Starfighter
// What's Shared
A better way to slice a pumpkin
DIY Nerf Darts
100 Dollar Store Organization Ideas for Craft Rooms and Beyond
In the Maker Shed: Minty Boost USB Charger
Mad’s Mouse House
Lace Princess Crowns
I Have a (Puzzling) Dream
Play the Rings of a Tree Trunk Like a Record
// Most Commented
DIY Hacks & How To’s: Get Emergency Power from a Phone Line
Resin Casting: Going from CAD to Engineering-Grade Plastic Parts
Ten Tips for Screws and Screwdrivers
Ten Tips for Better Measurement
Is it a Hackerspace, Makerspace, TechShop, or FabLab?
Arduino Announces New Wireless Linux Board
Ten Tips for Adhesive Tape
Makers on TV: Big Brain Theory