Let's now add two more LEDs to our circuits.
So now the circuits will have three LEDs and one push button.
And we will be able to practice on more interesting stuff with Python and the Raspberry Pi.
So here I'm back to the software and I have.
So I have a green LED and a blue LED.
It doesn't really matter.
You can choose any color you want okay I'm just using three different colors, but just pick the whatever
LED that it's available for you.
And on top of that I also have one kilo ohm resistor.
So I have one for each LED.
And the circuit is basically going to be the same for the three LEDs.
So let's start for example with this blue LED I'm going to put it here somewhere here.
And I will connect the shorter leg to the ground okay.
So maybe just put it here so it looks nicer.
And I connect to the ground.
And this wire I'm going to set it to black okay.
I'm gonna also place that one right now just right here for example, and connect the ground with the
shorter leg, and we don't need to add anything else because the ground you can see is already connected
to the Raspberry Pi.
So this line is already fully connected to the ground.
Then I will add my resistor on the longer leg of the LED here, and also on that one.
And now which Gpio are we going to use.
Well I have created this setup.
So that is going to be quite easy for you.
You see we are using the Gpio number 17 here.
But then we have the Gpio number 27 and 22.
So we're going to connect this blue LED here.
So after the resistor we take this side of the resistor and we connect it to this Gpio number 27.
I'm going to use for example I'm going to use the green cable because that's what I'm going to use for
my real circuit.
Okay.
And I'm going to also make it look nicer for the image.
And then I'm going to connect that side of the resistor here to this Gpio here number 22.
And I have a white wire here.
Okay.
To match the one that I'm using for my circuit.
And for example just like that.
One thing to pay attention to here is that this pin here is actually a 3.3V pin.
So this is a power pin which means pay attention to that don't power.
So don't connect the LED to that 3.3V pin directly.
So make sure that you use this Gpio 27 and 22.
It's quite easy to find if you have correctly placed the ground here.
It's just the well the first, second and third pin on the right for the three LEDs.
All right.
And the circuit is complete.
And back to the real circuit.
So I have shut down my Raspberry Pi.
Of course I have taken out the power cable if needed.
You remove the SD card if you don't have a case.
Okay.
And I'm gonna start with my.
So I have my two LEDs here green, green and blue.
I'm going to put so pay attention here.
You see we have a shorter leg.
So the shorter leg is going to go to the ground.
So I can do the same thing I did for the red LEDs.
For example, I connect here shorter leg to the ground and the longer one to another column.
I do the same thing for the green LED.
So shorter leg here goes to the ground and then the other one goes to another column.
I take now my two resistors.
Okay so the one kilo ohm resistors one goes here on that side of the LED to another.
I'm going to choose here for example whatever.
So to another column.
And I do the same for that one okay.
Make sure it's on the same column as the longer leg of the LED.
And the other one can be right here.
Okay.
And then I'm going to take my.
So I have a green cable here.
That is a male to female okay.
That I'm going to plug between that leg of the resistor here to the pin that's directly on the right
of the first LED.
So I don't really I can't really make any mistake here if it's correctly placed already.
And then I take my last wire, which is another male to female that I plug between that LED and between
that pin right here on the right.
So now you can see I have my ground and then I have the yellow, the green and the white cables.
Okay.
And the circuit is complete.
So you see after you know how to put one led if you need to put more LEDs, it's really simple.
And now you can power on the Raspberry Pi again and connect to the desktop.
And Tony to write more Python code.