Yazn Balfas
Published © GPL3+

Servo with blynk

Servo using blynk and NodeMCU

BeginnerFull instructions provided1 hour976
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
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Schematics

Schematics

Code

Servo_Blynk

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

#define BLYNK_PRINT Serial

Servo servo;
char auth[] = "***********************"; // token on gmail
char ssid[] = "*************"; //Wifi name
char pswd[] = "*************"; //Password


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

Yazn Balfas
7 projects • 2 followers

Comments