Print Friendly, PDF & Email

Difficulty level: Beginner

Approx reading time:

Components Required:

1. Raspberry Pi 3 model B

2. MicroSD card 8 or 16 GB (Class 4 and above) with Raspbian

3. Windows PC / Linux PC (Tested on Windows 10, Ubuntu 14.04 LTS)

4. Ethernet cable (Category 5 – also called Cat 5)

5. Micro USB cable

6. Breadboard

7. 5 mm LED (your favourite colour)

8. 220 Ohms Resistor (colour code: Red, Red, Brown)

9. 2 Male to Female(Red – power/GPIO pin, Black – ground) Jumper Wires

Way to go ->

1. Login to your Pi using PuTTy or your Ubuntu terminal.

2. Login to your Pi GUI using VNC server (Linux / Windows).

3. From the menu on the top left open Python 3 (IDLE).


4. In IDLE, create a new file by clicking on File -> New File in the menu bar.


5. Save the file by clicking on File -> Save As… in the menu bar. The file could be saved on the Desktop. The name could be:


6. In the file, write the following code with comments (line starting with “#”) for clear understanding and save (press Cntrl + S on your PC keyboard) the file.


7. Run the code by clicking on Run -> Run Module in the menu bar. 


Hardware Connections ->

1. Raspberry Pi 3 GPIO Header.


2. LED connected to Pin 8 – BOARD notation (GPIO14 – BCM notation).



Read full tutorial at

Rating widget: