Hi everyone,
I want to control a servo motor via IFTTT in Blynk, but that doens’t seem to work. if i use the web request i can only turn specific pins on or off like this: [“0”]. How can I rewrite this in IFTTT or Arduino so the commands work for V2 and V3?
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>
Servo servo;
char auth[] = "auth key";
char ssid[] = " wifi";
char pass[] = "password";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
servo.attach(15);// NodeMCU D8 pin
}
void loop()
{
Blynk.run();
}
BLYNK_WRITE(V2)
{
servo.write(30);
delay(500);
servo.write(90);
}
BLYNK_WRITE(V3)
{
servo.write(150);
delay(500);
servo.write(90);
}