I've reviewed lots of code for roller shade control using an Uno board and a stepper motor, but I haven't found what i need. I'm trying to control a large outdoor shade with an IR remote. I want to have three functions. One button to return the shade to its highest point, one button to unravel the shade to its lowest point, and one button to stop the shade at any point in between. The trouble I'm having is figuring out how to get the shade to know where it is when it stops in relation to the top or bottom. Can anyone help me with this code? I'm very new to this.
My setup is an Uno, Nema 23 stepper (with TB6600 driver), and the basic IR remote that came with an Elegoo starter kit. Thanks!