piclist 1999\10\18\152734a >
Thread: Stepper motor control
www.piclist.com/techref/microchip/ios.htm?key=stepper
flavicon
face BY : Lawrence Lile email (remove spam text)



Interesting problem, John.

Try this idea:

Say your present position is 1000.  You want to go to 1050.  and the
shortest route is clockwise.

Assume there are 65536 possible positions

1050 - 1000   is less than    65535 - 50.

Therefore,  subtract the present position from the desired postition, and
the desired position from the MAXIMUM number of positions.  the comparison
will give you the shortest route.



{Original Message removed}
<003901bf199e$b072bd60$5301010a@6840cck4k019.toastmaster.com> 7bit

See also: www.piclist.com/techref/microchip/ios.htm?key=stepper
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Stepper motor control

month overview.

new search...