NodeMCU Based 4-Channel Relay Board Micro Controller Board Electronic

NodeMCU Based 4-Channel Relay Board Micro Controller Board Electronic
Click image for Gallery
  • Product Code: NODEMCU 4CH
  • Availability: In Stock
  • ₹950 ₹750
- +


Blynk for NodeMCU – Introduction

This tutorial of Robo India is an introduction to Blynk on NodeMCU.

Detailed Tutorial

1. Introduction:

Blynk is a Platform with IOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. It’s a digital dashboard where you can build a graphic interface for your project by simply dragging and dropping widgets.

1.2 Supported Hardware

1.2 Blynk App 

Blynk application can be found from the following links –

1. Android Blynk App

2. IOS Blynk App

After downloading the app, create an account and log in. (If possible than log in with your real mail id for better connectivity later.)

You’ll also need to install the Blynk Arduino Library, which helps generate the firmware running on your ESP8266. Download the latest release from https://github.com/blynkkk/blynk-library/releases , and follow along with the directions there to install the required libraries.

2. Create a Blynk Project

Click the “Create New Project” in the app to create a new Blynk app. Give it any name.

Blynk works with hundreds of hardware models and connection types. Select the Hardware type. After this, select connection type. In this project we have select WiFi connectivity.

The Auth Token is very important – you’ll need to stick it into your ESP8266’s firmware. For now, copy it down or use the “E-mail” button to send it to yourself.

3. Add Widgets To The Project

Then you’ll be presented with a blank new project. To open the widget box, click in the project window to open.

We are selecting a button to control Led connected with NodeMCU.

  1. Click on Button.
  2. Give name to Button say led.                                    
  3. Under OUTPUT tab- Click pin and select the pin to which led is connected to NodeMCU, here it is digital pin 2, hence select digital and under pin D2. And Click continue.

Under MODE tab- Select whether you want this button as “push button” or “Switch”.

You have successfully created a GUI for Arduino.

4. Upload The Firmware

Now that your Blynk project is set-up, open Arduino and navigate to the ESP8266_Standalone example in the File > Examples > Blynk > Boards_WiFi> ESP8266_Standalone menu.

5. Stand Alone Programming Code:

Before uploading, make sure to paste your authorization token into the auth [] variable. Also make sure to load your Wifi network settings into the Blynk.begin(auth, “ssid”, “pass”) function.

#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
}

6. Execution

After the app has uploaded, open the serial monitor, setting the baud rate to 9600. Wait for the “Ready” message.

Then click the “Run” button in the top right corner of the Blynk app. Press the button and watch the LED

Then add more widgets to the project. They should immediately work on the ESP8266 without uploading any new firmware.

7. Output

Write a review

Note: HTML is not translated!
    Bad           Good
Captcha
FAST DELIVERY

99% of orders are shipped within 24Hours. Order and Relax.

LOW SHIPPING RATE

Flat shipping rate of Rs.80 for any number of pieces order.

SECURE CHECKOUT

We follow highest security standards to make your transaction safe.

BEST SUPPORT

We are happy to help, just call, email or whatsapp on our support number.