Moving a Stepper Motor to a Zero Position without a Sensor

I am very new to Arduino Programming and I am trying to complete a project to move stepper motors in an unknown position each time to a desired position. To do this, I need to write some code that will move each stepper that is connected to the Arduino to a zero position and I want this to be fully revolved. I was wondeing if anyone could provide any help on this please?

I am also using an Arduino Uno with a TMC260 DFRobot Motor Shield, and if anyone has any hardware connection help that would be good.

Where is the zero position?

I want the zero position to be when the Stepper is fully turned anti-clockwise. The stepper motor I am working with gets longer and shorter depending on how it is turned, therefore I want it to get to its shortest point each time and call this zero.

Please give details of the motor you are using; eg, datasheet & link to the supplier's page.

You mean it's on a leadscrew type thing - to give linear motion?

Does it not provide a "zero position" output?

Do you mean some kind of linear actuator, that moves in and out

1 Like

yes I do

I worked out that it has 20 steps per revolution.

Moving a Stepper Motor to a Zero Position without a Sensor

can't imagine how that is possible

1 Like

If you don't have a sensor then the only thing you can do is get the motor to do more steps anticlockwise than it takes to go from one end to the other.

You will have to hope that the mechanism doesn't get damaged by trying to step the motor whilst it is stalled.

If it takes 200 revolutions to go from fully extended to fully closed then at 20 steps/rev you will need to make it go 4000 steps to bring it back to zero

Hi, @con2309
Welcome to the forum.

Can you post link to specs/data of your linear actuator?

It may have limit switches fitted to stop motor damage.

Why don't you want to use a "home" sensor"?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

1 Like

I once has a car with an automatic choke that worked like this.
The assembly had a clutch that would "slip" when the stepper tried to step backwards beyond the "fully retracted" position...

You could hear it making a clicking noise ...

That driver incorporates "StallGuard" which can sense when it reaches an end stop - hopefully this will not damage the motor. (In my experience of driving steppers against leadscrew end stops though they are remarkably tolerant as long as the mechanism is.)

Read the documentation on the driver and learn how to use the feature - if you have questions after you have done that come back and ask.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.