Go to Post Note to self: Go to IRI sometime. - [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 12-10-2014, 22:50
CougarRobot CougarRobot is offline
Registered User
FTC #4251 (Cougar Robotics)
Team Role: Coach
 
Join Date: Oct 2010
Rookie Year: 2007
Location: Columbus, Ohio US
Posts: 17
CougarRobot is a splendid one to beholdCougarRobot is a splendid one to beholdCougarRobot is a splendid one to beholdCougarRobot is a splendid one to beholdCougarRobot is a splendid one to beholdCougarRobot is a splendid one to behold
Re: [FTC]: Encoders on new Andymark motors.

Interfacing the new AndyMark NeveRest Motor with the HiTechnic Motor Controller

We have tested the new AndyMark NeveRest Motor and it works well with the TETRIX/HiTechnic Motor Controller. Here's what you should expect and what you need to do to make it work the way you want on an FTC robot. We will use motorD as our motor in our examples.

First we need to agree on some terminology. The TETRIX shaft encoder used with the TETRIX motors is a US Digital e4P with a 360 degree encoder wheel. Model E4P-360-236-N-D-H-D-B. To use US Digital's terminology it produces 360 Cycles Per Rotation (CPR) or 1440 Pulses Per Rotation (PPR). It is a quadrature encoder producing 4 Pulses per Cycle. In FTC use, with ROBOTC, it will produce 1440 PPR, ticks, or a count of 1440 in nMotorEncoder[motorD] per revolution.

The AndyMark NeveRest motor's built in encoder produces 280 cycles per revolution (CPR). We tested it. As expected with 280 CPR, it outputs 1120 PPR, ticks, or a count of 1120 in nMotorEncoder[motorD] per revolution.

So, here's the only tricky bit. The NeveRest motor’s 1120 PPR is only approximately 78% of the TETRIX Motor’s 1440 PPR. You need to adjust your range when running under PIDControl from 0-100 down to 0-78.

The HiTechnic motor controller expects 1440 PPR and is "tuned" to drive a Tetrix motor at about 150 rpm when using PIDControl and a commanded speed of 100% motor[motorD]=100;. That is, the motor controller will up the power as necessary to try to achieve 3600 Pulses per second when commanded to run the motor at 100% speed, or at about 1800 Pulses per second when commanded to run the motor at a speed of 50%.

At full speed, 150 rpm, the NeveRest motor encoder will only produce 2800 Pulses per second. Using the 1440 PPR Tetrix motor with shaft encoder will produce 2800 ticks at 78% speed or 117 rpm. Since the motor controller will try to adjust power as necessary using the built in PID to achieve the correct speed, a speed setting of 78%, i.e. motor[motorD]=78; will achieve full speed on the NeveRest Motor. Likewise, a speed setting of 39, motor[motorD]=39; (½ of 78) will achieve approximately 50% speed on the NeveRest motor running under PIDControl. Any speed from 78% to 100% will cause the controller to run the motor at 100% speed. Please keep in mind that this only works this way under PIDControl and not under openLoop. Under openLoop mode you are just passing a percentage power to the motor controller and you will need to revert to using 0 through 100 for your power levels if you want to get full range & power out of the NeveRest motor.

Last edited by CougarRobot : 12-10-2014 at 23:02.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-10-2014, 14:19
ftcTeam6389 ftcTeam6389 is offline
Registered User
FTC #6389
 
Join Date: Oct 2013
Location: Eden Prairie MN
Posts: 39
ftcTeam6389 is on a distinguished road
Re: [FTC]: Encoders on new Andymark motors.

Thank you very much for this info @CougarRobot! Very helpful!

- - - -
Rachel
Team Captain
FTC Team #6389 - "The LazyBotts"
Reply With Quote
  #3   Spotlight this post!  
Unread 07-12-2014, 22:44
Jay Clayton's Avatar
Jay Clayton Jay Clayton is offline
Registered User
FTC #7060
Team Role: Mentor
 
Join Date: Oct 2013
Rookie Year: 2013
Location: Pittsburgh PA
Posts: 2
Jay Clayton is an unknown quantity at this point
Unhappy Re: [FTC]: Encoders on new Andymark motors.

Team #7060 Fried Fuzes , would like to know if anyone using the NeveRest encoder cable, black end will not fit in the Motor Controller. With some trimming of the black plastic it will fit. BUT what is the proper direction in the MC ? Can anyone tell us what are the pin colors of the encoder port ? Yellow pin on the inside or outside , black end goes in MC both ways .

Thanx , Confused and Frustrated #7060
Reply With Quote
  #4   Spotlight this post!  
Unread 07-12-2014, 22:54
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: [FTC]: Encoders on new Andymark motors.

Hi

The Yellow wire is nearest to the outside of the Motor Controller.

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 08-12-2014, 00:33
Jay Clayton's Avatar
Jay Clayton Jay Clayton is offline
Registered User
FTC #7060
Team Role: Mentor
 
Join Date: Oct 2013
Rookie Year: 2013
Location: Pittsburgh PA
Posts: 2
Jay Clayton is an unknown quantity at this point
Re: [FTC]: Encoders on new Andymark motors.

Quote:
Originally Posted by PhilBot View Post
Hi

The Yellow wire is nearest to the outside of the Motor Controller.

Phil.
Thanks for everyones help ��
Reply With Quote
  #6   Spotlight this post!  
Unread 08-12-2014, 11:27
Sasha Sasha is offline
Registered User
AKA: Alexander Kirillov
FTC #4137 (IslandBots)
Team Role: Coach
 
Join Date: Sep 2010
Rookie Year: 2008
Location: Long Island, NY
Posts: 58
Sasha is just really niceSasha is just really niceSasha is just really niceSasha is just really niceSasha is just really nice
Re: [FTC]: Encoders on new Andymark motors.

Image from AndyMark page

__________________
FTC 4137 "Islandbots"
islandbots.org
Reply With Quote
  #7   Spotlight this post!  
Unread 17-12-2015, 15:41
dcribbs dcribbs is offline
Registered User
AKA: Dave Cribbs
FTC #5598 (Parish Robotics)
Team Role: Coach
 
Join Date: Mar 2009
Rookie Year: 2004
Location: Denton, TX
Posts: 35
dcribbs has a spectacular aura aboutdcribbs has a spectacular aura about
Re: [FTC]: Encoders on new Andymark motors.

A couple of questions concerning using the AndyMark encoders on the NeveRest Motors with the new MRI controllers.

1.Which set of encoder wires work best (or with the least modification)?
a) am-2965 both ends white connectors
b) am-2992 one black, one white connector


2.What is the correct orientation for the encoder cables to plug into the new MRI controllers?

I read the above posts about the built in Hi-Technic controller. Has anyone had issues with the new MRI controllers? Any advice on using the encoders with autonomous?

Thanks for your help!
__________________
Dave Cribbs
Coach & Teacher

FTC - Team 5598, 6635, 6795
FRC - Team 3626
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 12:44.

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