WEBVTT

00:00.300 --> 00:03.460
It's now time to start the final project of the schools.

00:03.990 --> 00:08.610
Congratulations already you have made it through all the sections of the class.

00:08.880 --> 00:11.540
You now have a very strong foundation.

00:11.760 --> 00:17.550
You can also use more advanced functionalities and interact with more hardware components.

00:18.030 --> 00:24.930
Now, this final project will be your first complete original project and a great opportunity to practice

00:24.930 --> 00:26.850
on everything you've seen before.

00:27.270 --> 00:28.900
So what is this project about?

00:29.640 --> 00:33.250
So this is the result you will get at the end of the final project.

00:33.540 --> 00:40.920
So this circuit right here is the circuit that you have build in the schools with all the components

00:40.920 --> 00:43.000
and you are going to use all the components.

00:43.410 --> 00:47.960
So this project is an interactive obstacle detection application.

00:48.270 --> 00:52.740
So you have the ultrasonic sensor here, which would measure the distance in front of it.

00:53.010 --> 00:59.490
And you can see I also print the distance on the LCD display screen as well as increase.

00:59.520 --> 01:01.740
Look at the yellow energy here.

01:02.040 --> 01:08.090
I increase the frequency, the frequency, the closer I am to the sensor.

01:08.490 --> 01:12.360
His breaking very fast here is blinking quite slowly.

01:12.580 --> 01:13.920
I also have a warning.

01:14.130 --> 01:18.620
If I get too close, that's less than 50 centimeters.

01:18.840 --> 01:26.190
And then if I get ready to close less than 10 centimeters, you can see we are in what I call the locked

01:26.190 --> 01:26.640
mode.

01:26.650 --> 01:30.870
So the applications locked against the obstacle price to unlock here.

01:31.140 --> 01:37.230
And then the two entities here right in yellow are blinking at the same time.

01:37.800 --> 01:40.160
OK, so now what are you to do?

01:40.170 --> 01:41.970
So remove the obstacle, OK?

01:42.120 --> 01:49.650
And then I need in order to unlock the application, I need to press here on the push button and now

01:49.650 --> 01:51.330
the application is unlocked.

01:51.660 --> 01:56.410
And I can if I want, I can unlock it again by going to close to the sensor.

01:57.480 --> 02:01.740
You can see here also that you have a green energy, which is Powelltown.

02:01.740 --> 02:09.000
So you have the photoresistor sensor which will measure the luminosity and the higher the the lower

02:09.000 --> 02:10.770
the brightness of the sensor.

02:10.950 --> 02:14.940
And of course, the lower the immunity, the higher the brightness.

02:14.970 --> 02:18.630
OK, so this is independent from the two other entities.

02:19.050 --> 02:23.970
And then so with the remote controller you can use also the remote controller.

02:24.180 --> 02:29.880
And when the application is blocked because of obstacles, so you can either pressing the button, but

02:29.880 --> 02:35.400
you can also press on the play button to resume the operation.

02:35.400 --> 02:38.250
And you can see the application is running again.

02:38.250 --> 02:45.150
Normally then what you can do is so you can see here that the distance is in centimeters if I press

02:45.150 --> 02:46.110
on the ECU.

02:48.360 --> 02:54.990
But you can see now I have the distance in inches so you can toggle between centimeters and inches by

02:54.990 --> 02:58.670
pressing on one button of the infrared remote control.

02:59.160 --> 03:04.990
And no, the thing is that this value is also saved inside the original with the April memories.

03:05.000 --> 03:09.990
So this is the settings that if I restore the audio with the reset button.

03:11.380 --> 03:17.040
So you see, so I have initializing for one second and then you can see we still have entries.

03:17.110 --> 03:20.820
OK, this was inside the April memorial.

03:21.790 --> 03:26.610
So you can keep default settings like this and now you have additional functionality.

03:26.630 --> 03:34.900
So if I toggle with the Ildong button, I can go see, for example, the luminosity, which is the relevance

03:35.560 --> 03:38.500
of the you can see of the photoresistor.

03:38.510 --> 03:40.320
I can put my hand.

03:40.330 --> 03:42.000
This is going to be lower.

03:42.780 --> 03:46.710
OK, you can see that you directly from the photoresistor stencil.

03:47.320 --> 03:54.750
And then I can also go to this screen which says Price off to reset the settings.

03:55.060 --> 04:00.670
And this I can place on the off button settings have been resits.

04:00.700 --> 04:07.400
Now, if I go back to the previous screen with the distance, I can see now the distance is in centimeters.

04:07.750 --> 04:14.530
So by going on the screen and pressing on the other button, I can reset all the default settings in

04:14.530 --> 04:15.370
the application.

04:15.850 --> 04:16.180
All right.

04:16.190 --> 04:18.460
So you can see that is a quite complete project.

04:18.730 --> 04:25.990
OK, first, the main functionality is to detect obstacles and to tell the secret all the robot or the

04:25.990 --> 04:33.820
application to look and to wait until a user has, for example, removed the object and manually unlocked

04:33.820 --> 04:34.600
the application.

04:35.050 --> 04:40.000
And to that, we add a few functionalities to improve the interactiveness.

04:40.030 --> 04:46.810
OK, so you can have more information with the LCD screen from the entity and also interact with the

04:46.810 --> 04:51.000
screen using the remote controller and the push-Button right there.

04:51.820 --> 05:00.060
And then we are also going to be able to use the simulation so you can see here the complete same Chicot

05:00.070 --> 05:02.440
on the simulation with the same component.

05:02.700 --> 05:10.750
I'm going to run the simulation so you will be able to do the project with the hardware, all with the

05:10.750 --> 05:11.380
simulation.

05:11.530 --> 05:14.570
And you can see the behavior is the same.

05:14.590 --> 05:17.980
So, for example, I can set different distance here.

05:18.280 --> 05:24.910
OK, we have one different 3D which blinks here and I can change here.

05:24.910 --> 05:27.610
You can see the unit.

05:27.940 --> 05:30.780
I can go to the different screens, OK?

05:31.060 --> 05:34.850
And you can see everything is the same as the real secret.

05:35.680 --> 05:43.330
So here you have the final results that you should aim to produce now to make it simpler to get all

05:43.330 --> 05:45.960
the specs and functionalities in one place.

05:46.150 --> 05:52.720
I have created a PDF for the project, which you can download as an additional resource of this class.

05:53.230 --> 06:00.250
Read the PDF to get all the specs and then start to work on the project and a few quick notes before

06:00.250 --> 06:01.240
you start the project.

06:01.270 --> 06:07.840
Well, this project is a little bit more challenging than any activities we have done before, but this

06:07.840 --> 06:09.220
is the way to progress.

06:09.400 --> 06:14.300
If you manage to finish it, you will be ready for any other future project.

06:14.740 --> 06:20.720
One very important thing is that you take enough time to work by yourself before watching the solution.

06:21.080 --> 06:23.860
That's the only way to improve your skills with algorithm.

06:24.280 --> 06:29.560
But then if you are really stuck at some point, don't stay stuck too long and don't feel bad about

06:29.560 --> 06:31.150
watching the next solution.

06:31.150 --> 06:32.550
Stick after this.

06:32.740 --> 06:38.830
Continue to work on your own and maybe come back to this particular step a few days after to do it again

06:38.980 --> 06:39.690
on your own.

06:40.030 --> 06:46.270
So I will provide a Complete Step-By-Step solution where I explain everything and give some best practices

06:46.270 --> 06:48.980
for your future projects for each step.

06:49.000 --> 06:53.620
You can also download the project code until that specific step.

06:54.050 --> 07:00.370
A few of the steps will be already familiar to you because that's very similar to what we've done in

07:00.370 --> 07:02.560
some previous lessons or activities.

07:02.830 --> 07:08.080
But in that case, I still recommend you write the code from scratch and do not copy and paste what

07:08.080 --> 07:09.760
we have previously done before.

07:10.370 --> 07:14.930
And finally, note that the solution that we give is just one solution.

07:14.950 --> 07:17.710
This is not necessarily the solution.

07:18.100 --> 07:25.480
You might end up with something different, but working as expected and this is totally fine now.

07:25.510 --> 07:30.100
Well, I guess this is time for you to start working on this final project.
