|
Page 1 of 1
|
[ 7 posts ] |
|
Motors not responding to vex controller
Author |
Message |
SJscienceclub
Rookie
Joined: Thu Oct 27, 2011 4:53 pm Posts: 5
|
 Motors not responding to vex controller
Our two motors that move to robot work just fine although we have two other motors for the arm and we set the program to move the two parts of the arm using the 5U button and the 6U button, they do not work and we dont know whats wrong. PLEASE HELP!!! OUR PROGRAM: task main{ while(true){
motor[port2] = vexRT[Ch2]*3; motor[port3] = vexRT[Ch3]*-3;
if(vexRT[Btn5U]==1) { motor[port4] = 30; } else if (vexRT[btn6U] ==1) { motor[port4] = -30; } else { motor[port4] = 0; } } }
|
Thu Oct 27, 2011 4:57 pm |
|
 |
jbflot
Site Admin
Joined: Tue May 15, 2007 9:02 am Posts: 409
|
 Re: Motors not responding to vex controller
Your actual code looks OK. Two ideas come to mind: - Make sure you're providing enough power for the motors to move. 30 may be too low if your arm is heavy. - Make sure you're not plugging a 2-wire motor directly into port 4. You must use a Motor Controller 29 wire to connect 2-wire motors to 3-wire motor ports.
|
Thu Oct 27, 2011 5:38 pm |
|
 |
abborunda
Rookie
Joined: Thu Oct 27, 2011 6:01 pm Posts: 1
|
 Re: Motors not responding to vex controller
Hi im the one who programmed the robot, i am using a different account because i forgot the password the the other one.
in my program i dont have it yet set for the 2nd part of the arm so i dont think thats the problem and when i go to school tomorrow ill try your second solution. hopefully it will work
|
Thu Oct 27, 2011 6:06 pm |
|
 |
SJscienceclub
Rookie
Joined: Thu Oct 27, 2011 4:53 pm Posts: 5
|
 Re: Motors not responding to vex controller
its still not working. is there anything else that could be the problem??
|
Mon Oct 31, 2011 9:04 am |
|
 |
jbflot
Site Admin
Joined: Tue May 15, 2007 9:02 am Posts: 409
|
 Re: Motors not responding to vex controller
You guys said that "in my program i dont have it yet set for the 2nd part of the arm". Do you have other motors that aren't being turned on in the arm, and are putting too much resistance against the moving motors? Does the arm seem like it's trying to move at all?
It might help if you post a picture of your robot.
|
Mon Oct 31, 2011 9:17 am |
|
 |
SJscienceclub
Rookie
Joined: Thu Oct 27, 2011 4:53 pm Posts: 5
|
 Re: Motors not responding to vex controller
No there are only 3 motors and one servo. 2 motors for the robot to be able to move 1 motor to move the arm up and down and one servo for the claw
|
Mon Oct 31, 2011 9:20 am |
|
 |
shtyjyq
Rookie
Joined: Mon Nov 07, 2011 8:33 pm Posts: 1
|
 Re: Motors not responding to vex controller
You can change the if into while to see if it works.
|
Mon Nov 07, 2011 8:52 pm |
|
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|