Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   High speed encoders (http://www.chiefdelphi.com/forums/showthread.php?t=101080)

RB73 24-01-2012 21:05

High speed encoders
 
Our team would like to have feedback from our shooter wheels, but we know that a problem occurs when there is feedback of 5000 RPM and over. Does anyone have suggestions as to how to get speed feedback from the wheels?

bear24rw 24-01-2012 22:43

Re: High speed encoders
 
What problems occur? How many pulses per revolution are the encoders you are using?

MrForbes 24-01-2012 23:24

Re: High speed encoders
 
We are working on setting up a latching Hall effect sensor, with one pulse per revolution.

I think there's a thread about it here somewhere....

http://www.chiefdelphi.com/forums/sh...d.php?t=100422

We'll let you know how it works out.

pfreivald 24-01-2012 23:41

Re: High speed encoders
 
Quote:

Originally Posted by RB73 (Post 1112939)
Our team would like to have feedback from our shooter wheels, but we know that a problem occurs when there is feedback of 5000 RPM and over. Does anyone have suggestions as to how to get speed feedback from the wheels?

The encoders that come in the kit are rated at up to 10,000 rpm. Even at that speed, that's only ~42,000 counts per second. 24 microseconds should be plenty long enough between counts for the CRio to handle... I hope? Or is there something here I'm missing?

Ether 24-01-2012 23:46

Re: High speed encoders
 
Quote:

Originally Posted by pfreivald (Post 1113053)
The encoders that come in the kit are rated at up to 10,000 rpm. Even at that speed, that's only ~42,000 counts per second. 24 microseconds should be plenty long enough between counts for the CRio to handle... I hope? Or is there something here I'm missing?

Here's a thread from Jan 2010 on the NI forum. Can anyone confirm the advice given there is accurate and current?

https://decibel.ni.com/content/message/12523


pfreivald 24-01-2012 23:54

Re: High speed encoders
 
Quote:

Originally Posted by Ether (Post 1113059)
Here's a thread from Jan 2010 on the NI forum. Can anyone confirm the advice given there is accurate and current?

https://decibel.ni.com/content/message/12523


Thank you. As we'll be running much slower than 10,000 rpm and not taking advantage of quadrature (because we think it's likely redundant at these speeds), I think we'll be fine.*

*and by that, I mean "our programming team is working on that as well as several other problems right now!"**

**and by that, I mean "how cool is it that 1551 can finally use the phrase 'our programming team' without being ironic?"

:D

slijin 25-01-2012 00:09

Re: High speed encoders
 
Quote:

Originally Posted by pfreivald (Post 1113053)
The encoders that come in the kit are rated at up to 10,000 rpm. Even at that speed, that's only ~42,000 counts per second. 24 microseconds should be plenty long enough between counts for the CRio to handle... I hope? Or is there something here I'm missing?

Just to clarify, those are the USDigital E4P encoders. The rotary magnetic encoders are effective up to 30 000 rpm, although they do detail in sect 8.6 how to account for latency.

mikets 25-01-2012 13:23

Re: High speed encoders
 
Quote:

Originally Posted by Ether (Post 1113059)
Here's a thread from Jan 2010 on the NI forum. Can anyone confirm the advice given there is accurate and current?

https://decibel.ni.com/content/message/12523

We are planning to connect the encoder to the Jaguar, so the question from us is: how fast can the Jaguar count? I can't seem to find that info in the Jaguar spec.

slijin 26-01-2012 00:39

Re: High speed encoders
 
Quote:

Originally Posted by mikets (Post 1113318)
We are planning to connect the encoder to the Jaguar, so the question from us is: how fast can the Jaguar count? I can't seem to find that info in the Jaguar spec.

The QEI can handle a rate of up to 12.5 MHz (see 1.1 & 18 of this doc for more deetails).

Ether 26-01-2012 11:08

Re: High speed encoders
 
Quote:

Originally Posted by slijin (Post 1113728)
The QEI can handle a rate of up to 12.5 MHz (see 1.1 & 18 of this doc for more deetails).

^^^that's from the Jag's microcontroller chip datasheet

this is from the datasheet for the Jag itself:
Quote:

Originally Posted by Bryscus (Post 1111808)
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.


Gdeaver 26-01-2012 12:02

Re: High speed encoders
 
Our programmers are overloaded already from our pivot drive and targeting - ranging. To keep the rpm issue simple we are using another motor to generate a voltage proportional to rpm. Do an analog sample and feed it into the PID. They have this down. The counter and timing was confusing them with their all ready pressured state. The Crio has 12 bit 10 to -10 volt ability. We will take advantage of the 0 to 10 range for the first time. Should have something running this weekend.

Ether 26-01-2012 12:06

Re: High speed encoders
 
Quote:

Originally Posted by Gdeaver (Post 1113887)
we are using another motor to generate a voltage proportional to rpm. Do an analog sample and feed it into the PID.

Team 358 did a paper on this a while back:
http://www.chiefdelphi.com/forums/sh...96&postcount=8


Ether 26-01-2012 12:07

Re: High speed encoders
 
Quote:

Originally Posted by Gdeaver (Post 1113887)
Our programmers are overloaded already from our pivot drive...

I thought you guys had pivot drive all figured out. Are you doing something different this year?


dyanoshak 26-01-2012 12:10

Re: High speed encoders
 
Quote:

Originally Posted by slijin (Post 1113728)
The QEI can handle a rate of up to 12.5 MHz (see 1.1 & 18 of this doc for more deetails).

Yes, the microcontroller in the Jaguar can handle 12.5 MHz, but that is when the MCU is running at 50 MHz. Jaguar firmware sets the MCU to run at 16MHz.

We specify the maximum transitions per second at 1 million. Yes, at 16MHz the MCU can read up to 4M transitions per second, but with 10K pull-up resistors and an unknown capacitance in the encoder lines, 1M is more realistic.

-David

Gdeaver 26-01-2012 12:26

Re: High speed encoders
 
Ether, Programmers graduate. This year it's time for others to step up. The game this year is computationally challenging with the target acquisition, ranging and aiming. The pivot code has to be optimized or simplified to free up resources for the ball gathering and shooting. If they do not tighten things up lag will rear it's ugly head. Our robot is programmed by student. If they do not write it, it does not go on the bot. Our programming mentor supports them and guides them but in the end the students must do it. I find it amazing that high school maturity students can step up and perform at this level But they do have limits. I'm trying to simplify the physical as much as possible to help them.


All times are GMT -5. The time now is 09:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi