aiawasdctrl
Published © GPL3+

Use a Servo with Blynk

For now, you can control Servo with Blynk.

BeginnerFull instructions provided1 hour14
Use a Servo with Blynk

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Code

Servo code wth Blynk

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

#define BLYNK_PRINT Serial

Servo servo;
//fill the "xxxxx"below with code you get from blynk app it will send you an email
char auth[] = "xxxxx";
//fill the "xxxxx"below with your WiFi id
char ssid[] = "xxxxx";
//fill the "xxxxx"below with your WiFi password
char pswd[] = "xxxxx";


void setup() {
  Serial.begin(9600);
  Blynk.begin(auth,ssid,pswd);
  servo.attach(2);
}

void loop() {
  Blynk.run();
}
BLYNK_WRITE(V1) {
  servo.write(param.asInt());
}

Credits

aiawasdctrl

aiawasdctrl

1 project • 0 followers

Comments

Add projectSign up / Login