Lets Get Started...
Here we will setup the NodeMCU board and Blynk App for making projects based on IoT.
2.Click on File and open Preferences.
3.Paste this link in URLs.(http://arduino.esp8266.com/stable/package_esp8266com_ index.json.).
4.Next Click on the Tools and select the Board Managers.
5.Search for ESP8266 and Install it.
6.Select the Board as NodeMCU 1.0 and also select the Port.
7.Write this code in the Arduino IDE.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "Your Auth Code"; // the auth code that you got on your gmail and Blynk app
char ssid[] = "Username(WIFI)"; // username or ssid of your WI-FI
char pass[] = "Password(WIFI)"; // password of your Wi-Fi
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
Step 1:-Install Blynk App and Create a account.
Step 2:-You will recieve a Authentication code in your Gmail.Copy the code and paste in Above Program.
Step 3:-Select the Board as NodeMCU and Create a new Project.
Step 4:-Setup Your Hotspot and enter the username and password in the Arduino IDE.
Step 5:-Press Play button which is on top and you will see that your device is online.
Step 6:-You Are Ready.
Here we will setup the NodeMCU board and Blynk App for making projects based on IoT.
Steps to Setup:-
1.First Install the Arduino IDE in your PC.2.Click on File and open Preferences.
4.Next Click on the Tools and select the Board Managers.
5.Search for ESP8266 and Install it.
6.Select the Board as NodeMCU 1.0 and also select the Port.
7.Write this code in the Arduino IDE.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "Your Auth Code"; // the auth code that you got on your gmail and Blynk app
char ssid[] = "Username(WIFI)"; // username or ssid of your WI-FI
char pass[] = "Password(WIFI)"; // password of your Wi-Fi
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
Now we have added the NodeMCU boards successfully in Arduino Software. Now we have to Connect this to the Blynk App.
Step 1:-Install Blynk App and Create a account.
Step 2:-You will recieve a Authentication code in your Gmail.Copy the code and paste in Above Program.
Step 3:-Select the Board as NodeMCU and Create a new Project.
Step 4:-Setup Your Hotspot and enter the username and password in the Arduino IDE.
Step 5:-Press Play button which is on top and you will see that your device is online.
Step 6:-You Are Ready.
It was Informative
ReplyDeleteNyc page and good stuff on ur page bro 👌👍
ReplyDelete