zeroing a motor

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
mikebittmann
Posts: 9
Joined: 05 Jan 2013, 00:39

zeroing a motor

Post 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
mikebittmann
Posts: 9
Joined: 05 Jan 2013, 00:39

Re: zeroing a motor

Post by mikebittmann »

I forgot to mention that the steering motor only rotates a total of about 90 degrees. :oops:
Mike
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: zeroing a motor

Post 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!
hassenplug
Posts: 346
Joined: 27 Sep 2010, 03:05
Contact:

Re: zeroing a motor

Post 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
---> Link to lots of MINDSTORMS stuff under my picture --->
jwiger
Posts: 125
Joined: 24 May 2011, 20:41
Location: Where ever the military sends me (currently Central Texas)
Contact:

Re: zeroing a motor

Post 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".
JimmyJam
"The more you know, the more you know, the less you know."
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: zeroing a motor

Post by HaWe »

...which increases the torque to twice
- which probably then requires an end- or middle-position-switch (touch sensor)
jwiger
Posts: 125
Joined: 24 May 2011, 20:41
Location: Where ever the military sends me (currently Central Texas)
Contact:

Re: zeroing a motor

Post by jwiger »

doc-helmut wrote:...which increases the torque to twice
Not if the rotation limit is on the servo output.
JimmyJam
"The more you know, the more you know, the less you know."
mikebittmann
Posts: 9
Joined: 05 Jan 2013, 00:39

Re: zeroing a motor

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests