The TReX Jr Dual-Motor Controller [http://www.pololu.com/catalog/product/767] is a versatile DC motor controller
designed to seamlessly blend autonomous and human control of small- and medium-sized robots. The TReX can
control two bidirectional and one unidirectional motor via three independent control interfaces: radio control (RC)
servo pulses, analog voltage, and asynchronous serial (RS-232 or TTL). It uses five input channels to receive the RC
or analog control signals. When operating in RC or analog mode, the five channels function as follows:
• Channel 1: motor 1 speed and direction or, if in mix mode, turn left/right
• Channel 2: motor 2 speed and direction or, if in mix mode, go forward/reverse
• Channel 3: auxiliary (unidirectional) motor speed
• Channel 4: can be used to enable “flipped mode”, which allows invertible robots to be controlled as normal
when they are inverted
• Channel 5: determines whether the motors are controlled by the channel inputs or the serial interface; this
channel allows you to switch between autonomous and human control at will
The serial interface can switch instantly with one of the other two interfaces, allowing mixed autonomous and
remote control. For example, a robot could be configured to run autonomously most of the time, but a human
operator could override the autonomous function if the robot gets stuck or into a dangerous situation. If the serial
mode is selected as the primary interface, high-resolution measurements of all five channel input signals (be they
RC pulses or analog voltages) are made available to the autonomous robot controller, allowing for complex and
unlimited mixing of operator control and sensor input. For example, the TReX would be a great motor controller for
a line-following robot whose overall speed is controlled by an RC throttle, or an RC car with sensors that
autonomously dodges obstacles in its path as you drive it around.
You can check the TReX Jr motor controller page [http://www.pololu.com/catalog/product/767] for additional
information. We would be delighted to hear from you about any of your projects and about your experience with the
TReXmotorcontroller.Youcancontactus [http://www.pololu.com/contact]directlyorpostonour
forum [http://forum.pololu.com/]. Tell us what we did well, what we could improve, what you would like to see in the
future, or anything else you would like to say!
Getting started with your TReX Jr can be as simple as connecting power, your motors, and your RC or analog
control signals (see Section 3.a and Section 3.b). Configure your jumpers for RC or analog mode (see Section 3.c)
and you’re good to go. While it’s running, the TReX Jr will communicate with you via its LEDs (see Section 3.d).
Once you have all your connections in place, we recommend your first step be to calibrate your TReX Jr for your
particular RC or analog controller (see Section 3.e).
Pololu TReX Jr Dual Motor Controller bottom view with dimensions
3.a. Motor and Power Connections
The TReX Jr receives its power through the VIN/GND connector terminals. VIN should be between 5 and 24 V and
your power source must be able to supply the current your motors will be drawing. The TReX Jr can supply peaks of
5 A and up to a continuous 2.5 A to each of its two bidirectional motors. Performance will depend the on actual
system and its ability to dissipate heat. The TReX Jr is designed to help heat flow along the board away from the
MC33887 motor driver chips, but addition of a heat sink and good air flow will further improve performance. The
TReX Jr can supply up to 10 A (continuous) to the auxiliary motor.
Note: The TReX Jr uses a linear voltage regulator to obtain its logic voltage (5-V Vcc). If you supply a
VIN of 24 V, your Vcc line will be limited to a maximum of 50 mA because of the regulator’s 1-W power
dissipation rating. This limitation might prevent your TReX Jr from being able to safely power an RC
receiver when VIN is so much higher than Vcc.
There are several different ways to connect motors to your TReX Jr:
Option 1:
TReX Jr motor connections (single battery)
The figure above demonstrates how to connect two bidirectional motors and a unidirectional auxiliary motor to your
TReX Jr, all powered by the same battery. Note that the auxiliary motor is driven by permanently connecting one
lead to power while the board PWMs the other lead between high impedance and ground. You must connect your
battery’s ground directly to the upper port of the auxiliary motor’s connection block if you plan to use the auxiliary
motor. Otherwise, the auxiliary motor could attempt to pull too much current through the TReX Jr itself, thereby
damaging the unit.
The auxiliary motor’s other lead connects to the lower port of its connection block. You will need to connect a diode
across the auxiliary motor’s terminals as shown below. Failing to do so will adversely affect the performance of
your TReX Jr and could result in permanent damage to the device. Take great care to ensure you do not solder the
diode in backwards! You should not solder a diode to your bidirectional motors.
You may find it beneficial to solder 0.1uF capacitors across all of your motors’ terminals. This will decrease the
noise put out by your motors and can improve performance of your TReX Jr. You can further decrease the noise put
out by your motors by keeping their leads as short as possible and twisting them around each other in a helix.
TReX Jr motor connections (separate battery for the auxiliary motor)
It is possible to power the auxiliary motor with a second, separate 0 – 24 V battery, as shown above. To do so,
connect that battery’s ground to the upper of the two auxiliary motor connection block ports. Connect one of your
auxiliary motor’s leads to the lower connection block port and connect the other of your motor’s leads directly to the
battery’s positive side. You will still need to solder a diode across your auxiliary motor’s terminals.
Option 3:
TReX Jr joint-motor connection
Lastly, you can use both motor 1 and 2 outputs to control a single, more powerful (up to 5 A continuous)
bidirectional motor by connecting it as shown above. One of the motor’s terminals connects to both of motor 1’s
outputs while the other of the motor’s terminals connects to both of motor 2’s outputs. In order to use your TReX Jr
in this way, you must use the serial interface to set the TReX Jr to “joint motor mode”. In this mode, the single
bidirectional motor is considered “motor 1”. The motor speed/direction indicator LEDs will not work in this mode,
nor will current sensing or channel mixing. Although it is not shown in the figure above, you can additionally
control an auxiliary motor while running in “joint motor mode”.
3.b. Signal Connections
RC/analog signals should connect to the interior of the three channel columns; this connection is represented by the
white wire in the figure below.
The middle column is connected to the TReX Jr’s regulated power (Vcc) through the Battery Elimination Circuit
(BEC) jumper and will provide 5 V to your RC receiver or analog controller when this jumper in place. This
connection is represented by the red wire in the figure below. If you want to power your RC receiver or analog
controller from a source other than the TReX Jr, make sure you remove the BEC jumper.
Warning: This middle Vcc column is tied to the output of a linear voltage regulator, so its current output
is limited by thermal dissipation. The regulator will only be able to safely supply a maximum of 100 mA
when VIN is 12 V and 50 mA when VIN is 24 V (it has a 1-W power dissipation rating). This is typically
sufficient for powering an analog joystick or RC receiver, but it is insufficient for powering servos. If you
want to connect servos to some of your RC receiver channels, you must power your RC receiver
separately and disconnect the BEC jumper. Attempting to use the TReX Jr’s regulated Vcc line to power
servos can permanently damage the TReX Jr.
The exterior column is ground and is represented by the black wire in the figure below. Your input source and the
TReX Jr must share a common ground, even if you are powering your input source from something other than the
TReX Jr. You only need to make a single ground connection.
TReX Jr RC/serial input signal connections
In addition to RC/analog connections, you can connect the TReX Jr to either an RS-232 (COM) or logic-level (TTL)
serial port. Note that you should not simultaneously have both RS-232 and TTL connected. The figure above depicts
the two possible serial connections. The serial pins are labeled from the perspective of the TReX Jr, meaning you
should connect the TReX Jr’s TX or SO line to your target’s receive line (the green wire in the figure above); your
TReX Jr’s RX or SI line should connect to your target’s transmit line (the orange wire in the figure above). On a
DB9 connector, pin 2 is your computer’s receive line and pin 3 is your computer’s transmit line.
Warning: It is very important that you do not connect your TReX Jr’s TTL pins (SO and SI) to an
RS-232 port. RS-232 serial communication signals range from -12 to +12 V, which is well outside the 0 –
5 V expected on those lines. Only the COM pins (TX and RX) are designed to handle RS-232 voltages.
3.c. Jumper Settings
The TReX Jr comes with four blue shorting blocks as shown in the picture below. These jumpers let you affect some
aspects of its behavior without serial configuration commands. Note that we recommend you always power off your
3. Getting StartedPage 7 of 23
Loading...
+ 16 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.