Go to Post I sincerely hope no one on CD is going to neg rep you for thinking - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-01-2015, 18:30
wildaburk3160 wildaburk3160 is offline
Registered User
FRC #3160
 
Join Date: Sep 2013
Location: Grove, OK
Posts: 50
wildaburk3160 is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2015, 20:09
richwong richwong is offline
Registered User
None #1701 (Robocubs)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Detroit, MI
Posts: 61
richwong is an unknown quantity at this point
Re: am-2816a encoder

It is not an absolute encoder. The "position" resets to zero each time you restart your robot.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-01-2015, 23:09
Kevin Zhang Kevin Zhang is offline
Registered User
FRC #3501
 
Join Date: Dec 2014
Location: usa
Posts: 10
Kevin Zhang is an unknown quantity at this point
Re: am-2816a encoder

Does anyone know what the connector to this encoder is and possibly the part number and distributor site
Reply With Quote
  #4   Spotlight this post!  
Unread 09-01-2015, 15:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: am-2816a encoder

Quote:
Originally Posted by Kevin Zhang View Post
Does anyone know what the connector to this encoder is and possibly the part number and distributor site
I think you want the am-2993.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2015, 20:47
wildaburk3160 wildaburk3160 is offline
Registered User
FRC #3160
 
Join Date: Sep 2013
Location: Grove, OK
Posts: 50
wildaburk3160 is an unknown quantity at this point
Re: am-2816a encoder

Thanks for the help!
Reply With Quote
  #6   Spotlight this post!  
Unread 13-01-2015, 18:10
richwong richwong is offline
Registered User
None #1701 (Robocubs)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Detroit, MI
Posts: 61
richwong is an unknown quantity at this point
Re: am-2816a encoder

AndyMark does carry an absolute encoder now: http://www.andymark.com/product-p/am-2899.htm
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2015, 13:43
wildaburk3160 wildaburk3160 is offline
Registered User
FRC #3160
 
Join Date: Sep 2013
Location: Grove, OK
Posts: 50
wildaburk3160 is an unknown quantity at this point
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?
Reply With Quote
  #8   Spotlight this post!  
Unread 19-01-2015, 16:26
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: am-2816a encoder

Quote:
Originally Posted by wildaburk3160 View Post
Hey guys, I've been working with trying to get the motor to rotate 90 degrees clockwise and counterclockwise using this encoder,
What does the pronoun "this" refer to? The am-2816a (title of your thread) or the am-2899 (mentioned in the post to which you are responding?

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.
Reply With Quote
  #9   Spotlight this post!  
Unread 19-01-2015, 16:57
wildaburk3160 wildaburk3160 is offline
Registered User
FRC #3160
 
Join Date: Sep 2013
Location: Grove, OK
Posts: 50
wildaburk3160 is an unknown quantity at this point
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?
Reply With Quote
  #10   Spotlight this post!  
Unread 19-01-2015, 17:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: am-2816a encoder

Quote:
Originally Posted by wildaburk3160 View Post
do you believe that a PID system would be better and more precise than the system I have described?
Yes. Especially when you decide to put a load on the motor.

You will need to re-tune the PID gains when you put a load on the motor.


Quote:
Or would another sensor such as a potentiometer be better for our purposes?
If the encoder is working properly, the problem is not the encoder.

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.


Reply With Quote
  #11   Spotlight this post!  
Unread 19-01-2015, 17:34
wildaburk3160 wildaburk3160 is offline
Registered User
FRC #3160
 
Join Date: Sep 2013
Location: Grove, OK
Posts: 50
wildaburk3160 is an unknown quantity at this point
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?
Reply With Quote
  #12   Spotlight this post!  
Unread 19-01-2015, 17:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: am-2816a encoder


https://www.google.com/?gws_rd=ssl#q....com+%22PID%22


Also look at the LabVIEW help and examples.

Reply With Quote
  #13   Spotlight this post!  
Unread 19-01-2015, 17:47
wildaburk3160 wildaburk3160 is offline
Registered User
FRC #3160
 
Join Date: Sep 2013
Location: Grove, OK
Posts: 50
wildaburk3160 is an unknown quantity at this point
Re: am-2816a encoder

Thank you for your responses. I will look into this and hopefully end up implementing it in our drive system.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi