Possible to "lock" motors?

Hello,

My motor/axle pivots keep give way or fall down after weight is put on it. Is it possible to program motors as to put on lock or as a standby value (such as during Tele-Op)? It would be greatly appreciate if the code is provided in EasyC.

Thank you,

Jason

About the best you can do for providing a holding torque for any considerable time is to command the motors to run at a value of about 15 to 20 (my kids tell me up to 30, but I think it can be motor dependent). If it’s an arm, then you’ll probably want to apply elastics (rubber bands) to help assist the lift.

Yes it is possible. Just set the motors to run reversely against the “dropping” direction.

Please note that motors would be disabled after the autonomous period if the robot is in a match.

Try your best to achieve that by configuring your robot “physically”, i.e. applying rubber bands or latex tubes. Use programming tricks unless you have no other choices.

Thanks, but, what do you mean by running the motors? Like, running what as a value? As in running the motor in the opposite direction?

How would you run the motor in the opposite direction every time it does droop? How do you know that it will lock instead of shooting upwards? Also, what do you mean by the motors will be “disabled” after autonomous?

Not sure what you mean by “lock”. Add an encoder/potentiometer and you can use a PID controller to hold the position.

Unfortunately, it isn’t possible to lock the motors, so all you can do is set the motor value to something small (15 or so) in the direction opposite of the drop. The motor won’t have enough power to turn, but it will keep from turning in the other direction. What Jarvie meant by the motors being disabled, was that in the period between autonomous and driver control, all of your motors will be set to 0, and your arm(or whatever you are trying to hold up) will fall down.