Closed
Description
Basic Infos
Arduino 1.6.11
Windows 10
Hardware
Hardware: WeMos D1
Core Version: 2.3.0
Description
Problem description
GPS is attached to PIN D5 and D6. When I attach a Servo to a Pin (I used D4 and D3) it starts a slow jitter like 3 times a second.
Settings in IDE
Module: WeMos D1 R2 & Mini
Flash Size: 4/3
CPU Frequency: 80Mhz
Flash Mode: NA
Flash Frequency: NA
Upload Using: OTA and Serial
Reset Method: ?
Sketch
#include <Arduino.h>
static const int RXPin = D5, TXPin = D6;
static const uint32_t GPSBaud = 38400;
TinyGPSPlus gps;
SoftwareSerial ssGps(RXPin, TXPin);
Servo myServo;
void setup() {
ssGps.begin(GPSBaud);
myServo.attach(D4);
myServo.writeMicroseconds(1500);
}
void loop() {
while (ssGps.available())
gps.encode(ssGps.read());}
Debug Messages
Output measured with PulseIn and Arduino Mega 1280:
1489
1495
1489
1495
1489
1495
2197
1495
1489
1495
1489
1595
1495
1489
1495
1489
1489
1495
2201
1495
1489
1495
1489
2011