When I enter closed loop control the drive just spins for ages (2048 turns?)
If I use a small number for the setpoint range then when it’s completed the number of turns it reverses.
The trouble is, when it gets to the end of the first turn it reverses back to the zero position, I need it to keep going as it recieves more steps (Position control for a CNC measuring machine, small gimball motors)
No it doesn’t. pos_estimate might, but axis won’t actually move back to 0. If it is doing that, please let me know what input_mode, control_mode, and commands you’re sending it, then drop some data in here (plot / record input_pos, pos_setpoint, shadow_count, and pos_estimate)
They are all the default values:
input_mode = INPUT_MODE_PASSTHROUGH
Control mode = Position control.
I can’t get the plots to change (running on raspi, no anaconda) but the std plot shows the position moving up then dropping back to the zero position and starting again.
It worked quite happily before the firmware update. I added the braking resistor and GPIO modes to the step dir lines to get it working.
No, sorry. Unfortunately you’re the only one who has this particular problem… I really don’t understand why. Maybe it has something to do with your cpr settings vs the steps_per_circular range? It shouldn’t matter though.
Ok, I have 2 of these boards so fired up the other one to check the version. For some reason it wouldn’t connect via USB so had to reflash via DFU mode.
Anyway, got it running on V0.5.4 and with the settings below it works as it should so its got to be something with the settings for the previous drive.