National Institute of Engineering, Mysuru Department of Electronics and Communication Engineering Internet of Things Lab-3
National Institute of Engineering, Mysuru Department of Electronics and Communication Engineering Internet of Things Lab-3
Aim: To understand the basic concept of input/output pins, delays and library functions in
Raspberry pi.
Components required: Raspberry pi kit, LED, Breadboard, Resistor and connecting wires.
Explanation: From the data sheet of LED, forward voltage of 1.7 V and forward current of
20mA. Output voltage from Raspberry pi is 3.3 V, if directly connected could damage the
LED hence a Resistor to be used to limit the voltage across the LED.
𝑉 𝑉𝑜 −𝑉𝐹 3.3−1.7
𝑅= = = = 80Ω
𝐼 𝐼𝐹 20∗ 10 −3
Connections:
1. Pin configuration of Raspberry pi is shown in Figure 3.1 which indicates the power
supply pins, ground pins and General Purpose Input and Output pins.
Program: