![]() |
Encoder resolution on fast turning shafts
We are planning on using an encoder on our shooter design to determine actual RPMs. Do I need to worry about interrupt load on the processor if I have the combination of a fast (~5000RPM) shaft and a high resolution encoder. I was thinking of trying to get a reduction gear in there to reduce the RPM and then go with a low res (32 ticks/rev) encoder.
Are the considerations the same if I connect the encoder to the Talon SRX instead of the Rio?? |
Re: Encoder resolution on fast turning shafts
I believe that the FPGA hardware takes care of processing the encoder pulses which minimizes the need for interrupt processing on the main processor.
I don't remember what the limit on the number of pulses the FPGA can handle is but it's in the tens and maybe even hundreds of thousand pulses per second. Try it for yourselves. |
Re: Encoder resolution on fast turning shafts
Did you look at the specs in the Talon SRX User's Guide?
http://www.ctr-electronics.com/talon...ical_resources |
Re: Encoder resolution on fast turning shafts
I see nothing in the talon SRX documentation that indicates if I need to worry about throttling the encoder pulses, but it's good to know that the RIO can handle it.
I'm still going to try to mitigate the volume of data through mechanical design. |
Quote:
More specifically, look at the max quadrature CPR and RPM in the Talon SRX user guide. |
Re: Encoder resolution on fast turning shafts
FYI, we ran the new Versaplanetary CTRE Mag encoder in relative mode, with 1:1 and the new 755Pro motor last Saturday.
Gave motor %Vbuss mode, and a motor output of 1, and the encoder reported 15,0000+ rpm which matched our optical handheld tach. |
Re: Encoder resolution on fast turning shafts
The roboRIO FPGA can track encoder edges at 25 ns from edge to edge. It will also calculate and report rates at the same resolution. I suspect this is more capability than any team needs, but I'm always interested to hear about teams pushing the boundaries.
|
Re: Encoder resolution on fast turning shafts
There was a very lengthy discussion about jitter, sampling, and RPM calculation in 2012. To make a long discussion short, if you are using the period function in LabVIEW, you may actually be better off with a 1 count per rotation encoder to maximize the period and make your RPM calculation more accurate. We used it very successfully in 2012, and 2013. This will also eliminate any worries you may have about loading the roborio.
This is somewhat counter-intuitive if you are thinking about calculating RPM using "number of ticks" divided by time. |
Re: Encoder resolution on fast turning shafts
Quote:
Quote:
|
Re: Encoder resolution on fast turning shafts
Quote:
EDIT: Nevermind. I didn't see the 25ns number above. Does that mean that that the RoboRIO can take 40,000,000 edge to edge pulses per second, or am I screwing my math up somewhere. That number just seems incredibly high, but I could see it being that high. |
Re: Encoder resolution on fast turning shafts
Quote:
So no, you wouldn't get a usable reading at 40M edges per second. Note: back in 2012, the cRIO FPGA took samples at only 153KHz, and timestamped them with a 1MHz clock. That's why we had all the discussions back then. |
Re: Encoder resolution on fast turning shafts
Quote:
Quote:
Quote:
|
Re: Encoder resolution on fast turning shafts
Hello My team is trying to use the VersaPlanetary Integrated Encoder to reach about 12000 rpm. The documentation on vex pro says 15000 rpm max but looking at the talon SRX software documentation says 10000 rpm max and we seem to be maxing out the rpm.
|
Re: Encoder resolution on fast turning shafts
Quote:
The 10000RPM in section 7.5.4 in SRX Software Reference Manual is a typo. I'll fix it soon. And also... http://www.chiefdelphi.com/forums/sh...63&postcount=6 |
Re: Encoder resolution on fast turning shafts
Thanks, still can't seem to get it work are current using java and have set the feedback device to ctre mag relative and are unable to read an rpm above 5000 we are using java any suggestions
Edit. We updated the firmware and it worked. *facepalm* |
| All times are GMT -5. The time now is 08:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi