Arm problems on the Clawbot

I am having problems when I program my Vex V5 ClawBot.

  1. Every thing is connected correctly and it claims that the brain is not connected, How may I fix this problem?

  2. When programming in the competition templet either when the claw motor is up or down the motor goes down. Does anyone know why this is happening and what I can do to fix it?

Sending your code would help. (Try to put it in a code block example: [code] code goes here [/code])

1 Like

1 Like

When you say the claw motor is up or down are you referring to the arm being up or down, or claw being open or closed.

As for the Brain Connection issue, are you connected directly to the brain via USB, or via the controller (make sure it’s paired to the V5). Try another cable or wiggling the connector a bit, works for me sometimes with cables with bad connectors.

1 Like

I am referring to the arm motor. The arm goes down even when I increase the torque or reverse the spinning of the motor. It does matter whether the program is up or down the robot arm goes down.

I am connecting via USB, using the cable from port 6 and connecting to the vex controller, controller to computer.

Also I am having issues when I start the program sometimes it does start, it just sits there with a black screen like it would be running the program.

It is possible that your arm is too heavy for the motor to lift up. What motor cartridge are you using?
Try taking the motor off to see if it actually spins backwards, or connect another motor to the same port to check that the program is actually doing what it’s supposed to.

You probably want to move the code from ‘when started’ to ‘when driver control’ as your code is currently in the initialize section (Pre-Autonomous). This code is meant for things like calibrating sensors or setting a motor position.

Read more here: https://kb.vex.com/hc/en-us/articles/360035592072-How-to-Create-a-Project-Using-the-Competition-Template-VEXcode-V5-Blocks

2 Likes

It can not be possible because if that was the problem, when in driver control the arm wouldn’t move. It is only in program mode that the arm doesn’t move up.

I am having trouble understanding what you mean,

If you mean the arm doesn’t work in autonomous it is because you haven’t put any code there apart from setting torque.

Also make sure to actually move your code to the autonomous or driver control section (probably autonomous) as the only code that should be in ‘When Started’ is initialization code.

1 Like

So in simpler terms move the code to autonomous mode, and add torque to arm motor to solve the issue with the arm not moving.

The arm only moves in driver mode, it only goes down in autonomous mode

and in Autonomous mode the rest of the program works?

Add some code under the “When Autonomous” hat. setting max torque will not move the motor, it only tells the motor what the maximum amount of torque (pushing power) is that it can use, max is 100% (and is the default).

Use setVelocity and spin blocks to move the motor.

Move your driver control code under the “When Driver” hat

5 Likes

This is the new updated code, when I press run it wont start the code

1 Like

You need to use a competition switch with the V5 or run as a match or programming skills from the controller.

3 Likes

As @jpearman the max value you can set torque to is 100 (it’s a percentage) also you do not need any of the code in ‘when driver control’ as it’s already in the initialize section.

1 Like

It still doesn’t start on command

To confirm you are running it on autonomous on the competition switch or on the controller match mode?

Program off of the controller.

1 Like

The program normally, or the program in match mode.

The program normally

1 Like

You have to run it in match mode, when you select it on the controller do not press play immediately, select the icon which has trophy icon to run it.

Edit: The reason you need to do this is because the autonomous code only gets executed when connected to a field controller or running in match mode and is set to autonomous.