I'm completing a final year project using a NEMA 17 motor that controls an arm that swings 180 degrees. I need to be able to display the angle the arm is at to ensure it stays within this 180 degrees. I've looked at using an encoder but was hoping there is a much simpler way to approach this? Thanks in advance.
If a stepper motor is correctly configured and not overloaded, it does not skip steps. Once you have determined the starting position, just count steps to determine the shaft angle.
At startup, most people drive the stepper to an end stop or "home switch" to set the zero position. It does not damage a stepper to drive the shaft against an end stop and stall the motor.
All steppers have their specific data telling how many steps they need to turn 180 degrees. Usually steppers like this use 200 steps per rev. Just send 100 pulses then.