Research: Raspberry Pi – Pins, Buttons and Circuits

In a previous post I wrote about how you can control the function of the Raspberry Pi’s software through writing scripts, but one of the remarkable things about the Pi is that it is also capable of interacting with the physical world through its GPIO pins.

Research Raspberry Pi – Pins, Buttons and Circuits

GPIO stands for ‘General Purpose Input/Output’ and this refers to the 25 pins on the outer edge of the Pi (next to the yellow video out socket) and these pins are the physical interface between the Pi and the outside world. They allow the Pi to send signals to external (or peripheral) devices. These can a wide variety of devices, for example; LED lights, magnetic sensors, PIR sensors and most importantly to this example, Buttons.

The second part of this project was to be able to use the Pi to replace Stockport Museums current ‘Listening Posts’, that is a wall-mounted set of buttons which enables visitors to select individual tracks, be they audio or video.

To do this, I need to be able to get the Pi to register a single from an external button. To do this, I first had to prototype a simple electrical circuit using a ‘Breadboard‘ a solderless circuit prototyping board.

Research Raspberry Pi – Pins, Buttons and Circuits SchematicTo test if the Pi is registering this as an input, I used a simple script that posts ‘Button Pressed’ in LXTerminal every time the button is pressed.

From this, we can use this same circuit to expand and increase the amount of  buttons to essentially as many buttons as we can fit as inputs on the GPIO pins.

For more detail: Research: Raspberry Pi – Pins, Buttons and Circuits

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top