Let's plug the camera to the Raspberry Pi board.
So here I have my camera module okay.
With the cable.
So that's what you should receive if you order the camera.
Something like that okay.
And I have the Raspberry Pi five here.
And I also have a Raspberry Pi four here that's gonna also work with previous versions of the Raspberry
Pi.
I'm going to show you first how to plug the camera to the Raspberry Pi four and all the versions, and
then come back to the Raspberry Pi five.
So here you have the time stamp.
If you just have the five, just go to this time and you can skip the Raspberry Pi four version.
So if you have a Raspberry Pi four, well you see we have a camera connector here, okay.
And you have this cable.
So if you have the same cable you see the large one, then you're just going to open.
So you have this black plastic part here that you can just open okay.
And you can plug directly the cable in there.
So you see the pins are on that side okay.
On the outside here.
And uh those correspond to those pins.
You need to connect it like that.
So the blue part here is going to face the USB uh, What's that?
Okay, so you plug it.
Make sure it's at the bottom.
Okay.
And then you can close the two plastic parts.
All right.
And you make sure that the pins are full in.
It should look like this.
And then that's it for the Raspberry Pi four.
So if you have a Raspberry Pi four or previous version, it should work like this.
Now I'm going to remove it.
Remove it to remove this plastic part.
I'm going to remove it and that's it for the Raspberry Pi four.
And now I'm going back to the Raspberry Pi five.
So what's the problem with the Raspberry Pi five is you can see that we have two.
So I have two camera connectors here.
But those are smaller.
So this cable if you have this cable the big one it's not going to fit okay.
So we need an adapter.
That's why I have I have this one.
So I bought that cable.
Well this one is 300mm.
You can get a long one or a short one as you want.
And you can see that one side of the connector is the same.
Okay, so that's the 15 pin that I talked to you about 15 pins with one millimeter.
But the other side, the other side is much smaller.
And you can see this is the side that's going to be plugged to the Raspberry Pi.
Okay.
And this one has 22 pins separated by 0.5mm.
All right.
So what I'm going to do is I'm going to take out you see I can remove the cable here.
I'm going to remove the cable like that.
And then I'm going to plug it here.
So again the the pins should face the pin here.
So the black part is going to face also this black uh plastic part at the back of the camera.
So I plug it.
I plug it fully and then I connect here and here.
And now it's stuck.
So make sure that it's stuck and it is correctly in.
Great.
And now we can connect this to the Raspberry Pi.
So you might notice that I changed something.
Okay.
I had this previously at the at the top of my Raspberry Pi with the case, because I'm using a case
and I removed it simply because, as you can see, there is no room for the camera here, so you could
find all sorts of way to plug the camera, maybe to open the box a bit.
Well, in the end I decided that I'm just going to remove it.
So to remove it I had to well, I had to take out all of the gpios here and connect them again.
So if you do that, double check everything.
And then I have a fan here.
Well it's just plastic so it's not going to be a problem.
You can just leave it hanging here.
All right.
So now the top of my case is open.
If you make any modification like this and you need to move the Raspberry Pi board, also make sure
you remove the SD card before.
Okay.
And now, well, like this is going to be easier to plug the camera.
And as you can see.
So I still have my circuit here.
But as you can see we have a camera display zero and camera display one.
So you could choose any one you like.
I'm just gonna take the camera display zero, and I'm going to plug the camera to the port zero here.
So the one on the right.
So I'm going to take out the, uh I'll try to take out the black part bit.
All right.
So it's open.
And now what you can see the connectors are on the right side.
So the connectors are on the USB side here.
So it's the difference with the previous Raspberry Pi versions.
Okay.
So the connectors here are going to face the USB.
And the black part here is going to face the other side where the SD card is.
So I'm going to connect that here.
Make sure it's at the bottom.
And then I can push back here the black plastic part to make sure that it's stuck.
All right.
Looks good.
And you might double check that the cable is straight and full in the pot.
Great.
So now that you have this, well, we're going to position the Raspberry Pi so that the sensor can still
face, for example, this side.
And the camera can also face that side.
So we can take a we can take a picture where the where the sensor is.
Okay.
So we're going to work in front of the Raspberry Pi like this with both the Pi sensor here and the camera
here.
And just an additional note here is well, you can see that this cable.
So the connector is not the most, uh, robust thing that you've seen.
Okay.
It's not like a USB cable or something like that.
So try not to plug it and unplug it too much.
All right.
So if you can leave it there okay.
And don't touch it too much because at some point you might damage the cable.
It's not necessarily too bad because you can always buy a new cable, okay.
You don't need to buy a new camera.
You just need to buy a new cable.
But still try not to plug it and unplug it too often.
All right, now your camera is plugged to the Raspberry Pi and we can start to use it so you can just
power on the Raspberry Pi.
I'm going to override this and let's see how to use the camera from the terminal.
And also from a Python script.