WEBVTT

00:00.120 --> 00:05.790
And now that the camera is plugged, we need to enable it before we can use it in our python code.

00:06.210 --> 00:11.370
So we are back to the Raspberry Pi desktop and here, well, depending on the mission that you have

00:11.370 --> 00:16.770
right now, you would have to do a different configuration and how to know which version.

00:16.950 --> 00:21.660
Well, you can open a terminal and just type C 18.

00:21.930 --> 00:28.770
So cut slash EDC slash OS release so you can use tab for the completion here.

00:29.400 --> 00:30.570
And let's look at this.

00:30.990 --> 00:38.040
So I am currently running version 11, which is Raspberry Pi Ice Bullseye.

00:38.370 --> 00:43.020
And it's also the version, as you can see here with the cloud wallpaper by default.

00:43.350 --> 00:46.560
If you have version ten buster, we the temple.

00:46.860 --> 00:48.810
So that's just a previous version.

00:48.810 --> 00:51.770
But it's completely fine for this course.

00:51.780 --> 00:55.080
You can continue with the version ten without any problem.

00:55.290 --> 00:59.730
And so now I'm going to do the bull's eye configuration for the camera.

00:59.730 --> 01:05.640
And if you have Buster, you can see also the timestamp to jump directly to when I explain the best

01:05.640 --> 01:06.390
of configuration.

01:07.110 --> 01:07.440
All right.

01:07.440 --> 01:08.970
So let's start with Bullseye.

01:09.420 --> 01:11.310
You can go to the raspberry.

01:11.310 --> 01:21.030
So the rice spy config menu, press enter and we are going to go to interface options.

01:21.390 --> 01:23.940
Press Enter legacy camera.

01:24.210 --> 01:26.910
Presenter And would you like to enable.

01:27.180 --> 01:27.770
Yes.

01:28.910 --> 01:29.600
And then.

01:29.900 --> 01:32.090
Okay, so you got to finish.

01:32.420 --> 01:33.650
He's going to ask you to reboot.

01:33.680 --> 01:34.280
You press?

01:34.430 --> 01:34.940
Yes.

01:35.660 --> 01:38.270
And then so here I am using Vinci.

01:38.280 --> 01:39.500
So he's going to reboot.

01:39.740 --> 01:42.290
So let's wait a few seconds here.

01:44.020 --> 01:44.350
Okay.

01:44.350 --> 01:48.670
And this is maybe all you're going to get when you go back to the DNC.

01:49.000 --> 01:55.830
Desktop cannot currently show the desktop and this happens after you enable the legacy stack for the

01:55.840 --> 01:59.170
camera on Bullseye and there is a way to fix this.

01:59.170 --> 02:00.420
So we will need to actually.

02:00.430 --> 02:07.450
So I'm going to close, Nancy, and we will need to access the Raspberry Pi using H and the terminal

02:07.600 --> 02:09.400
to fix just one thing.

02:09.700 --> 02:12.100
So let's open a terminal here.

02:12.100 --> 02:19.150
I'm using C and D on windows and it's on this and let's do a H.

02:19.810 --> 02:27.940
So by this is the username I've used before at 180, 268, 31 and 76.

02:27.940 --> 02:30.040
This is the IP address for my Raspberry Pi.

02:30.040 --> 02:35.470
So of course make sure you use the correct user and the correct IP address input.

02:35.470 --> 02:36.670
Also the password.

02:38.170 --> 02:39.680
And I am back to the raspberry base.

02:39.680 --> 02:42.700
So Raspberry Pi is still running.

02:43.000 --> 02:45.280
It's just that we don't have access to the desktop.

02:45.280 --> 02:46.900
But the Raspberry Pi is running.

02:46.900 --> 02:47.860
We can get access.

02:48.190 --> 02:51.600
We've set a stage and we are going to modify it.

02:51.610 --> 02:53.470
So let's do sudo nano.

02:53.890 --> 03:03.190
We are going to modify the slash boot slash config file which sudo for admin privilege and let's use

03:03.190 --> 03:09.460
nano to edit define cypress enter here and you're going to go down.

03:11.040 --> 03:14.240
And you're going to find this here.

03:14.310 --> 03:18.900
This option HDMI false hot plug is equal to one.

03:18.900 --> 03:21.030
And you're going to end comment that one.

03:21.390 --> 03:26.280
You're going to also end comment and HDMI group one and HDMI mode.

03:26.640 --> 03:30.120
So which should be normally one like this?

03:30.550 --> 03:34.980
Just that I had modified before, but that should be the default state.

03:35.430 --> 03:38.340
And so this is going to be the fix for VMC.

03:38.730 --> 03:43.290
So you kind of forced the HDMI display and that's going to fix to V and see.

03:44.010 --> 03:44.310
All right.

03:44.310 --> 03:51.000
So that's just basically a small hack, small fix, call it however you want to make it work.

03:51.480 --> 03:56.550
So we have this option is equal to one and then add HDMI Group one and edge DMA mode.

03:56.550 --> 04:04.050
I'm going to put 16 here and if we go to the Raspberry Pi documentation, this is actually the HDMI

04:04.050 --> 04:05.500
mode with Integer.

04:05.520 --> 04:13.890
My group is equal to one, so you can use so you can see I use 16 which corresponds to full HD and 60

04:13.890 --> 04:14.250
hits.

04:14.520 --> 04:20.430
So if you want to use a different resolution here and just use a different number also and so I'm just

04:20.430 --> 04:22.560
going to use that one.

04:24.380 --> 04:25.940
So we have those three options.

04:26.400 --> 04:29.750
Now let's go down and let's go to the bottom.

04:30.890 --> 04:34.690
You should find something like this by fall.

04:34.700 --> 04:42.380
So maybe you have this and you have this light duty overlay is equal to this for F, K and S, these

04:42.380 --> 04:45.770
three D and so this line you need to comment.

04:46.070 --> 04:52.730
So let's comment this line because if you don't comment this when you actually run VSC, you may have

04:52.730 --> 04:56.680
some troubles with the full screen mode for the incident.

04:56.870 --> 05:03.620
And once you have done this, you can say We've controlled an S and we've control and X.

05:04.550 --> 05:06.440
We are back to the terminal now.

05:06.440 --> 05:06.980
What do we do?

05:07.070 --> 05:08.960
We do a pseudo reboot.

05:09.650 --> 05:15.740
Okay, and let's wait a bit that the connection is lost and then the Raspberry Pi boots again and connects

05:15.740 --> 05:16.460
to the Wi-Fi.

05:17.880 --> 05:18.170
Okay.

05:18.210 --> 05:20.400
And now we should lose switching.

05:20.400 --> 05:23.130
Presenter We should, of course, lose the connection.

05:23.430 --> 05:28.980
One thing here is that after you have edited that fine and you removed the Raspberry Pi, you may take

05:28.980 --> 05:34.830
a bit more time to actually boot and connect to the Wi-Fi, so a bit more time that you are used to.

05:34.950 --> 05:41.070
So I recommend wait at least 2 minutes, two or 3 minutes maybe to make sure that the Raspberry Pi is

05:41.070 --> 05:42.300
connected to Wi-Fi.

05:42.310 --> 05:46.290
And now we can go back to the ANC and just open the Yankee client again.

05:46.620 --> 05:52.620
And, well, we are back to the desktop and the camera is enabled just to be sure, if you open the

05:52.620 --> 05:59.680
terminal and you type raspy still just like that, you should get this kind of message.

05:59.750 --> 06:00.020
Okay.

06:00.330 --> 06:06.120
If you get an error here which talks about the legacy stack, all we say is that the recipe still is

06:06.120 --> 06:06.720
not found.

06:06.730 --> 06:10.980
Then the camera is not correctly enabled, which if you have this, that's a success.

06:11.400 --> 06:17.100
And now I'm going to show you how to enable the camera if you are still using Raspberry Pi OS with the

06:17.100 --> 06:18.450
best version.

06:18.450 --> 06:21.330
So and also the temple wallpaper here.

06:21.480 --> 06:27.180
And so if you are using the bull's eye version and you just followed the previous instructions, well,

06:27.180 --> 06:30.180
you can skip the end of the view and just go to the next lesson.

06:34.410 --> 06:36.740
So no, the Raspberry Pi has boots.

06:36.750 --> 06:38.010
You are back on the desktop.

06:38.460 --> 06:42.780
I'm going to show you how to enable with the menu key and also from the demo.

06:43.290 --> 06:49.680
So you go to programs is here Raspberry Pi configuration.

06:52.510 --> 06:56.590
You go on in the faces and you can see a camera here.

06:56.800 --> 07:00.370
So if it's disabled, you click on Enable.

07:00.880 --> 07:04.250
It's already enabled for me and you click on okay.

07:04.840 --> 07:12.400
Then if you want to use the terminal, you can also do sudo rossby dash config.

07:12.880 --> 07:13.240
Okay.

07:13.600 --> 07:18.150
Press enter and go to interface options.

07:18.160 --> 07:22.240
So that's basically the same menu just from the terminal you click on.

07:22.720 --> 07:24.160
So camera enter.

07:24.610 --> 07:27.070
Would you like the camera interface to be enabled?

07:27.520 --> 07:27.970
Yes.

07:29.200 --> 07:29.920
Is enabled.

07:30.160 --> 07:30.670
Okay.

07:31.390 --> 07:32.680
And then right.

07:32.790 --> 07:34.960
Arrow to go to select and finish.

07:35.230 --> 07:37.990
Press enter and the camera is enabled.

07:38.440 --> 07:42.910
So if your camera was previously disabled or if you just want to make sure it's working, just do a

07:42.910 --> 07:47.740
pseudo product, enter and then just wait a few see.

07:47.870 --> 07:49.360
So here I'm using V.

07:49.870 --> 07:55.750
Okay, so I'm just waiting that the Raspberry Pi is going to boot again and the client is going to connect

07:55.750 --> 07:57.850
automatically to Herzberg by again.
