Hello
I am trying to Drive 2 GM8 motors with 2 L293D secret motor drivers and control them using an encoder for each and 4 infera red sensors for my robot. I am using PIC18F4431 and my questions is that
How can i Count input pulses from encoders for each motor using a timer?
in L293D kit there three wires that goes to controller, one is for PWM and the other two for direction. I have done the pwm using the available componant on flowcode but how do i know which pin will i get the pwm as output?????? where do i connect the pwm wire from driver in pic????
Driving GM8 motor
- 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: Driving GM8 motor
Hello
Sounds like my frequency counter example might come in handy here.
http://www.matrixmultimedia.com/Flowcode_Examples.php
PWM channel 1 comes out of the pin marked CCP1 on the chip diagram, Similarily channel 2 goes to CCP2.
Sounds like my frequency counter example might come in handy here.
http://www.matrixmultimedia.com/Flowcode_Examples.php
PWM channel 1 comes out of the pin marked CCP1 on the chip diagram, Similarily channel 2 goes to CCP2.
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
Re: Driving GM8 motor
Thank you very much, It was very helpful!Benj wrote:Hello
Sounds like my frequency counter example might come in handy here.
http://www.matrixmultimedia.com/Flowcode_Examples.php
PWM channel 1 comes out of the pin marked CCP1 on the chip diagram, Similarily channel 2 goes to CCP2.