Hackster is hosting Impact Spotlights: Robotics. Watch the stream live on Thursday!Hackster is hosting Impact Spotlights: Robotics. Stream on Thursday!
DIVA AHMADdirakit community
Published

LED Light Control Using Blynk -B24

Control led lights using blynk which can be accessed on a smartphone on the same network

BeginnerFull instructions provided157
LED Light Control Using Blynk -B24

Things used in this project

Hardware components

Espressif NodeMCU LoLin V3 Lua CH340G ESP8266
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
LED (generic)
LED (generic)
×1
Mini Breadboard
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1

Software apps and online services

Blynk
Blynk
Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematics

Code

Code

Arduino
//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();
}

Credits

DIVA AHMAD
1 project • 1 follower
dirakit community
23 projects • 109 followers
Indonesia IoT Community by Informatics UIN Sunan Kalijaga Yogyakarta

Comments