To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 17026
17025  |  17027
Subject: 
Re: Precise turns of any angle! -- Rotation Sensor Information
Newsgroups: 
lugnet.robotics
Date: 
Sun, 13 Jan 2002 22:53:03 GMT
Viewed: 
4529 times
  
I don't think so.
The reason that count is lost is that the A/D conversion
happens just in the moment when the sensor switches between
two values, and you get neither of the two but the intermediate value
on the other side of the cycle:

    3
  /   \
2      (2)
|       |
(1)      1
  \   /
    0

Say you go from 1 to 3 and measure the ghost 2 in between.
The ROM routine then doesn't change the count,
and it sets the state to 2.  The end result is a miscount by two.
My experiments indicated a miscount for on the order of several
thousand counts.


In 'The LEGO Lugger', previously posted at
http://www3.sympatico.ca/jdkalpin, the extended drive shafts for both sides
of a tracked vehicle, moving in opposite directions, are summed in a
differential with the difference (hopefully zero)fed to the rotation sensor.
Because the two motors are never the same there is always a very small
rotation, perhaps 0.2 rpm.  At a count of '+2' the right motor is stopped
until the count drops to '1' and at '0' the left motor is stopped until the
count rises to '1'.  The count is displayed on the RCX readout and the
vehicle is quite slow so you can watch it.  A straight-line standard is the
joint in a tile floor.

My rotation sensor misses counts (and gains counts!) to the extent that I
cannot use it as a position sensor.  This is probably not news to anyone.
The control system tracks beautifully but every three or four feet (of tile)
the count will drop to '0' or jump to '3'.  Perhaps I can correct some of
this out by code that allows change of +/- 1 but filters out larger excursions.

My take on it is that the rotation counter is a good device when used within
its limitations and I should not expect it to be perfect.  I believe I saw,
somewhere, a non-LEGO position sensor, a better bet for The LEGO Lugger.

Regards, Jerry



Message has 1 Reply:
  Re: Precise turns of any angle! -- Rotation Sensor Information
 
(...) I believe that in this case, you should use a light sensor looking at a wheel that's white with a black line marked on it. The software for reading this is identical to what you would use for line following (a very well researched topic!) - (...) (23 years ago, 14-Jan-02, to lugnet.robotics)

Message is in Reply To:
  Re: Precise turns of any angle! -- Rotation Sensor Information
 
Hi, I did the rotation sensor fix for leJOS. In the course of that I did a lot of tests and analysed the ROM code, so I know a bit about this. (...) You must have been very lucky. (...) Yes, that's right for the LEGO firmware. For legOS/leJOS it's (...) (23 years ago, 13-Jan-02, to lugnet.robotics)

11 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR