![]() |
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 |
Re: Control testing
The easy way to get distance per count is to:
|
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?
|
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).
|
Re: Control testing
Quote:
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! |
Re: Control testing
Quote:
|
| All times are GMT -5. The time now is 23:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi