RC Mode position control with feedback
Posted: Wed Apr 06, 2016 1:39 pm
Hi,
I have bought a Roboclaw 2x7A motorcontroller to be used for position control (servo) with feedback from 10-turn 5K ohm pots and control via RC mode.
Tried to calibrate the system with the Ionmc App this afternoon, but could not get it to work properly. The motor did not follow the slider in any situation (manual or auto tune) and mostly would just be buzzing and sometimes moving a little back and forth. If changing the dead stop values the motor would run to a new setpoint, but not the one specified by the slider.
I have calculated the QPPS from the formula given in another thread, however I have one doubt; Should I use the actual motorspeed or the speed of the geared motor output shaft?
360/Degrees of pot range * (MaxPotValue-MinPotValue) * (RPM/60) = (360/3600)*(1810-0)*(18/60)=54
360/Degrees of pot range * (MaxPotValue-MinPotValue) * (RPM/60) = (360/3600)*(1810-0)*(5600/60)=16893
I have connected a 7,5k ohm resistor to the 5V line to the pot as described in the manual and it seems to work correctly in the Ionmc App, where it measures from 0 to 1810 (0-1,8V) stop-to-stop.
I am hoping that you can point me in the right direction on order to get my system op and running and I have attached two screen shots to check my setup.
Brgds
Martin
I have bought a Roboclaw 2x7A motorcontroller to be used for position control (servo) with feedback from 10-turn 5K ohm pots and control via RC mode.
Tried to calibrate the system with the Ionmc App this afternoon, but could not get it to work properly. The motor did not follow the slider in any situation (manual or auto tune) and mostly would just be buzzing and sometimes moving a little back and forth. If changing the dead stop values the motor would run to a new setpoint, but not the one specified by the slider.
I have calculated the QPPS from the formula given in another thread, however I have one doubt; Should I use the actual motorspeed or the speed of the geared motor output shaft?
360/Degrees of pot range * (MaxPotValue-MinPotValue) * (RPM/60) = (360/3600)*(1810-0)*(18/60)=54
360/Degrees of pot range * (MaxPotValue-MinPotValue) * (RPM/60) = (360/3600)*(1810-0)*(5600/60)=16893
I have connected a 7,5k ohm resistor to the 5V line to the pot as described in the manual and it seems to work correctly in the Ionmc App, where it measures from 0 to 1810 (0-1,8V) stop-to-stop.
I am hoping that you can point me in the right direction on order to get my system op and running and I have attached two screen shots to check my setup.
Brgds
Martin