Arduino Forum

Using Arduino => Project Guidance => Topic started by: mark visser on May 19, 2017, 11:34 am

Title: PANdrive PD42-4-1140_TMCL
Post by: mark visser on May 19, 2017, 11:34 am
Hello,

For school we are working on a project that we could think of our self. We use a steppermotor PANdrive PD42-4-1140_TMCL. I have worked whit steppermotor before. So I already know how to use that. But i heard that you can program the stepper moter to. Then he can give a signal when he is at point 1 point 2 point 3 etc. Now is my quetion how do you do that? Can someone help me?

Thank you very much.
Mark Visser

P.S.
Sorry for the bad englis
Title: Re: PANdrive PD42-4-1140_TMCL
Post by: UKHeliBob on May 19, 2017, 11:49 am
Normal stepper motors have no method of feeding back their current position.  You tell them to make a number of steps and trust that they will do it.  You can make a stepper motor drive to one or both ends of their travel and close (or open) a limit switch and stop so that you can establish a starting position.

If you only want to know when the stepper is at say 5 different positions then you could put switches at those positions and read them so that you know when the stepper reaches one of them.

If you want to know the current position of a stepper motor wherever it is then you will need some form of feedback, such as a rotary encoder attached to the motor.