View unanswered posts | View active topics It is currently Fri Dec 19, 2014 12:31 pm






Reply to topic  [ 11 posts ] 
Noob havin' problems. 
Author Message
Rookie

Joined: Thu Apr 07, 2011 10:53 am
Posts: 5
Post Noob havin' problems.
I have just recently opened up some Vex robot kits and downloaded RobotC. I built a recbot to spec and am trying to run simple motor functions on it. I have updated and downloaded firmware via USB with no errors. I have no problems compiling and downloading via USB, but when I start the program, the motors jerk once and do the same afterwards. I have downloaded several sample programs and had identical results. I'm hoping this is just my lack of knowledge and training. Any ideas? Here's one of the programs I tried.

#pragma config(Motor, port2, , tmotorNormal, openLoop)
#pragma config(Motor, port3, , tmotorNormal, openLoop)[/color]



task main()
{

motor[port2] = 127;


motor[port3] = 127;
wait10Msec(2000);

motor[port2] = 0;


motor[port3] = 0;
}


Thu Apr 07, 2011 11:01 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Noob havin' problems.
The quick jerk when the VEX starts up is unavoidable. What you can do, is insert a wait at the beginning of the program to give you time to correct the placement of the robot.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Thu Apr 07, 2011 11:11 am
Profile
Rookie

Joined: Thu Apr 07, 2011 10:53 am
Posts: 5
Post Re: Noob havin' problems.
Thanks! That part is comforting at least. Any idea why the programs do not produce any results?


Thu Apr 07, 2011 1:26 pm
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Noob havin' problems.
Are you using the newer VEX Cortex? If so, what type of motors are you using? If they're the two-wire motors, you have to use them with the Motor Controller 29's (2-3 wire converter) to use them in ports 2 and 3.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Thu Apr 07, 2011 3:29 pm
Profile
Rookie

Joined: Thu Apr 07, 2011 10:53 am
Posts: 5
Post Re: Noob havin' problems.
port 2 and 3 are both 3 wire motors.


Fri Apr 08, 2011 8:02 am
Profile
Site Admin
Site Admin

Joined: Mon Jun 08, 2009 4:50 pm
Posts: 70
Post Re: Noob havin' problems.
Hi SCarleton,

I know that this may sound a bit inane, but have you checked that all wires are in the correct ports?
Have you tried different ports (changing both your code and hardware setup)?
Are you certain that the power switch is ON? (The USB will power the board but not the motors so even though it may seem ON, it is only halfway awake.) When the switch is on, battery is charged, and motors are not broken, you should hear a faint and seemingly random beeping-like noise from the motors.

Hope that this helps you,

_________________
Bence Feher

Undergraduate Intern - NREC, Robotics Academy
ROBOTC - Testing/Documentation/Developer

Computer Science, Japanese, East Asian Studies
University of Pittsburgh, Konan University 甲南大学


Fri Apr 08, 2011 10:30 am
Profile
Rookie

Joined: Thu Apr 07, 2011 10:53 am
Posts: 5
Post Re: Noob havin' problems.
Tried different ports/program; checked the battery; hear the motors hum; switched on. Still nothing :(


Fri Apr 08, 2011 11:27 am
Profile
Rookie

Joined: Thu Apr 07, 2011 10:53 am
Posts: 5
Post Re: Noob havin' problems.
Sooooo.....I decided to bypass the programming and run the bot just from joystick controls. I set up a different cortex and synchronized it with a new controller. The motors only run for a short burst in either direction. They are not impeded. Do I need to do anything with the jumpers?


Wed Apr 27, 2011 10:49 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 406
Post Re: Noob havin' problems.
Hello SCarleton,

Can you paste your code here for us to take a look? Do you think it's possible that your motors may be damaged?

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Wed Apr 27, 2011 3:49 pm
Profile
Novice
User avatar

Joined: Sat Jul 10, 2010 3:06 pm
Posts: 86
Location: Roanoke, VA
Post Re: Noob havin' problems.
SCarleton wrote:
Sooooo.....I decided to bypass the programming and run the bot just from joystick controls. I set up a different cortex and synchronized it with a new controller. The motors only run for a short burst in either direction. They are not impeded. Do I need to do anything with the jumpers?

Make sure you're using motor, and not servo modules. Servos will run only for a short burst in either direction, but only have a ~120 (I think...) degree range.

_________________
Check out my website! www.RoboDesigners.com

VRC Team 2190

Twitter: @RoboDesigners


Sun May 08, 2011 3:47 pm
Profile WWW
Rookie

Joined: Wed Feb 09, 2011 1:08 am
Posts: 27
Post Re: Noob havin' problems.
Just a thought did you calibrate the joystick after loading the firmware? I had a similar problem where the motor only ran in one direction but a calibration cleared it up Kb


Thu Jun 30, 2011 11:11 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users and 0 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.