Go to Post Sure, whining is easier than working, but what's more rewarding? - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Motors
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 04-02-2014, 14:26
Anthony4939 Anthony4939 is offline
Registered User
None #4939
 
Join Date: Feb 2014
Location: Brampton
Posts: 25
Anthony4939 is an unknown quantity at this point
Mixed Up Colours on Victors

We are trying to run 4 victor motors. When the robot is not moving, all 4 vicotrs are solid orange.

Full joystick forward, two victors (1 & 2) are red, two are green (3 & 4).

Full joystick back, two victors (1. & 2) are red, have no colour OR sometimes they will flash green (victors 3 & 4)

Also, left on the joystick moves the robot right.
Any ideas?
  #2   Spotlight this post!  
Unread 04-02-2014, 14:38
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,813
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Mixed Up Colours on Victors

That sounds like normal operation. Most of the time, when constructing a robot drive train, one side has to run opposite of the other - in order to go forward, one set of motors drives clockwise, while the other drives counterclockwise.

The way the victors work, you'll get solid orange when they're receiving a "stop", or no motion, signal. Full speed in one direction will turn them green, full speed in the other will turn them red. Anywhere between full speed and stop, however, tends to just have the LED off or flashing.

It sounds like you might just have them swapped around a bit... when you push forward, does the robot actually move forward? When you go backwards, does it actually move backwards? As for it turning right when you want it to turn left, it just sounds like you have the motors programmed opposite of what they should be - the right should be the left and the left should be the right in the code.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #3   Spotlight this post!  
Unread 04-02-2014, 14:44
blackdiamond377 blackdiamond377 is offline
Registered User
FRC #2928
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle WA
Posts: 2
blackdiamond377 is an unknown quantity at this point
So, I don't know why the left-> right thing is happening, but if you have a fairly standard drive train, tank/west coast, then your victors are acting as they should.

Flashing Green: Forward
Solid Orange: Stopped
Flashing Red: Reverse

The right and left side should be opposites, as they are, because your motors are mirrors of each other.
  #4   Spotlight this post!  
Unread 04-02-2014, 14:49
blackdiamond377 blackdiamond377 is offline
Registered User
FRC #2928
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle WA
Posts: 2
blackdiamond377 is an unknown quantity at this point
Well, I guess Jon beat me to it, but I do actually have some input on the left/right mix up.
If you pass in a joystick to the built in arcade drive method you will have that problem. I'm not entirely sure why, but you can fix it by passing in the y and x axis as speed and rotation, respectively, yourself.

Something like this should work:

speed = joy.GetY()
rot = joy.GetX()
robotDrive.ArcadeDrive (speed, rot)
  #5   Spotlight this post!  
Unread 04-02-2014, 19:22
Anthony4939 Anthony4939 is offline
Registered User
None #4939
 
Join Date: Feb 2014
Location: Brampton
Posts: 25
Anthony4939 is an unknown quantity at this point
Re: Mixed Up Colours on Victors

Thanks everyone.......we figured out the left right issue.
  #6   Spotlight this post!  
Unread 04-02-2014, 22:51
Exla357's Avatar
Exla357 Exla357 is offline
Certified Joystick Pusher
FRC #0159 (Alpine Robotics)
Team Role: Electrical
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Fort Collins, CO
Posts: 30
Exla357 will become famous soon enoughExla357 will become famous soon enough
Re: Mixed Up Colours on Victors

I just had the programmers run all motors the same direction and then inverted the power outputs on two of the Victors so that the positives were hooked up to the negative and vice verse. It works fine, and now full forward gives 4 green.
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


All times are GMT -5. The time now is 22:17.

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