|
Page 1 of 1
|
[ 8 posts ] |
|
| Author |
Message |
|
Alder
Rookie
Joined: Thu Oct 04, 2012 8:51 pm Posts: 22
|
 Tetrix motors for RobotC
I'm trying to get the NXT module to run a program that makes a tetrix motor run. But I have run into a few problems. This is my current code:
#pragma config(Hubs, S1, HTMotor, none, none, none) #pragma config(Sensor, S2, touch, sensorTouch) #pragma config(Motor, mtr_S1_C1_1, motorD, tmotorNormal, openLoop) #pragma config(Motor, mtr_S1_C1_2, motorE, tmotorNormal, openLoop) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main() { motor[motorD] = 50; motor[motorE] = 50; wait1Msec(4000); motor[motorD] = -50; motor[motorE] = -50; wait1Msec(4000); }
And I have the current platform type is set to Nxt + tetrix/matrix, and have the motors hooked up, and the power is on. Any idea why its not working?
|
| Thu Oct 04, 2012 8:56 pm |
|
 |
|
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1023
|
 Re: Tetrix motors for RobotC
The first thing I would look at is the connection of the components. According to your code, your tetrix motor controller should be connected to sensor port 1 (S1). Make sure the tetrix motor controller has power (a red LED light should be ON). The two motors should be connected to the "motor 1" and "motor 2" ports on the tetrix.
|
| Thu Oct 04, 2012 10:27 pm |
|
 |
|
Alder
Rookie
Joined: Thu Oct 04, 2012 8:51 pm Posts: 22
|
 Re: Tetrix motors for RobotC
Yes, the wire is connected to Motor 1 and motor 2, going through sensor port 1. The red power light is on. The motors are not moving. 
|
| Fri Oct 05, 2012 8:42 am |
|
 |
|
Alder
Rookie
Joined: Thu Oct 04, 2012 8:51 pm Posts: 22
|
 Re: Tetrix motors for RobotC
Well, I found out, when I run the motor, I can feel it vibrating, but It doesn't move. Has it burnt out?
|
| Fri Oct 05, 2012 11:29 pm |
|
 |
|
NeXT-Generation
Senior Roboticist
Joined: Wed Sep 28, 2011 10:13 pm Posts: 510 Location: Totally not spying on Hassenplug to see what he has for the Brickworld Chicago 2013 sumo contest.
|
 Re: Tetrix motors for RobotC
I have no experience with TETRIX, but if it's vibrating I'd say that there are either stuck or broken gears.
_________________A.K.A. inxt-generation Self-proclaimed genius, and future world dominator. My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor Bow down to Nikola Tesla, King of the Geek Gods.
|
| Fri Oct 05, 2012 11:39 pm |
|
 |
|
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1023
|
 Re: Tetrix motors for RobotC
What about setting power to 100 instead of 50. In any case, it does sound like there is a motor problem (or a motor controller problem). Do you have another motor or another motor controller to try with?
|
| Sat Oct 06, 2012 12:39 am |
|
 |
|
Alder
Rookie
Joined: Thu Oct 04, 2012 8:51 pm Posts: 22
|
 Re: Tetrix motors for RobotC
I tried changing power levels. When I changed it to 100, it no longer vibrated. But, I am meeting with my team in a few days, so we will have some other motors to work with.
|
| Sat Oct 06, 2012 10:31 am |
|
 |
|
JohnWatson
Site Admin
Joined: Thu May 24, 2012 12:15 pm Posts: 386
|
 Re: Tetrix motors for RobotC
I agree with MHTS and NeXT-Generation, if the motor is vibrating (but not moving) there may be an issue with the motor or the motor controller. I would double-check all of your connections (and make sure the battery is fully charged) and possibly wire up a different motor for testing. The only downside to that would be if the motor controller is bad it could theoretically damage the motor, but since DC motors do not have polarity (they can be run with either a positive or negative voltage range) you run less of a risk of burning them out simply by testing them.
_________________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
|
| Tue Oct 09, 2012 9:40 am |
|
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 6 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
|
|