View unanswered posts | View active topics It is currently Sat Sep 20, 2014 8:04 pm






Reply to topic  [ 2 posts ] 
Lego Tetrix Servo 
Author Message
Rookie

Joined: Tue Dec 04, 2012 4:51 pm
Posts: 4
Post Lego Tetrix Servo
We programmed the tetrix Servo motor to open and close a claw. The claw servo won't turn even though the code and the motors and sensors set up is correct. We want to use the Logitech buttons [1&3] to open and close the claw. Even though we hard-wired in the code to open to a certain angle without the remote, it still won't move! Our competition is tomorrow and the main function isn't working. The claw is our only scoring mechanism. We need an answer ASAP! The code is attached below. We are using RobotC for NXT 2.61 Beta.


Attachments:
Servo test 1.c [2.25 KiB]
Downloaded 235 times
Thu Dec 06, 2012 5:49 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 578
Post Re: Lego Tetrix Servo
I have just tested the code you provided in ROBOTC 2.61 and only came across one error; the #include "JoystickDriver.c" line was incorrectly typed as #include ("JoystickDriver.c");

If you cannot move the servo with a basic segment of code:

Code:
servo[servo1]=100;
wait1MSec(2000);


then there may be a problem with the wiring. Double check the wires for the battery, make sure the servo controller is plugged in and turned on (and has the red light), the servo is plugged in the correct way an in the correct port, that the servo controller is plugged fully into the motor controller and the motor controller is fully plugged into the NXT's S1 port, that the motor controller is getting battery power, and finally that the servo isn't physically binding on the robot somehow.

As always, double check to make sure the battery is fully charged, too. Keep us posted on this and we'll help as much as we can.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Thu Dec 06, 2012 6:33 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.