Go to Post >wears zebra pants >calls people weird - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 21-01-2008, 03:01
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Tracking x y coordinates using GTS

Hi, I've been reading some threads on using accelorometers and gyroscopes and performing integrations to track the x y coordinate of a robot. It seems that by what I see there is some vibration issues and filtering issues related to doing this.

To try to remain as simple as possible I am wishing to use the gear tooth sensors to monitor the position of each wheel to determine the x y coordinate of the robot. I hope to use the difference of wheel travel sensed by each sensor to indicate how far the robot has rotated and traveled in a direction.

Does anyone have any advice as to how I could do this practically? This reminds me of line integrals.

Thanks,
Windell
#2477
  #2   Spotlight this post!  
Unread 21-01-2008, 08:46
Los Frijoles's Avatar
Los Frijoles Los Frijoles is offline
Stormin' Mormon
AKA: Kevin Cuzner
FRC #2062 (C.O.R.E.)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Waukesha, WI
Posts: 27
Los Frijoles has a spectacular aura aboutLos Frijoles has a spectacular aura about
Send a message via AIM to Los Frijoles
Re: Tracking x y coordinates using GTS

This thread has some gear tooth sensor code posted by one of the mentors of my team.

Using a switch of some sort to set the initial position of the robot, it would be possible to use the sensors to determine the x y position of the robot. There may be some trig involved, but I mostly see a need for extreme usage of the pythagorean theorum. Please remember that the sqaure root function takes a long time to execute on the PIC processor, so use it sparingly.
__________________
Community Of Robotic Engineers 2062





Blender totally pwns 3DS Max...

My life is here and here.

Cuznersoft Hardware and Software Development
  #3   Spotlight this post!  
Unread 22-01-2008, 10:37
slickwill1675 slickwill1675 is offline
Registered User
FRC #0247
 
Join Date: Jan 2008
Location: Berkley, MI
Posts: 4
slickwill1675 is an unknown quantity at this point
Re: Tracking x y coordinates using GTS

I haven't had much luck with the gear tooth sensors. You might be better off with an encoder. Their about 50 bucks but extremely accurate. If you buy an encoder with an index of 200 and mount it to the shaft of your drive wheels it will count 200 per 1 revolution of your wheel. So if you had a 8inch wheel, it would count every time you move about .126 of an inch. Also it will tell you direction the wheel is turning, unlike the gear tooth sensor.

Right now I'm trying to figure out how to use a combination of our two encoders and gyro to determine our location on an (X,Y) plane. Has anyone had any luck with this?

Thanks,
Will
#247
  #4   Spotlight this post!  
Unread 22-01-2008, 16:41
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: Tracking x y coordinates using GTS

Thanks Will! Do you have any suggestions as to an encoder?
  #5   Spotlight this post!  
Unread 22-01-2008, 17:40
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,019
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: Tracking x y coordinates using GTS

For distance you'll do fine with encoders/GTS, but the slip when you turn will be too variable to accurately keep track of the amount of turning. Also, the errors will accumulate if you're not careful.

Turning is best sensed with a gyro and timer: If the rate gyro says you're turning at 15 degrees per second, and you do that for 6 seconds, you've gone 90 degrees to a fairly high degree of accuracy.
__________________

I am N2IRZ - What's your callsign?
  #6   Spotlight this post!  
Unread 22-01-2008, 17:57
sea_master's Avatar
sea_master sea_master is offline
Registered User
AKA: the $@#$@#$@#$@#$@#$@# guy
FRC #1947 (the black knights)
Team Role: Driver
 
Join Date: Feb 2006
Rookie Year: 2006
Location: israel
Posts: 27
sea_master is on a distinguished road
Send a message via ICQ to sea_master Send a message via MSN to sea_master
Re: Tracking x y coordinates using GTS

what about using the accelerometers to know how much the robot has traveled? and the gyro for the change of angles.. that way you also cover the x y axis
__________________
phase 1: collect underpants
phase 2:???
phase 3: profit!
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
Camera locked in "tracking", but not tracking geeknerd99 Programming 1 18-02-2007 22:47
Using kevin's code for driving and camera tracking razzoc Programming 3 18-02-2007 08:50
Enabling Multiple Light Tracking Using Kevin's Code Mitch Programming 7 05-02-2007 06:17
Finding Coordinates of "The Blob" Jatheon4316 Programming 4 30-06-2005 10:45
Map Coordinates on imported objects Jacob Reif 3D Animation and Competition 2 04-02-2003 01:27


All times are GMT -5. The time now is 00:55.

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