Quote Originally Posted by slapdash View Post
I tried this code but the motor also seems to rotate without stop.
I forgot to say i needs to be a word size variable, as a byte it can never reach 500

I thought it's possible to count the motor step (limit the step). Is there anyway to achieve this?
If you do not have a preset limit like Melanie mentioned you can make the stepper stop, but it may not always stop in the exact same place. If there is some drag on the mechanism for example.

You could use a light sensor, but what if there is enough light to start but not stop. Or attach a couple of micro limit switched that a hit on full open or full close. There are many ways to make some sort of encoder. If the blind are only rotating 90 degrees a pot fixed to a blade may work.