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

.png)
- 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
- Raspberry Pi (setup)- 1pic
- Momentary Push button – 1pic
- Resistor 10K, 220E – 1pic, 1pic
- LED (3.5mm) -1pic
- Breadboard- 1pic
- Jumper wire – as per requirement
CIRCUIT CONNECTION:

