Subject:
|
Re: Rotation Sensors - slightly dissapointed...
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 25 Feb 2000 18:28:43 GMT
|
Viewed:
|
945 times
|
| |
| |
In lugnet.robotics, Michael Gasperi writes:
> In lugnet.robotics, Iain Hendry writes:
> > The program ran successfully for about 20 seconds before I noticed motor 1
> > had shifted out of phase by 22.5 degrees - it had slipped/skipped a count.
>
> Because the LEGO Rotation sensor is a powered type, it might be slightly
> sensitive to battery voltage.
If you check the legOS group you can see my posts with some extensive analysis
of the sensor values for the rotation sensor. There is a patch to make legOS
less sensitive to voltage fluctuations and one to debounce the input (which is
what probably causes missed counts on the standard firmware as well). I was
working on very similar designs to those being discussed in this thread, and
with my changes (using legOS, of course) you get the expected behavior, with no
missed (or extra) counts.
I doubt you can get very high precision from the stock firmware.
--Ben
|
|
Message has 2 Replies: | | RE: Rotation Sensors - slightly dissapointed...
|
| (...) Ben, I have to go back over the changes, but does legOS sample at the same rate as the standard firmware? The standard rate is about 333hz, so debouncing would likely reduce the effective rate to 166hz, which limits the max rate at which the (...) (25 years ago, 25-Feb-00, to lugnet.robotics)
| | | Re: Rotation Sensors - slightly dissapointed...
|
| I've used old mouse rotation sensors in non-lego projects with some success. They employ a laser counter. The device can be easily connected to a basic stamp. If the counter disk is sealed against contaminantion it works well. Robb, ----- Original (...) (25 years ago, 28-Feb-00, to lugnet.robotics)
|
Message is in Reply To:
| | Re: Rotation Sensors - slightly dissapointed...
|
| (...) Because the LEGO Rotation sensor is a powered type, it might be slightly sensitive to battery voltage. I wonder if you notice the skipping is worse with older batteries. Also, the problem might be aggravated by long wires. Does the skipping (...) (25 years ago, 25-Feb-00, to lugnet.robotics)
|
16 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
|
|
|
|