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
zeroing a motor
-
- Posts: 9
- Joined: 05 Jan 2013, 00:39
Re: zeroing a motor
I forgot to mention that the steering motor only rotates a total of about 90 degrees.
Mike
Mike
Re: zeroing a motor
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!
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!
-
- Posts: 346
- Joined: 27 Sep 2010, 03:05
- Contact:
Re: zeroing a motor
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
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
---> Link to lots of MINDSTORMS stuff under my picture --->
-
- Posts: 125
- Joined: 24 May 2011, 20:41
- Location: Where ever the military sends me (currently Central Texas)
- Contact:
Re: zeroing a motor
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".
JimmyJam
"The more you know, the more you know, the less you know."
"The more you know, the more you know, the less you know."
Re: zeroing a motor
...which increases the torque to twice
- which probably then requires an end- or middle-position-switch (touch sensor)
- which probably then requires an end- or middle-position-switch (touch sensor)
-
- Posts: 125
- Joined: 24 May 2011, 20:41
- Location: Where ever the military sends me (currently Central Texas)
- Contact:
Re: zeroing a motor
Not if the rotation limit is on the servo output.doc-helmut wrote:...which increases the torque to twice
JimmyJam
"The more you know, the more you know, the less you know."
"The more you know, the more you know, the less you know."
-
- Posts: 9
- Joined: 05 Jan 2013, 00:39
Re: zeroing a motor
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
Mike
Who is online
Users browsing this forum: No registered users and 4 guests