Skip to content
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

Nano RP2040 Servo pulsewidth imprecision #1019

Open
gxy812 opened this issue Jan 30, 2025 · 0 comments
Open

Nano RP2040 Servo pulsewidth imprecision #1019

gxy812 opened this issue Jan 30, 2025 · 0 comments

Comments

@gxy812
Copy link

gxy812 commented Jan 30, 2025

Observed downward fluctuations of more than ~30 us when writing a 1500 us pulse to 7 different pins.
Caused a lot of random spinning as I was using the signal for ESCs.

Used the Servo.h library as provided by this core.

const byte motor_pins[7] {2, 3, 5, 6, 9, 10, 11};
Servo motors[7];

void setup() {
    for (int i = 0; i < NUM_MOTORS; i++) {
        motors[i].attach(motor_pins[i]);
        motors[i].writeMicroseconds(1500);
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant