-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Software-Serial with or without GPS and Servo Library #2514
Comments
Can confirm, I'm having the same issue. |
@sleepingshorty I'm going to assume that the gps sends updates at about 3 times per second? |
@igrr do you have any insight here? |
I think we have modified PWM implementation to use NMI interrupt, so I'm surprised that this still is an issue. I would have expected the reverse, that is SoftwareSerial being broken by PWM. |
This should be fixed by a combination of #5578 and #4640. Before Servo was using timer1 directly, not PWM, so the PWM NMI bit that @igrr mentioned wouldn't even be used. Now, Servo uses the waveform generator which is also NMI, and should be invariant of IRQ disable by SW Serial. Closing for now, but if someone has the same issue with the GIT head, please do open up a new issue. |
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
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
The text was updated successfully, but these errors were encountered: