arduino / ArduinoCore-mbed

330 stars 195 forks source link

PWM output apears to be shared #537

Closed Chick92 closed 2 years ago

Chick92 commented 2 years ago

I have a 4WD rover with PID loops, and i've been debugging it for days and i'm starting to lose the plot!

Are the PWM outputs somehow shared between pins?

Chick92 commented 2 years ago

https://arduino-pico.readthedocs.io/en/latest/analog.html#analog-output-restrictions

I think the answer is yes, they are.

Does anyone know which pins (hopefully at least 4) can be used for 4 separate pwm outputs?

Chick92 commented 2 years ago

After trial and error, with some input from the above datasheet, although it seems to not be quite right, 0,2,6 and 15 appear to be independent.