Quote:
Originally Posted by bladetech932
Actually he asked about code that would essentially turn the motor to brake mode, and you can't (short of adding an accelerometer) do it in the code.
but yes the jumper will work for stoping that motor from moving.
|
What he is really looking for is closed loop control which is not only possible but is a huge part of control systems engineering. It is pretty common in control and automation to build a system so it resists positional changes due to the environment.
Also it is worth noting that you can infact break a motor using software. If you use CAN there is a function to switch between break and coast. If you use PWM then you can connect the signal wire from a digital out to the center pin on the Brake/Coast jumper and control braking that way.