Thread: Using DC motors
View Single Post
  #1   Spotlight this post!  
Unread 20-09-2006, 11:51
Guy_E Guy_E is offline
Registered User
FRC #1574 (MisCar)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2006
Location: ISRAEL
Posts: 81
Guy_E has a spectacular aura aboutGuy_E has a spectacular aura about
Send a message via MSN to Guy_E
Using DC motors

Hi,
I have another question, but this time rather more complicated.

I have 2 DC motors which I want to connect to the VEX controller. Because they are DC I can't connect them to the PWM port.
My Electronics teacher has suggested me to build 2 small electric circuits using L293 chips that control motors, connect each chip to an amplifier and connect all that to a digital output.

If I do all that, I will we able to simulate a PWM signal, using the digital outputs and a timer.

My problem is that I don't know how to write the code for the PWM control in a way that it will be running simultaneously with the general code of the program.

Can someone help me?

I hope I've made myself clear,

Guy
__________________
Team #1574 Misgav High School - Israel

Winner of the 2007 Israeli Regional

Winner of the 2007 Motorola Quality in Design Award

Visit our website:
www.miscar1574.com
Reply With Quote