Go to Post Invest our time in enhancing the process of conceiving, designing, testing and deploying the game - billylo [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2008, 19:40
jtd07 jtd07 is offline
Registered User
FTC #2641
 
Join Date: Jan 2008
Location: pittsburgh
Posts: 7
jtd07 can only hope to improve
Reversing motors electrically?

is it possible to have a single motor got both forward and reverse without manually reversing wires to terminal?? this question is in relation to having 4 mecanum wheels and having a single motor on the front right and back left to achieve "staffing" and ideas???
  #2   Spotlight this post!  
Unread 16-01-2008, 19:42
Joe G.'s Avatar
Joe G. Joe G. is offline
Taking a few years (mostly) off
AKA: Josepher
no team (Formerly 1687, 5400)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2007
Location: Worcester, MA
Posts: 1,447
Joe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond reputeJoe G. has a reputation beyond repute
Send a message via AIM to Joe G.
Re: Reversing motors electrically?

Yes, all motors can be put into reverse through the PWM value sent to them

0 is full backward*
127 is stopped
255 is full forward*

*these might be flipped depending on the orientation of your motors, and how your robot is geared.
__________________
FIRST is not about doing what you can with what you know. It is about doing what you thought impossible, with what you were inspired to become.

2007-2010: Student, FRC 1687, Highlander Robotics
2012-2014: Technical Mentor, FRC 1687, Highlander Robotics
2015-2016: Lead Mentor, FRC 5400, Team WARP
2016-???: Volunteer and freelance mentor-for-hire

Last edited by Joe G. : 16-01-2008 at 19:44.
  #3   Spotlight this post!  
Unread 16-01-2008, 20:01
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Reversing motors electrically?

if it's a smaller motor like a globe motor or similar, you can use a relay.

ex on relay 1"

relay1_fwd=1;
relay1_rev=0;

this makes the motor go forward.

this makes the motor go backwards:

relay1_fwd=0;
relay1_rev=1;
__________________


  #4   Spotlight this post!  
Unread 16-01-2008, 20:08
jtd07 jtd07 is offline
Registered User
FTC #2641
 
Join Date: Jan 2008
Location: pittsburgh
Posts: 7
jtd07 can only hope to improve
Re: Reversing motors electrically?

thanks that helped now in relation to the ifi dash board what exactly do you do with that, is that where you put in those values or in robot c?
  #5   Spotlight this post!  
Unread 16-01-2008, 20:13
robbrad robbrad is offline
Registered User
FRC #1875 (Autonomato Autonomatons)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2005
Location: Titusville
Posts: 37
robbrad is an unknown quantity at this point
Re: Reversing motors electrically?

In your robot code you relate the input from the joysticks to your pwm values and use pwmxx=relationship in your code loop to send the calculated signals to your speed controlers.
__________________
  #6   Spotlight this post!  
Unread 17-01-2008, 08:19
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: Reversing motors electrically?

Quote:
Originally Posted by jtd07 View Post
is it possible to have a single motor got both forward and reverse without manually reversing wires to terminal?? this question is in relation to having 4 mecanum wheels and having a single motor on the front right and back left to achieve "staffing" and ideas???
As Joe has pointed out, the Victor speed controllers actually make the polarity change for you. The basis of their design is an "H" bridge motor controller. In addition to speed and direction control, the "H" bridge also allows a shorting function which will dynamically brake the motor by using it as a genrator. This function is selected on a jumper on the controller. It is marked BC and is next to the PWM connector. This can be wired to a digital output on the RC and that would allow software control of the braking function for different conditions.
If you use the default code and find that one or more motors are running in a direction opposite of what you need, then it is acceptable to the reverse the motor leads at the output side only of the speed controller. Wire color code is meaningless for the wires between the motor and the Victor since the polarity changes.
The dashboard port on the OI is a method of looking at the data sent between the OI and the RC. There are various programs available for interpreting the data but the dashboard port is not needed for normal operation. Most teams will never connect anything to it.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #7   Spotlight this post!  
Unread 17-01-2008, 14:29
SteveJanesch SteveJanesch is offline
hopes he has enough oomph
FRC #1533 (Triple Strange)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Greensboro, NC
Posts: 103
SteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to beholdSteveJanesch is a splendid one to behold
Re: Reversing motors electrically?

Here's how the "H" in H-bridge gets its name (see thumbnail) - there are actually 4 switches, two used for forward and the other two for reverse, which make an "H" configuration with the load (in this case the motor) in the middle. Normally when the motor is off, all four switches are open, but if the braking function is used then the top two switches are open and the bottom two are closed, providing the short (please correct me if I'm wrong here, Al).

Steve
Attached Thumbnails
Click image for larger version

Name:	ScreenHunter_1.jpg
Views:	60
Size:	33.1 KB
ID:	6046  
  #8   Spotlight this post!  
Unread 17-01-2008, 15:19
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: Reversing motors electrically?

No, it's a perfect explanation, Steve.
To take this descussion a step further, the switches in the Victor are capable of switching on and off at about 120HZ and with varying pulse width to accomplish the speed control. The Spike uses the exact same configuration except with relays. A Spike cannot control speed but it can turn on any switch which can allow both outputs to be connected to the positive voltage or the negative voltage which is handy when controlling some solenoid valves.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #9   Spotlight this post!  
Unread 17-01-2008, 17:59
i_am_samus's Avatar
i_am_samus i_am_samus is offline
Why? Why not.
AKA: Rida
FRC #2590 (Nemesis)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Robbisnville, NJ
Posts: 93
i_am_samus has a spectacular aura abouti_am_samus has a spectacular aura abouti_am_samus has a spectacular aura about
Re: Reversing motors electrically?

One thing that I don't think anyone mentioned is that if you have two CIM motors attached to one gear box, you cannot have one running one way while the other runs the opposite. The gears work together unfortunately.
  #10   Spotlight this post!  
Unread 17-01-2008, 20:35
dlavery's Avatar
dlavery dlavery is offline
Curmudgeon
FRC #0116 (Epsilon Delta)
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Herndon, VA
Posts: 3,176
dlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond reputedlavery has a reputation beyond repute
Re: Reversing motors electrically?

Quote:
Originally Posted by i_am_samus View Post
One thing that I don't think anyone mentioned is that if you have two CIM motors attached to one gear box, you cannot have one running one way while the other runs the opposite. The gears work together unfortunately.
Be careful. That is absolutely not a universal truth. The need for the all motors to turn in the same or different directions is entirely dependent upon the design of the gear train that combines the motor outputs. We have had many cases in the past where the multi-motor setups we have designed have required counter-rotating motors. This may be caused by physical limitations on the available space which force the use of smaller gears, resulting in an extra idler in the system, or many other reasons.

In some cases, this is actually a very desirable design option. Most here are familiar with the concept of motor bias, in which the motor will perform better when turning in one direction that the other. Consider a typical set up with paired motors on each side of the robot providing mechanical input to the robot mobility system. When the robot is driving, one side is always running "backwards" and against the bias. When attempting to drive full speed straight forward, it is under-running the other side, which is favored by the bias. We usually deal with that by adding software to curtail the input voltage of the "stronger" side, effectively limiting the performance until it matches the "weaker" side. This is a simple and effective solution, but not necessarily an optimum one.

A nice alternative is to throw an extra idler in the gear train coupling the pair of motors on each side. Then when the robot is running "flat out" each side has one motor that is running full speed with the bias, and one motor running full speed against the bias. The net result is that each side has the same speed/torque output, and one side is not out running the other. So the robot runs straight, and doesn't drive in big arcs when both joysticks are full forward (assuming a dual-joystick OI setup) without any special software.

-dave
__________________
"I know what you're thinking, punk," hissed Wordy Harry to his new editor, "you're thinking, 'Did he use six superfluous adjectives or only five?' - and to tell the truth, I forgot myself in all this excitement; but being as this is English, the most powerful language in the world, whose subtle nuances will blow your head clean off, you've got to ask yourself one question: 'Do I feel loquacious?' - well do you, punk?"
- Stuart Vasepuru, 2006 Bulwer-Lytton Fiction Contest



My OTHER CAR is still on Mars!!!
Closed Thread


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
Motors, Motors, and More Motors 1033missions Motors 1 09-02-2006 18:46
Reversing motors railerobotics Programming 5 16-01-2006 18:36
Reversing controls? Calvin Programming 10 14-03-2005 22:46
Reversing the joystick axis JBotAlan Programming 3 09-02-2005 19:47
Electrically Isolating Wiper Motors Jim Meyer OCCRA 8 12-10-2001 06:23


All times are GMT -5. The time now is 12:38.

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