ESP32 is a low power WiFi enabled microcontroller created and developed by Espressif Systems. The ESP32 is an advanced IoT microcontroller board possessing WiFi and Bluetooth Low Energy capabilities, as well as limited compatibility with the Arduino Core.
This project demonstrating how to control light in our room remotely. So here we controlling led with WiFi via Blynk. 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.
The ‘Light controlling of ESP32 by WiFi ‘ project uses the ESP32 Development Board will be used to blink an LED at a specific timed interval, continuously. It is the required basic tutorial for any microcontroller board. And connect an LED to any of GPIO pin of ESP32
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.
#define BLYNK_PRINT Serial int pin = 2; #include <WiFi.h> #include <WiFiClient.h> #include <BlynkSimpleEsp32.h> // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "Your auth token key"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "Your network name"; char pass[] = "Your network password"; void setup() { pinMode(pin, OUTPUT); pinMode(pin, HIGH); Serial.begin(115200); delay(10); Serial.print("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, pass); int wifi_ctr = 0; while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println("WiFi connected"); Blynk.begin("Your auth token key", ssid, pass); } void loop(){ Blynk.run(); }