|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Control testing
Hey everyone. I am new to creating robotic controls using sensors - the digital encoder. I was wondering if anyone knew how to obtain the number of counts that a digital encoder gives through one rotation of a motor shaft so that I can find the "distance per count" constant for our program. Also our encoder is a 4x if that has any play on anything.
Also I wish to use the encoder as a sensor for a PID loop to control the rotational angle of a shaft. Recently I had learned of motor control profiling and I was wondering if any one could explain how this works as well as how to program it. Much thanks! PS: I'm using LabView and Java |
|
#2
|
|||||
|
|||||
|
Re: Control testing
The easy way to get distance per count is to:
Last edited by Mark McLeod : 17-11-2011 at 11:51. |
|
#3
|
||||
|
||||
|
Re: Control testing
Thanks! I tried to test to see if we could just get feedback from the encoder and I noticed something odd: the rate of the Encoder Get was 0 even though I was reading a change in the distance output. What might be causing this?
|
|
#4
|
|||||
|
|||||
|
Re: Control testing
The rate might be too slow to register, but it could be this known bug (there's a solution at the very end).
Last edited by Mark McLeod : 17-11-2011 at 21:23. |
|
#5
|
||||
|
||||
|
Re: Control testing
Thanks! I wont be able to test the code till the 28 (Thanksgiving break....) but I think the off season update should solve the problem.
Also what are some ideal rates to set for minimum rate? The encoders are plugged into the 2010 KOP AndyMark gear boxes - I'm not sure of their rpm. Thanks! |
|
#6
|
||||
|
||||
|
Re: Control testing
Quote:
Last edited by MagiChau : 18-11-2011 at 08:34. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|