When you have the hardware ready, It's time to set it up. Raspberry Pi allows you to control physical things through it's general purpose input outout pins also called as GPIO . We have to connect our LEDs to GPIO
pins of Raspberry Pi. Also, in order the limit the current flowing through the LEDs to a safe value we use 1K resistors between Raspberry Pi GPIO and LED. The positive pin of LED [longer in size] is connected to the GPIOs which we control
programatically whereas the negative [shorter leg size] is connected to the ground pins of the Raspberry Pi GPIO header
Using a breadboard for setting up LEDs
Its really simple to use the breadboard to connect our LEDs to the raspberry pi GPIO. You will need about 6 Female to Male jumper cables for making the necessary connections. The same are shown in the image. Connect the Female side of the jumper cables
to the raspberry pi and the insert the male side on the breadboard. Always remember that in breadboard we have horizontally and vertically short pores where we can insert our components as shown in the image. Here's a table showing which
pins of the raspberry pi should be used to make these connections. Please be very careful with these numbers as your system will not work in case you use different numbers. The software app and the python software which you'll be downloading
are programmed to use these pins only. So carefully connect your Raspberry Pi GPIO to the LEDs.
For your convenience, everything written above is shown in the following images also.
Once your starts taking the shape shown above you should really get ready for the next adventure