Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Tracking x y coordinates using GTS (http://www.chiefdelphi.com/forums/showthread.php?t=62175)

windell747 21-01-2008 03:01

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

Los Frijoles 21-01-2008 08:46

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.

slickwill1675 22-01-2008 10:37

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

windell747 22-01-2008 16:41

Re: Tracking x y coordinates using GTS
 
Thanks Will! Do you have any suggestions as to an encoder?

DonRotolo 22-01-2008 17:40

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.

sea_master 22-01-2008 17:57

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


All times are GMT -5. The time now is 23:21.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi