I understand how PWM works, but am a bit foggy on how to apply it to my project. I am controlling a couple motors using a L293D and that’s working ok for on/off and direction. Now I would like to use PWM to control the speed of the motors. I am seeing a lot of stuff on the web about changing the frequency of PWM, but I am thinking that is not what I want to do. I need to change the duty cycle, not the frequency, right?
Can anyone point me to some examples of how I might change the duty cycle on one of the Arduino PWM pins. I know how to do it programatically with delaymicroseconds (I think), but that requres the full time attention of the processor. I need to change the duty cycle and forget it until I need to change it again.
Am I asking too much?