How to set up the new Blynk app with an ESP32 board

How to set up the new Blynk app with an ESP32 board

Hello and welcome back. In this tutorial, we will learn how to set up the new Blynk app with an ESP32 board. For that, I used the LED blink example. It is good for beginners. If you are not familiar with the Blynk app, please refer to my previous tutorials. But don’t worry, in this tutorial I will explain everything we need.

What’s the blink app

This is the most famous app for IoT-related projects. Here we can receive data, send data and give commands through the Blynk cloud. For that, we can create very cool dashboards using our smartphone, tablet, or computer. Through this dashboard, we can get sensor values, control electrical devices, and so on. It depends on your project.

Also, we can use the basic widgets in this app for free, and we need to buy widgets for advanced projects. It depends on your requirements. But, these widgets are more than enough for my projects. The special things I see here are, that we can make very attractive dashboards, and we can use this app on our smartphone, tablet, and computer, very accurate, and easy to use.

If you are a mobile or tablet user, you can download it from Play Store or App Store. Otherwise, if you are a PC user, you can visit the Blynk website. Then, create a new account for the Blynk app. It’s not complicated.

OK, let’s set up the Blynk app step by step. The required components are given below.

Disclosure: These Amazon links are Affiliate links. As an Amazon Associate, I earn from qualifying purchases.

Step 1

Firstly, identify these components.

Step 2

Secondly, place the ESP32 board on the breadboard. And then, connect the LED bulb and resistor to the breadboard.

Step 3

Thirdly, connect the LED bulb to the ESP32 board. For that, use the circuit diagram below.

How to set up the new Blynk app with an ESP32 board

Step 4

OK, let’s create the Blynk web dashboard for this project.

  • First, go to the Blynk website and create a new account using your Gmail address. If you already have an account, log in to your account using Gmail and your password.

  • Now let’s create a new template for this project. For that click on the “New Template” button and name it as you like. Then, select your board type as ESP32.

  • Next, go to the “Detastreams” tab and create a digital data stream. Select Digital PIN 2 for that. Name it as you like.

  • Now, click the web dashboard tab and drag and drop a button widget to the dashboard. And then, click the setting icon on the button widget and select the datastream you created earlier. After, save it.

  • And then, click the search icon and create a new Device. For that, select the template you created earlier.

OK, the Blynk web dashboard is ready for you.

Step 5

Now, let’s create the Blynk mobile dashboard. For that, follow the instructions below.

  • First, download and install the Blynk app on your smartphone. And then, login to your account using Gmail and password. Now, click the template you created in the web dashboard.

  • Next, click the + icon and add a button widget to the dashboard. And then, click on the button and select the datastream you created in the web dashboard. You can change other settings as you like.

OK, the Blynk mobile dashboard is ready for you.

Step 6

Now, connect the ESP32 board to the computer. And then, let’s create the program for that.

//Include the library files
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>

// Enter your Auth token
char auth[] = "";

//Enter your WIFI SSID and password
char ssid[] = "";
char pass[] = "";

void setup(){
  // Debug console
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
}

void loop(){
  Blynk.run();
}
  • Now, copy and paste the Blynk Auth Token. It’s in the Blynk web dashboard.

  • And then, enter your WIDI SSID and password.

  • Now, select the board and port. After that, click the upload button. When the program is uploading, press and hold the boot button for a second.

OK, now you can control the LED bulb using the Blynk web dashboard and mobile dashboard.

How to set up the new Blynk app with an ESP32 board

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *