|
Page 1 of 1
|
[ 4 posts ] |
|
We can't get speed control for the Tetrix DC motors.
| Author |
Message |
|
aybose
Rookie
Joined: Tue Dec 09, 2008 7:29 pm Posts: 2
|
 We can't get speed control for the Tetrix DC motors.
We do not have any change in the speed in the Tetrix standard DC 12V motors although we seem to be editing it. Here is our code. When we plugged in the Lego NXT motors, we did get speed variablity.
#pragma config(Hubs, S1, HTMotor, HTServo, none, none) #pragma config(Motor, mtr_S1_C1_1, motorD, tmotorNormal, PIDControl) #pragma config(Motor, mtr_S1_C1_2, motorE, tmotorNormal, PIDControl) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
#include "JoystickDriver.c"
task main() { while (true) { getJoystickSettings(joystick);
motor[motorD] = 100; } }
Just something as simple as this, without any joystick input, does not change at all when it is run. When we do add in the joysticks, there is no speed variabilty as well. Thanks!
-Francis Parker WARLORDS
|
| Tue Dec 09, 2008 7:35 pm |
|
 |
|
Jeff McBride
Professor
Joined: Fri Sep 19, 2008 1:22 am Posts: 200
|
 Re: We can't get speed control for the Tetrix DC motors.
Do you have the shaft encoders installed? If not, turn off PID control. What is probably happening is:
- You are asking for a particular speed - The controller applies power to the motor - There is no data coming from the shaft encoder which it interprets as the motor being stopped - The controller applies more power to the motor to try to get it moving - Round and round until (more or less) full power is being applied.
_________________ Jeff McBride Benson Robotics Club
|
| Tue Dec 09, 2008 9:43 pm |
|
 |
|
aybose
Rookie
Joined: Tue Dec 09, 2008 7:29 pm Posts: 2
|
 Re: We can't get speed control for the Tetrix DC motors.
How do we install shaft encoders and what exactly are they?
-Francis Parker WARLORDS
|
| Tue Dec 09, 2008 10:47 pm |
|
 |
|
Jeff McBride
Professor
Joined: Fri Sep 19, 2008 1:22 am Posts: 200
|
 Re: We can't get speed control for the Tetrix DC motors.
They look like the attached picture. Your kit should have come with two of them and with instructions for assembling them. Note: BE VERY CAREFUL. Even with the FTC Team 20% discount they cost about $64 each.
_________________ Jeff McBride Benson Robotics Club
|
| Wed Dec 10, 2008 12:08 am |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 5 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
|
|