Page 1 of 1
zeroing a motor
Posted: 28 Jan 2013, 17:49
by mikebittmann
Maybe that's not the right term. I have built a tricycle with steering on both ends, connected to a single motor. It is driven by the front wheel. How do I consistantly return the front wheel (and therefore the back ones) to"straight?"
Mike
Re: zeroing a motor
Posted: 28 Jan 2013, 18:01
by mikebittmann
I forgot to mention that the steering motor only rotates a total of about 90 degrees.
Mike
Re: zeroing a motor
Posted: 28 Jan 2013, 19:59
by HaWe
best:
drive motor to left max until a certain touch sensor is hit.
in that moment stop motor and set encoder to -45 or what ever.
(This is how my chess robot is doing more or less - good if torque is strong)
next best:
drive motor slowly to left max and wait enough time to be sure that it finally will have reached the outmost left max. (motor will be stalling!!).
then stop motor and set encoder to -45 or what ever.
(This is how Mindcuber is doing - sufficient for weak torque)
HTH!
Re: zeroing a motor
Posted: 29 Jan 2013, 15:21
by hassenplug
A vehicle like that may be different from doc's robots, because you may not want to drive to the end of travel to reset, and you may want to be able to keep resetting (to compensate for drift, while it's driving)
My suggestion would be to put a cam on the motor, and have it hit a touch sensor when the motor is centered. When it's first started, you may use doc's second method (drive to end at low power) to make sure it knows which direction the touch sensor (center) is. Then, drive until you reach the touch sensor.
Steve
Re: zeroing a motor
Posted: 30 Jan 2013, 00:28
by jwiger
To enhance that a slight gear reduction could help. If your steering has a total of 90 degrees of swing than using say a 2:1 ratio between the steering servo with touch sensor cam and the front wheel will give you more resolution and a more precise "center".
Re: zeroing a motor
Posted: 30 Jan 2013, 07:58
by HaWe
...which increases the torque to twice
- which probably then requires an end- or middle-position-switch (touch sensor)
Re: zeroing a motor
Posted: 01 Feb 2013, 03:46
by jwiger
doc-helmut wrote:...which increases the torque to twice
Not if the rotation limit is on the servo output.
Re: zeroing a motor
Posted: 02 Feb 2013, 16:28
by mikebittmann
Thanks for the input. I'm very new to this and some fairly simple solutions haven't occurred to me, so far. I have a great deal to learn.
Mike