|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
am-2816a encoder
Hi guys!
We are hoping to implement encoders in our drive system this year, and I would like to know if the am-2816a encoder from AndyMark is an absolute encoder. If anybody can tell me the type of encoder this is, it would be greatly appreciated. Thanks, William |
|
#2
|
|||
|
|||
|
Re: am-2816a encoder
It is not an absolute encoder. The "position" resets to zero each time you restart your robot.
|
|
#3
|
|||
|
|||
|
Re: am-2816a encoder
Does anyone know what the connector to this encoder is and possibly the part number and distributor site
|
|
#5
|
|||
|
|||
|
Re: am-2816a encoder
Thanks for the help!
|
|
#6
|
|||
|
|||
|
Re: am-2816a encoder
AndyMark does carry an absolute encoder now: http://www.andymark.com/product-p/am-2899.htm
|
|
#7
|
|||
|
|||
|
Re: am-2816a encoder
Hey guys, I've been working with trying to get the motor to rotate 90 degrees clockwise and counterclockwise using this encoder, and I can't seem to get it where it will return to a specified position without a significant amount of over travel. And when I have gotten it down to an acceptable range, it has worked, but after 6 or 7 times of initiating a rotation the motor just stops. Has anybody else had issues with this encoder and having over travel issues?
|
|
#8
|
||||
|
||||
|
Re: am-2816a encoder
Quote:
What motor controller are you using? Are you commanding it with CAN or PWM? Is the encoder wired to the motor controller or to the roboRIO? What are your PID gains? What motor are you using? What gear ratio? What load is the motor driving? Last edited by Ether : 19-01-2015 at 16:29. |
|
#9
|
|||
|
|||
|
Re: am-2816a encoder
I am using the am-2816a encoder attached to the am-2161 motor. The encoder is wired into the DIO slots on the roboRIO and the motor is being run using PWM. Right now there is no load being put on the shaft of the motor.
We want the motor's home value to be zero and to be able to rotate 90 degrees clockwise and counterclockwise and to always be able to come back to its home position. However, when the shaft returns to home position, we have not been able to get it within an acceptable tolerance of angles. I am not using a PID protocol but am scaling down the encoder pulse values returned to determine the output of the motor. Specifically, I get the encoder pulse value, then square root it, then it is further scaled down so that the motor output can never be given a value greater than 1. So basically, as the encoder pulse value gets closer to 0, the greater the reduction of the motor output. However, even with such a reduction, the motor still seemingly has too much momentum and still over travels even when the range of encoder values we have to tell the motor to stop is very small. I have dabbled minimally with using PID protocols and don't have a full understanding of them currently, but do you believe that a PID system would be better and more precise than the system I have described? Or would another sensor such as a potentiometer be better for our purposes? |
|
#10
|
||||
|
||||
|
Re: am-2816a encoder
Quote:
You will need to re-tune the PID gains when you put a load on the motor. Quote:
An absolute sensor (like a potentiometer or absolute encoder) might be slightly easier to use, because with the relative encoder you need to tell it where zero is. |
|
#11
|
|||
|
|||
|
Re: am-2816a encoder
Could you point me to an example code or CD thread where PID is shown to be implemented, or a source that can explain the basics of PID?
|
|
#12
|
||||
|
||||
|
Re: am-2816a encoder
|
|
#13
|
|||
|
|||
|
Re: am-2816a encoder
Thank you for your responses. I will look into this and hopefully end up implementing it in our drive system.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|