Categories
Raspberry PI

Raspberry PI GPIO as Input in Python

We had mentioned using Raspberry PI GPIO as output in our previous post. Today we will talk about using Raspberry PI GPIO as input. We will try to read input from pushbuttons. We had connected pushbuttons as the Active Low state. Mean the pushbutton will remain in the Active High state unless we press any of button.

Once we press any push button that push-button will give Low input to the raspberry PI. We are going to demonstrate this simple program in python language. We will also use to combine our previous GPIO as an Output post. This will help you to grasp the concept more deeply and also will help you to practice more and more.

Here is a quick look at our circuit setup on the breadboard for this demo.

breadboard demo for rpi gpio input
Raspberry pi GPIO as Input

Here is the link to the source code for demo of this post

By Abdul Rehman

My name is Abdul Rehman and I love to do Reasearch in Embedded Systems, Artificial Intelligence, Computer Vision and Engineering related fields. With 10+ years of experience in Research and Development field in Embedded systems I touched lot of technologies including Web development, and Mobile Application development. Now with the help of Social Presence, I like to share my knowledge and to document everything I learned and still learning.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.