1
00:00:00,620 --> 00:00:02,300
Hello, and welcome to this new lesson.

2
00:00:03,320 --> 00:00:11,120
Now, it's time to set up the blink to monitor social values, and the first step will be installing

3
00:00:11,120 --> 00:00:13,940
the Blink app on your smartphone.

4
00:00:14,870 --> 00:00:17,780
Now go to your smartphone and go to the App Store.

5
00:00:18,170 --> 00:00:25,490
Depending on the type of smartphone that you have, that might be Google Play Store or Apple Play Store

6
00:00:25,580 --> 00:00:29,720
or App Store, Android who blink.

7
00:00:33,070 --> 00:00:34,900
As you can see, you'll get it.

8
00:00:35,620 --> 00:00:37,090
And it's the first result.

9
00:00:37,780 --> 00:00:42,700
This is our uplink and internet of Things for Arduino.

10
00:00:43,570 --> 00:00:44,830
Yes, P32.

11
00:00:45,820 --> 00:00:50,500
Now, as you can see, I already have the app, so I will flick open.

12
00:00:50,740 --> 00:00:54,670
But if you don't have it, you have to click, install or download.

13
00:00:55,330 --> 00:00:58,380
You will wait some time and you will give up.

14
00:00:58,390 --> 00:01:04,180
And as you can see from the description, this app is used to control Arduino and Raspberry Pi.

15
00:01:04,360 --> 00:01:11,050
Yes, is 266 and the SB 32 and a lot of other boards.

16
00:01:11,440 --> 00:01:18,340
It's the first and only drag and drop mobile app builder for microcontrollers and Internet of Things.

17
00:01:19,410 --> 00:01:20,290
Let's click open.

18
00:01:21,460 --> 00:01:24,280
And as you can see, you have more than one option to log in.

19
00:01:24,310 --> 00:01:26,350
You can log in if you already have an account.

20
00:01:26,800 --> 00:01:30,610
You can create an account or you can log in with your Facebook.

21
00:01:31,390 --> 00:01:41,590
Now you can create an account by clicking here and adding your email and password.

22
00:01:50,250 --> 00:01:54,330
Now, after writing your password, click Create New Account.

23
00:01:55,260 --> 00:01:56,760
It shouldn't take a lot of time.

24
00:02:00,240 --> 00:02:07,950
Creating a new account will give you a unique authentication code and will be sent to your email.

25
00:02:08,280 --> 00:02:15,680
And this is very important since we are doing this to control our now.

26
00:02:16,380 --> 00:02:23,550
Now, after creating a new account, you need to create a new project and select your hardware.

27
00:02:24,180 --> 00:02:26,580
Now click new project.

28
00:02:27,450 --> 00:02:30,240
And as you can see, you need to name your project.

29
00:02:31,170 --> 00:02:33,960
I would call it smart gardening.

30
00:02:35,700 --> 00:02:39,180
And you need to select your board and as.

31
00:02:40,550 --> 00:02:43,860
You can see you have a lot of polls that you can choose from.

32
00:02:45,630 --> 00:02:48,570
And the one that we need is the ISP.

33
00:02:49,200 --> 00:02:52,440
You have Arduino, Raspberry Pi and the other boards.

34
00:02:53,160 --> 00:02:55,590
We need ISP filter to devolved.

35
00:02:56,850 --> 00:03:00,000
And you can choose the connection type.

36
00:03:02,900 --> 00:03:05,480
As you can see here, we have Wi-Fi connection.

37
00:03:06,350 --> 00:03:09,020
And you can either choose dark or light.

38
00:03:09,050 --> 00:03:15,170
I will choose light as since it's easier on the eye, then click Create a project.

39
00:03:16,430 --> 00:03:24,710
Now, as you can see, Authentication Token was sent to my email and you can also find it by clicking

40
00:03:24,710 --> 00:03:27,530
on this icon on the bottom right corner.

41
00:03:28,220 --> 00:03:28,970
Click OK.

42
00:03:29,450 --> 00:03:31,790
And you will get it from our email.

43
00:03:31,970 --> 00:03:39,500
Now, the authentication codes are very important code that you will use to control your project.

44
00:03:40,250 --> 00:03:43,820
Now we need to create our smart guarding monitoring system.

45
00:03:43,820 --> 00:03:45,290
And so this blank.

46
00:03:46,730 --> 00:03:54,740
Now you have an empty canvas, as you can see, and we need to add four gauge widgets to monitor temperature,

47
00:03:54,770 --> 00:03:59,780
humidity, water level and soil moisture level since your readings.

48
00:04:00,470 --> 00:04:05,240
And to do that, dab on the canvas to open up the widget box.

49
00:04:05,870 --> 00:04:08,840
Now you can pick a gauge.

50
00:04:09,260 --> 00:04:15,020
As you can see, we have a lot of gauges and you need to choose one of these.

51
00:04:17,110 --> 00:04:23,230
You can choose any of them, as you can see, you have controls, we don't want peace here, we have

52
00:04:23,230 --> 00:04:30,070
this ablaze and we can choose this is the one that's called Cage.

53
00:04:31,000 --> 00:04:38,440
And when you choose it, as you can see, you can control the size of the gauge by dragging and dropping

54
00:04:38,800 --> 00:04:41,110
using these four points in the corners.

55
00:04:42,130 --> 00:04:47,230
And when you tap on the widget, you can change its settings.

56
00:04:47,860 --> 00:04:54,430
So if you clicked once you can see that you can change the name, size, text size and color of the

57
00:04:54,430 --> 00:04:54,760
gauge.

58
00:04:55,450 --> 00:05:06,100
Now you can change the name and you can change the range and you can change the font, size and text.

59
00:05:06,100 --> 00:05:08,020
As you can see, we need a large font size.

60
00:05:08,530 --> 00:05:10,420
We can choose this color.

61
00:05:11,170 --> 00:05:12,070
The blue one.

62
00:05:12,820 --> 00:05:16,090
And you can choose the refresh interval.

63
00:05:16,750 --> 00:05:21,520
Now, the two most important things are the pen that refresh rate.

64
00:05:22,150 --> 00:05:29,350
You need to set a virtual pen for each case with two seconds or three seconds or six seconds of refresh

65
00:05:29,350 --> 00:05:29,740
time.

66
00:05:30,430 --> 00:05:36,760
And since we chose three seconds for the temperature and humidity, as you can see, we don't have it

67
00:05:36,760 --> 00:05:44,190
as an option here, so we will change it in the code to two seconds and click OK and the code to match

68
00:05:44,200 --> 00:05:44,620
that.

69
00:05:45,640 --> 00:05:52,870
Now, two seconds and the next step is selecting the pin number.

70
00:05:53,530 --> 00:06:00,790
Now, when you click the pin number, as you can see, OK, click the pen when you click on the pin.

71
00:06:01,630 --> 00:06:09,130
You can see that we have V, which is basically our virtual pen, and we know for sure that for our

72
00:06:09,970 --> 00:06:10,690
temperature.

73
00:06:13,070 --> 00:06:21,850
And the humidity sensor, we are getting these readings in the cold, if you went back to our code,

74
00:06:21,860 --> 00:06:29,660
you can see that the temperature is v fought, so changed this to be fought.

75
00:06:32,110 --> 00:06:37,210
And as you can see, you can change the label, but we don't want to do that.

76
00:06:37,480 --> 00:06:44,560
And here we have the audience now after changing the refresh rate and the pin number.

77
00:06:44,980 --> 00:06:48,070
You can go back to your canvas and make it look.

78
00:06:50,260 --> 00:06:51,100
The way you want.

79
00:06:51,190 --> 00:06:52,210
So click OK.

80
00:06:52,660 --> 00:06:56,320
And as you can see here, we have temperature before and it's in blue.

81
00:06:57,370 --> 00:06:57,940
You can.

82
00:07:00,640 --> 00:07:04,300
Move it anywhere, and you can't change its size.

83
00:07:05,230 --> 00:07:10,120
No, the temperature here, you can change the size.

84
00:07:11,890 --> 00:07:13,420
Now we need another gauge

85
00:07:16,000 --> 00:07:22,510
for the humidity and since we have for, let's minimize this and have them next to each other.

86
00:07:25,830 --> 00:07:27,510
Now, let's move this one.

87
00:07:29,440 --> 00:07:30,040
Up here.

88
00:07:31,470 --> 00:07:33,360
And this one, let's call it.

89
00:07:35,920 --> 00:07:36,640
Humidity.

90
00:07:38,970 --> 00:07:48,450
And the refresh rate to two seconds make the font size large change the number to be five since we have

91
00:07:48,540 --> 00:07:49,050
five.

92
00:07:49,650 --> 00:07:53,730
And as you can see, when you click here, you can see that we fall is busy.

93
00:07:55,160 --> 00:07:57,620
So choose the five.

94
00:07:59,160 --> 00:08:01,050
We fought as busy because we already used it.

95
00:08:01,890 --> 00:08:05,660
Now, as you can see, this is a look range from zero to 1023.

96
00:08:05,670 --> 00:08:07,110
We can change that later.

97
00:08:07,470 --> 00:08:13,650
But for now, humidity at five, just like in our code and the refresh rate is two seconds.

98
00:08:14,280 --> 00:08:16,560
Now we need two mortgages.

99
00:08:19,190 --> 00:08:27,170
Let's add our water level gauge, and let's add another gauge for the soil moisture.

100
00:08:27,600 --> 00:08:29,230
Now this one is for water.

101
00:08:31,990 --> 00:08:32,470
Live in.

102
00:08:34,580 --> 00:08:38,600
And we know for sure that the water level is.

103
00:08:40,720 --> 00:08:41,530
V7.

104
00:08:48,670 --> 00:08:51,790
Gave his son now.

105
00:08:53,950 --> 00:08:59,290
We thought that if we had five seconds, then click, OK.

106
00:08:59,350 --> 00:09:00,580
You can change the colors.

107
00:09:02,120 --> 00:09:05,780
Said it okay, since it's worthless, make it blue.

108
00:09:07,440 --> 00:09:11,160
Now, the last one is for a sovereign.

109
00:09:13,480 --> 00:09:15,430
And it's V6.

110
00:09:24,840 --> 00:09:31,860
No question, the coloring to orange and the refresh rate of five.

111
00:09:36,500 --> 00:09:37,040
That's it.

112
00:09:38,250 --> 00:09:44,930
Now let's click OK and make sure that we have everything correctly before we fight for the temperature

113
00:09:44,930 --> 00:09:50,060
and humidity, V7 and V6 for the water level and soil moisture.

114
00:09:50,600 --> 00:09:59,500
Now the next step, we need to add a button widget to control literally now.

115
00:10:00,410 --> 00:10:03,650
Click here, go up and choose button.

116
00:10:04,490 --> 00:10:05,780
And this is our baton.

117
00:10:08,480 --> 00:10:11,230
Flip once unchallenged, the baton pin.

118
00:10:12,800 --> 00:10:18,050
Now, as you can see here, you can choose a digital or virtual baton.

119
00:10:18,800 --> 00:10:19,340
Now.

120
00:10:20,890 --> 00:10:26,380
Change the name of the button first and call it viscerally.

121
00:10:29,520 --> 00:10:30,120
Control.

122
00:10:32,220 --> 00:10:38,430
Now, after changing the name, you can't change the button type and the bin that bin is does general

123
00:10:38,430 --> 00:10:47,040
purpose input output bin SB 32 worthily is connected, and we already mentioned that it is connected

124
00:10:47,610 --> 00:10:51,510
to PIN number 22 d 22.

125
00:10:52,350 --> 00:11:01,680
Now we have to send this, so we have to go to the pen and choose AGP 22.

126
00:11:04,650 --> 00:11:09,420
As you can see here now, you can choose either switch or push button.

127
00:11:09,910 --> 00:11:10,960
I will choose Switch.

128
00:11:12,150 --> 00:11:14,220
And that's it.

129
00:11:16,350 --> 00:11:17,370
Now click OK.

130
00:11:18,360 --> 00:11:24,690
Now the blink, we can't change, okay, can change this color.

131
00:11:25,350 --> 00:11:26,880
Now the blink is ready.

132
00:11:27,210 --> 00:11:35,640
We have four indicators and one button to control the relay and everything is chosen correctly.

133
00:11:36,210 --> 00:11:42,660
That's it for the uplink set up, and the next plus one will take the authentication code and we will

134
00:11:42,660 --> 00:11:52,120
insert inside our yes P32 code, and we will add the Wi-Fi and name and password to our ISP hooked to

135
00:11:52,120 --> 00:11:59,400
a bar code, and we will upload the Qatar ISP board so that we can start controlling and monitoring

136
00:11:59,400 --> 00:11:59,820
this.

137
00:12:00,510 --> 00:12:07,290
As you can see, that is around, but on the right to bright side, once you click on it, it will start

138
00:12:07,290 --> 00:12:12,900
trying to connect to your ISP, and if it is connected online, you will get the readings.

139
00:12:13,410 --> 00:12:14,730
Thanks for watching this lesson.

140
00:12:14,850 --> 00:12:17,880
This is Ashraf functional engineering team.
