Page 1 of 1

4 motor control

Posted: Mon May 25, 2009 6:43 pm
by Mozzi1980
Hi,
I am after a bit of help with writing a flowcode V3 program to control 4 DC motors. The PIC i am using is the 16F877A and it only has 2 PWM channels. Is this possible using the PWM modules? If not can i round the problem a different way still only using 1 PIC? My project is 4X4 traction control. Any advice or example flowcode programs would be a great help.
Thanks Mike

Re: 4 motor control

Posted: Mon May 25, 2009 7:14 pm
by WalkOver
Hello !

You can use the 18F4431 who have more than 2 PWM and use c code or you can make a macro interupt who simulate pwm in software.

Re: 4 motor control

Posted: Tue May 26, 2009 10:40 am
by Benj
Flowcode currently only supports a maximum of 2 PWM channels on a device.

We hope to allow more soon but yes at the moment using software driven extra PWM channels is a good way to go.

See here for an example. (PWM LED)
http://www.matrixmultimedia.com/Flowcode_Examples.php