It's now time to start the final project of this course.
You have now completed all the learning steps and have a great knowledge foundation you can use for
any new project, including the one we are about to do right now.
This project will be great for you to practice on everything you have seen in this course.
So what is this project about?
We will create a complete intercom system.
Here is the result you will get at the end.
So this is the complete circuit, including the Arduino and the Raspberry Pi here that you can see with
all the components and the functionalities in the course.
So first the Led will be blue and the intercom and we have a message push on button to call.
So I'm going to push on the button to call and this is going to send a message to the Raspberry Pi.
And you can see that we receive a message here on the Telegram chat.
So if you have installed telegram on your phone, you will receive a notification somewhere on is ringing
the bell and then you can send open or deny and well, this gentleman looks very nice, so I'm going
to just open the door for him.
Okay.
So I click on Open and this is going to send back a message to the Arduino from the Raspberry Pi.
The door is opened.
We have the green led and you can see the servo motor has moved to open the door after 10s.
We come back to the initial state with the blue led and push on the button to call.
Now I'm going to call again.
This is going to send another photo.
So this is going to send another notification to the Telegram app.
And well, who is this guy?
I don't even see his face.
I'm not going to open the door for him.
I'm going to deny.
Okay.
And when it's denied, you have another different sound.
Right.
And then you have access denied for five seconds and then it comes back to normal.
And you can call again to ask to open the door.
And so here is a quick overview of what we have in the hardware part.
So we have the Raspberry Pi first with the Raspberry Pi camera.
This Raspberry Pi will be responsible to control the global logic of the application and will also interact
with the telegram bot.
Okay, so it can send some notification to your phone or your computer and it can also receive some
comments.
For example, open or deny.
Then we have the Arduino.
The Arduino will be responsible for basically all the hardware components.
It will open and close the door with the servo motor.
Okay.
By the way, quick parentheses here, the servo motor directly power it from the Arduino and it is not
mounted on any door.
So what you could improve is to externally power it and mount it on a real door mechanism.
So then we have an Led a buzzer.
Okay.
To make some light and some sound when we open close or deny access, for example, we have an LCD also
to give some instruction to the user and a push button so we can make the call for the intercom.
And so everything you see here is going to be controlled by the Arduino.
But the command, the main command is going to come from the Raspberry Pi.
And when you press on the push button, the Arduino will read it, but will send it to the Raspberry
Pi and then the Raspberry Pi will communicate with the telegram bot and then coming back to the Raspberry
Pi and coming back to the Arduino.
This project is a very good example of how to use both Raspberry Pi and Arduino in one single application.
Some of the functionalities are only possible with Raspberry Pi and others only possible with Arduino.
By using the combination of both, you can build a more complex project with Raspberry Pi as the brain
and Arduino as the muscles.
You can also download a PDF for the project as an additional resource which contains all the specs and
all the functionalities you have to implement, as well as an overview of the steps you can take to
finish the project.
I've put all the instructions in this PDF so it's going to be easier for you.
You can just download the PDF, read it as many times as you want and keep it on the side when you work
on the project.
This project is a bit challenging, but this is the way to progress.
I didn't want to create something super easy just to make you feel good.
You will need to use your brain at full capacity here, but this is totally doable if you have correctly
understood what we have done so far.
And I can guarantee you that when you finish the project you will have a great feeling of achievement.
And not only that, but you will be ready to start your next project with confidence.
So make sure you take some time to work on the project.
Also, try to design the steps by yourself.
Think about what you need to do first and how to get to the final result one step at a time.
Your step design may be different than mine and that's totally fine if it makes sense and if it allows
you to finish the project.
Now, don't stay stuck for weeks.
If you really don't find the solution to the next step, then watch the step solution and don't feel
bad about this.
So you watch the step and only this one.
And then you continue to work on the project a few days later, come back to this step and try to do
it again.
You can also come back to watch any previous lesson or activity of the course if you have some doubts
or if you need some clarification on a specific point.
The solution I provide next is a complete step by step solution where I explain everything and give
you some additional tips and best practices for your future project.
For each step, you can also download the project code until that step, Note that this solution will
probably not be identical to the one you will have, but please note that this is just one solution.
It is not necessarily the solution.
If you get the same result with a different code, then it's okay too.
All right.
Now download the instructions PDF and let's get started with this intercom project.