|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Kit opto encoder resolution?
What is the resolution (in pulses per turn) of the KOP's optical encoders? I need to find out the scaling value to plug into the open VI for the encoders in LabView.
The datasheet says "400-1440" ticks per rotation. This is obviously not helpful. Also, I assume you don't have to specify the quadrature decoding type, right (1x, 2x, or 4x?) I would assume it gets that right without modification. Thank you for any help. |
|
#2
|
|||||
|
|||||
|
Re: Kit opto encoder resolution?
Last year they were 250, 1x. this year they are either 350 or 360, I can't remember which. I would set it to 350 1x. We honestly don't need more than around 12 counts in 4x decoding, or more for 2x or 1x decoding, since the mechanical error is great enough (especially with a little chain slack) that we could be off by as many as 100 counts using the KOP encoder, depending on gearing.
|
|
#3
|
|||||
|
|||||
|
Re: Kit opto encoder resolution?
360 counts per revolution for this year's KOP E4P-360-250-D-D-D-B encoders
|
|
#4
|
||||||
|
||||||
|
Re: Kit opto encoder resolution?
Quote:
One cool thing you can do with the scaling is get the encoder value in a measurement you want to use. For example, if you want to measure angle in degrees, put in a 1 for the scaling. Each tick will then be 1 degree (since the encoder has 360 ticks per revolution). Alternately, you could calcuate using your gear ratios and wheel size that each tick makes the robot move 1/10 of an inch. Put in 1/10 and then you will get the distance the robot traveled in inches. |
|
#5
|
||||
|
||||
|
Re: Kit opto encoder resolution?
Quote:
Our setup on our test setup has the encoder output going to a BaneBot encoder divider. This was done previously to allow us to use hardware to divide the counts of the A channel and latch the direction (B Channel) to preclude any latency issues when reading it on the old controller. Our final robot will not have the dividers, but to save time, they were left on the practice chasis and the A and B signals were taken from the divider to digital I/O on the cRIO. In this configuration, we are not getting any counts (getraw() returns 0, 1 -1) regardless of how much we move the robot. However, scoping the outputs of the encoders and the dividers shows that the signals are being generated as expected. I suspect that the cRIO is getting confused since the B channel is not pulsing, but remains constant while the robot keeps moving. I'll be able to run more experiments on Thursday, with the encoder divider out of the picture to see if things work better. I suspect it would be good to have the cRIO have a library call that would allow it to take advantage of hardware like the BaneBot divider, but given the current set of interfaces, I do not see how it can be done. I could set up a counter on the A channel, but I don't see how I can get an interrupt when the B channel changes so I can properly apply the direction to the A channel count. |
|
#6
|
||||||
|
||||||
|
Re: Kit opto encoder resolution?
Quote:
|
|
#7
|
||||
|
||||
|
Re: Kit opto encoder resolution?
Quote:
Per the above explanation, if 1x is reading only one channel, it wouldn't know which way the encoder is spinning, right? So the rate information with 1x wouldn't tell you whether the rate is positive or negative, right? So if you wanted a rate that contained direction information, would you have to use the 4x? |
|
#8
|
||||||
|
||||||
|
Re: Kit opto encoder resolution?
Quote:
The 1x, 2x, and 4x only denotes how often measurements are made, the method of measurement is the same. In 1x, 2x, and 4x, the state of the opposite channel is used to determine direction. |
|
#9
|
||||
|
||||
|
Re: Kit opto encoder resolution?
Quote:
|
|
#10
|
|||
|
|||
|
Re: Kit opto encoder resolution?
Quote:
Hope that helps |
|
#11
|
||||
|
||||
|
Re: Kit opto encoder resolution?
Quote:
Quote:
Is there somewhere else that a LabVIEW beginner should be looking for this kind of information? |
|
#12
|
|||
|
|||
|
Re: Kit opto encoder resolution?
My team tried to use similar encoders to those in the KOP to read the angle of a swerve module, but we had trouble getting quality readings. If you are trying to do this, my advice is to find another sensor that is designed for this purpose. The KOP encoders to designed to read rotary changes (such as RPM on a gearbox) so that the program can respond accordingly.
Good Luck |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Screwing Encoder into Encoder Mount? | Adrien | Electrical | 3 | 25-01-2009 18:14 |
| VEX Shaft Encoder Kit | jeffmorris | FIRST Tech Challenge | 1 | 19-05-2006 12:23 |
| DPI resolution | Branden Ghena | IT / Communications | 6 | 17-04-2006 14:43 |
| Resolution of IR sensors | Paul Marshall | Technical Discussion | 2 | 16-01-2004 14:03 |
| Resolution... | Brandon Martus | CD Forum Support | 9 | 15-05-2002 18:49 |