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
4 motor control
Re: 4 motor control
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.
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.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: 4 motor control
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel