The "LED Light Control Using Blynk" project is an Internet of Things (IoT) project which aims to control LED lights through the Blynk application using a microcontroller device. Blynk is an IoT platform that allows users to create mobile applications to control and monitor IoT-based devices. This project will connect hardware such as a microcontroller with Wi-Fi modules and LEDs, which can then be controlled via the Blynk application on a smartphone. Thus, this IoT project can apply IoT technology in everyday life to increase comfort and efficiency.
Required components:1. Nodemcu Esp8266 Lolin
2. Jumper Wire - Male to Female
3. Mini Breadboard
4. LED Lamp
5. USB A to Micro USB Cable
Software Used :1. Arduino IDE
2. Blynk
Installation steps:1. Prepare all the tools and applications needed along with the code
2. Plug the LED light into the breadboard
3. Then connect the cable at the negative point to GND (Ground)
4. Then connect the cable at the positive point to D0
5. Connect the ESP8266 to the laptop using a USB cable
6. After the circuit is complete, create program code in the Arduino IDE by adjusting the circuit
//Include the library files
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define BLYNK_AUTH_TOKEN "k1nh_mTH0XowsV5eeM5XTOVgGAdBaUGd " //Enter your blynk auth token
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "LAPTOP-6SA0NB8C 1985";//Enter your WIFI name
char pass[] = "Ww15393(";//Enter your WIFI password
//Get the button value
BLYNK_WRITE(V0) {
digitalWrite(D0, param.asInt());
}
void setup() {
//Set the LED pin as an output pin
pinMode(D0, OUTPUT);
//Initialize the Blynk library
Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
}
void loop() {
//Run the Blynk library
Blynk.run();
}
7. When the code is complete, open a template and device on blynk web
8. Sync Blynk on your smartphone or laptop using the same network
9. Enter the ID, Template Name, and author token into the program
10. Upload the finished program to the ESP on the Arduino IDE
11. Then run the circuit to test whether it is successful or not
To make it easier, friends can see the video I made below
ThankYou🙌
Comments