Go to Post This easy world of friends, of people that you can talk to for hours on end without knowing one another? That's FIRST. - Keith Chester [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
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 01-05-2007, 20:29
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: pic: A more standard aproach

Quote:
Alex,
One thought I had after my intitial post is the problem of keeping the steering motors in alignment. It is an issue using two motors and chain for us. To keep all four tracking is going to take some processing power and sensors.
We used an "Magnetic Rotary Absolute Encoder" on each wheel. They act like potentiometers, since they are connected to an analog input and are read as a value between 0-1023. However, they do not have stops like potentiometers and can be rotated freely. Therefore, they have the resolution of a one-turn pot but can be used in multi-turn applications.

We used this little piece of code to keep track of rotations:
Code:
char encoder_turns(int pot, int last, int window) {
    if(pot - last > 1023 - window)
        return -1;
    else if(last - pot > 1023 - window)
        return 1;
    return 0;
}
Since a value read from the encoder will always refer to the same physical position, we didn't have to worry about loosing positions after turning off the robot. However, since we had the encoder connected to the main (rotating) shaft using two plastic sprockets, we lost calibration there since the sprocket would sometimes "ride on a chain" or skip a few teeth on fast movement. It wasn't a major problem, since we recalibrated before every round.

We then used 2 PI loops on each module (cw,ccw) to get it in the position we wanted. I could write a whole essay on control theory right here, but I think Jimmy's post "sums" it up: http://www.chiefdelphi.com/forums/sh...int#post617897


Quote:
We limit the travel to only one rotation plus a few degrees, max. This year we closed that down even further. The wiring comes right up out of the top of the module and the upper bearing point is a hollow tube which the wires run through.
We also ran the wires upwards through a central shaft. We made them long enough to allow for about 3 rotation each way. We kept track of the turn count in programming and saved it to the eeprom so that we wouldn't loose track. We also wrote an unspin function that unspins the wires.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-05-2007, 21:44
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,007
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: pic: A more standard aproach

Seems to me that window lift motors - or a similar worm drive system - might be better for the steering motors. They rotate slowly - but maybe not slow enough - and have significant torque, and take the bumps pretty well. Plus, they are available cheap in surplus and reasonable in new.

Some newer types sometimes have integrated quadrature sensors (used for detecting objects during auto-close of the windows) that are sensitive and can be used to maintain steering alignment (along with a 'home' switch for recalibration).

Some idle thought, is all.

Don
__________________

I am N2IRZ - What's your callsign?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standard vs. Custom Frame brennerator Technical Discussion 62 23-12-2006 22:54
Standard Joysticks EricWilliams Programming 26 01-04-2006 22:59
Standard Servos? Matt Krass FIRST Tech Challenge 4 22-11-2005 08:09
Developing a standard Jack Scouting 23 03-01-2003 23:04


All times are GMT -5. The time now is 02:38.

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