WEBVTT

00:00.110 --> 00:03.670
It's now time to start the final project of this course.

00:03.680 --> 00:09.320
You have now completed all the learning steps and have a great knowledge foundation you can use for

00:09.320 --> 00:13.430
any new project, including the one we are about to do right now.

00:13.460 --> 00:18.500
This project will be great for you to practice on everything you have seen in this course.

00:18.500 --> 00:20.660
So what is this project about?

00:20.690 --> 00:23.930
We will create a complete intercom system.

00:23.930 --> 00:26.750
Here is the result you will get at the end.

00:27.080 --> 00:33.050
So this is the complete circuit, including the Arduino and the Raspberry Pi here that you can see with

00:33.050 --> 00:35.960
all the components and the functionalities in the course.

00:35.960 --> 00:42.020
So first the Led will be blue and the intercom and we have a message push on button to call.

00:42.020 --> 00:50.090
So I'm going to push on the button to call and this is going to send a message to the Raspberry Pi.

00:50.090 --> 00:55.430
And you can see that we receive a message here on the Telegram chat.

00:55.460 --> 01:01.080
So if you have installed telegram on your phone, you will receive a notification somewhere on is ringing

01:01.080 --> 01:07.350
the bell and then you can send open or deny and well, this gentleman looks very nice, so I'm going

01:07.350 --> 01:09.330
to just open the door for him.

01:09.600 --> 01:10.050
Okay.

01:10.050 --> 01:16.200
So I click on Open and this is going to send back a message to the Arduino from the Raspberry Pi.

01:16.620 --> 01:17.850
The door is opened.

01:17.850 --> 01:23.970
We have the green led and you can see the servo motor has moved to open the door after 10s.

01:25.750 --> 01:30.760
We come back to the initial state with the blue led and push on the button to call.

01:31.390 --> 01:33.130
Now I'm going to call again.

01:34.300 --> 01:36.310
This is going to send another photo.

01:36.340 --> 01:40.900
So this is going to send another notification to the Telegram app.

01:40.900 --> 01:42.570
And well, who is this guy?

01:42.610 --> 01:44.140
I don't even see his face.

01:44.290 --> 01:46.120
I'm not going to open the door for him.

01:46.120 --> 01:47.710
I'm going to deny.

01:49.690 --> 01:49.990
Okay.

01:49.990 --> 01:52.990
And when it's denied, you have another different sound.

01:53.460 --> 01:53.820
Right.

01:54.190 --> 01:58.840
And then you have access denied for five seconds and then it comes back to normal.

01:58.840 --> 02:01.800
And you can call again to ask to open the door.

02:01.810 --> 02:06.510
And so here is a quick overview of what we have in the hardware part.

02:06.520 --> 02:10.060
So we have the Raspberry Pi first with the Raspberry Pi camera.

02:10.090 --> 02:17.050
This Raspberry Pi will be responsible to control the global logic of the application and will also interact

02:17.050 --> 02:18.370
with the telegram bot.

02:18.400 --> 02:24.130
Okay, so it can send some notification to your phone or your computer and it can also receive some

02:24.130 --> 02:24.550
comments.

02:24.550 --> 02:26.350
For example, open or deny.

02:26.860 --> 02:28.690
Then we have the Arduino.

02:28.720 --> 02:32.880
The Arduino will be responsible for basically all the hardware components.

02:32.890 --> 02:35.620
It will open and close the door with the servo motor.

02:36.250 --> 02:36.460
Okay.

02:36.460 --> 02:41.680
By the way, quick parentheses here, the servo motor directly power it from the Arduino and it is not

02:41.680 --> 02:42.880
mounted on any door.

02:42.880 --> 02:49.210
So what you could improve is to externally power it and mount it on a real door mechanism.

02:49.210 --> 02:51.910
So then we have an Led a buzzer.

02:51.940 --> 02:52.300
Okay.

02:52.300 --> 03:00.610
To make some light and some sound when we open close or deny access, for example, we have an LCD also

03:00.610 --> 03:08.050
to give some instruction to the user and a push button so we can make the call for the intercom.

03:08.050 --> 03:11.320
And so everything you see here is going to be controlled by the Arduino.

03:11.320 --> 03:15.400
But the command, the main command is going to come from the Raspberry Pi.

03:15.400 --> 03:20.740
And when you press on the push button, the Arduino will read it, but will send it to the Raspberry

03:20.740 --> 03:26.230
Pi and then the Raspberry Pi will communicate with the telegram bot and then coming back to the Raspberry

03:26.230 --> 03:28.210
Pi and coming back to the Arduino.

03:28.930 --> 03:36.190
This project is a very good example of how to use both Raspberry Pi and Arduino in one single application.

03:36.190 --> 03:42.730
Some of the functionalities are only possible with Raspberry Pi and others only possible with Arduino.

03:42.760 --> 03:49.180
By using the combination of both, you can build a more complex project with Raspberry Pi as the brain

03:49.180 --> 03:51.450
and Arduino as the muscles.

03:51.460 --> 03:57.910
You can also download a PDF for the project as an additional resource which contains all the specs and

03:57.910 --> 04:03.280
all the functionalities you have to implement, as well as an overview of the steps you can take to

04:03.280 --> 04:04.660
finish the project.

04:04.840 --> 04:08.920
I've put all the instructions in this PDF so it's going to be easier for you.

04:08.920 --> 04:15.430
You can just download the PDF, read it as many times as you want and keep it on the side when you work

04:15.460 --> 04:16.660
on the project.

04:16.840 --> 04:21.070
This project is a bit challenging, but this is the way to progress.

04:21.070 --> 04:25.150
I didn't want to create something super easy just to make you feel good.

04:25.150 --> 04:31.250
You will need to use your brain at full capacity here, but this is totally doable if you have correctly

04:31.250 --> 04:33.260
understood what we have done so far.

04:33.260 --> 04:39.560
And I can guarantee you that when you finish the project you will have a great feeling of achievement.

04:39.560 --> 04:44.990
And not only that, but you will be ready to start your next project with confidence.

04:44.990 --> 04:48.230
So make sure you take some time to work on the project.

04:48.230 --> 04:51.440
Also, try to design the steps by yourself.

04:51.440 --> 04:57.680
Think about what you need to do first and how to get to the final result one step at a time.

04:57.680 --> 05:04.700
Your step design may be different than mine and that's totally fine if it makes sense and if it allows

05:04.700 --> 05:06.500
you to finish the project.

05:06.530 --> 05:09.050
Now, don't stay stuck for weeks.

05:09.050 --> 05:15.080
If you really don't find the solution to the next step, then watch the step solution and don't feel

05:15.080 --> 05:16.040
bad about this.

05:16.040 --> 05:18.590
So you watch the step and only this one.

05:18.590 --> 05:24.530
And then you continue to work on the project a few days later, come back to this step and try to do

05:24.530 --> 05:25.250
it again.

05:25.460 --> 05:32.060
You can also come back to watch any previous lesson or activity of the course if you have some doubts

05:32.090 --> 05:36.050
or if you need some clarification on a specific point.

05:36.200 --> 05:43.070
The solution I provide next is a complete step by step solution where I explain everything and give

05:43.070 --> 05:47.690
you some additional tips and best practices for your future project.

05:47.690 --> 05:53.810
For each step, you can also download the project code until that step, Note that this solution will

05:53.810 --> 06:00.620
probably not be identical to the one you will have, but please note that this is just one solution.

06:00.620 --> 06:03.410
It is not necessarily the solution.

06:03.410 --> 06:07.790
If you get the same result with a different code, then it's okay too.

06:07.940 --> 06:08.420
All right.

06:08.450 --> 06:13.910
Now download the instructions PDF and let's get started with this intercom project.
