Arduino Nano RP2040 Pin 17 (A3) Not Outputing PWM

Although the specs show A3 (aka D17) as a PWM pin, I cannot get it to output PWM. I can output PWM with 16 , but not 17. I verified this with a logic analyzer.

This simple sketch demonstrates it.

What am I missing?

#include <Servo.h>
Servo myservo16, myservo17;
void setup() {
    myservo16.attach(16);
    myservo16.write(180);
    myservo17.attach(17);
    myservo17.write(180);
}

void loop() {

}

Any thoughts?

Thanks,
Sean

Servos do not use PWM signals.

If one can't find the reason, bypass the issue by using that other pin.

Servos determine their angle based on the received pulse width (PWM):

Arduino - Servo Motor | Arduino Tutorial (arduinogetstarted.com)

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.