Go to Post I am a mechanical engineer. I have known since I was about 12 that I wanted to make complicated mechanisms. - Paul Copioli [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 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
  #2   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
  #3   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 18:58.

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