How do I lock my arm motor when climbing?

Usually the motors just lower the bot when the driving stops. Is there a way to lock the arm motor when the comp driver control period stops, to prevent the bot from losing its climb?

You cannot do it programmatically unfortunately:

Therefore you have to do something to physically stop it, i recommend using a pneumatic to lock a gear of similar:

I guess you could use a ratchet, but that really depends on use case, and yours sounds like it wont work, since i imagine to climb your arm has to move both ways and not lock during use. You could use a ratchett and engage and disengage it using pneumatics similar to the first idea.
Let me know if you need anymore help

2 Likes

When a robot is disabled at the end of a match, the motors are set to coast. In order to prevent the bot from losing a climb, you’d have to come up with a locking mechanism.

You can set the motor to hold. It depends on the weight of your robot but you can also use an 100rpm red motor to increase torque and then set it to hold.

If you look at teams like gremlin they use use hooks. So the motor pulls up the robot and it it rests on the hooks. But i would suggest trying a passive hang by just driving on the ladder. Thats what we do. Depends what your going for.

1 Like

setting the motor to hold wouldn’t fix the robot dropping when it is disabled, as disabling sets all motors to coast automatically.

1 Like

The simplest way to lock your mechanism when electrical power is no longer available (to hold motors) is, probably, to have some custom hook or ratchet that engages at the end of the climb. This works well if you have a single final destination and don’t need to move after that any more.

More complex, but reversible mechanisms may be based on some sort of pneumatics to engage and disengage external brake.

However, there are ways to achieve similar reversible functionality that doesn’t rely on active pneumatics or motor power purely by mechanical means.

One of them is to use worm gear, which cannot be backdriven. The disadvantage is that you need to go through very high speed gear ratio first, which leads to high friction losses, and VEX worm gear and wheel are not as strong as the regular high strength gears and are quite fragile.

Another alternative would be to create a non-linear variable ratio gear train. Here are some examples:

As you go through the full rotation you move with quick gear ratio for the most part of the cycle and then have a slow gear ratio for a small period of time. You could tune those gear ratios such that during this last phase even the large resisting force on the output side will not be able to overcome and backdrive even the tiny natural friction in the unpowered motor on the input side.

Advantage of this method is that you could have a number of natural stop points along your climb. And the disadvantage of this method is that you have to make custom gears, destroying quite a few HS gears in the process, before you get it right.

2 Likes