And I do welcome this new lesson.
Now we are done with the coding process.
So let's go to the final testing phase.
First, you need to verify your code and make sure that it works properly.
Now, the first thing that we need to edit in this code is that this is Ivy.
Now, as you can see here, we have a problem with the motion detected variable.
We need to change the name, but a fire game.
Now, make sure that you are done compiling.
Right now, go back here and start by adding your Wi-Fi network name and you do need to add the passport.
I'll change the password later.
Now we need double talk in volume and our chat TV, and we can give this if we applied the reason titled
Telegram Bot Creation.
Once you place them here, you have everything ready and you only need to hook up your speakers to a
board to load your code on the USB 32.
Now, once you hook up your air speed test or you can go to the start menu, right click.
And select device manager.
Now this is the device manager, when do you need to go to the ports section and if you followed our
steps, you should see the CP 210 x USB port.
We are bridge with a port number which has come for.
Now, this is a port that we will use to connect our U.S. B-52.
I have it connected, so all what I need to do is go to Arduino Ivy.
Make sure that the board selected is ESB 32.
Do it.
Yes, B-52 Dev Kit version one.
And make sure that I select the report here, we have the board as come for.
So I will uninstall these devices.
Because they have come forward.
This one as well.
Now, we only have one for Solace scan for online changes.
Again, we have the full.
I'll go to the tools.
Make sure that you.
Wait for the ball to appear again.
I will unplug, unplug the bond.
Now go to the tools menu or as you can see, comfort is selected.
Now, once you have done.
Go on, click upload.
As you can see, it's compiling the sketch, you need to make sure that you have the right side on life.I
basketball, underwrite a user ID for the box and for the token.
Now it's uploading the code.
You can see up to 100 percent.
Once done, it will hard reset the board.
Now you can open up the system.
Now I will say the board from my end.
You need to change the border it here to the elected moderate about a suitable again.
As you can see, now, it's trying to connect to the Wi-Fi network.
Although I find him is Ashraf on, since we are seeing dots means that it's still trying to connect
to the Wi-Fi network.
But.
Till now.
Not no connection.
So we might have entered the wrong password.
So we need to check that.
OK, now, after listening to the board, Wi-Fi connected, the IP address is, as you can see, one
hundred and two hundred sixty eight zero hundred seven.
Now, all I need to do is simply connect the motion detector and get an onslaught of signal on the pin
number.
So there will appear a number twenty one.
So let's do that.
Now I have been 21 one connected to the motion picture.
Let us open the cinema for one more time.
As you can see, motion has been detected because there is a mole and so detected motion message is
here.
Now we need to go to our telegram.
This is our boat.
I've.
So we need to scroll up to see our bottling.
This is all about.
And we need to start it.
Now the board has started.
What we need to do is simple.
We need to reset our export.
And to check our box.
Now we need to make sure that we see this message motion and temperature, what started off, as you
can see a few scrawled inside our code, you can see that we add a simple line.
Here.
Once we start our sport, we need to send this thought on since we are looking at this message.
Here.
OK.
Not here in our boat here.
Wash it on temperature.
What started means that the boat is on.
So now what we need to do is to connect the motion picture and make a thick motion, and we should receive
a message here.
That motion has been detected, so that's sign.
Now we have to check the CO2 market as well.
Now, when motion is detected, it will send a message to the theater monitor, and it will send the
same message to our Telegram board.
So as you can see, motion has been detected twice, so it will directly send a message to our Telegram
bot.
We only have to wait for few seconds for the message to revive.
Now, as you can see, detected motion and detected motion.
So here we received a message to our Telegram bot telling us that motion has been detected just like
in our code.
And this was the end of our practical testing.
Now you can do anything with this idea.
You can make a project that sense your temperature, motion detection, let's say light percentage in
a room, and you can even send commands the other way around by programming your bot to send messages
and programming you.
He asked people to receive these messages, but this thing would be covered in a future section.
Thanks for watching this lesson.
As you can see here, we have everything just as in our code.
We received a message when motion has been detected.
This is our Telegram bot.
If you have any question regarding anything inside the code, I'm here to help.
Thanks for watching.
This is Ashraf from educational engineering team.