Go to Post People don't have to "get" it. They just have to know about it. Once they know about it, then they come to it, experience it, talk to it, learn it, then get it. - Taylor [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 11-02-2006, 11:26
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Backwards motor

Hi everyone. We just realized that the way our motors are wired, we have one motor going backward when we tell it to go forward. Has anyone else had this problem, and how have they fixed it?

Thanks in advance
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2006, 11:36
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Re: Backwards motor

This is probably a very simple problem. Your motor has probably been wired with reverse polarity: so you can probably just flip the wiring. Put the red wire to were the black one is, and vice versa.

That should help!
__________________
"It's programming's fault" may be a viable excuse for just about everything, except the robot falling apart.

It will 'cause it can!

constants aren't. variables won't.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2006, 11:54
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Backwards motor

Quote:
Originally Posted by xrabohrok
This is probably a very simple problem. Your motor has probably been wired with reverse polarity: so you can probably just flip the wiring. Put the red wire to were the black one is, and vice versa.

That should help!
on the speed controller that is.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2006, 12:02
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Backwards motor

Specifically on the motor output end of the speed controller (labelled M+ and M-). Don't reverse the polarity anywhere else! If you reverse the inputs (V+ and GND) you'll fry the poor controller...
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2006, 12:21
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Backwards motor

actually, the wires are right. red-red black-black, and if we change them, someone said we'd fail inspection
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2006, 12:35
FIRSTnameisJay FIRSTnameisJay is offline
Registered User
#1127
 
Join Date: Mar 2003
Location: Milton High
Posts: 5
FIRSTnameisJay is an unknown quantity at this point
Re: Backwards motor

My only concern with simply switching the wires is the actual performance of the motors. I might be wrong on this but those CIM motors travel slower when going backwards than they do when going forwards. Does anyone know if this is correct?
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2006, 12:48
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Backwards motor

Quote:
Originally Posted by paulcd2000
actually, the wires are right. red-red black-black, and if we change them, someone said we'd fail inspection
A common misconception. The rule for wire colors is
<R81> All wires distributing power with a constant polarity (i.e., except for Relay Module, Speed Controller, or
sensor outputs) must be color-coded as follows:
• Use Red, White, or Brown wire for +12 Vdc and +5 Vdc connections.
• Use Black or Blue wire for Common (-) connections.

Since the wires to motors are not constant polarity, you may reverse these leads to allow the motor to run in the needed direction. You may also make the change in software if you are so inclined. You will not fail inspection for reversing the motor leads at the output side of the controller.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #8   Spotlight this post!  
Unread 11-02-2006, 15:21
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
Re: Backwards motor

Quote:
Originally Posted by Al Skierkiewicz
A common misconception. The rule for wire colors is
<R81> All wires distributing power with a constant polarity (i.e., except for Relay Module, Speed Controller, or
sensor outputs) must be color-coded as follows:
• Use Red, White, or Brown wire for +12 Vdc and +5 Vdc connections.
• Use Black or Blue wire for Common (-) connections.

Since the wires to motors are not constant polarity, you may reverse these leads to allow the motor to run in the needed direction. You may also make the change in software if you are so inclined. You will not fail inspection for reversing the motor leads at the output side of the controller.
Remember that the left and right drive train assemblies are mirror images. If you wire them both the same and send the pwm ports the same values say 200, one set of wheels will be going forward and the other set of wheels will be going backwards. Nothing is wrong with the wiring, the software needs to send the opposite values to the left and right sides. If speed is x then 127 - x to one side and 127 + x to the other will have both sets going forward or both going in reverse
Reply With Quote
  #9   Spotlight this post!  
Unread 11-02-2006, 16:38
dude__hi's Avatar
dude__hi dude__hi is offline
Now a CSWA
AKA: Cristian Arcega
FRC #0842 (Falcon Robotics)
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Phoenix
Posts: 104
dude__hi is an unknown quantity at this point
Re: Backwards motor

we just switched the leads going into the speed controller from the motor
__________________
Powerpoint is a distraction, people use it when they don't know what to say...

2008 FIRST Chairman's Award Winner
Reply With Quote
  #10   Spotlight this post!  
Unread 11-02-2006, 17:23
Cody Carey's Avatar
Cody Carey Cody Carey is offline
,':-)
AKA: C. Carey
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry, PA
Posts: 1,137
Cody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond repute
Send a message via AIM to Cody Carey Send a message via Yahoo to Cody Carey
Re: Backwards motor

There is about a 2% difference in performance between running the motors forwards or backwards... you might not want to do that
instead, just go into the default codes' "user_routines" section, and where it says P1_y or P2_Y, (whichever joystick is messing up) change it to (p1_y*-1)
I believed that that worked for us anyway...
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 11-02-2006, 17:48
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Re: Backwards motor

Changing the signal and changing the wires are functionally equivalent - the only way to compensate for a forward/reverse bias would be to mount the motors or to use some sort of closed-loop control.
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!
Reply With Quote
  #12   Spotlight this post!  
Unread 11-02-2006, 17:50
Cody Carey's Avatar
Cody Carey Cody Carey is offline
,':-)
AKA: C. Carey
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry, PA
Posts: 1,137
Cody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond repute
Send a message via AIM to Cody Carey Send a message via Yahoo to Cody Carey
Re: Backwards motor

What do you mean to mount the motors?
I think that they are most likey allready mounted...
But you never know, huh?
__________________
Reply With Quote
  #13   Spotlight this post!  
Unread 11-02-2006, 21:22
ida_noeman's Avatar
ida_noeman ida_noeman is offline
Registered User
AKA: phobbs
FRC #1719 (Umbrella Corp.)
Team Role: Mechanical
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore, MD
Posts: 129
ida_noeman is on a distinguished road
Re: Backwards motor

So, if we reverse the wiring, will the forward/backwards difference be gone? I.e. if we reverse the wiring, and set both values to 254, will they go the same speed?
__________________
--
"Weeks of coding can save you hours of planning"
"If the code was hard to write, I'm dam well going to make it hard to read!"
Reply With Quote
  #14   Spotlight this post!  
Unread 11-02-2006, 21:43
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,510
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: Backwards motor

Maybe not, maybe so. There have been reported differences in both motors and speed controls between forward and revers. When you are driving in the forward direction, make sure allyour pwm values are above 127. This should yield better performance. If your robot still doesn't go straight, manually fine tune the software or live with it because the bias is in the motor or your mechanical drive system.
__________________
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
Reply With Quote
  #15   Spotlight this post!  
Unread 13-02-2006, 09:57
the_short1's Avatar
the_short1 the_short1 is offline
Head of Electronics
AKA: Kevin F.
FRC #1596 (Twin Saults International Instigators)
Team Role: Electrical
 
Join Date: Feb 2005
Rookie Year: 2005
Location: CANADA
Posts: 252
the_short1 is a name known to allthe_short1 is a name known to allthe_short1 is a name known to allthe_short1 is a name known to allthe_short1 is a name known to allthe_short1 is a name known to all
Send a message via MSN to the_short1
Re: Backwards motor

yes reversing output wires is easiest for coding, then to compensate for bias, drive the robot using pure code (no joystick) with pwm1 being left and pwm2 being right motors...
code:
pwm01 = 175;
pwm02 = 175;

then see if the robot pulls to the left or the right... if so adjust the numbers until it drives straight... you might end up with 175:180 .. then take the difference (5) and add it automatically to the drive code (pwm02 = p2_y +5) so it will send the joysticks value to the pwm but add 5 to compensate for bias.

or for somethign more complicated, use a percentage (as you drive faster add more to the joystick to compensate)

hope that helps
__________________
2005 GLR: 12th/58 Seed, Aliance: 1596, 910, 1447 (Semi Finalists) Website, Rookie All Star, Highest Rookie Seed, and 2 Peer Awards, my BIG thank you thread, PLEASE READ
2005 GTR: 11th/66 Seed, Aliance: 703, 1596, 1680 (Semi Finalists) Highest Rookie Seed & 1 Peer Awards
2005 Championship (Galileo): 36th/86 Seed Highest Galileo Match Score: 123:7 Thanks 447 and 121
2006 Website (Totally Revamped):Instigators1596.com
2006 GLR: 31st/61 Seed, Aliance: 835, 1213, 1596 (Quarter Finalists) Spirit & 3 peer awards, THX!
2006 Waterloo: 7th/31 Seed, Aliance: 1219, 1596, 912 (Semi Finalists) Spirit & 2 peer awards, THX!
2006 Waterloo: Aliance: 1596, 1680, 1114 Higest Match Score: (Q22) 128|32
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
Low Cost Planetary Gearbox Source... Joe Johnson Motors 32 14-11-2006 18:02
Inductance of CIMs phrontist Electrical 13 06-01-2006 09:17
Cheap Torque Measurement? ChuckDickerson Motors 15 13-06-2005 13:57
**FIRST EMAIL**/Important Fisher-Price motor and gearbox information sanddrag FIRST E-Mail Blast Archive 1 11-02-2005 18:19
DC motor design project Ian Mackenzie Motors 0 29-01-2005 13:30


All times are GMT -5. The time now is 23:49.

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