WEBVTT

00:00.110 --> 00:02.570
Let's plug the camera to the Raspberry Pi board.

00:02.570 --> 00:05.210
So here I have my camera module okay.

00:05.240 --> 00:06.110
With the cable.

00:06.110 --> 00:09.500
So that's what you should receive if you order the camera.

00:09.530 --> 00:11.240
Something like that okay.

00:11.240 --> 00:13.310
And I have the Raspberry Pi five here.

00:13.310 --> 00:18.320
And I also have a Raspberry Pi four here that's gonna also work with previous versions of the Raspberry

00:18.320 --> 00:18.740
Pi.

00:18.770 --> 00:23.840
I'm going to show you first how to plug the camera to the Raspberry Pi four and all the versions, and

00:23.840 --> 00:25.640
then come back to the Raspberry Pi five.

00:25.640 --> 00:27.230
So here you have the time stamp.

00:27.230 --> 00:33.230
If you just have the five, just go to this time and you can skip the Raspberry Pi four version.

00:33.230 --> 00:39.560
So if you have a Raspberry Pi four, well you see we have a camera connector here, okay.

00:39.560 --> 00:41.450
And you have this cable.

00:41.450 --> 00:45.980
So if you have the same cable you see the large one, then you're just going to open.

00:45.980 --> 00:50.150
So you have this black plastic part here that you can just open okay.

00:50.180 --> 00:53.330
And you can plug directly the cable in there.

00:53.330 --> 00:55.940
So you see the pins are on that side okay.

00:55.970 --> 00:58.040
On the outside here.

00:58.190 --> 01:02.000
And uh those correspond to those pins.

01:02.000 --> 01:03.110
You need to connect it like that.

01:03.110 --> 01:09.890
So the blue part here is going to face the USB uh, What's that?

01:09.920 --> 01:11.450
Okay, so you plug it.

01:11.720 --> 01:14.510
Make sure it's at the bottom.

01:14.960 --> 01:15.290
Okay.

01:15.320 --> 01:20.210
And then you can close the two plastic parts.

01:21.980 --> 01:22.280
All right.

01:22.310 --> 01:24.770
And you make sure that the pins are full in.

01:24.800 --> 01:26.120
It should look like this.

01:26.210 --> 01:28.760
And then that's it for the Raspberry Pi four.

01:28.760 --> 01:33.770
So if you have a Raspberry Pi four or previous version, it should work like this.

01:34.340 --> 01:35.810
Now I'm going to remove it.

01:36.740 --> 01:39.860
Remove it to remove this plastic part.

01:40.700 --> 01:43.940
I'm going to remove it and that's it for the Raspberry Pi four.

01:44.270 --> 01:46.700
And now I'm going back to the Raspberry Pi five.

01:46.700 --> 01:52.400
So what's the problem with the Raspberry Pi five is you can see that we have two.

01:52.430 --> 01:55.280
So I have two camera connectors here.

01:55.280 --> 01:56.570
But those are smaller.

01:56.570 --> 02:01.580
So this cable if you have this cable the big one it's not going to fit okay.

02:01.610 --> 02:03.560
So we need an adapter.

02:03.590 --> 02:06.410
That's why I have I have this one.

02:06.440 --> 02:07.970
So I bought that cable.

02:08.150 --> 02:10.310
Well this one is 300mm.

02:10.310 --> 02:13.460
You can get a long one or a short one as you want.

02:13.460 --> 02:18.880
And you can see that one side of the connector is the same.

02:19.210 --> 02:24.700
Okay, so that's the 15 pin that I talked to you about 15 pins with one millimeter.

02:25.510 --> 02:29.650
But the other side, the other side is much smaller.

02:29.680 --> 02:32.770
And you can see this is the side that's going to be plugged to the Raspberry Pi.

02:33.070 --> 02:33.520
Okay.

02:33.550 --> 02:38.050
And this one has 22 pins separated by 0.5mm.

02:38.080 --> 02:38.860
All right.

02:39.670 --> 02:45.340
So what I'm going to do is I'm going to take out you see I can remove the cable here.

02:46.900 --> 02:50.440
I'm going to remove the cable like that.

02:50.590 --> 02:52.780
And then I'm going to plug it here.

02:52.810 --> 02:58.600
So again the the pins should face the pin here.

02:58.600 --> 03:05.110
So the black part is going to face also this black uh plastic part at the back of the camera.

03:05.950 --> 03:07.270
So I plug it.

03:08.050 --> 03:13.630
I plug it fully and then I connect here and here.

03:13.630 --> 03:15.040
And now it's stuck.

03:16.330 --> 03:20.560
So make sure that it's stuck and it is correctly in.

03:22.660 --> 03:22.960
Great.

03:22.960 --> 03:25.090
And now we can connect this to the Raspberry Pi.

03:25.120 --> 03:28.210
So you might notice that I changed something.

03:28.240 --> 03:28.600
Okay.

03:28.630 --> 03:35.080
I had this previously at the at the top of my Raspberry Pi with the case, because I'm using a case

03:35.080 --> 03:41.710
and I removed it simply because, as you can see, there is no room for the camera here, so you could

03:41.710 --> 03:46.030
find all sorts of way to plug the camera, maybe to open the box a bit.

03:46.060 --> 03:48.910
Well, in the end I decided that I'm just going to remove it.

03:48.910 --> 03:54.730
So to remove it I had to well, I had to take out all of the gpios here and connect them again.

03:54.730 --> 03:57.310
So if you do that, double check everything.

03:57.310 --> 03:59.800
And then I have a fan here.

03:59.980 --> 04:03.370
Well it's just plastic so it's not going to be a problem.

04:03.490 --> 04:05.410
You can just leave it hanging here.

04:05.440 --> 04:05.770
All right.

04:05.770 --> 04:08.590
So now the top of my case is open.

04:08.590 --> 04:13.990
If you make any modification like this and you need to move the Raspberry Pi board, also make sure

04:13.990 --> 04:15.940
you remove the SD card before.

04:15.970 --> 04:16.510
Okay.

04:17.140 --> 04:21.340
And now, well, like this is going to be easier to plug the camera.

04:21.340 --> 04:22.570
And as you can see.

04:22.600 --> 04:23.740
So I still have my circuit here.

04:23.740 --> 04:29.830
But as you can see we have a camera display zero and camera display one.

04:29.830 --> 04:32.920
So you could choose any one you like.

04:32.950 --> 04:39.610
I'm just gonna take the camera display zero, and I'm going to plug the camera to the port zero here.

04:39.610 --> 04:41.110
So the one on the right.

04:41.140 --> 04:46.960
So I'm going to take out the, uh I'll try to take out the black part bit.

04:47.080 --> 04:47.590
All right.

04:47.590 --> 04:49.510
So it's open.

04:49.510 --> 04:52.480
And now what you can see the connectors are on the right side.

04:52.480 --> 04:55.630
So the connectors are on the USB side here.

04:55.630 --> 04:58.330
So it's the difference with the previous Raspberry Pi versions.

04:58.360 --> 04:58.840
Okay.

04:58.840 --> 05:02.080
So the connectors here are going to face the USB.

05:02.080 --> 05:07.060
And the black part here is going to face the other side where the SD card is.

05:08.140 --> 05:09.730
So I'm going to connect that here.

05:09.760 --> 05:11.800
Make sure it's at the bottom.

05:12.100 --> 05:20.290
And then I can push back here the black plastic part to make sure that it's stuck.

05:20.770 --> 05:21.250
All right.

05:21.280 --> 05:21.970
Looks good.

05:21.970 --> 05:29.080
And you might double check that the cable is straight and full in the pot.

05:30.400 --> 05:31.120
Great.

05:31.120 --> 05:38.310
So now that you have this, well, we're going to position the Raspberry Pi so that the sensor can still

05:38.310 --> 05:40.170
face, for example, this side.

05:40.170 --> 05:43.020
And the camera can also face that side.

05:43.020 --> 05:48.210
So we can take a we can take a picture where the where the sensor is.

05:48.240 --> 05:48.420
Okay.

05:48.450 --> 05:54.270
So we're going to work in front of the Raspberry Pi like this with both the Pi sensor here and the camera

05:54.300 --> 05:54.690
here.

05:54.690 --> 05:59.160
And just an additional note here is well, you can see that this cable.

05:59.160 --> 06:03.840
So the connector is not the most, uh, robust thing that you've seen.

06:03.870 --> 06:04.410
Okay.

06:04.410 --> 06:06.750
It's not like a USB cable or something like that.

06:06.750 --> 06:10.440
So try not to plug it and unplug it too much.

06:10.470 --> 06:10.710
All right.

06:10.740 --> 06:13.560
So if you can leave it there okay.

06:13.590 --> 06:17.850
And don't touch it too much because at some point you might damage the cable.

06:17.850 --> 06:21.210
It's not necessarily too bad because you can always buy a new cable, okay.

06:21.240 --> 06:22.530
You don't need to buy a new camera.

06:22.560 --> 06:24.180
You just need to buy a new cable.

06:24.180 --> 06:28.320
But still try not to plug it and unplug it too often.

06:28.350 --> 06:34.590
All right, now your camera is plugged to the Raspberry Pi and we can start to use it so you can just

06:34.590 --> 06:36.450
power on the Raspberry Pi.

06:36.480 --> 06:43.980
I'm going to override this and let's see how to use the camera from the terminal.

06:43.980 --> 06:46.230
And also from a Python script.
