1
00:00:09,000 --> 00:00:10,000
Hello friends.

2
00:00:10,000 --> 00:00:16,000
Today I will tell you how to control eight devices.

3
00:00:17,000 --> 00:00:23,000
Total number of eight devices using ESP 8266 12 E.

4
00:00:24,000 --> 00:00:31,000
So for that purpose I have a 12 E board node MCU 8266.

5
00:00:31,000 --> 00:00:38,000
As you see over here, I just connected all the digital pin total number of eight digital pins I just

6
00:00:38,000 --> 00:00:40,000
connected with the LEDs.

7
00:00:40,000 --> 00:00:47,000
This yellow one is my ground and these are my positive signal from digital pins.

8
00:00:47,000 --> 00:00:49,000
Different digital pins.

9
00:00:49,000 --> 00:00:59,000
So today I just show you step by step steps how to control your devices using ESP 8266.

10
00:00:59,000 --> 00:01:03,000
So for that purpose I just go to Blink Dashboard.

11
00:01:04,000 --> 00:01:08,000
I just log in over here right now.

12
00:01:08,000 --> 00:01:12,000
As you see this is the first dashboard.

13
00:01:12,000 --> 00:01:17,000
So you need to go to developer John.

14
00:01:18,000 --> 00:01:22,000
Over here in the developer zone you just create new template.

15
00:01:23,000 --> 00:01:30,000
So I just put it device any name device control.

16
00:01:31,000 --> 00:01:34,000
So I just put device control eight over here.

17
00:01:35,000 --> 00:01:47,000
Save it right now as you see over here this is my blink template ID and this is my blink template name

18
00:01:47,000 --> 00:01:48,000
device control eight.

19
00:01:49,000 --> 00:01:53,000
So now you need to go to data stream.

20
00:01:53,000 --> 00:01:57,000
Over here I just create data streams.

21
00:01:57,000 --> 00:02:05,000
So in this case I just create total number of eight data streams.

22
00:02:05,000 --> 00:02:10,000
So as you see integer 0V0 just create it.

23
00:02:11,000 --> 00:02:13,000
Now new data stream.

24
00:02:13,000 --> 00:02:23,000
Create another virtual pin v one over here another pin v two over here.

25
00:02:23,000 --> 00:02:27,000
Let's check how many free switches are there.

26
00:02:27,000 --> 00:02:31,000
So virtual pin three over here.

27
00:02:32,000 --> 00:02:36,000
So you just need to create these data streams.

28
00:02:36,000 --> 00:02:44,000
In the case of blink console you just work with virtual pins only.

29
00:02:44,000 --> 00:02:46,000
You need not to create digital pin.

30
00:02:46,000 --> 00:02:49,000
You just create virtual pin over here.

31
00:02:50,000 --> 00:02:51,000
Just create.

32
00:02:53,000 --> 00:02:55,000
So as it shows me.

33
00:02:55,000 --> 00:02:58,000
so more than five.

34
00:02:58,000 --> 00:03:01,000
It just asked me to create upgradation.

35
00:03:01,000 --> 00:03:05,000
So right now we just go with only five okay.

36
00:03:05,000 --> 00:03:13,000
So right now five virtual pins are there as you see 12345.

37
00:03:13,000 --> 00:03:15,000
So just save this.

38
00:03:18,000 --> 00:03:25,000
Now you just go to again web dev dashboard over here.

39
00:03:25,000 --> 00:03:26,000
This is my home.

40
00:03:26,000 --> 00:03:28,000
As you see over here.

41
00:03:28,000 --> 00:03:30,000
This is my data streams right now.

42
00:03:30,000 --> 00:03:32,000
Total five data streams are there.

43
00:03:32,000 --> 00:03:34,000
Now I just go to web dashboard.

44
00:03:35,000 --> 00:03:41,000
So in the web dashboard you just create your own dashboard.

45
00:03:42,000 --> 00:03:50,000
So as you see over here V0V1V234 are there.

46
00:03:51,000 --> 00:03:52,000
Now go to web dashboard.

47
00:03:52,000 --> 00:03:56,000
This is how your dashboard will create.

48
00:03:56,000 --> 00:04:00,000
You just go to edit over here.

49
00:04:00,000 --> 00:04:02,000
This is your online dashboard.

50
00:04:02,000 --> 00:04:06,000
So you just create switch buttons over here.

51
00:04:06,000 --> 00:04:14,000
Drag and drop first second third.

52
00:04:17,000 --> 00:04:18,000
Fourth.

53
00:04:23,000 --> 00:04:26,000
And this is fifth one okay.

54
00:04:26,000 --> 00:04:33,000
So total five dashboard I have right now just create data stream for it.

55
00:04:33,000 --> 00:04:36,000
So this is V zero.

56
00:04:37,000 --> 00:04:41,000
Save it again.

57
00:04:41,000 --> 00:04:43,000
Click on settings v one.

58
00:04:44,000 --> 00:04:47,000
Save it v two.

59
00:04:49,000 --> 00:04:52,000
Save it v three V3.

60
00:04:52,000 --> 00:04:56,000
I'm just using virtual pens right now.

61
00:04:56,000 --> 00:05:00,000
So over here, this is my last virtual pen.

62
00:05:00,000 --> 00:05:01,000
Save it.

63
00:05:01,000 --> 00:05:04,000
So you just drag and drop over here.

64
00:05:05,000 --> 00:05:08,000
So just drag this in the same line.

65
00:05:09,000 --> 00:05:11,000
Let's check this.

66
00:05:13,000 --> 00:05:18,000
It is not placing over here.

67
00:05:18,000 --> 00:05:20,000
So right now I just put over here.

68
00:05:20,000 --> 00:05:21,000
So right now.

69
00:05:21,000 --> 00:05:22,000
Dashboard is ready.

70
00:05:22,000 --> 00:05:23,000
Online dashboard is ready.

71
00:05:23,000 --> 00:05:24,000
Save it.

72
00:05:25,000 --> 00:05:29,000
So as you see it looks like this.

73
00:05:29,000 --> 00:05:33,000
So now you just go to again Developer Zone.

74
00:05:34,000 --> 00:05:36,000
This is my device control eight.

75
00:05:38,000 --> 00:05:39,000
Okay.

76
00:05:39,000 --> 00:05:41,000
So this is my template ID.

77
00:05:41,000 --> 00:05:44,000
This is my blank template device name.

78
00:05:44,000 --> 00:05:51,000
And now you just go to device new device from template.

79
00:05:51,000 --> 00:05:56,000
You just need to select device control over here create.

80
00:05:57,000 --> 00:06:04,000
So right now your this is your template ID.

81
00:06:04,000 --> 00:06:05,000
This is your template name.

82
00:06:05,000 --> 00:06:11,000
And this is the important authentication token you require in your program.

83
00:06:11,000 --> 00:06:13,000
So I just copy it.

84
00:06:13,000 --> 00:06:17,000
Now we just go to the code.

85
00:06:18,000 --> 00:06:22,000
As you see I just place this code in the.

86
00:06:24,000 --> 00:06:25,000
Description box.

87
00:06:26,000 --> 00:06:30,000
As you see over here I just need to change this code.

88
00:06:32,000 --> 00:06:34,000
So right now device name is there.

89
00:06:35,000 --> 00:06:45,000
Authentication token is there I need this id template id I just require for that I just go to templates

90
00:06:46,000 --> 00:06:46,000
then.

91
00:06:47,000 --> 00:06:50,000
And over here You just copy this one.

92
00:06:50,000 --> 00:06:51,000
You need to.

93
00:06:52,000 --> 00:06:54,000
You just need these three things.

94
00:06:54,000 --> 00:06:57,000
While programming, ESP eight two, six six.

95
00:06:57,000 --> 00:06:59,000
Just remove it.

96
00:07:00,000 --> 00:07:05,000
So as you see before template ID is there template name is there.

97
00:07:05,000 --> 00:07:06,000
Authentication token is there.

98
00:07:06,000 --> 00:07:11,000
So now this is my ESP 8266 code.

99
00:07:11,000 --> 00:07:14,000
This is my Wi-Fi name.

100
00:07:14,000 --> 00:07:16,000
Or you can say your hotspot name.

101
00:07:16,000 --> 00:07:18,000
This is the password.

102
00:07:18,000 --> 00:07:19,000
This is Sid.

103
00:07:19,000 --> 00:07:20,000
This is the password.

104
00:07:20,000 --> 00:07:23,000
Now we just go to the program.

105
00:07:23,000 --> 00:07:25,000
So in the program.

106
00:07:25,000 --> 00:07:29,000
So we just use virtual pin zero.

107
00:07:29,000 --> 00:07:34,000
And over here I just create a variable value.

108
00:07:34,000 --> 00:07:38,000
And it just read the value from this.

109
00:07:38,000 --> 00:07:41,000
And it will print this value over the serial monitor.

110
00:07:41,000 --> 00:07:52,000
And if the value is equal to one it just write two over it just right high over pin two or print LED

111
00:07:52,000 --> 00:07:53,000
on.

112
00:07:53,000 --> 00:07:53,000
Okay.

113
00:07:53,000 --> 00:07:58,000
If you just you can also remove these commands.

114
00:07:58,000 --> 00:08:00,000
These are extra commands.

115
00:08:00,000 --> 00:08:05,000
So now right now I just show you which one is pin number two.

116
00:08:05,000 --> 00:08:16,000
So you just need to go to the pin diagram over here on the ESP you just see d0 d1 d2 d3, d4.

117
00:08:16,000 --> 00:08:28,000
These are actual digital pins but it's programming name is Gpio 16 for d0, Gpio five for d1, Gpio

118
00:08:28,000 --> 00:08:34,000
for general purpose input output pin 442.

119
00:08:34,000 --> 00:08:37,000
So right now I am just using pin number two.

120
00:08:37,000 --> 00:08:40,000
So it is four four.

121
00:08:40,000 --> 00:08:48,000
So because I have total five switch buttons five Switch on buttons in my free version.

122
00:08:48,000 --> 00:08:51,000
So I just use all these five cases.

123
00:08:51,000 --> 00:08:55,000
So just go to the code over here.

124
00:08:55,000 --> 00:08:57,000
You just put 16 over here.

125
00:08:58,000 --> 00:09:05,000
So this is my D0 pin on the board okay 16 is D0.

126
00:09:05,000 --> 00:09:10,000
So again over here you just put 16 over here.

127
00:09:10,000 --> 00:09:14,000
Now you just set up in the serial.begin.

128
00:09:14,000 --> 00:09:22,000
The baud rate is 115200 blink dot begin authentication id Ssid and password.

129
00:09:22,000 --> 00:09:23,000
It just required.

130
00:09:23,000 --> 00:09:28,000
And over here pin mode is 16 and output.

131
00:09:28,000 --> 00:09:32,000
So now you just need to copy this code.

132
00:09:35,000 --> 00:09:44,000
Five four times ctrl c I just copy this again and again.

133
00:09:48,000 --> 00:09:49,000
So now.

134
00:09:52,000 --> 00:09:53,000
Just copy this.

135
00:09:57,000 --> 00:10:03,000
So now we have virtual pin zero.

136
00:10:03,000 --> 00:10:06,000
Now over here we have virtual pin one.

137
00:10:06,000 --> 00:10:09,000
So another variable value one.

138
00:10:10,000 --> 00:10:13,000
Just make it value one over here.

139
00:10:14,000 --> 00:10:21,000
Now go to the pin diagram over here I just use pin number 541.

140
00:10:22,000 --> 00:10:27,000
Pin number five in number case of 16 I just put five over here.

141
00:10:28,000 --> 00:10:30,000
Put five over here.

142
00:10:30,000 --> 00:10:34,000
So over here again value one.

143
00:10:34,000 --> 00:10:35,000
And over here value one.

144
00:10:35,000 --> 00:10:39,000
Variable name should be value one.

145
00:10:40,000 --> 00:10:45,000
Now over here in this case, my data stream is v2.

146
00:10:46,000 --> 00:10:50,000
So over here the new variable name is value two.

147
00:10:51,000 --> 00:10:51,000
Value two.

148
00:10:52,000 --> 00:10:54,000
Again over here value two.

149
00:10:57,000 --> 00:11:00,000
And over here again variable name is value two.

150
00:11:01,000 --> 00:11:10,000
So now in the in diagram I just use d2 digital pin d2 and its name is pin number four.

151
00:11:10,000 --> 00:11:14,000
So just go to code put four over here.

152
00:11:15,000 --> 00:11:18,000
Again put four over here.

153
00:11:19,000 --> 00:11:23,000
So now I just go to virtual pin number three.

154
00:11:25,000 --> 00:11:26,000
Pin number three.

155
00:11:26,000 --> 00:11:31,000
And variable name is value three again.

156
00:11:31,000 --> 00:11:34,000
Over here I just put value three.

157
00:11:38,000 --> 00:11:41,000
Again value three Over here.

158
00:11:41,000 --> 00:11:42,000
Value three.

159
00:11:42,000 --> 00:11:44,000
So go to the pin diagram.

160
00:11:44,000 --> 00:11:50,000
So I just use the three pin and its name is Gpio zero.

161
00:11:51,000 --> 00:11:56,000
So I just use pin number zero in place of 16 over here.

162
00:11:57,000 --> 00:11:59,000
Put zero over here.

163
00:11:59,000 --> 00:12:01,000
Now this is my last pin.

164
00:12:01,000 --> 00:12:06,000
That is d v for virtual pin number four.

165
00:12:07,000 --> 00:12:13,000
So just put over here and the variable name is again four.

166
00:12:14,000 --> 00:12:21,000
Over here I just put 444.

167
00:12:21,000 --> 00:12:26,000
So now I just go to the diagram and the pin number is D four.

168
00:12:26,000 --> 00:12:30,000
And it's virtual actual name for the programming is Gpio two.

169
00:12:30,000 --> 00:12:33,000
So I just put two in place of 16.

170
00:12:34,000 --> 00:12:39,000
So two over here and two over here.

171
00:12:39,000 --> 00:12:42,000
Now the code is nearly ready.

172
00:12:42,000 --> 00:12:48,000
So over here, as you see, I just use

173
00:12:49,000 --> 00:12:59,000
V0V0, virtual pin zero, virtual pin one, virtual pin two, virtual pin three virtual pin four.

174
00:12:59,000 --> 00:12:59,000
Already.

175
00:12:59,000 --> 00:13:03,000
This is extra, so I just delete this one.

176
00:13:05,000 --> 00:13:10,000
So now over here in the void setup I just use different pins.

177
00:13:10,000 --> 00:13:12,000
So copy this.

178
00:13:14,000 --> 00:13:18,000
Paste this five times.

179
00:13:18,000 --> 00:13:23,000
So I just use pin number 16.

180
00:13:23,000 --> 00:13:28,000
Pin number five then pin number four.

181
00:13:28,000 --> 00:13:30,000
Then pin number zero.

182
00:13:30,000 --> 00:13:32,000
And then pin number two.

183
00:13:32,000 --> 00:13:38,000
You can also check from here 16 5402 16.

184
00:13:38,000 --> 00:13:40,000
5402.

185
00:13:40,000 --> 00:13:42,000
So you just need to change.

186
00:13:42,000 --> 00:13:43,000
16.

187
00:13:44,000 --> 00:13:45,000
Five.

188
00:13:47,000 --> 00:13:48,000
Four.

189
00:13:50,000 --> 00:13:53,000
Zero and two.

190
00:13:54,000 --> 00:13:56,000
These are my digital pins.

191
00:13:56,000 --> 00:13:57,000
And they are.

192
00:13:57,000 --> 00:13:59,000
These are configured as output pins.

193
00:13:59,000 --> 00:14:02,000
Now the code is ready.

194
00:14:02,000 --> 00:14:05,000
Programming code is ready for first time users.

195
00:14:05,000 --> 00:14:08,000
You just need to install Arduino.

196
00:14:08,000 --> 00:14:14,000
To install ESP program you just go to Board manager.

197
00:14:15,000 --> 00:14:22,000
So first in from the board manager you just need to go to preferences.

198
00:14:22,000 --> 00:14:26,000
Over here you just put this additional board manager URL.

199
00:14:26,000 --> 00:14:31,000
I just put this into the description box.

200
00:14:31,000 --> 00:14:34,000
Also you just need to put this one.

201
00:14:34,000 --> 00:14:41,000
Otherwise you didn't get your ESP boards app, so just close this.

202
00:14:41,000 --> 00:14:46,000
Now just go to the board manager over here.

203
00:14:46,000 --> 00:14:50,000
You just put ESP 8266.

204
00:14:50,000 --> 00:14:53,000
So as you see it is already installed in my system.

205
00:14:54,000 --> 00:15:03,000
There are so many boards available like ESP, Arduino, AVR boards are there ESP 32 boards are there.

206
00:15:03,000 --> 00:15:09,000
It is also installed in my system ESP 32 boards by this another.

207
00:15:09,000 --> 00:15:13,000
There is another version so you just need to install this one.

208
00:15:13,000 --> 00:15:16,000
So again I just remove it.

209
00:15:16,000 --> 00:15:21,000
So you just need to go to tools over here in the boards.

210
00:15:21,000 --> 00:15:22,000
Just go to ESP.

211
00:15:22,000 --> 00:15:30,000
And over here you just need to select node MCU 1.0 ESP 12 E module.

212
00:15:30,000 --> 00:15:35,000
First task is this and the second task, you just need to select the home port.

213
00:15:36,000 --> 00:15:40,000
Right now home port is 22 for my case.

214
00:15:40,000 --> 00:15:40,000
Okay.

215
00:15:40,000 --> 00:15:42,000
So I just select this.

216
00:15:42,000 --> 00:15:44,000
So my code is ready.

217
00:15:44,000 --> 00:15:47,000
I just need to upload this code.

218
00:15:49,000 --> 00:15:51,000
Right now it is uploading.

219
00:15:52,000 --> 00:15:56,000
So your hotspot should be on or your Wi-Fi should be on.

220
00:15:56,000 --> 00:15:58,000
In my case it is.

221
00:15:58,000 --> 00:16:06,000
The name is air 32 L and the password is Kanika at the rate 0304.

222
00:16:07,000 --> 00:16:08,000
It is very important.

223
00:16:10,000 --> 00:16:12,000
So right now it is uploading the code.

224
00:16:22,000 --> 00:16:25,000
As you see right now it is uploading.

225
00:16:32,000 --> 00:16:33,000
40%.

226
00:16:33,000 --> 00:16:34,000
53%.

227
00:16:34,000 --> 00:16:36,000
61%.

228
00:16:36,000 --> 00:16:42,000
It is writing the code inside the node MCU ESP 8266.

229
00:16:43,000 --> 00:16:46,000
So it required hard reset.

230
00:16:47,000 --> 00:16:51,000
So you just need to put hard reset.

231
00:16:51,000 --> 00:16:59,000
So as you see over here, the code is inside the node MCU.

232
00:16:59,000 --> 00:17:02,000
So right now I just go to the dashboard.

233
00:17:02,000 --> 00:17:04,000
Let's check what happened.

234
00:17:05,000 --> 00:17:09,000
Devices in the device control.

235
00:17:10,000 --> 00:17:11,000
Let's check what happened.

236
00:17:12,000 --> 00:17:13,000
Turn on v0.

237
00:17:16,000 --> 00:17:18,000
V1 is on.

238
00:17:19,000 --> 00:17:20,000
V2 is on.

239
00:17:21,000 --> 00:17:23,000
V3 is on.

240
00:17:23,000 --> 00:17:26,000
V4 is not working.

241
00:17:27,000 --> 00:17:28,000
V4 is on.

242
00:17:28,000 --> 00:17:29,000
So as you see.

243
00:17:29,000 --> 00:17:30,000
Total number.

244
00:17:30,000 --> 00:17:31,000
These are extra.

245
00:17:31,000 --> 00:17:44,000
I just remove these right now because I just control only five devices using free version.

246
00:17:44,000 --> 00:17:47,000
So this is from the dashboard.

247
00:17:47,000 --> 00:17:49,000
You can control these devices.

248
00:17:50,000 --> 00:17:54,000
So now I just show you how to control using app.

249
00:17:54,000 --> 00:17:57,000
So in the Play Store.

250
00:17:58,000 --> 00:18:06,000
So as you see over here in the Play Store you just search for blink.

251
00:18:11,000 --> 00:18:12,000
Blink IoT.

252
00:18:13,000 --> 00:18:14,000
So this is the app.

253
00:18:14,000 --> 00:18:17,000
You just install it right now.

254
00:18:17,000 --> 00:18:21,000
It is already in my mobile phone.

255
00:18:21,000 --> 00:18:23,000
So you just log in.

256
00:18:23,000 --> 00:18:26,000
I just log out first.

257
00:18:27,000 --> 00:18:28,000
I just show you.

258
00:18:28,000 --> 00:18:29,000
So you just log in.

259
00:18:33,000 --> 00:18:36,000
So over here I just put.

260
00:18:40,000 --> 00:18:42,000
The password.

261
00:18:46,000 --> 00:18:50,000
So I just login into my system.

262
00:18:51,000 --> 00:18:54,000
As you see device control is there.

263
00:18:55,000 --> 00:18:57,000
You just open it.

264
00:18:57,000 --> 00:19:01,000
So click on developer mode.

265
00:19:01,000 --> 00:19:05,000
You just need to add switches over here.

266
00:19:05,000 --> 00:19:13,000
Just as you see right now in the free version only five buttons are there.

267
00:19:13,000 --> 00:19:16,000
So I just click over here.

268
00:19:16,000 --> 00:19:23,000
So you just need to put these button like this.

269
00:19:28,000 --> 00:19:32,000
So I just put over here.

270
00:19:32,000 --> 00:19:36,000
So right now these are my total five buttons.

271
00:19:36,000 --> 00:19:40,000
You just need to set the data stream for it.

272
00:19:40,000 --> 00:19:46,000
So this is my V0I just make it switch type.

273
00:19:46,000 --> 00:19:52,000
If you just make it push type you just need to click over it for a while.

274
00:19:52,000 --> 00:19:56,000
Right now this is my v one.

275
00:19:56,000 --> 00:19:58,000
Again make it switch type.

276
00:19:59,000 --> 00:20:03,000
Next my data stream is v two.

277
00:20:03,000 --> 00:20:07,000
Again, make it switch type over here.

278
00:20:10,000 --> 00:20:12,000
My data stream is v three.

279
00:20:13,000 --> 00:20:18,000
Now this is my last data stream v four make it switch type.

280
00:20:18,000 --> 00:20:23,000
So you just right now my app.

281
00:20:25,000 --> 00:20:30,000
Is also ready, so just own it.

282
00:20:30,000 --> 00:20:42,000
As you see on the dashboard web dashboard it is on second LED also on third, LED fourth, fifth.

283
00:20:42,000 --> 00:20:48,000
So this is how you can control it depends on your internet speed.

284
00:20:49,000 --> 00:20:52,000
You can control your devices.

285
00:20:52,000 --> 00:21:00,000
Right now I just control total number of five devices using my ESp8266.

286
00:21:00,000 --> 00:21:04,000
So this is all about today's lecture.

287
00:21:05,000 --> 00:21:06,000
Thank you all.

