Go to Post (Don't ask why a retired FIRSTer is on CD, it's a twelve step process kind of thing) - Matt Krass [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-12-2005, 17:49
JasonQ JasonQ is offline
Registered User
no team
 
Join Date: Dec 2005
Location: USA
Posts: 6
JasonQ is an unknown quantity at this point
VEX motors question

Hi,

Why do the VEX motors have 3 wires? There are the positive and common leads, but what is the third for?

Thanks,

Jason
Reply With Quote
  #2   Spotlight this post!  
Unread 06-12-2005, 18:26
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,384
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: VEX motors question

Quote:
Originally Posted by JasonQ
Hi,

Why do the VEX motors have 3 wires? There are the positive and common leads, but what is the third for?

Thanks,

Jason
The third wire, I believe it is white, is the control signal wire. It carries a PWM signal. It is a pulse train at about 50-60 Hz. Each pulse will vary from 1ms to 2ms with neutral being 1.5ms. 1ms pulses drive the motor at full speed reverse, 2ms drives the motor at full speed forward. The positive wire caries the battery voltage at a constant dc voltage approximately equal to the 7.2v battery.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #3   Spotlight this post!  
Unread 06-12-2005, 18:54
JasonQ JasonQ is offline
Registered User
no team
 
Join Date: Dec 2005
Location: USA
Posts: 6
JasonQ is an unknown quantity at this point
Re: VEX motors question

Hmm...that sounds like how a servo works. For a motor, isn't the PWM signal sent down the positive lead and returned via the common lead?

-Jason
Reply With Quote
  #4   Spotlight this post!  
Unread 06-12-2005, 19:05
sanddrag sanddrag is offline
On to my 16th year in FRC
FRC #0696 (Circuit Breakers)
Team Role: Teacher
 
Join Date: Jul 2002
Rookie Year: 2002
Location: Glendale, CA
Posts: 8,519
sanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond reputesanddrag has a reputation beyond repute
Re: VEX motors question

Normally yes but the Vex motor has its speed control built into it, not built into the robot controller or external like an RC car or FRC robot. The robot controller generates some PWMs, and then some electronics within the Vex motor housing pulse the power on a larger scale, to drive the motor.
__________________
Teacher/Engineer/Machinist - Team 696 Circuit Breakers, 2011 - Present
Mentor/Engineer/Machinist, Team 968 RAWC, 2007-2010
Technical Mentor, Team 696 Circuit Breakers, 2005-2007
Student Mechanical Leader and Driver, Team 696 Circuit Breakers, 2002-2004

Last edited by sanddrag : 06-12-2005 at 20:21.
Reply With Quote
  #5   Spotlight this post!  
Unread 06-12-2005, 20:05
JasonQ JasonQ is offline
Registered User
no team
 
Join Date: Dec 2005
Location: USA
Posts: 6
JasonQ is an unknown quantity at this point
Re: VEX motors question

Ok, that makes sense. Thanks for the info guys.

-Jason
Reply With Quote
  #6   Spotlight this post!  
Unread 06-12-2005, 20:16
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: VEX motors question

Quote:
Originally Posted by JasonQ
Hi,

Why do the VEX motors have 3 wires? There are the positive and common leads, but what is the third for?

Thanks,

Jason
Hey all.. If I were to read that statement yet take the word VEX out of the sentence, I would at first say 1 for positive, 1 for negative, and 1 for a ground.

Why would a VEX motor be any different?
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

Reply With Quote
  #7   Spotlight this post!  
Unread 06-12-2005, 20:51
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: VEX motors question

Quote:
Originally Posted by Elgin Clock
Hey all.. If I were to read that statement yet take the word VEX out of the sentence, I would at first say 1 for positive, 1 for negative, and 1 for a ground.

Why would a VEX motor be any different?
Because it's postive, ground and signal?

As far as I can tell the Vex controller can control motors or servos in either port, so its a small leap to say it uses PWM to control motor speed using wire 3 as signal, otherwise you'd have to indicate motor or servo somehow.

Did that make any sense? I'm tired...
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Reply With Quote
  #8   Spotlight this post!  
Unread 06-12-2005, 22:27
Alex.Norton's Avatar
Alex.Norton Alex.Norton is offline
Fidgetting
no team
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Ft. Collins, Colorado
Posts: 190
Alex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud ofAlex.Norton has much to be proud of
Send a message via AIM to Alex.Norton Send a message via MSN to Alex.Norton
Re: VEX motors question

it doesn't make any sense to me to use a separate cable for PWM when the power goes through the controller. I would simply mean needing extra circuitry in the motor that the controller already has.

Since in the code for the vex you specify whether you are using a servo or a motor I could see the third wire being nothing (if the motor doesn't have a feed back loop) for a motor and a feedback loop for the servo because a servo needs 3 wires. They simply used a third wire on the motor so it had the same connector and port.

Just a thought, I don't know a lot about the subject but that makes more sense than have a separate PWM signal.
Reply With Quote
  #9   Spotlight this post!  
Unread 06-12-2005, 22:35
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: VEX motors question

Quote:
Originally Posted by Alex.Norton
it doesn't make any sense to me to use a separate cable for PWM when the power goes through the controller. I would simply mean needing extra circuitry in the motor that the controller already has.

Since in the code for the vex you specify whether you are using a servo or a motor I could see the third wire being nothing (if the motor doesn't have a feed back loop) for a motor and a feedback loop for the servo because a servo needs 3 wires. They simply used a third wire on the motor so it had the same connector and port.

Just a thought, I don't know a lot about the subject but that makes more sense than have a separate PWM signal.
Your logic makes sense, but when you are poor like me and only have the bare radio kit.... I never saw any way to discern between motor and servo, and variable power to a servo would be...well...odd...I stand by it being PWM and that being used for speed control, but I admit I can't explain why the code allows to select, any ideas on this?
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Reply With Quote
  #10   Spotlight this post!  
Unread 06-12-2005, 23:55
foobert foobert is offline
Registered User
no team
 
Join Date: May 2005
Location: oakland, ca
Posts: 87
foobert is a jewel in the roughfoobert is a jewel in the roughfoobert is a jewel in the rough
Re: VEX motors question

if you tried to control a motor directly with the vex controller it would suck enough amps through the poor dear to release all of its magic smoke.

if you take the back off of a vex motor, you'll find a little 8 pin pic on a circuit board that is impossible to pry out of the housing because the motor is soldered to the other side. also on the other side, (if you pry a lot, like i did), is a larger chip with many legs. i'm guessing this is a monolithic h-bridge. if the little 8 legged pic tried to drive the motor directly, it, too, would lose all its magic smoke.

so, we've got an eight legged pic. that's certainly enough for power, (bet there's a regulator on that little circuit board, too), ground, three pins to control the h-bridge, and something left over for feedback from the motor so the little pic can say, "ok, if you give me a 1ms pulse i'm going to spin this thing at 100 rpm in reverse, if you give me a 1.5ms pulse i'm not going to spin it at all and if you give me 2ms i'll spin it 100 rpm forward."

reckon i ruined that motor, too.

Last edited by foobert : 07-12-2005 at 00:12. Reason: forgot how many pins you need to control an h-bridge
Reply With Quote
  #11   Spotlight this post!  
Unread 07-12-2005, 15:04
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: VEX motors question

Here's the proof I believe the Vex Motors use PWM for speed/direction control as well.

Quote:
Originally Posted by IFI
Yes you can reverse the direction of a motor in your User code. This is how the default code makes one motor spin CW and another motor spin CCW for the same joystick movement. See the line in our default code that has the comment “ // reverse direction of left side (CCW) ”.

You can not send the same value “255” to 2 different motors and have them spin in different directions. The value of 255 is converted into a PWM pulse of a certain width. This pulse width is sent from the Vex Micro Controller to the Vex Motor, where it is decoded by the Vex Motor into a direction and speed. Therefore; the pulse created from a value of “255” will always be decoded into the same direction and speed by ever Vex Motor.
I found this at http://www.vexlabs.com/forum/viewtopic.php?t=18
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use motors xmarufx Motors 9 02-08-2005 00:22
2 Globe Motors??? ChuckDickerson Motors 18 25-01-2005 15:53
PWM and burning out motors patrickrd Technical Discussion 7 19-06-2003 15:30
Looking for practice motors & extra tape drive parts? archiver 2000 1 23-06-2002 22:54
Suppose you want seat motors... archiver 2000 0 23-06-2002 22:50


All times are GMT -5. The time now is 07:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi