Thread: Using DC motors
View Single Post
  #1   Spotlight this post!  
Unread 20-09-2006, 13:03
Billfred's Avatar
Billfred Billfred is online now
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,550
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Using DC motors

Quote:
Originally Posted by Guy_E
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
What kind of DC motors are you working with? If they're 12V (or 24, or 36, or 48), you should be able to interface a Victor directly with the Vex controller's PWM outputs (just use a Y-cable to get the appropriate male-to-male connection). Someone who's more familiar with the Victors can tell you if and how well they handle smaller voltages.

It's less legwork, which may be a good or a bad thing for your project, but there is something to be said for keeping it simple. Hope this helps!
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

94 events (more than will fit in a ChiefDelphi signature), 14 seasons, over 61,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.

Last edited by Billfred : 20-09-2006 at 13:07.
Reply With Quote