TETRIX Motor Controller

From ROBOTC API Guide
Revision as of 16:03, 4 April 2012 by Bfeher (Talk | contribs)

Jump to: navigation, search

Main >> NXT >> Motor Controller



Information

The HiTechnic Motor Controller allows you to drive two 12V motors and read values from two shaft encoders.


Configuration

Once your HiTechnic DC Motor Controller is configured in the "TETRIX Controllers" tab of the Motors and Sensor Setup screen, you can use the Motors tab of the Motors and Sensors Setup to configure your motors.

File:Tetrix motors 1.jpg


Port

The name of the motor. NXT motors are given names "motorA" through "motorC". The TETRIX DC motors are named based on how they're connected to the NXT. The port name can be used to reference a motor in your program (i.e. motor[motorC] = speed;)

The TETRIX motor names can be translated as follows:
mtr_S1_C1_1 - Motor (mtr) on Sensor Port 1 (S1) connected on the first controller (C1) in the daisy chain attached to Motor Port 1 (1)
mtr_S1_C1_2 - Motor (mtr) on Sensor Port 1 (S1) connected on the first controller (C1) in the daisy chain attached to Motor Port 2 (2)