Open danielrueil opened 5 years ago
I'm having about the same issue, I didn't test your code but just recently it seems someone is working on a fix with a loop in the serial code: https://github.com/arduino/ArduinoCore-megaavr/pull/42
It was a pain forcing my Win7 to update the code, I ended up turning on all the compile messages in the arduino IDE and saw it was reusing files in Users/
Servo library allows to control a servo by sending pulses to the servo. Using the library with UNO R3 gives correct results : a constant pulse duration in
myservo.write (int)
gives a stable servo position. Using the library with UNO WiFi Rev2 gives correct duration in 95% of time but random duration in 5% of time. So, the servo does random position jumps.After a couple of days of research, I understand the issue is linked to simultaneous usage of Serial and Servo. Uncomment
Serial.begin(115200)
makes the issue disappear. This issue is blocking.My environnement :
test sketch :