Calculating rotations of wheels for turning

Discussion specific to projects ideas and support.
droidzz
Posts: 11
Joined: 23 Dec 2012, 22:36

Re: Calculating rotations of wheels for turning

Post by droidzz »

Would something like this be suitable? http://www.nxtprograms.com/NXT2/explorer/index.html
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Calculating rotations of wheels for turning

Post by mattallen37 »

Sure, but those wheels aren't ideal (should be a lot better than tracks though).
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
droidzz
Posts: 11
Joined: 23 Dec 2012, 22:36

Re: Calculating rotations of wheels for turning

Post by droidzz »

Do you have an example of what is best to use?
droidzz
Posts: 11
Joined: 23 Dec 2012, 22:36

Re: Calculating rotations of wheels for turning

Post by droidzz »

I just thought, with all this talk of formulas and best tyres and so on might be irrelevant.
Can't I just use a compass sensor on the robot to find out very accurately when 90 degrees has been turned?
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Calculating rotations of wheels for turning

Post by mattallen37 »

The wheels that are included with the NXT 1.0 set, or the big wheels included with the RCX are good. Basically you want as little rubber as possible to touch the ground.

The wheels included with the NXT 2.0 set are also fine, they are just fairly wide where they touch the ground.

For more accurate turns, the further apart the wheels, the better (and also the slower it will turn).
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Calculating rotations of wheels for turning

Post by mattallen37 »

Oh, if you have a compass, yes, that would be good. A compass is based on an absolute (the magnetic field of the earth), so the values won't drift with inaccuracies. However, a compass' readings are very negatively affected by it's surroundings, so the immediate accuracy could be off significantly.

Ideally you would use both the compass and the encoders, and combine the values using a filter. It would be very complicated, and certainly not something I would recommend for a beginner (or even someone that is intermediate).
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
droidzz
Posts: 11
Joined: 23 Dec 2012, 22:36

Re: Calculating rotations of wheels for turning

Post by droidzz »

If if the initial values we off though I guess it would be good enough to tell if i move by a certain amount of degrees
For instance if it said I was at 10 degrees and then i move by 90 degrees than it will read 100 i will have still moved by the correct amount of 90 degrees
aswin0
Posts: 201
Joined: 29 Sep 2010, 06:58

Re: Calculating rotations of wheels for turning

Post by aswin0 »

I want to suggest a different perspective. Forget about wheels and compasses for the moment.

The amount of turn is a function of wheel diameter, wheel distance and radius (distance between robot center and origin of turning cycle). Diameter and wheel distance are constants. But that does not mean they cannot be altered. Most of the error can be corrected by altering either of these values. This way you can very often find an acceptable solution.
My blog: nxttime.wordpress.com
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests