1
00:00:00,590 --> 00:00:02,060
And I do welcome this new lesson.

2
00:00:02,180 --> 00:00:05,480
Now we are done with the coding process.

3
00:00:05,600 --> 00:00:08,150
So let's go to the final testing phase.

4
00:00:08,690 --> 00:00:12,890
First, you need to verify your code and make sure that it works properly.

5
00:00:16,059 --> 00:00:20,320
Now, the first thing that we need to edit in this code is that this is Ivy.

6
00:00:21,650 --> 00:00:26,540
Now, as you can see here, we have a problem with the motion detected variable.

7
00:00:27,230 --> 00:00:30,050
We need to change the name, but a fire game.

8
00:00:33,960 --> 00:00:36,540
Now, make sure that you are done compiling.

9
00:00:44,590 --> 00:00:52,030
Right now, go back here and start by adding your Wi-Fi network name and you do need to add the passport.

10
00:00:53,680 --> 00:00:55,240
I'll change the password later.

11
00:00:55,720 --> 00:01:04,090
Now we need double talk in volume and our chat TV, and we can give this if we applied the reason titled

12
00:01:04,390 --> 00:01:05,830
Telegram Bot Creation.

13
00:01:07,010 --> 00:01:14,030
Once you place them here, you have everything ready and you only need to hook up your speakers to a

14
00:01:14,030 --> 00:01:18,080
board to load your code on the USB 32.

15
00:01:20,080 --> 00:01:25,210
Now, once you hook up your air speed test or you can go to the start menu, right click.

16
00:01:26,210 --> 00:01:28,520
And select device manager.

17
00:01:32,930 --> 00:01:39,010
Now this is the device manager, when do you need to go to the ports section and if you followed our

18
00:01:39,020 --> 00:01:44,180
steps, you should see the CP 210 x USB port.

19
00:01:44,190 --> 00:01:47,960
We are bridge with a port number which has come for.

20
00:01:49,140 --> 00:01:54,090
Now, this is a port that we will use to connect our U.S. B-52.

21
00:01:54,840 --> 00:02:00,840
I have it connected, so all what I need to do is go to Arduino Ivy.

22
00:02:01,890 --> 00:02:05,280
Make sure that the board selected is ESB 32.

23
00:02:07,020 --> 00:02:07,470
Do it.

24
00:02:07,500 --> 00:02:09,930
Yes, B-52 Dev Kit version one.

25
00:02:11,440 --> 00:02:17,140
And make sure that I select the report here, we have the board as come for.

26
00:02:18,550 --> 00:02:22,840
So I will uninstall these devices.

27
00:02:23,970 --> 00:02:25,260
Because they have come forward.

28
00:02:26,940 --> 00:02:27,810
This one as well.

29
00:02:31,460 --> 00:02:36,680
Now, we only have one for Solace scan for online changes.

30
00:02:37,940 --> 00:02:39,470
Again, we have the full.

31
00:02:40,440 --> 00:02:41,790
I'll go to the tools.

32
00:02:42,720 --> 00:02:45,000
Make sure that you.

33
00:02:46,000 --> 00:02:48,350
Wait for the ball to appear again.

34
00:02:48,370 --> 00:02:50,470
I will unplug, unplug the bond.

35
00:02:57,400 --> 00:03:01,990
Now go to the tools menu or as you can see, comfort is selected.

36
00:03:03,400 --> 00:03:04,270
Now, once you have done.

37
00:03:04,870 --> 00:03:06,340
Go on, click upload.

38
00:03:16,180 --> 00:03:22,710
As you can see, it's compiling the sketch, you need to make sure that you have the right side on life.I

39
00:03:22,710 --> 00:03:30,900
basketball, underwrite a user ID for the box and for the token.

40
00:03:31,440 --> 00:03:32,910
Now it's uploading the code.

41
00:03:33,130 --> 00:03:35,760
You can see up to 100 percent.

42
00:03:38,510 --> 00:03:41,600
Once done, it will hard reset the board.

43
00:03:42,410 --> 00:03:44,240
Now you can open up the system.

44
00:03:45,950 --> 00:03:47,720
Now I will say the board from my end.

45
00:03:51,860 --> 00:03:57,620
You need to change the border it here to the elected moderate about a suitable again.

46
00:03:58,890 --> 00:04:02,280
As you can see, now, it's trying to connect to the Wi-Fi network.

47
00:04:04,500 --> 00:04:10,430
Although I find him is Ashraf on, since we are seeing dots means that it's still trying to connect

48
00:04:10,430 --> 00:04:11,430
to the Wi-Fi network.

49
00:04:12,110 --> 00:04:12,680
But.

50
00:04:13,790 --> 00:04:14,510
Till now.

51
00:04:15,810 --> 00:04:17,310
Not no connection.

52
00:04:17,730 --> 00:04:21,839
So we might have entered the wrong password.

53
00:04:23,250 --> 00:04:24,570
So we need to check that.

54
00:04:26,830 --> 00:04:32,710
OK, now, after listening to the board, Wi-Fi connected, the IP address is, as you can see, one

55
00:04:32,710 --> 00:04:36,700
hundred and two hundred sixty eight zero hundred seven.

56
00:04:42,360 --> 00:04:53,310
Now, all I need to do is simply connect the motion detector and get an onslaught of signal on the pin

57
00:04:53,550 --> 00:04:54,210
number.

58
00:04:55,460 --> 00:04:59,420
So there will appear a number twenty one.

59
00:05:00,850 --> 00:05:01,840
So let's do that.

60
00:05:03,400 --> 00:05:07,090
Now I have been 21 one connected to the motion picture.

61
00:05:07,930 --> 00:05:09,850
Let us open the cinema for one more time.

62
00:05:10,450 --> 00:05:18,100
As you can see, motion has been detected because there is a mole and so detected motion message is

63
00:05:18,100 --> 00:05:18,460
here.

64
00:05:19,090 --> 00:05:21,400
Now we need to go to our telegram.

65
00:05:23,240 --> 00:05:24,310
This is our boat.

66
00:05:24,760 --> 00:05:25,040
I've.

67
00:05:26,400 --> 00:05:30,480
So we need to scroll up to see our bottling.

68
00:05:32,270 --> 00:05:33,260
This is all about.

69
00:05:34,950 --> 00:05:36,390
And we need to start it.

70
00:05:38,850 --> 00:05:41,250
Now the board has started.

71
00:05:42,230 --> 00:05:44,420
What we need to do is simple.

72
00:05:46,160 --> 00:05:48,200
We need to reset our export.

73
00:05:54,650 --> 00:05:55,960
And to check our box.

74
00:05:57,310 --> 00:06:04,690
Now we need to make sure that we see this message motion and temperature, what started off, as you

75
00:06:04,690 --> 00:06:11,950
can see a few scrawled inside our code, you can see that we add a simple line.

76
00:06:16,470 --> 00:06:16,860
Here.

77
00:06:18,430 --> 00:06:24,670
Once we start our sport, we need to send this thought on since we are looking at this message.

78
00:06:25,630 --> 00:06:25,990
Here.

79
00:06:26,890 --> 00:06:27,190
OK.

80
00:06:27,880 --> 00:06:29,500
Not here in our boat here.

81
00:06:30,100 --> 00:06:31,010
Wash it on temperature.

82
00:06:31,030 --> 00:06:33,820
What started means that the boat is on.

83
00:06:34,540 --> 00:06:42,100
So now what we need to do is to connect the motion picture and make a thick motion, and we should receive

84
00:06:42,100 --> 00:06:42,700
a message here.

85
00:06:42,700 --> 00:06:45,820
That motion has been detected, so that's sign.

86
00:06:50,660 --> 00:06:53,720
Now we have to check the CO2 market as well.

87
00:06:54,830 --> 00:07:02,660
Now, when motion is detected, it will send a message to the theater monitor, and it will send the

88
00:07:02,660 --> 00:07:07,250
same message to our Telegram board.

89
00:07:12,850 --> 00:07:21,580
So as you can see, motion has been detected twice, so it will directly send a message to our Telegram

90
00:07:21,580 --> 00:07:21,970
bot.

91
00:07:22,600 --> 00:07:26,320
We only have to wait for few seconds for the message to revive.

92
00:07:30,360 --> 00:07:33,720
Now, as you can see, detected motion and detected motion.

93
00:07:34,470 --> 00:07:42,510
So here we received a message to our Telegram bot telling us that motion has been detected just like

94
00:07:42,510 --> 00:07:43,260
in our code.

95
00:07:43,530 --> 00:07:46,440
And this was the end of our practical testing.

96
00:07:47,010 --> 00:07:49,680
Now you can do anything with this idea.

97
00:07:49,710 --> 00:07:58,470
You can make a project that sense your temperature, motion detection, let's say light percentage in

98
00:07:58,470 --> 00:08:07,890
a room, and you can even send commands the other way around by programming your bot to send messages

99
00:08:08,220 --> 00:08:09,250
and programming you.

100
00:08:09,300 --> 00:08:15,540
He asked people to receive these messages, but this thing would be covered in a future section.

101
00:08:16,500 --> 00:08:17,670
Thanks for watching this lesson.

102
00:08:17,790 --> 00:08:21,630
As you can see here, we have everything just as in our code.

103
00:08:22,650 --> 00:08:25,560
We received a message when motion has been detected.

104
00:08:25,800 --> 00:08:27,450
This is our Telegram bot.

105
00:08:29,190 --> 00:08:32,640
If you have any question regarding anything inside the code, I'm here to help.

106
00:08:33,240 --> 00:08:33,929
Thanks for watching.

107
00:08:33,960 --> 00:08:36,480
This is Ashraf from educational engineering team.

