is there a way to track a stepper motor resistance to know when the motor has reached it's min/max rotation limit.
basically my stepper motor is connected to a adjustable damper that has a can only be rotated (depending on model) between 5 and 7 rotations.
what I am trying to do, is via software drive the stepper counter clockwise until it hits this physical limit in the damper (set 0 step), drive clockwise until limit while counting the steps. finally supplying the number of damper settings/total steps I can calculate the damper position.
Try to measure the current when the motor stalls.
You could have a small resistor in series with one of the stepper coils and measure the voltage being produced by the current flow. When the motor stalls it should increase and you can use this rise for triggering actions.
Your description of what you want to do is not very clear.
A stepper motor applies its full torque all the time so there is no simple way of detecting a stall.
A complex solution would be to put a rotary encoder on the motor shaft to count steps. If the number of steps commanded is greater than the number counted by the encoder you would know that the motor had stalled.
If the thing the motor is pushing against is fixed and could have a limit switch attached to it that would be a much simpler solution.
limit switch won't work, think of screwing a nut and bolt together, there is a unknown number of rotations in either direction before the bottoms out or removes out of the threads.
A stepper is possibly the right choice for this, but you must be able to control the current that is driving the stepper. Using an A4988 or DRV8825 type of chip, you can set the current limit so that the stepper only has a specific torque available. Then just drive it a thousand steps or whatever.
If you know which model of dampener you are using and the number of max turns, limit the torque and run it a full 600 pulses or what ever is required for a full stroke and work backwards from there. a stepper would work perfect in this application. by doing this in your setup it will reset the position every time it is powered up. I believe MorganS is saying the same thing.