Go to Post I guess everyone cant play real defense, like actually pushing the other robot instead of ramming it with the intent to destroy. - Dillon Compton [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 23-01-2012, 03:59
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Encoder rate

What is the Jaguar's maximum encoder rate?

Would a K.O.P. encoder work well as a tachometer (only use channel A) for velocity control when driven directly from a CIM or FischerPrice motor?
Or would some sort of encoder divider (a few flip flops) be needed to reduce the input rate? (with the necessary scaling factors in place in the software to output the correct rate)
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2012, 08:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: Encoder rate

Quote:
Originally Posted by biojae View Post

What is the Jaguar's maximum encoder rate?

Would a K.O.P. encoder work well as a tachometer (only use channel A) for velocity control when driven directly from a CIM or FischerPrice motor
If anyone has successfully used the Jaguar's built-in speed control would you please share your experience here?

Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2012, 10:07
MaxMax161's Avatar
MaxMax161 MaxMax161 is offline
Allegedly Useful
AKA: Max Llewellyn
FRC #2791 (Shaker Robotics), FRC #1676 (Pascack π-oneers)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Montvale NJ\Troy NY
Posts: 174
MaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond repute
Re: Encoder rate

Reading through the data sheet I got this;

Quote:
The input frequency of the QEI (Quadrature Encoder Interface) inputs may be as high as 1/4 of the processor frequency (for example, 12.5 MHz for a 50-MHz system)
I double checked the specs of the jag processor just in case and it's 50 MHz.

I hope this helps!
__________________
2791 Shaker Robotics (2013-present)
--Control Systems Mentor 2013-present
--Drive coach 2015-present

1676 The Pascack π-oneers (2010-2013)
--Drive coach 2011-2013
--Lead Programmer 2011-2013
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2012, 10:16
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: Encoder rate

Quote:
Originally Posted by MaxMax161 View Post
Reading through the data sheet I got this;



I double checked the specs of the jag processor just in case and it's 50 MHz.

I hope this helps!
If you look at the datasheet for the black jaguar, it says 1e6 transitions per second. If you consider that there are 4 transitions used for quadrature encoding you get 250,000 lines per second. With a 100 click per rev encoder you'd get 2500 revs per second. That's 150,000 RPMs. The Jags should handle anything you can throw at them.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2012, 16:17
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Encoder rate

Quote:
Originally Posted by Ether View Post
If anyone has successfully used the Jaguar's built-in speed control would you please share your experience here?
Haven't tried yet, going to try method 2 first.
( PI loop)

Wanted to make sure that the Jag would be able to handle the high encoder rate before trying it.

Quote:
Originally Posted by Bryscus View Post
If you look at the datasheet for the black jaguar, it says 1e6 transitions per second. If you consider that there are 4 transitions used for quadrature encoding you get 250,000 lines per second. With a 100 click per rev encoder you'd get 2500 revs per second. That's 150,000 RPMs. The Jags should handle anything you can throw at them.
Cool. Thanks.

We are going to use just one output (channel A) of a 360 count per revolution encoder.
I don't think that there is a need for direction sensing on our mechanism.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!

Last edited by biojae : 23-01-2012 at 17:26.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2012, 11:42
MikeE's Avatar
MikeE MikeE is offline
Wrecking nice beaches since 1990
no team (Volunteer)
Team Role: Engineer
 
Join Date: Nov 2008
Rookie Year: 2008
Location: New England -> Alaska
Posts: 381
MikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond reputeMikeE has a reputation beyond repute
Re: Encoder rate

Quote:
Originally Posted by biojae View Post
We are going to use just one output (channel A) of a 360 count per revolution encoder.
I don't think that there is a need for direction sensing on our mechanism.
We are also investigating the same approach, using a Hall effect sensor to control wheel speed.

While this is working for cRIO control, it's proving difficult to close the loop on the Jaguar. I'm aware of the thread on Jaguar speed control http://www.chiefdelphi.com/forums/sh...d.php?t=100135 but we're seeing an even more basic problem with the encoder.

We hooked up the encoder to the Jag input using just 3 wires (+, A, -), and in software set the encoder type to kEncoder (cf kQuadEncoder).
Plotting the value of getSpeed(), we saw a useful signal when the shaft was rotating, but noise around 20kHz when the shaft was stationary rather than the expected zero speed reading.
Investigations continue...

Has anyone got a non-Quad encoder to work with Jaguar closed-loop?
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2012, 16:25
vamfun vamfun is offline
Mentor :Contol System Engineer
AKA: Chris
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Van Nuys, California
Posts: 182
vamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of light
Send a message via AIM to vamfun
Re: Encoder rate

Quote:
Originally Posted by MaxMax161 View Post
Reading through the data sheet I got this;



I double checked the specs of the jag processor just in case and it's 50 MHz.

I hope this helps!
I confirmed this too... but I am not sure if there are additional delays due to interupt processing. If I recall correctly, the pic used to have about 10 t0 20 us per interrupt for processing. Maybe a JAG engineer can chime in with respect to actual line/second limits.
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2012, 17:21
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Encoder rate

Quote:
Originally Posted by vamfun View Post
I confirmed this too... but I am not sure if there are additional delays due to interupt processing. If I recall correctly, the pic used to have about 10 t0 20 us per interrupt for processing. Maybe a JAG engineer can chime in with respect to actual line/second limits.
I suspect the jaguar is using the hardware quadrature decoder, rather then a software interrupt driven routine.
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2012, 17:51
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: Encoder rate

Quote:
Originally Posted by vamfun View Post
Maybe a JAG engineer can chime in with respect to actual line/second limits.
http://www.chiefdelphi.com/forums/sh...2&postcount=14
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


All times are GMT -5. The time now is 00:51.

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