Akbar RPLD
Published © GPL3+

control the led wearing blynk easily

Control LED With Blynk

BeginnerProtip1 hour12
control the led wearing blynk easily

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
LED (generic)
LED (generic)
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Code

LED With Blynk

C/C++
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>

#define BLYNK_PRINT Serial

Servo servo;
char auth[] = "xxxxxxxxxxxxxxxx";
char ssid[] = "xxxxxxxxx";
char pswd[] = "xxxxxxxxx";
void setup() {
 Serial.begin(9600);
 Blynk.begin(auth,ssid,pswd);
 servo.attach(5); //D4
}
void loop() {
 Blynk.run();
}
BLYNK_WRITE(V1) {
 servo.write(param.asInt());
}

Credits

Akbar RPLD
3 projects • 0 followers

Comments