|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: Rack and Pinion/Motors and servos
Yes you can use a PID control loop or springs to recenter the steering wheels.
|
|
#3
|
||||
|
||||
|
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
|
|||
|
|||
|
Re: Rack and Pinion/Motors and servos
We're using a form of this with a potentiometer and a globe motor.
|
|
#5
|
|||||
|
|||||
|
Re: Rack and Pinion/Motors and servos
Could you go into more detail?
|
|
#6
|
|||
|
|||
|
Re: Rack and Pinion/Motors and servos
Quote:
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. |
|
#7
|
|||||
|
|||||
|
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
|
||||
|
||||
|
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!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |