Problem with analogWrite

Welcome to the forum

Until you post your code it will be difficult to provide help. Which Arduino board are you using, how is it powered and what are the PWM pins driving ?

You can certainly write to a PWM pin from multiple functions because the functions will not be running at the same time

1 Like