Subject:
|
Re: Rotation Sensors - slightly dissapointed...
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 25 Feb 2000 12:28:03 GMT
|
Viewed:
|
1113 times
|
| |
| |
I think that motors need time to stop.
If you rotate a motor backwards until the Sensor shows 0, then turn it off,
it might go to -2 until it is fully stopped. So if you do a ClearSensor()
afterwards your motor is off by two counts and your code won't know it.
That's why I asked.
I usually turn the motor off two counts before the destination is reached
(should depend on load, etc.).
I keep the position changes in a variable and always compare the sensor to
the variable. This keeps the error down to the two counts mentioned above
and it won't accumulate.
This *could* have been your problem but it probably wasn't.
Regards,
Stefan
Rebel Transcanner <hendryjr@oxford.net> wrote in message
news:FqGI3F.IBu@lugnet.com...
> Stefan Elsner wrote in message ...
>
> > Did you have a ClearSensor() after every rotating back to 0?
> >
> > Stefan
>
> ...No, and that wouldn't do any good, because the error occurs before it
> returns home - and if it's already at 0 (home) then clearing it isn't going
> to make it any "homier" (^:
>
> The only practical solution I could have come up with is to sacrifice
> another input with a zeroing touch sensor.
>
> Iain
> --
> tokama http://www.oxford.net/~hendryjr
> ICQ UIN 5362826
> AIM Linjerflyg
> h e n d r y j r AT o x f o r d DOT n e t
> (Remove bibiphoque to reply)
|
|
Message has 1 Reply: | | Re: Rotation Sensors - slightly dissapointed...
|
| Stefan Elsner wrote in message ... (...) I developed a vector-based code in which I set a variable to the location I want the motor to spin to, and mount the sensor directly on the gearmotor. The idea is I can implement this code into any of my (...) (25 years ago, 25-Feb-00, to lugnet.robotics)
|
Message is in Reply To:
| | Re: Rotation Sensors - slightly dissapointed...
|
| Stefan Elsner wrote in message ... (...) ...No, and that wouldn't do any good, because the error occurs before it returns home - and if it's already at 0 (home) then clearing it isn't going to make it any "homier" (^: The only practical solution I (...) (25 years ago, 24-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
|
|
|
|