Hello friends.
Today I will tell you how to control eight devices.
Total number of eight devices using ESP 8266 12 E.
So for that purpose I have a 12 E board node MCU 8266.
As you see over here, I just connected all the digital pin total number of eight digital pins I just
connected with the LEDs.
This yellow one is my ground and these are my positive signal from digital pins.
Different digital pins.
So today I just show you step by step steps how to control your devices using ESP 8266.
So for that purpose I just go to Blink Dashboard.
I just log in over here right now.
As you see this is the first dashboard.
So you need to go to developer John.
Over here in the developer zone you just create new template.
So I just put it device any name device control.
So I just put device control eight over here.
Save it right now as you see over here this is my blink template ID and this is my blink template name
device control eight.
So now you need to go to data stream.
Over here I just create data streams.
So in this case I just create total number of eight data streams.
So as you see integer 0V0 just create it.
Now new data stream.
Create another virtual pin v one over here another pin v two over here.
Let's check how many free switches are there.
So virtual pin three over here.
So you just need to create these data streams.
In the case of blink console you just work with virtual pins only.
You need not to create digital pin.
You just create virtual pin over here.
Just create.
So as it shows me.
so more than five.
It just asked me to create upgradation.
So right now we just go with only five okay.
So right now five virtual pins are there as you see 12345.
So just save this.
Now you just go to again web dev dashboard over here.
This is my home.
As you see over here.
This is my data streams right now.
Total five data streams are there.
Now I just go to web dashboard.
So in the web dashboard you just create your own dashboard.
So as you see over here V0V1V234 are there.
Now go to web dashboard.
This is how your dashboard will create.
You just go to edit over here.
This is your online dashboard.
So you just create switch buttons over here.
Drag and drop first second third.
Fourth.
And this is fifth one okay.
So total five dashboard I have right now just create data stream for it.
So this is V zero.
Save it again.
Click on settings v one.
Save it v two.
Save it v three V3.
I'm just using virtual pens right now.
So over here, this is my last virtual pen.
Save it.
So you just drag and drop over here.
So just drag this in the same line.
Let's check this.
It is not placing over here.
So right now I just put over here.
So right now.
Dashboard is ready.
Online dashboard is ready.
Save it.
So as you see it looks like this.
So now you just go to again Developer Zone.
This is my device control eight.
Okay.
So this is my template ID.
This is my blank template device name.
And now you just go to device new device from template.
You just need to select device control over here create.
So right now your this is your template ID.
This is your template name.
And this is the important authentication token you require in your program.
So I just copy it.
Now we just go to the code.
As you see I just place this code in the.
Description box.
As you see over here I just need to change this code.
So right now device name is there.
Authentication token is there I need this id template id I just require for that I just go to templates
then.
And over here You just copy this one.
You need to.
You just need these three things.
While programming, ESP eight two, six six.
Just remove it.
So as you see before template ID is there template name is there.
Authentication token is there.
So now this is my ESP 8266 code.
This is my Wi-Fi name.
Or you can say your hotspot name.
This is the password.
This is Sid.
This is the password.
Now we just go to the program.
So in the program.
So we just use virtual pin zero.
And over here I just create a variable value.
And it just read the value from this.
And it will print this value over the serial monitor.
And if the value is equal to one it just write two over it just right high over pin two or print LED
on.
Okay.
If you just you can also remove these commands.
These are extra commands.
So now right now I just show you which one is pin number two.
So you just need to go to the pin diagram over here on the ESP you just see d0 d1 d2 d3, d4.
These are actual digital pins but it's programming name is Gpio 16 for d0, Gpio five for d1, Gpio
for general purpose input output pin 442.
So right now I am just using pin number two.
So it is four four.
So because I have total five switch buttons five Switch on buttons in my free version.
So I just use all these five cases.
So just go to the code over here.
You just put 16 over here.
So this is my D0 pin on the board okay 16 is D0.
So again over here you just put 16 over here.
Now you just set up in the serial.begin.
The baud rate is 115200 blink dot begin authentication id Ssid and password.
It just required.
And over here pin mode is 16 and output.
So now you just need to copy this code.
Five four times ctrl c I just copy this again and again.
So now.
Just copy this.
So now we have virtual pin zero.
Now over here we have virtual pin one.
So another variable value one.
Just make it value one over here.
Now go to the pin diagram over here I just use pin number 541.
Pin number five in number case of 16 I just put five over here.
Put five over here.
So over here again value one.
And over here value one.
Variable name should be value one.
Now over here in this case, my data stream is v2.
So over here the new variable name is value two.
Value two.
Again over here value two.
And over here again variable name is value two.
So now in the in diagram I just use d2 digital pin d2 and its name is pin number four.
So just go to code put four over here.
Again put four over here.
So now I just go to virtual pin number three.
Pin number three.
And variable name is value three again.
Over here I just put value three.
Again value three Over here.
Value three.
So go to the pin diagram.
So I just use the three pin and its name is Gpio zero.
So I just use pin number zero in place of 16 over here.
Put zero over here.
Now this is my last pin.
That is d v for virtual pin number four.
So just put over here and the variable name is again four.
Over here I just put 444.
So now I just go to the diagram and the pin number is D four.
And it's virtual actual name for the programming is Gpio two.
So I just put two in place of 16.
So two over here and two over here.
Now the code is nearly ready.
So over here, as you see, I just use
V0V0, virtual pin zero, virtual pin one, virtual pin two, virtual pin three virtual pin four.
Already.
This is extra, so I just delete this one.
So now over here in the void setup I just use different pins.
So copy this.
Paste this five times.
So I just use pin number 16.
Pin number five then pin number four.
Then pin number zero.
And then pin number two.
You can also check from here 16 5402 16.
5402.
So you just need to change.
16.
Five.
Four.
Zero and two.
These are my digital pins.
And they are.
These are configured as output pins.
Now the code is ready.
Programming code is ready for first time users.
You just need to install Arduino.
To install ESP program you just go to Board manager.
So first in from the board manager you just need to go to preferences.
Over here you just put this additional board manager URL.
I just put this into the description box.
Also you just need to put this one.
Otherwise you didn't get your ESP boards app, so just close this.
Now just go to the board manager over here.
You just put ESP 8266.
So as you see it is already installed in my system.
There are so many boards available like ESP, Arduino, AVR boards are there ESP 32 boards are there.
It is also installed in my system ESP 32 boards by this another.
There is another version so you just need to install this one.
So again I just remove it.
So you just need to go to tools over here in the boards.
Just go to ESP.
And over here you just need to select node MCU 1.0 ESP 12 E module.
First task is this and the second task, you just need to select the home port.
Right now home port is 22 for my case.
Okay.
So I just select this.
So my code is ready.
I just need to upload this code.
Right now it is uploading.
So your hotspot should be on or your Wi-Fi should be on.
In my case it is.
The name is air 32 L and the password is Kanika at the rate 0304.
It is very important.
So right now it is uploading the code.
As you see right now it is uploading.
40%.
53%.
61%.
It is writing the code inside the node MCU ESP 8266.
So it required hard reset.
So you just need to put hard reset.
So as you see over here, the code is inside the node MCU.
So right now I just go to the dashboard.
Let's check what happened.
Devices in the device control.
Let's check what happened.
Turn on v0.
V1 is on.
V2 is on.
V3 is on.
V4 is not working.
V4 is on.
So as you see.
Total number.
These are extra.
I just remove these right now because I just control only five devices using free version.
So this is from the dashboard.
You can control these devices.
So now I just show you how to control using app.
So in the Play Store.
So as you see over here in the Play Store you just search for blink.
Blink IoT.
So this is the app.
You just install it right now.
It is already in my mobile phone.
So you just log in.
I just log out first.
I just show you.
So you just log in.
So over here I just put.
The password.
So I just login into my system.
As you see device control is there.
You just open it.
So click on developer mode.
You just need to add switches over here.
Just as you see right now in the free version only five buttons are there.
So I just click over here.
So you just need to put these button like this.
So I just put over here.
So right now these are my total five buttons.
You just need to set the data stream for it.
So this is my V0I just make it switch type.
If you just make it push type you just need to click over it for a while.
Right now this is my v one.
Again make it switch type.
Next my data stream is v two.
Again, make it switch type over here.
My data stream is v three.
Now this is my last data stream v four make it switch type.
So you just right now my app.
Is also ready, so just own it.
As you see on the dashboard web dashboard it is on second LED also on third, LED fourth, fifth.
So this is how you can control it depends on your internet speed.
You can control your devices.
Right now I just control total number of five devices using my ESp8266.
So this is all about today's lecture.
Thank you all.