Driving GM8 motor

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
amiroof
Posts: 3
Joined: Wed Jan 28, 2009 11:48 pm

Driving GM8 motor

Post by amiroof »

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????

User avatar
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

Post by Benj »

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.

amiroof
Posts: 3
Joined: Wed Jan 28, 2009 11:48 pm

Re: Driving GM8 motor

Post by amiroof »

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.
Thank you very much, It was very helpful!

Post Reply