IoT Beginner Project #1: How to Blink LED using BLYNK App Button with Internet of Things (IoT) via ESP32 Wifi
IoT Beginner Project #1: How to Blink LED using BLYNK App Button with Internet of Things (IoT) via ESP32 Wifi
Objective:
To blink the LED using BLYNK app button via ESP32 Wifi.
Components:
- Smart phone with BLYNK App
- Computer
- Breadboard
- ESP32
- LED
- Resistor 220 Ohm
- Jumper Male-to-Female
- Micro USB-B
- Internet needed
Schematic Diagram:
Coding using Arduino IDE:
#include <Blynk.h>
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[]="3mkKYun-7TmkxAK1x5J9XPD2gXl1QsXH";//Auth. token:
char ssid[]="babysharkdudududu"; //wifi name:
char pass[]="wifipassword"; // wifi password:
int LEDpin= 22;
void setup()
{
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
pinMode(LEDpin,OUTPUT);
pinMode(LEDpin, LOW);
}
void loop(){
Blynk.run();
}
Watch this project tutorial on Youtube:
Thank you.
Comments
Post a Comment