Hi Guys in this instructables we will learn how to use IOT with our ESP8266 or Nodemcu. We will use blynk app for that.
So we will use our esp8266/nodemcu to control the LEDs over the internet.
So Blynk app will be connected to our esp8266 or Nodemcu via internet and we will send commands from Blynk app to turn on or turn off our LEDs.
For this project you will need following things :
1x Nodemcu
LEDs (i used 4 you can use any no. of LEDs)
Breadboard
Jumper wires
USB CABLE for Programming
Software : Arduino IDE
In your smartphone please download Blynk app and login/register on the app then click on new project.
Name the Project & select your board as Nodemcu/esp8266 and click create to create the Project and it will send a auth token to your email id which we can use later in the code.
Then in the code go to widget section and select button widget as i selected 4 buttons to control 4 pins/LEDs of nodemcu.
And after selecting a button widget click on that widget and select the pin for particular button as i selected D0,D1,D2,D3 pins for all 4 buttons which means they will be used to control these 4 pins on nodemcu.
So finally everything is done.
Now we need to test it.
So just plug the power to your Nodemcu and click on the small play button on the Blynk app and then if you click on any of the button LED will be turned on for that particular button as my LEDs are ON for shown particular buttons.
So have fun doing IOT projects and let me know how its working for you in the comments section.