I have a problem understanding the relationship between Duty Cycle, Period & Frequency, and how to work them out to programme the Command 'pwmout'.
I am trying to build a motor speed controller, and I need to vary the duty cycle between 10 &100%. The spec. from a commercial controller states that it has the following choice of frequency:
Low frequency mode: 100HZ. - Good for low speed control.
Variable frequency: 50 - 1000HZ. - Good all round for slow and high.
High frequency: 2000Hz. - Good for high speed control.
I need to be able to work out the correct programming to get these sort of frequencies. I have tried to use the example in the manual, but can't get sensible answers.
I hope some kind person out there will take pity on me. Any help would be appreciated.
Thanks, John M
I am trying to build a motor speed controller, and I need to vary the duty cycle between 10 &100%. The spec. from a commercial controller states that it has the following choice of frequency:
Low frequency mode: 100HZ. - Good for low speed control.
Variable frequency: 50 - 1000HZ. - Good all round for slow and high.
High frequency: 2000Hz. - Good for high speed control.
I need to be able to work out the correct programming to get these sort of frequencies. I have tried to use the example in the manual, but can't get sensible answers.
I hope some kind person out there will take pity on me. Any help would be appreciated.
Thanks, John M