Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: rahulmagoo on June 08, 2008, 03:13:32 PM

Title: Dead Reckoning Robot
Post by: rahulmagoo on June 08, 2008, 03:13:32 PM
hi...i am working on this project....it is a bot which moves in d required direction n keeps d record f its current position n angle with refrence to its startin point...i am facing a difficulty in calculating d distance which it travells..
shaft encoders r used 2 calculate d no. of revolutions dat d wheels ll make..distance travelled ll depend upon d no. of revolutions n radius f d wheel...so d distace travelled ll b diffrent if diff wheels r used(diff radius)..so in my code i ve 2 specify d radius f my wheel(in order 2 calculate d distance)...
can u plz help me such dat i make my bot independent of radius of tyres used.
Title: Re: Dead Reckoning Robot
Post by: bens on June 08, 2008, 03:28:43 PM
Ok, I tried to read your post and found it too annoying.  If you can't bother to take the extra second it will take to write the words "the", "are", "and", and "of", how can you expect other people to take the time to

(a) read your post
(b) think about your problem
(c) take the time to reply with a solution

Note that you are asking other people to donate their time to help you.  Show some consideration and put in the extra effort it takes so that people don't have to first decode your post before they know what you're asking.

When I first read your post I thought you were defining variables: "moves in d", "required direction n", "its current position n".

- Ben
Title: Re: Dead Reckoning Robot
Post by: SixRingz on June 08, 2008, 03:40:57 PM
I'm the first to agree with Bens! Some amount of slang and your avarage typo is something I can tolerate, but try read my solution and see how it feels:

f u r g'in 2 calc vel by rev f weelz, u must use tha rad. 2 no use rad, u must find some otha vel calc. Therez many ways 2 do this, cam s 1.

Obviously it's not fun to try to decrypt a message, that's for the linguistic forums...  :-X
Title: Re: Dead Reckoning Robot
Post by: rahulmagoo on June 09, 2008, 01:24:30 AM
sorry i will definetly not repeat it.
Title: Re: Dead Reckoning Robot
Post by: rahulmagoo on June 09, 2008, 01:33:49 AM
sorry again...
I am working on a project(Dead Reckoning Robot)....it is a bot which moves in the required direction and keeps the record of its current position and angle with refrence to its starting point...i am facing a difficulty in calculating the distance which it travells..
shaft encoders are used to calculate the number of revolutions that the wheels will make..distance travelled will depend upon the number of revolutions and radius of the wheels...so the distace travelled will be diffrent if different wheels are used(different radius)..so in my code i have to specify the radius of my wheel(in order to calculate the distance travelled)...
can you please help me such that i make my bot independent of radius of tyres used.
Title: Re: Dead Reckoning Robot
Post by: SixRingz on June 09, 2008, 04:22:21 AM
Thank you rahulmagoo!! That was SO much better!  ;D
I've been thinking for a while for some alternate solution, but I just can't.  :-[ It seems to me if that is the only sensor you will use, the radius of the wheels or the circumference is needed. What's the reason for not using the radius? Changing wheels or using the code on different similar task bots?
Title: Re: Dead Reckoning Robot
Post by: benji on June 09, 2008, 04:25:34 AM
Quote
can you please help me such that i make my bot independent of radius of tyres used.
your bot should know the radius in order to calculate distance , because your input is number of rotations(or a number of holes)(an angle)
cause its a shaft encoder
so how is it your bot going to know the distance without specifing the radius? you dont have enough information.
and whats the point of not specefing that in the program? to change the tires oneday?
you can do it like this
assuming radius of tires is 15 cm
Code: [Select]
#define radius 15
and then use the radius word wherever u want to use it in your program
so if you want to change tires you just change that number(15) to another number in that piece of code