Programmer Turns Raspberry Pi CPU Into a Button

Making cool projects on the Raspberry Pi is more often than not the whole point of having one. The single-board computer's 40 GPIO pins make it possible to attach a seemingly endless selection of external sensors, buttons and more but maker Mcllrn decided this was no longer necessary. Using nothing more than the CPU by itself, Mcllrn has managed to turn the processor into a functioning button you can use for input in any Python program. 

Add this to our list of things you can do with a Raspberry Pi that you probably should not do. In the spirit of pushing the Pi to its limits, we had to feature this project as it’s one of the most clever uses of the CPU we’ve seen so far.

Check out the original Reddit thread to get a closer look at this awesome CPU button project and see it in action. 

Ash Hill
Contributing Writer

Ash Hill is a contributing writer for Tom's Hardware with a wealth of experience in the hobby electronics, 3D printing and PCs. She manages the Pi projects of the month and much of our daily Raspberry Pi reporting while also finding the best coupons and deals on all tech.