Go to Post You know you're addicted to FIRST when robots are sexy! - Pat Arnold [more]
Home
Go Back   Chief Delphi > Technical > Motors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2008, 20:28
psniffler psniffler is offline
Registered User
FRC #2240
 
Join Date: Feb 2007
Location: Boulder CO
Posts: 1
psniffler is an unknown quantity at this point
Rack and Pinion/Motors and servos

How have other teams done rack and pinion in terms of motors? Is there a way to turn a motor into an accurate enough servo? Or how else could we implement it?
  #2   Spotlight this post!  
Unread 22-01-2008, 22:31
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Rack and Pinion/Motors and servos

Yes you can use a PID control loop or springs to recenter the steering wheels.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #3   Spotlight this post!  
Unread 24-01-2008, 22:43
DarKCroNo's Avatar
DarKCroNo DarKCroNo is offline
Registered User
FRC #2670
 
Join Date: Dec 2007
Location: Toronto
Posts: 37
DarKCroNo is an unknown quantity at this point
Re: Rack and Pinion/Motors and servos

king of l337 would you mind explaining in detail about PID control loops and things like that and how we can achieve that? thanks it's our rookie year and we've been able to manage but there are still some things we're unsure.

Last edited by DarKCroNo : 24-01-2008 at 22:52.
  #4   Spotlight this post!  
Unread 24-01-2008, 22:46
Jaybee1405
 
Posts: n/a
Re: Rack and Pinion/Motors and servos

We're using a form of this with a potentiometer and a globe motor.
  #5   Spotlight this post!  
Unread 24-01-2008, 22:55
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Rack and Pinion/Motors and servos

Quote:
Originally Posted by Jaybee1405 View Post
We're using a form of this with a potentiometer and a globe motor.
Could you go into more detail?
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #6   Spotlight this post!  
Unread 25-01-2008, 00:05
shock190 shock190 is offline
Registered User
AKA: Andrew
FRC #0190 (Gompei and the H.E.R.D.)
Team Role: College Student
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Worcester, MA
Posts: 9
shock190 is an unknown quantity at this point
Re: Rack and Pinion/Motors and servos

Quote:
Originally Posted by DarKCroNo View Post
king of l337 would you mind explaining in detail about PID control loops and things like that and how we can achieve that? thanks it's our rookie year and we've been able to manage but there are still some things we're unsure.
Well, heres the very short version of a PID control loop.

First off, you need the steering motor hooked up to a potentiometer or something similar (a 10 turn pot should be more than enough for most rack and pinion setups). The PID loop takes the value that you want the pot to read (corresponding to the position of the rack and pinion), and the value the pot is actually at. Then the three parts kick in:

P- proportional control. This simply takes the difference between the desired value and the actual value, then multiplies this by a constant that you pick through estimation and testing. This essentially compensates purely based on distance from the desired location. It is also important to implement a dead band of values to prevent the motor from overshooting the intended target and then oscillating around it for a long time (the constant also plays a big part in this).

I- integral control. This is somewhat more challenging to implement (it requires an array setup in C, or something similar). It takes the last X number of error values (you choose X), sums them to determine the overall error, then multiplies this by a different chosen constant. This is extremely useful when inside the deadband of the P control, as it sums the errors, then applies a light correction to decrease the sum of the errors (move the error to zero SLOWLY).

D- derivative control. This is about the same difficulty level as integral. It uses the same array as the I control, but takes the derivative (or rate of change) of the last few error values, and scales the speed (with yet another constant) in relation to that. So as the actual value approaches the desired, the motor speed slows down.

After all of these functions (or just P, PI, PD...), you sum all of the control loop outputs together, and apply that correction to your motor. I'm sure other people on here are much more capable of explaining the source code to make one work well (I'm more of a mech myself), but thats the general theory behind one.
__________________
Team 190 - Building the ridiculous since 1992

2008 BAE Granite State Regional Leadership in Controls
2008 Silicon Valley Regional Creativity Award

2007 World Champions (with 987 and 177)
  #7   Spotlight this post!  
Unread 25-01-2008, 00:09
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,033
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Rack and Pinion/Motors and servos

We set up this prototype steering mechanism, it worked ok...as well as can be expected for a 2wd Ackermann steering robot, that is.

http://www.chiefdelphi.com/forums/sh...95&postcount=3

We're going skid steer 6wd with fancy steering wheel control programmed into it instead. But it was a fun experiment to build this robot and drive it around.
  #8   Spotlight this post!  
Unread 25-01-2008, 16:16
DarKCroNo's Avatar
DarKCroNo DarKCroNo is offline
Registered User
FRC #2670
 
Join Date: Dec 2007
Location: Toronto
Posts: 37
DarKCroNo is an unknown quantity at this point
Re: Rack and Pinion/Motors and servos

Thanks so much! however if it is possible would you mind explaining in a bit more detail? is the PID a programming code? and how would the robot controller whether the rack and pinion has gone either left or right? Thanks again!
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rack & Pinion SHS Blue Devils General Forum 5 12-01-2008 17:59
Servos controlling camera and purple screen ryan_f Programming 6 17-01-2006 23:21
servos and the camera incognito_NICK Programming 5 09-02-2005 00:00
rack and pinion. greencactus3 Pneumatics 17 04-11-2004 23:24
new bosch pinion and mounting ajlapp Motors 1 08-01-2003 17:16


All times are GMT -5. The time now is 15:28.

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