//------------------source: https://www.youtube.com/watch?v=WauwiSBxF0Q //------------Other source: https://www.youtube.com/watch?v=DBrLP0DQazc #define BLYNK_TEMPLATE_ID "TMPL4fpS640iC" #define BLYNK_TEMPLATE_NAME "robot project" #define BLYNK_AUTH_TOKEN "vq9lbLlay0Vhp_jQA1XBDlUHsna4toNnr" /* Comment this out to disable prints and save space */ #define BLYNK_PRINT Serial #include #include #include #include // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "network name"; char pass[] = "password"; Servo servo01; Servo servo02; BLYNK_WRITE(V7) { servo01.write(param.asInt()); } BLYNK_WRITE(V8) { servo02.write(param.asInt()); } void setup() { // Debug console Serial.begin(115200); // Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass); Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "blynk.cloud", 8080); servo01.attach(D7); servo02.attach(D8); } void loop() { Blynk.run(); }