Add 2 limit switches, one fully open and fully closed. If either switch is turned on then stop the stepper and update the position to open/closed based on which limit switch is turned on… You can buy micro switches from Amazon and they work great…
1 Like
Thanks, seems logical enough. I’ve tested for a couple of day and I think I will be okay without them but still interested for future versions. I’ll have to play with the code to understand more.
I know it’s been a while since this thread has moved, but was wondering about using the limit switch or a reed switch. Do you have any example code of what you had to change to make this work?
Look at the documentation. This is called “human readable” code because its pretty self explanatory what it does and how you use it, they also give you lots of examples.