I have a sensor providing position feedback, which then drives the stepper to a targeted position.
My setup works, but as you can see in the video is very choppy. I believe at least part of the problem here is that my sensor location update and my stepper adjustments are happening in series.
I don't have much experience with coding, but it seems like I need a way for my motor and sensor update to be running in "parallel", or in a way that my stepper's target end-position can be updated while it is still moving to the previous target end position.
I have some other mechanical/accuracy issues to sort out with the setup as you might notice, but my first step is to figure out how to give it a more of an analog (smooth) control.
-Nema 17 Stepper Motor.
-Arduino Uno Rev3
-30V Power Supply