Go to Post The question is like asking "Is it better to drive by looking at a map the whole time or by remembering where you want to go and watching the road instead?" - lukevanoort [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 17-02-2012, 19:45
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
How to get maximum output from a Jag?

We are using bicycle wheels on our robot this year (ironically to make crossing the barrier easy), but we are having difficulty crossing a replica of the barrier in the center of the field. When we apply full forward using RobotDrive() (java, arcade drive, 4 motors), it gets the front wheels over the ramp and cuts out when the bottom ones hit the ramp.
We are using 4 black Jaguars updated to firmware 101 and connected with pwm connections. Our mechanical lead has done the math and says the four cim motors we are using should be able to output more power/torque(not sure if I'm using the right word) than we are getting. One of our mentors believes this is because we need to ramp up the speed over a period of time, which should let it cross the barrier. We tried switching the jaguars to automatic ramp mode, which did not help anything. Afterwards we reset it back to manual ramp and using bdc-comm tried to set the ramp values on the jags to 1000, but realized the value reset to 0 when the robot was powercycled (and after we manually changed the values, my code couldn't move the jags until after a powercycle)
Now the mentor believes that it is something in the RobotDrive/Jaguar wpilibj code (which I showed him) that is causing the ramp rate to reset, or to cause the robotdrive to not give the maximum output. As programming lead I explained that the jaguar will only accept values from -1 to 1, and by my understanding full forward sends the maximum output (I tested this by making a button that when pushed sent a value of 1/-1 to all of the Jaguars, which gave the same effect as full forward). My question is are we actually able to get more out of the Jaguars than just using RobotDrive() (without using encoders/CAN/PID loops), and if so how.
Also a quick wpilibj question if anyone can answer. I proved that I was sending the maximum value to the Jaguars by assigning them to a button and outputting the resulting speed using .get(). however I do not know how to read the Jaguars values when using robotdrive (if this is possible). When I create Jaguar objects that are assigned to the same ports as specified in RobotDrive, it will not run.

Any help on this would be great.

tyvmia
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
  #2   Spotlight this post!  
Unread 17-02-2012, 19:50
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: How to get maximum output from a Jag?

Can you post a photo of your robot? It sounds like the problem may be a mechanical problem from an inadequate drive train gear ratio. This would cause the CIM motors to run on the wrong side of the power curve, which would cause too much current draw and a tripped Jaguar over-current protection.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #3   Spotlight this post!  
Unread 17-02-2012, 20:19
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,953
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: How to get maximum output from a Jag?

Quote:
Originally Posted by Thundrio View Post
We are using bicycle wheels on our robot this year (ironically to make crossing the barrier easy), but we are having difficulty crossing a replica of the barrier in the center of the field. When we apply full forward using RobotDrive() (java, arcade drive, 4 motors), it gets the front wheels over the ramp and cuts out when the bottom ones hit the ramp.
We are using 4 black Jaguars updated to firmware 101 and connected with pwm connections. Our mechanical lead has done the math and says the four cim motors we are using should be able to output more power/torque(not sure if I'm using the right word) than we are getting. One of our mentors believes this is because we need to ramp up the speed over a period of time, which should let it cross the barrier. We tried switching the jaguars to automatic ramp mode, which did not help anything. Afterwards we reset it back to manual ramp and using bdc-comm tried to set the ramp values on the jags to 1000, but realized the value reset to 0 when the robot was powercycled (and after we manually changed the values, my code couldn't move the jags until after a powercycle)
Now the mentor believes that it is something in the RobotDrive/Jaguar wpilibj code (which I showed him) that is causing the ramp rate to reset, or to cause the robotdrive to not give the maximum output. As programming lead I explained that the jaguar will only accept values from -1 to 1, and by my understanding full forward sends the maximum output (I tested this by making a button that when pushed sent a value of 1/-1 to all of the Jaguars, which gave the same effect as full forward). My question is are we actually able to get more out of the Jaguars than just using RobotDrive() (without using encoders/CAN/PID loops), and if so how.
Also a quick wpilibj question if anyone can answer. I proved that I was sending the maximum value to the Jaguars by assigning them to a button and outputting the resulting speed using .get(). however I do not know how to read the Jaguars values when using robotdrive (if this is possible). When I create Jaguar objects that are assigned to the same ports as specified in RobotDrive, it will not run.

Any help on this would be great.

tyvmia
What wheel size and what gear ratio are you using. Sounds like you are tripping the breakers from overcurrent.
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
  #4   Spotlight this post!  
Unread 17-02-2012, 20:45
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Re: How to get maximum output from a Jag?

That's what my mech lead says now I showed this thread to him. He says he didn't know the Jaguars tripped from overcurrent (which explains everything according to him). Now he wants to use victors for driving instead.

I love being a programmer =)
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
  #5   Spotlight this post!  
Unread 17-02-2012, 20:52
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,953
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: How to get maximum output from a Jag?

Quote:
Originally Posted by Thundrio View Post
That's what my mech lead says now I showed this thread to him. He says he didn't know the Jaguars tripped from overcurrent (which explains everything according to him). Now he wants to use victors for driving instead.

I love being a programmer =)
I don't think that'll help because I believe it's the snap action 40A breaker thats tripping.

The reason I believe it is tripping is because your gear ratio is too low for the size wheel you are using ... thus my earlier question as to your wheel size and gear ratio.
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
  #6   Spotlight this post!  
Unread 17-02-2012, 21:04
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Re: How to get maximum output from a Jag?

20 inch tires and he says the gear ratio is "big".

But the reason he says he doesn't think its the PD board is we had our mentor who put a "ring thing" (yes its a technical term, it was attached to his multimeter but idk what it was) around the out wires on the jags when we ran against the barrier and it wasn't drawing 40 amps from the jags.

ty for all the help.
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
  #7   Spotlight this post!  
Unread 17-02-2012, 21:25
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
Re: How to get maximum output from a Jag?

"Big" is a relative term. For 6" wheels, 12:1 is "big." For 20" tires, I'm not sure what I'd constitute as "big."

Also, the Jag's overcurrent protection shouldn't trip before your 40A breakers. It seems like you need a higher gear ratio that you have. It would be helpful to know what exactly it is you have though.
__________________
Joe
"The ones who will one day rule the world rule the basketball court today."

http://www.fatherjudgerobotics.webs.com

Volunteer 2012 MAR Region Championship - Field Reset
Volunteer 2013 MAR Region Championship - Field Reset
  #8   Spotlight this post!  
Unread 17-02-2012, 21:30
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: How to get maximum output from a Jag?

Quote:
Originally Posted by nitneylion452 View Post
Also, the Jag's overcurrent protection shouldn't trip before your 40A breakers.
Actually, this happens quite easily. I've seen numerous occasions where the Jags brownout for several seconds due to "over current" but the 40a snap action breakers are fine.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #9   Spotlight this post!  
Unread 17-02-2012, 21:35
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Re: How to get maximum output from a Jag?

the mech lead says the gear ratio is 5:1 running of a andymark cimple box using 2 cims.
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
  #10   Spotlight this post!  
Unread 17-02-2012, 21:52
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
Re: How to get maximum output from a Jag?

Quote:
Originally Posted by Thundrio View Post
the mech lead says the gear ratio is 5:1 running of a andymark cimple box using 2 cims.
EDIT: A CIMple box's ratio is closer to 4.67:1. Just wanted to throw that out there.

EDIT 2: In this case, you need more torque rather than speed.

You need a much higher gear ratio. 5:1 is not nearly enough for 20" tires. 5:1 is barely enough for 6" kit wheels.

[rant] I hate that AndyMark is providing these gearboxes. You can't do nearly enough with them. The ToughBox was much better. Provided a lot of torque and gave good speed right out of the box (okay, right after assembly). [/rant] That's not to say that I don't LOVE AndyMark. They are among the best vendors to deal with.

@art

Really? I've been fed lies! Though I find it hard to believe that a we use a breaker that trips at a higher current than the Jag's internal protection.
__________________
Joe
"The ones who will one day rule the world rule the basketball court today."

http://www.fatherjudgerobotics.webs.com

Volunteer 2012 MAR Region Championship - Field Reset
Volunteer 2013 MAR Region Championship - Field Reset
  #11   Spotlight this post!  
Unread 17-02-2012, 22:28
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: How to get maximum output from a Jag?

Quote:
Originally Posted by Thundrio View Post
the mech lead says the gear ratio is 5:1 running of a andymark cimple box using 2 cims.
There's your problem!

To run a robot with 20" wheels, you need an overall ratio between your CIM motors and the wheels of about 40:1 to 50:1. With 20" bicycle wheels and only the AndyMark Cimple Box ratio of 4.67:1, your robot is currently geared for about 99 ft/sec! With this gear ratio and wheels that large it's unlikely you'll even be able to drive even in a straight line without tripping the 40 amp breakers.

If you switch over to an AndyMark Toughbox (12.75:1 ratio), you can then use a final sprocket reduction (for example, a 12-tooth sprocket on the Toughbox output and a 42-tooth sprocket on one of your wheels). This will make your robot geared for about 9 ft/sec under nominal load, which should fix the over current issues with your drivetrain.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #12   Spotlight this post!  
Unread 17-02-2012, 22:37
remulasce remulasce is offline
Registered User
no team
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Mtn View
Posts: 138
remulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to behold
Re: How to get maximum output from a Jag?

Actually, you /do/ get a breaker that trips before the Jaguar- except only in theory. The jaguar protection is electronic and trips based on the combination of current and length of time drawn. It will allow 40 amps forever, 60 amps for 2 seconds, and something like 100amps for a fraction of a second (an exponential curve) before tripping. However, even with this extra allowance, the electronic protection will trip long before the breakers. If I recall correctly, the mechanism inside the breakers triggers based on temperature, so they can take bursts of current rather easily before they finally heat up and trip. That last sentence was mostly dim-memory, though as a former driver tasked with playing D, I can assure you that the jaguars trip long before the breakers.


And ditto on the gear ratio: When I was looking to motorize my bike, I was considering how to run two CIMples in series for a 25:1 ratio. And that was just to get a good top speed, I wasn't even going to hope for any sort of acceleration.
__________________
Student 294: 2007-2011
Mentor 597: 2013-2015
Google SWE: 2015-

Last edited by remulasce : 17-02-2012 at 22:40.
  #13   Spotlight this post!  
Unread 18-02-2012, 00:05
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Re: How to get maximum output from a Jag?

Ok, so just to be clear, this is not an issue that can be fixed through software (whether that is switching to victors, ramping, or what), we have to switch the gear ratio correct (I want to be 100% before I tell the mech lead its not my fault).
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
  #14   Spotlight this post!  
Unread 18-02-2012, 00:44
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,025
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to get maximum output from a Jag?

Quote:
Originally Posted by Thundrio View Post
(I want to be 100% before I tell the mech lead its not my fault).
The problem is, it's not clear that you have given a full description of your drivetrain. All you have told us is this:

Quote:
Originally Posted by Thundrio View Post
the mech lead says the gear ratio is 5:1 running of a andymark cimple box using 2 cims.
As was pointed out in a previous post, there is no 5:1 Cimple box. It's 4.67:1. That's not a big difference, but most folks would give the proper number so it raises questions. And, you haven't clearly stated what happens between the output shaft of the gearbox and the wheel. Are you direct-driving the wheels? Or do you have chains, and if so, what are the sprocket tooth counts on the driving and driven sprockets?

Also, you said you had 20" tires. How do you fit four 20" tires on a robot without violating the frame perimeter? Are they really 20" diameter? Are they staggered or something?



Last edited by Ether : 18-02-2012 at 00:48.
  #15   Spotlight this post!  
Unread 18-02-2012, 01:04
Bill_B Bill_B is offline
You cannot not make a difference
FRC #2170
 
Join Date: Jan 2010
Rookie Year: 2004
Location: Connecticut
Posts: 1,099
Bill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond repute
Re: How to get maximum output from a Jag?

There are at least two ways the jaguars can "trip" out, or stop trying to send as much current as the motor can use. The first and most prominent one has already been explained. The jags will also reset if the voltage to them goes below a certain level. Voltage can drop due to excessive current being drawn from a mostly-discharged battery. It seems probable to me that a few frustrating runs with the described mechanical setup might have depleted the battery being used on their test. This would further complicate their problem diagnosis.

BTW I too want to see those 20" wheels, as they must be overlapped somehow AND the bumper placement must be something to behold for a frame that can support such wheels. Take some pictures. If you're not sure how to post them, mail to me and I'll put them up for you.
__________________
Nature's Fury FLL team 830 - F L eLements
FRC team 2170 - Titanium Tomahawks
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:55.

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