Push button Push Count using Raspberry Pi

RPi Digital Input

Digital Input that means; feed digital data to uC or uP, In our case RPi take the digital I/P  by help of GPIO pin(General purpose Input Output pin) for example pushbutton, keypad,  

In Digital language we have two things that is ‘0’ n ‘1’; ‘0’ means GND(LOW) and ‘1’ means 5v or 3.3v(HIGH).

So those devices/sensors output like either 0 (GND/LOW) or 1 (5v/HIGH) we can say these are Digital Input devices; Don’t be confused Sensor’s output means it is input for uC(Micro controller)/uP(Micro Processor).

INSTALL DEPENDENCY:

  • Check any Python package installed in RPi
  • Open terminal paste below code
python
python3
  • If python, python3 and GPIO library of python is Not installed copy the below code and paste in terminal.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python
sudo apt-get install pyhton3
sudo apt-get install python-rpi.gpio python3-rpi.gpio

REQUIRED COMPONENTS

  1. Raspberry Pi (setup)- 1pic
  2. Momentary Push button – 1pic
  3. Resistor 10K, 220E – 1pic, 1pic
  4. LED (3.5mm) -1pic
  5. Breadboard- 1pic
  6. Jumper wire – as per requirement

CIRCUIT CONNECTION:

Leave a Comment

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

Scroll to Top

Robogenesis

Start your journey with us.

I hope this message finds you well. I’m writing to inquire about your offerings in IoT, robotics, and software solutions courses. Could you please provide details regarding the curriculum, duration, and enrollment process? Thank you in advance for your assistance.

Inquiry Now