coloitu_
Published © CC BY-ND

Remote Servo Actuator

Use your phone to control a servo via WiFi!

IntermediateFull instructions provided71
Remote Servo Actuator

Things used in this project

Hardware components

Wemos D1 Mini
Espressif Wemos D1 Mini
×1
9V battery (generic)
9V battery (generic)
×1
9V Battery Clip
9V Battery Clip
×1
Linear Regulator with Adjustable Output
Linear Regulator with Adjustable Output
×1
Slide Switch, SPDT
Slide Switch, SPDT
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Custom parts and enclosures

Box

Cover

Schematics

Schematic

Code

Code

Arduino
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>
Servo servo;
char auth[] = "Blynk Auth Token";
char ssid[] = "your ssid";
char pass[] = "wifi password";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
servo.attach(5); // NodeMCU D1 pin
}
void loop()
{
Blynk.run();
}
BLYNK_WRITE(V1)
{
servo.write(param.asInt());
}
BLYNK_WRITE(V2)
{
servo.write(0);
}
BLYNK_WRITE(V3)
{
servo.write(90);
}

Credits

coloitu_

coloitu_

17 projects • 2 followers

Comments

Add projectSign up / Login