Hi All, Not sure we like resurrecting topics, but I have a very similar problem but I’m not using Pin 6 and this is a Wemos D1 knockoff. This thread seemed the most appropriate after I checked them all.
I got it as far as compiling and connecting, but then it disconnects and tries again forever. I’ve tried all settings and looked at all of Google. I need your help!
The Serial Monitor looks like this (in a loop): - code is below.
564] Connected to WiFi
00:20:43.107 -> [564] IP: 10.0.0.13
00:20:43.107 -> [564]
00:20:43.107 -> ___ __ __
00:20:43.144 -> / _ )/ /_ _____ / /__
00:20:43.177 -> / _ / / // / _ \/ '_/
00:20:43.210 -> /____/_/\_, /_//_/_/\_\
00:20:43.210 -> /___/ v0.6.1 on ESP8266
00:20:43.277 -> [634] Connecting to blynk-cloud.com:80
[1347] Ready (ping: 101ms).
H!⸮⸮!⸮D⸮N[60] Connecting to SpeedTrap
[564] Connected to WiFi
00:20:51.544 -> [564] IP: 10.0.0.13
00:20:51.578 -> [564]
00:20:51.578 -> ___ __ __
00:20:51.612 -> / _ )/ /_ _____ / /__
00:20:51.646 -> / _ / / // / _ \/ '_/
00:20:51.682 -> /____/_/\_, /_//_/_/\_\
00:20:51.682 -> /___/ v0.6.1 on ESP8266
00:20:51.753 -> [634] Connecting to blynk-cloud.com:80
[978] Ready (ping: 94ms).
?)⸮⸮⸮d⸮DH⸮[62] Connecting to SpeedTrap
[566] Connected to WiFi
…you get the picture.
Here’s the code, Frankenstein-monstered from this whole forum, Blynk examples, etc:
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[40] = "XXXXXXXXX";
char ssid[15] = "XXXXXXXXXX";
char pass[20] = "XXXXXXXXXX";
Servo servoRAIN7;
Servo servoWIND9;
Servo servoSUN8;
BLYNK_WRITE(V7)
{
servoRAIN7.write(param.asInt());
}
BLYNK_WRITE(V9)
{
servoWIND9.write(param.asInt());
}
BLYNK_WRITE(V8)
{
servoSUN8.write(param.asInt());
}
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
servoRAIN7.attach(7); // Set left servo to digital pin 10
servoWIND9.attach(9); // Set right servo to digital pin 9
servoSUN8.attach(8); // Set right servo to digital pin 8
}
void loop()
{
Blynk.run();
}