Go to Post Good robots with bad drivers can lose. Bad robots with good drivers can win. Good robots with good drivers can dominate. - James Tonthat [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 19-02-2012, 21:59
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Unhappy Overworked jaguars

Our jaguar on our conveyor belt will run and then stop after a few seconds. There is a minor mechanical problem, but there is friction acting upon the motor. This is a CIM motor on a torque setup with one other sprocket with the conveyor belt attached. I ran into this problem when they were ready to test the shoot (a two wheel apparatus on a CIM motor) and the wires would get hot and sparks were arcing from the battery due to friction. This was because of a speed gear setup. When they fixed it, it was on a jaguar. When the motor hit full speed, the jaguar was overworked and the jaguar had a slow blinking light for about 2 to 3 seconds and it would go back to normal. I determined, on accident and with a mentor realizing the issue, that when you slowly work the motor up for a few seconds and hit full speed, then the motor will run for a long time. With the conveyor belt, I feel that there is too much friction because it would either run or twitch the chain at random points in time with the overworked red light. Any suggestions will be very helpful!

Thanks in advanced and Happy Competitions!
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
  #2   Spotlight this post!  
Unread 19-02-2012, 22:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Overworked jaguars

Quote:
Originally Posted by NS_Radication View Post
when you slowly work the motor up for a few seconds and hit full speed, then the motor will run for a long time.

Any suggestions will be very helpful!
Add slew rate limiting to your motor commands.

http://www.chiefdelphi.com/forums/sh...23&postcount=2


  #3   Spotlight this post!  
Unread 19-02-2012, 22:07
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Overworked jaguars

While you can ramp the motor up in code as well, Jaguars also allow you to configure the hardware so that it always ramps, regardless.

See Q4 and Q5 here to understand what automatic ramp mode is.

The guide for implementing automatic ramp mode is here on p11-12.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #4   Spotlight this post!  
Unread 19-02-2012, 22:14
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Overworked jaguars

Quote:
Originally Posted by slijin View Post
While you can ramp the motor up in code as well, Jaguars also allow you to configure the hardware so that it always ramps, regardless.
Some thoughts:

1) The user-configurable ramp feaure in the Jag is available only if CAN bus is being used to command the Jag.

2) I think they may want to ramp in one direction only. Does the ramp feature in the Jags allow for that?

3) What is the slowest ramp rate supported by the Jag ramp feature? Sounds like they are going to need something on the order of seconds, not fractions of a second. Is that supported?


  #5   Spotlight this post!  
Unread 19-02-2012, 22:23
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Re: Overworked jaguars

Well, let's see what you think with this info:

I am programming in Java and I had the program on an axis control for testing. I recently programmed a speed buttons and will test it tomorrow. This is a SimpleRobot setup and we are not using CAN setups.

The direction is only one direction and I do not seem to understand how to answer the last two quests/thoughts, possibly due to terminology.

I have seen your single post of the rate-limit and have had programmers block on implementing that system with a single button use.

I hope I supplied enough information. If not, catch me on it and tell me what you think!

Thanks again for the help!
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
  #6   Spotlight this post!  
Unread 19-02-2012, 22:35
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Overworked jaguars

Quote:
Originally Posted by Ether View Post
2) I think they may want to ramp in one direction only. Does the ramp feature in the Jags allow for that?
I'm not entirely sure; our experience with Jaguars has been quite dismal, so we've never actually had to use this command. If their shooter is that difficult to turn though, wouldn't they want bidirectional ramping regardless?

Quote:
Originally Posted by Ether View Post
3) What is the slowest ramp rate supported by the Jag ramp feature? Sounds like they are going to need something on the order of seconds, not fractions of a second. Is that supported?
According to the CAN guide (see p14), the user-configurable rate is a "16-bit 8.8 unsigned fixed point number", so I would suppose so (but cannot confirm).
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #7   Spotlight this post!  
Unread 19-02-2012, 22:35
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Overworked jaguars

Quote:
Originally Posted by NS_Radication View Post
I have seen your single post of the rate-limit and have had programmers block on implementing that system with a single button use.
I can figure out the intended meaning of the above sentence. Could you please try wording it a different way?


  #8   Spotlight this post!  
Unread 19-02-2012, 22:39
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Re: Overworked jaguars

Well, the motor (conveyor) is being set to a if(button hit) then move motor this set speed (unknown until testing done). Basically a single button conveyor belt movement.

Any ideas?
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
  #9   Spotlight this post!  
Unread 19-02-2012, 22:39
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Overworked jaguars

Quote:
Originally Posted by NS_Radication View Post
The direction is only one direction and I do not seem to understand how to answer the last two quests/thoughts, possibly due to terminology.

I have seen your single post of the rate-limit and have had programmers block on implementing that system with a single button use.
The problem you describe implies that the gearing on your shooter necessitates some sort of ramping feature; that is, rather than an instantaneous change in supplied power, a gradual change. This is implemented by rate-limiting, which implements a maximum rate of change so that the Jaguar's over current protection will not cut in and stop your shooter.

My suggestion was to use the Jaguar's automatic ramp mode, which can be done by changing the jumper configuration on the limit switches from both vertical to both horizontal; this ramps the power change over a sixteenth of a second (assuming you're going from zero to full forward). Refer to p12 of the document I originally linked for a diagram of what the jumper configuration should look like.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #10   Spotlight this post!  
Unread 19-02-2012, 22:43
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Overworked jaguars

Quote:
Originally Posted by NS_Radication View Post
Well, the motor (conveyor) is being set to a if(button hit) then move motor this set speed (unknown until testing done). Basically a single button conveyor belt movement.

Any ideas?
Yes. Run that set speed through the rate limiter before passing it on to the motor. The output of the rate limiter will limit the rate of change of the motor command. You can make it as slow (or fast) as you like.


  #11   Spotlight this post!  
Unread 19-02-2012, 22:46
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Overworked jaguars

Quote:
Originally Posted by slijin View Post
My suggestion was to use the Jaguar's automatic ramp mode, which can be done by changing the jumper configuration on the limit switches from both vertical to both horizontal; this ramps the power change over a sixteenth of a second
from the original post:

Quote:
Originally Posted by NS_Radication View Post
I determined, on accident and with a mentor realizing the issue, that when you slowly work the motor up for a few seconds and hit full speed, then the motor will run for a long time.


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 19:57.

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