|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
encoder values fluctuating considerably
As an offseason project we are trying to read the encoder rate from a vexpro ballshifter and use it to automatically shift when a desired rate is reached.
To test the rate we are using the LV sample program "encoder and motor". All values, but the encoder rate, show up consistantly. The encoder rate (deg/sec) values fluctuate between 50-1000+ when at full speed. How do I make the range of encoder rates more useful? The encoder is a Usdigital e4p 250-250-0-0-0-0. -Thanks in advance |
|
#2
|
||||
|
||||
|
Re: encoder values fluctuating considerably
Quote:
Post a PNG of the code you are using to initiate and to read the encoder. |
|
#3
|
|||
|
|||
|
Re: encoder values fluctuating considerably
We estimated the encoder will spin about 1400rpm at top speed.
|
|
#4
|
||||
|
||||
|
Re: encoder values fluctuating considerably
Quote:
Please post a PNG of the code. |
|
#5
|
|||
|
|||
|
Re: encoder values fluctuating considerably
Roger...the LV "motor & encoder" sample code is attached.
|
|
#6
|
|||||
|
|||||
|
Re: encoder values fluctuating considerably
At what rpm (or deg/sec) do the encoder values begin to go bad?
Have you calculated the maximum theoretical rpm that the encoder will support? Have you compared the number of ticks per second that the encoder will produce at max rpm to the maximum ticks that the cRIO will support (~39,000/sec)? A simple experimental test is to try running the encoder at 1x or 2x to demonstrate if 4x is attempting to sample too much , too quickly. Last edited by Mark McLeod : 26-08-2013 at 13:14. |
|
#7
|
|||
|
|||
|
Re: encoder values fluctuating considerably
It does work better at 1X sampling but the values still fluctuate greatly.
I don't know how to calculate the max theoretical value the encoder will support. I am using a UsDigital 250-250-0-0-0-0 that came with our VexPro ballshifter. |
|
#8
|
||||||
|
||||||
|
Re: encoder values fluctuating considerably
Just as an FYI, the VexPro Ballshifter does not come with an encoder. Additionally, US Digital PN 250-250-0-0-0-0 is not valid. 250-250 is a good start, but there should be letters where you have 0s.
|
|
#9
|
|||||
|
|||||
|
Re: encoder values fluctuating considerably
A rate of 50 to 1000 Hz is not very much.
The rate is not really degrees per second unless a 360 encoder is being used at 1x sampling. Does the rate fluxuate much at low speed too? You may simply have a poor electrical connection on the encoder lines. Last edited by Mark McLeod : 26-08-2013 at 14:05. |
|
#10
|
|||
|
|||
|
Re: encoder values fluctuating considerably
Joe- The encoder came as an option when purchasing the ballshifters. I was wrong on the encoder number it is a E4P-360-250-d-h-d-b.
I am going to replace the wire and report soon. Thanks all for your help so far. |
|
#11
|
|||||
|
|||||
|
Re: encoder values fluctuating considerably
After verifying the wiring, another issue with that model encoder is the proper installation and spacing of the encoder disk.
If it isn't spaced properly, using the spacer aid that should have come in the kit, then the rate will be random at all speeds. The encoder disk also needs to be tight on the shaft rotating it, and the shaft itself cannot have very much play which would change the spacing as well. "Accepts +/-.020" Axial shaft play" Finally, if you have other EP4's be careful not to mix the encoder disks. The disks and encoder package are paired specifically to match up cycles per rev. Your model number specifies it is 360 cycles per rev., but if you happened to also own a 250 or 100, then they would not work with the 360 model and they are hard to distinguish between. Last edited by Mark McLeod : 26-08-2013 at 14:41. |
|
#12
|
||||
|
||||
|
Re: encoder values fluctuating considerably
Quote:
... damage to the disk (e.g. scratches) from improper handling |
|
#13
|
|||
|
|||
|
Re: encoder values fluctuating considerably
Joe- the max RPM did include the 3x encoder gear
Mark- I think it is the encoder assembly. I swapped the encoder wire to the gearbox on the opposite side and it solved the problem. Now can someone help me determine the correct value to use for DistancePerCount in the Encoder Open VI? |
|
#14
|
||||||
|
||||||
|
Re: encoder values fluctuating considerably
Is this including the 3x encoder gear ratio on the ball shifter?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|