Go to Post We talked to a team in Las Vegas and next year there will be another team with a 25 drive train. The west coast may never be the same. - nuggetsyl [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-11-2011, 16:21
Alzir's Avatar
Alzir Alzir is offline
Registered User
FRC #2152 (S*M*A*S*H)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2010
Location: Ormond Beach Florida
Posts: 4
Alzir is an unknown quantity at this point
Question [FTC]: [FTC]: Motor Encoder Help

We are using a scissor lift and will need the motor angle. Is there a possible way to get the angle out of the encoder? If it helps any the model of encoder is E4P-360-250-D-D-D-B.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-11-2011, 17:17
robokiller robokiller is offline
Registered User
AKA: Jaxon Weis
FRC #2757 (B.A.D.)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Florida
Posts: 29
robokiller is an unknown quantity at this point
Re: [FTC]: [FTC]: Motor Encoder Help

I think that is going to be a lot of trial and error to find the angle.

But i think a full rotation on an encoder is 1024.
so if that is right 1024/360 = 2.844444444444444 ticks per degree

also if you are going to be turning it a lot try using a large variable like a double

-- Jaxon Weis
Reply With Quote
  #3   Spotlight this post!  
Unread 17-11-2011, 22:26
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]: [FTC]: Motor Encoder Help

My recollection of the standard FTC encoders is that they provide 1/4 degree resolution, which gives 1440 pulses per revolution.

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
  #4   Spotlight this post!  
Unread 18-11-2011, 12:49
Slendyman Slendyman is offline
Registered User
FTC #0532
 
Join Date: Oct 2011
Location: Florida
Posts: 3
Slendyman is an unknown quantity at this point
Re: [FTC]: [FTC]: Motor Encoder Help

How would one program an encoder using labview? Any little thing would be a great help, cheers.
Edit: We want to be able to measure the angle of the motors.

Last edited by Slendyman : 18-11-2011 at 12:54.
Reply With Quote
  #5   Spotlight this post!  
Unread 18-11-2011, 13:02
Alzir's Avatar
Alzir Alzir is offline
Registered User
FRC #2152 (S*M*A*S*H)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2010
Location: Ormond Beach Florida
Posts: 4
Alzir is an unknown quantity at this point
Re: [FTC]: [FTC]: Motor Encoder Help

Thank you for the information. How exactly do we use it once it is attached? We want a motor to move and after a certain number of ticks it slows down. When it goes the other way having it reset back to how it was originally. I am not sure that is possible since this is the first time my team has worked with encoders so nobody really knows how to do this.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-11-2011, 17:26
kz2zx kz2zx is offline
Ruthlessly Insufficient
FTC #5246
Team Role: Coach
 
Join Date: Sep 2011
Rookie Year: 2011
Location: AZ
Posts: 14
kz2zx will become famous soon enough
Re: [FTC]: [FTC]: Motor Encoder Help

Alzir,

Are you using Robot-C?

Check the predefined variable nMotorEncoder[]
Reply With Quote
  #7   Spotlight this post!  
Unread 22-11-2011, 15:45
Shadowfl's Avatar
Shadowfl Shadowfl is offline
Registered User
AKA: William Wrenne
FRC #2152 (S*M*A*S*H)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 8
Shadowfl is on a distinguished road
Re: [FTC]: [FTC]: Motor Encoder Help

I wish we would program in Robot-C but Alzir, Slendyman and i are all working in labview
__________________
IF (Living) = true;
Then (Learning) ;
I have a tendency to gear my self toward puns
Reply With Quote
  #8   Spotlight this post!  
Unread 23-11-2011, 08:58
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]: [FTC]: Motor Encoder Help

Quote:
Originally Posted by Shadowfl View Post
I wish we would program in Robot-C but Alzir, Slendyman and i are all working in labview
You can use the encoders several ways.

You can command the motor to move a certain distance at a given speed (the easiest way), or you can give the motor speed/power commands and watch the encoder value yourself to tell when it has gone the correct distance.

You will need to build a basic program template using the "Generate Code" option on LVLM (choose the "FTC Arm and Gripper" example), and then modify the code to do your specific task.

To see the VIs that are available, open the "TETRIX" pallette on the program Block Diagram. Turn on the Context Help (CTRL H) and roll over each of the available icons.

To run a set distance, use the "Fixed Distance" VI to specifcy encoder counts (1440 per revolution).

Or

Use the "Move Motors" command to start the motor, and then loop calling "DC Motor Status" to read the current encoder value.

For more information on general FTC programming, view the Webinars here:

http://www.tetrixrobotics.com/FTC/

Especially Webinar #4

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
  #9   Spotlight this post!  
Unread 24-11-2011, 17:44
gotrobot?'s Avatar
gotrobot? gotrobot? is offline
Head Coach
FTC #5037 (got robot?)
Team Role: Coach
 
Join Date: Sep 2011
Rookie Year: 2008
Location: Elgin, IL
Posts: 30
gotrobot? is a name known to allgotrobot? is a name known to allgotrobot? is a name known to allgotrobot? is a name known to allgotrobot? is a name known to allgotrobot? is a name known to all
Re: [FTC]: [FTC]: Motor Encoder Help

Here are a couple other alternative:

Add a touch sensor to stop the lift and slow the motors down based on time (assuming your batteries are full for each match)

-or-

Using a protoboard you could add a potentiometer to an axle to base your position.
__________________
2014-15 Cascade Effect: World Championship Inspire Finalist

www.facebook.com/gotrobot
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 13:20.

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