3 RPI Feedback From Switch
3 RPI Feedback From Switch
APPARATUS: Raspberry Pi with Raspbian Pi OS, LEDs, Resistors, Push button switch, USB
Keyboard, mouse LCD Monitor, HDMI to VGA converter, 5V Power Adapter.
CIRCUIT DIAGRAM:
1kΩ
1
RASPBERRY Pi
3B + 1kΩ
10
39
Procedure:
1. The kit consists of Raspberry Pi 3B+, Power adapter, HDMI to VGA converter cable and
PCB with LEDs connected and the 9 pin connector.
2. One two pin and other five pin male connectors are available on the PCB.
3. The two pin connector is of 3.3V and other five pin connector consists of male connector
in the sequence of Ground, LED1, LED 2, SW1 and SW2.
4. Two LEDs and Two switches are available. You can use one pair of LED and a switch ot
both LEDs and two switches.
5. Connect the circuit as shown in the circuit above. Use Female to Female connecting
wires to connect Raspberry Pi pins to the Led pins and switch, available on the PCB.
6. Run the program using “run” button in the IDE, it will ask you to save the file. If not
saved before, save it with file name extension .py
RASPBERRY Pi – STUDY OF FEEDBACK FROM SWITCH
7. Now press the switch (SW1), you will observe LED is glowing. After releasing the
switch, the LED turns off. Press second switch (SW2), you will observe other LED is
glowing and turns off after releasing the SW2.
Program 1:
Program 2:
RASPBERRY Pi – STUDY OF FEEDBACK FROM SWITCH