Page 1 of 1

Can PWM be Adjusted?

Posted: Fri Apr 22, 2016 7:22 pm
by JDR04
I'm hoping somebody can help me with this.

I'm trying to create a flowchart where I can adjust the frequency of the PWM by using a potentiometer.

My objective is to control a small stepper motor. I've done as much as I can would appreciate further help.

Attached is my flowchart......thanks guys.....John

Re: Can PWM be Adjusted?

Posted: Fri Apr 22, 2016 8:37 pm
by electron67
Hi John

this flow chart used to control the intensity of a block of LED of 12 volt, I think you could also work for an motor, you must first enable the PWM option

Enrique

Re: Can PWM be Adjusted?

Posted: Fri Apr 22, 2016 8:40 pm
by JDR04
Thanks Electron67. I'll give it a go and see how it works out.

Thanks a lot.....John

Re: Can PWM be Adjusted?

Posted: Fri Apr 22, 2016 10:39 pm
by electron67
you're welcome.

Enrique

Re: Can PWM be Adjusted?

Posted: Sat Apr 23, 2016 9:20 am
by medelec35
Hi John,
Sounds to me like you will need to vary frequency of pulses rather than duty of PWM.
You would also need to control the pulse count.
This sounds like the job of the built in stepper motor component (Mechatronics Menu)
Just add it to control panel then right click on the component and select help to view options, or select External Properties to select the type of stepper motor it is.
Or
You can use a timer interrupt.
You can't have pulses to fast or there will be slippage.
Using a count variable you can vary the frequency output.

Going back to stepper can you supply details of the stepper motor and driving circuitry so we can take it further.

Martin