PWM

Hi Guys,

I was wondering if there was a way to have the arduino due output a constant PWM signal whilst doing other things? E.g output pwm while controlling other sensors/ pins?

That is exactly what the (misnamed) function analogWrite() does.
https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/

jremington:
That is exactly what the (misnamed) function analogWrite() does.

Many people agree with the justification of the given function (the analogWrite()); because, the "digital type" PWM signal produces a varying DC output signal (which is an "analog signal") when passed through a LPF.

La manera correcta para que Arduino emita una señal PWM constante es utilizando la función analogWrite (). Si necesitas aprender más sobre este tipo de señales digitales te recomiendo ver este tutorial.
https://programarfacil.com/blog/arduino-blog/pwm-con-arduino-analogico/