View unanswered posts | View active topics It is currently Sat Aug 23, 2014 12:03 pm






Reply to topic  [ 7 posts ] 
Motors not responding to vex controller 
Author Message
Rookie

Joined: Thu Oct 27, 2011 4:53 pm
Posts: 5
Post 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
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post 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.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Thu Oct 27, 2011 5:38 pm
Profile
Rookie

Joined: Thu Oct 27, 2011 6:01 pm
Posts: 1
Post 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
Profile
Rookie

Joined: Thu Oct 27, 2011 4:53 pm
Posts: 5
Post 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
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post 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.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Mon Oct 31, 2011 9:17 am
Profile
Rookie

Joined: Thu Oct 27, 2011 4:53 pm
Posts: 5
Post 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
Profile
Rookie

Joined: Mon Nov 07, 2011 8:33 pm
Posts: 1
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.