1
00:00:15,000 --> 00:00:25,000
Eloquence today, I will tell you how to use Blink 2.0 application to control the.

2
00:00:27,000 --> 00:00:38,000
In this video, I also sold our different problems associated with the programming related to Node MCU

3
00:00:38,000 --> 00:00:41,000
and Blink 2.0.

4
00:00:41,000 --> 00:00:50,000
So for that purpose, first, you have to create a count on blink.

5
00:00:52,000 --> 00:00:58,000
Like I just open the platform here.

6
00:00:58,000 --> 00:01:05,000
You have to first create a account or here, just click on Start free.

7
00:01:06,000 --> 00:01:08,000
I already have an account.

8
00:01:08,000 --> 00:01:11,000
I just log in or here.

9
00:01:11,000 --> 00:01:17,000
You can also create a new account when you log in or here.

10
00:01:17,000 --> 00:01:21,000
You have to just click on new template.

11
00:01:22,000 --> 00:01:24,000
Let's say I just use.

12
00:01:27,000 --> 00:01:27,000
Smart.

13
00:01:28,000 --> 00:01:32,000
Or let's see a lady on off.

14
00:01:37,000 --> 00:01:37,000
Okay.

15
00:01:38,000 --> 00:01:38,000
Over here.

16
00:01:39,000 --> 00:01:41,000
You can put any description.

17
00:01:41,000 --> 00:01:46,000
Just done it as you see over here.

18
00:01:46,000 --> 00:01:49,000
We got a lady on off here.

19
00:01:49,000 --> 00:01:50,000
You.

20
00:01:50,000 --> 00:01:57,000
You get all the details related to your hardware and connection.

21
00:01:58,000 --> 00:02:04,000
Then you just go to data stream and blink application.

22
00:02:04,000 --> 00:02:08,000
That is blink 2.0 only.

23
00:02:08,000 --> 00:02:18,000
Virtual pins are available means you have to set what should happen, and you have to read that virtual

24
00:02:18,000 --> 00:02:19,000
pin in your program.

25
00:02:19,000 --> 00:02:22,000
I also show you how we can do that.

26
00:02:23,000 --> 00:02:27,000
So first you have to create new string.

27
00:02:27,000 --> 00:02:29,000
Only virtual pins are there.

28
00:02:30,000 --> 00:02:34,000
So right now over here, you have to name it.

29
00:02:35,000 --> 00:02:37,000
Let's see a lady.

30
00:02:40,000 --> 00:02:41,000
Then over here.

31
00:02:41,000 --> 00:02:42,000
This is my opinion.

32
00:02:42,000 --> 00:02:45,000
Right now PIN number zero is selected.

33
00:02:46,000 --> 00:02:47,000
Zero is selected.

34
00:02:47,000 --> 00:02:48,000
You can select it.

35
00:02:48,000 --> 00:02:50,000
And over here we have data type.

36
00:02:51,000 --> 00:02:56,000
You can use integer double or right now I'm just using integer type.

37
00:02:57,000 --> 00:02:58,000
Just create this.

38
00:02:59,000 --> 00:03:08,000
And as you see, once green is created or you can see one virtual pin is assigned that is visio.

39
00:03:09,000 --> 00:03:17,000
Next, you have to go to your webcast board over here.

40
00:03:17,000 --> 00:03:19,000
You can drag and drop your switch.

41
00:03:20,000 --> 00:03:26,000
Freely available are switch and slider and some display like this.

42
00:03:26,000 --> 00:03:28,000
And over here it is labeled.

43
00:03:29,000 --> 00:03:32,000
And these are freely available.

44
00:03:32,000 --> 00:03:42,000
You can add as number of as which is like over here I see right now.

45
00:03:42,000 --> 00:03:48,000
So I just delete I am just using only one right now.

46
00:03:49,000 --> 00:03:55,000
So in this case, you have to just assign your data stream over here.

47
00:03:56,000 --> 00:03:57,000
Go to settings.

48
00:03:58,000 --> 00:03:59,000
This is my switch.

49
00:04:00,000 --> 00:04:01,000
You can name it.

50
00:04:03,000 --> 00:04:06,000
And over here, this is led with zero.

51
00:04:07,000 --> 00:04:08,000
That is my data stream.

52
00:04:09,000 --> 00:04:16,000
You can also put on and off label over here.

53
00:04:16,000 --> 00:04:21,000
And you can check from here like this.

54
00:04:21,000 --> 00:04:25,000
And you also hide this.

55
00:04:26,000 --> 00:04:28,000
That is your label.

56
00:04:28,000 --> 00:04:30,000
Right now, I just put a zero.

57
00:04:30,000 --> 00:04:35,000
Just saved this part from the dashboard.

58
00:04:36,000 --> 00:04:40,000
Now we just go to our code.

59
00:04:41,000 --> 00:04:44,000
So first I have to save it.

60
00:04:45,000 --> 00:04:45,000
Save?

61
00:04:45,000 --> 00:04:47,000
This is saved.

62
00:04:48,000 --> 00:04:49,000
Now just search.

63
00:04:50,000 --> 00:04:51,000
Go to search.

64
00:04:51,000 --> 00:04:52,000
Over here.

65
00:04:52,000 --> 00:04:56,000
You have to create this form template.

66
00:04:57,000 --> 00:05:00,000
Select the one off that is already created.

67
00:05:01,000 --> 00:05:04,000
Just create as you see.

68
00:05:04,000 --> 00:05:06,000
Or here you got three parts.

69
00:05:06,000 --> 00:05:07,000
That is blank.

70
00:05:07,000 --> 00:05:10,000
Template ID link device Name.

71
00:05:11,000 --> 00:05:11,000
Link.

72
00:05:11,000 --> 00:05:13,000
Authentication token.

73
00:05:13,000 --> 00:05:16,000
You require these three in your code.

74
00:05:17,000 --> 00:05:18,000
So just copy this clipboard.

75
00:05:19,000 --> 00:05:20,000
Go to the code.

76
00:05:21,000 --> 00:05:21,000
Over here.

77
00:05:21,000 --> 00:05:23,000
I just copy this.

78
00:05:25,000 --> 00:05:26,000
I just copy this.

79
00:05:26,000 --> 00:05:28,000
Remove the previous one.

80
00:05:30,000 --> 00:05:36,000
So this is from the code or here?

81
00:05:38,000 --> 00:05:40,000
This is from the code.

82
00:05:40,000 --> 00:05:45,000
So I just again, go over here.

83
00:05:45,000 --> 00:05:48,000
This is my load on off.

84
00:05:48,000 --> 00:05:51,000
And when I click on this, I got this dashboard.

85
00:05:51,000 --> 00:06:01,000
So from search, every time, if you want to work with your dashboard, so just go to search and go

86
00:06:01,000 --> 00:06:01,000
over here.

87
00:06:02,000 --> 00:06:04,000
This is my dashboard.

88
00:06:05,000 --> 00:06:06,000
So now.

89
00:06:07,000 --> 00:06:09,000
Just to go through the program.

90
00:06:09,000 --> 00:06:13,000
I just explained this in this program.

91
00:06:13,000 --> 00:06:24,000
This part comes from the dashboard or your project ID then define blink, underscore print serial,

92
00:06:24,000 --> 00:06:35,000
include your SB 826 verify library include blink simply 8266 library over here the authentication code

93
00:06:35,000 --> 00:06:41,000
and this part is your or your verify.

94
00:06:41,000 --> 00:06:44,000
This is your verify login and this is password.

95
00:06:44,000 --> 00:06:49,000
In my case, this is my login and this is my password.

96
00:06:49,000 --> 00:06:53,000
And over here this is the main code.

97
00:06:54,000 --> 00:06:56,000
This part is the main part.

98
00:06:56,000 --> 00:06:59,000
So over here, blink underscore, right.

99
00:06:59,000 --> 00:07:00,000
Virtual pin zero is selected.

100
00:07:01,000 --> 00:07:08,000
And because I'm working with integer value and value, just assign a variable.

101
00:07:08,000 --> 00:07:12,000
Right now, I'll just assign a name value.

102
00:07:12,000 --> 00:07:17,000
And over here it is equal to bottom.

103
00:07:17,000 --> 00:07:18,000
Dot is.

104
00:07:20,000 --> 00:07:21,000
As integer.

105
00:07:23,000 --> 00:07:23,000
Okay.

106
00:07:24,000 --> 00:07:32,000
And then I went, Let's see, really, if you want to check, I'll put on your serial monitor.

107
00:07:32,000 --> 00:07:39,000
Then you can use this or you can remove also just use this.

108
00:07:40,000 --> 00:07:47,000
Then if this value, this variable value that comes from v zero is equal to one.

109
00:07:47,000 --> 00:07:52,000
In that case, they still write own pin number 16.

110
00:07:53,000 --> 00:07:53,000
Hi.

111
00:07:53,000 --> 00:08:02,000
Basically, these these numbers where you can say PIN numbers comes from node MCU.

112
00:08:03,000 --> 00:08:07,000
Node node MCU.

113
00:08:08,000 --> 00:08:11,000
You know, maximum case.

114
00:08:11,000 --> 00:08:23,000
In maximum case, the users confused with these PIN numbers like in every video available on YouTube,

115
00:08:23,000 --> 00:08:29,000
they just use the 765 and the code will create some error.

116
00:08:29,000 --> 00:08:33,000
So over here, as you see, I'm just using 16.

117
00:08:33,000 --> 00:08:39,000
This is the general purpose input output number 4d04d0.

118
00:08:39,000 --> 00:08:49,000
In we have 16 number for D one pin, we have five, number 42, we have four for the three it is zero

119
00:08:49,000 --> 00:08:50,000
and before it is two.

120
00:08:50,000 --> 00:08:55,000
So like this you have to put these numbers inside your code.

121
00:08:55,000 --> 00:09:01,000
So right now I'm just using 616 that is my distal pin zero.

122
00:09:01,000 --> 00:09:12,000
So when value is equal to one it will write high on my 16th pin means they still pin zero.

123
00:09:12,000 --> 00:09:16,000
I just remove it also because it is not needed over here.

124
00:09:16,000 --> 00:09:25,000
Then if value is equal to zero, in that case it will write low on this pin zero.

125
00:09:25,000 --> 00:09:28,000
The number for this zero is 60.

126
00:09:28,000 --> 00:09:33,000
So this is the mean error available in every video.

127
00:09:34,000 --> 00:09:43,000
They didn't tell you what we have to assign over here does use D seven, d6b5 and it will create some

128
00:09:43,000 --> 00:09:44,000
error.

129
00:09:44,000 --> 00:09:50,000
And now over here we have will set up serial begin.

130
00:09:52,000 --> 00:09:55,000
This is the board rate for node MCU.

131
00:09:55,000 --> 00:10:02,000
Then blink begin or here authentication ID as ID and password.

132
00:10:02,000 --> 00:10:06,000
Then over here you have to set your pin mode right now.

133
00:10:07,000 --> 00:10:08,000
PIN more.

134
00:10:09,000 --> 00:10:14,000
That is my pin and it is working as a output.

135
00:10:14,000 --> 00:10:16,000
So this is my final code.

136
00:10:17,000 --> 00:10:22,000
Now you connect your node MCU with your PC.

137
00:10:23,000 --> 00:10:26,000
Right now I'm connecting my load MCU.

138
00:10:27,000 --> 00:10:38,000
So you have to when you are working with Node MCU, you have to add Blink Library also to your Arduino

139
00:10:38,000 --> 00:10:39,000
ID.

140
00:10:39,000 --> 00:10:44,000
So I already did that and you have to select your board.

141
00:10:44,000 --> 00:10:57,000
I select my board SB module already over here and you have to select your home port like this.

142
00:10:57,000 --> 00:11:01,000
Then just check and see.

143
00:11:14,000 --> 00:11:19,000
So I was always.

144
00:11:41,000 --> 00:11:42,000
Filing is done.

145
00:11:43,000 --> 00:11:56,000
So just download this code to your node MCU and connect a positive bin to the zero of node MCU and negative

146
00:11:56,000 --> 00:11:59,000
bin to the ground of Node MCU.

147
00:12:06,000 --> 00:12:07,000
Take some time.

148
00:12:13,000 --> 00:12:21,000
As you see right now, it is connecting 7%, 15%, 23%, 30%.

149
00:12:23,000 --> 00:12:25,000
It is 100%.

150
00:12:25,000 --> 00:12:30,000
It will ask me to hard reset your.

151
00:12:33,000 --> 00:12:34,000
Resettlement.

152
00:12:35,000 --> 00:12:36,000
Or the city.

153
00:12:36,000 --> 00:12:37,000
Where is it?

154
00:12:37,000 --> 00:12:47,000
So you just disconnect your node MCU from USB and again connect and also put reset on off.

155
00:12:48,000 --> 00:12:49,000
Once only.

156
00:12:50,000 --> 00:12:53,000
So right now you just go to your.

157
00:12:56,000 --> 00:13:02,000
Blink console and when you own it, Lady Will goes on when you're off it.

158
00:13:02,000 --> 00:13:05,000
Lady Will goes off.

159
00:13:05,000 --> 00:13:07,000
So this is for dashboard part.

160
00:13:08,000 --> 00:13:15,000
For the mobile application, you have to go to your play store and install the link application to your

161
00:13:16,000 --> 00:13:22,000
system and login your credentials.

162
00:13:22,000 --> 00:13:30,000
So over here also you have your own on off app.

163
00:13:30,000 --> 00:13:39,000
In this app, you have to just go to click on your template.

164
00:13:39,000 --> 00:13:46,000
And over here you just have a editing option in this editing option.

165
00:13:46,000 --> 00:13:55,000
Just go to a lady on Off and over here we have a gear option, and on the gear option you have to just

166
00:13:56,000 --> 00:14:05,000
add a button when you add a button to your application.

167
00:14:05,000 --> 00:14:10,000
It demands data stream that is already created.

168
00:14:10,000 --> 00:14:14,000
So select that led v zero data pin.

169
00:14:14,000 --> 00:14:19,000
Just make it in the settings push or switch.

170
00:14:19,000 --> 00:14:21,000
So I just go to switch.

171
00:14:22,000 --> 00:14:24,000
Close this back.

172
00:14:25,000 --> 00:14:31,000
And when I hit on run button from the app as you see.

173
00:14:32,000 --> 00:14:35,000
I just remove the header.

174
00:14:35,000 --> 00:14:44,000
So when I right now I'm controlling it from my mobile phone so you can see it on the dashboard also.

175
00:14:44,000 --> 00:14:47,000
It is on, off, on, off.

176
00:14:47,000 --> 00:14:50,000
And the LED also goes on and off.

177
00:14:51,000 --> 00:14:57,000
So this is forcing the lid if you want to work with multiple panes like.

178
00:14:59,000 --> 00:15:04,000
You want to control multiple relays, multiple switches.

179
00:15:04,000 --> 00:15:15,000
In that case, you have to first go to your amp plate, select this or here you have to create more

180
00:15:16,000 --> 00:15:17,000
data streams.

181
00:15:17,000 --> 00:15:26,000
So I just go to edit over here right now, create new data stream like or here I'll just use virtual

182
00:15:26,000 --> 00:15:26,000
PIN.

183
00:15:26,000 --> 00:15:36,000
In this case, my loved one is there and the pin is as you see, V zero is already used.

184
00:15:36,000 --> 00:15:39,000
I just select the one, just create it.

185
00:15:39,000 --> 00:15:43,000
So over here we have the one data stream.

186
00:15:44,000 --> 00:15:46,000
Go to web dashboard.

187
00:15:46,000 --> 00:15:53,000
Over here you can just select another switch, select data stream for it.

188
00:15:54,000 --> 00:16:00,000
So we already used select v one again, save it.

189
00:16:01,000 --> 00:16:03,000
So over here, this is my second switch.

190
00:16:03,000 --> 00:16:07,000
And in the program you just make two changes.

191
00:16:07,000 --> 00:16:12,000
First, just copy this code from here to here.

192
00:16:15,000 --> 00:16:17,000
And raised it.

193
00:16:17,000 --> 00:16:27,000
Right now we in place of zero we have we won and the value or here the variable we'll use or use.

194
00:16:27,000 --> 00:16:30,000
So I just we'll in place of this.

195
00:16:35,000 --> 00:16:40,000
And the PIN number I'm just using from the node MCU.

196
00:16:40,000 --> 00:16:51,000
Let's see right now for the d04 16 and for the one I just use five over here.

197
00:16:52,000 --> 00:16:56,000
So I just put five over here.

198
00:16:56,000 --> 00:17:06,000
So put Node over here in the second one over here to put five and four here.

199
00:17:06,000 --> 00:17:07,000
Five.

200
00:17:07,000 --> 00:17:15,000
And just add on the node copy place.

201
00:17:18,000 --> 00:17:22,000
As you see here it is five just.

202
00:17:24,000 --> 00:17:34,000
Download the code or burn the code to your node MCU and just connect your led host in another led host

203
00:17:34,000 --> 00:17:36,000
pin to your.

204
00:17:38,000 --> 00:17:39,000
D one.

205
00:17:42,000 --> 00:17:45,000
Because we use the one pin over here.

206
00:17:46,000 --> 00:17:55,000
So when it is done, you can also add on another button to your mobile application.

207
00:17:57,000 --> 00:18:01,000
So I just adding by click on plus button.

208
00:18:01,000 --> 00:18:08,000
And over here also you have to select the data stream that is our.

209
00:18:13,000 --> 00:18:18,000
The one can you read a stream is.

210
00:18:25,000 --> 00:18:27,000
Even right now it is done.

211
00:18:28,000 --> 00:18:29,000
So you have to reset.

212
00:18:32,000 --> 00:18:33,000
You have been.

213
00:18:44,000 --> 00:18:47,000
And when I just own, it will own.

214
00:18:47,000 --> 00:18:51,000
And when I just off it, we off.

215
00:18:52,000 --> 00:18:54,000
So over here we also save it.

216
00:18:55,000 --> 00:18:56,000
Right now it is not saved.

217
00:19:01,000 --> 00:19:05,000
So you have to just select the data stream.

218
00:19:08,000 --> 00:19:12,000
So as you see here, I just go to search.

219
00:19:13,000 --> 00:19:14,000
This is my.

220
00:19:17,000 --> 00:19:19,000
Control or template.

221
00:19:19,000 --> 00:19:24,000
So when I own it, my first lady goes on and I own this.

222
00:19:24,000 --> 00:19:26,000
My second lady goes on.

223
00:19:26,000 --> 00:19:30,000
And right now I'm just controlling from my mobile app.

224
00:19:30,000 --> 00:19:35,000
As you see, it is off, off, on, on.

225
00:19:35,000 --> 00:19:43,000
So this is how you can control multiple LEDs using new Blink application.

226
00:19:43,000 --> 00:19:45,000
That is blink 2.0.

227
00:19:45,000 --> 00:19:49,000
That is all about for this.

228
00:19:49,000 --> 00:19:50,000
Thank you.

