Pololu DMC01 User Manual Download Page 10

Red LED on solid, green LED off:

This is the first stage of the learning sequence in which the

TReX is attempting to learn the neutral values of each channel. This phase should last around
two seconds. Do not touch the RC/analog sticks while the red LED is on or you could cause
learning to fail.

Status LEDs flash rapidly five times:

When the TReX is through learning the neutral values, it

will flash the status LEDs five times to indicate which channels had neutrals successfully
learned and which channels failed neutral learning. A green flash indicates success for the
corresponding channel; a red flash indicates failure. If all five channels fail to learn neutral
values, the learning process stops, otherwise it continues to the next phase, which is learning
the values of the extremes. Once this last learning phase is complete, the status LEDs will
again flash five times to indicate whether the corresponding channel was successfully learned.
This final five-flash sequence will repeat until the TReX is reset.

Red and green LEDs both on solid:

This is the second and final stage of the learning sequence

in which the TReX is attempting to learn the maximum and minimum values for each
channel. This phase lasts around ten seconds, during which time you should move the control
sticks to their extremes. Make sure to hold each channel at each extreme for at least 0.5
seconds.

◦ While in Firmware-Upgrade Mode (see

Section 6

):

Red and green LEDs alternate around once per second

: The TReX is waiting to see if it

should enter firmware-upgrade mode. This happens when the TReX is in serial mode (i.e.
there is no mode jumper in place), the mix jumper is in place, and the serial out (SO) pin is
grounded. This last condition can arise if the TReX is connected serially to an unpowered
microcontroller. Ungrounding the SO pin will cause the TReX to startup as normal; removing
the mix jumper will put the TReX into firmware-upgrade mode, which will cause the red and
green LEDs to start alternating four times faster.

Red and green LEDs alternate around four times per second:

The TReX is in firmware-

upgrade mode and is waiting for the short between the serial out (SO) pin and ground to be
removed.

Green LED flashes briefly once per second:

The TReX is in firmware-upgrade mode and is

waiting for the correct initial serial input sequence. The TReX enters this state when the short
between the serial out (SO) pin and ground is removed after the mix jumper has been
removed.

Red LED flashes:

There was a faulty input to the bootloader that has caused the bootloader to

revert to waiting for the correct initial serial input sequence. Note: once the firmware upload
is complete, the TReX will reboot and the red LED may flash as part of the startup sequence.
This is not an indication of a firmware-update error. See the firmware-update section for
further details.

Green LED rapidly flashes:

Everything is proceeding as expected during the firmware

upgrade process. Each successfully uploaded data packet causes the green LED to flash.

3.e. Automatic Calibration for Your RC/Analog Controller

The TReX has the ability to automatically calibrate itself for your particular RC or analog controller. We strongly
recommend you use this feature to calibrate your TReX as it can result in a substantial increase in performance. You
only need to perform the calibration once, but you should recalibrate if you ever change controllers. The TReX can
simultaneously store a set of analog calibration values and a set of RC calibration values; the calibration values used
depends on the mode of operation (or on the value of the “channel input source” parameter if the TReX is running in
serial mode).

Pololu TReX User's Guide

© 2001–2009 Pololu Corporation

3. Getting Started

Page 10 of 22

Summary of Contents for DMC01

Page 1: ...General RC Information 13 4 d General Analog Information 13 4 e Safe Start Mode 14 5 The Serial Interface 15 5 a Serial Communication Settings 15 5 b Serial Command Protocols 15 5 c Serial Command Li...

Page 2: ...ermines 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 i...

Page 3: ...your projects and about your experience with the TReX motor controller You can contact us http www pololu com contact directly or post on our forum http forum pololu com Tell us what we did well what...

Page 4: ...through the VIN GND connector terminals VIN should be between 6 and 16 V and your power source must be able to supply the current your motors will be drawing The TReX can supply peaks of 30 A and up...

Page 5: ...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...

Page 6: ...ure you remove the BEC jumper Warning This middle Vcc column is tied to the output of a linear voltage regulator so current output is limited by thermal dissipation The regulator will only be able to...

Page 7: ...ls motor 2 This jumper may be added or removed on the fly Battery Elimination Circuit BEC a k a Vcc Jumper When this jumper is in place the middle column of channel input pins is connected to Vcc 5 V...

Page 8: ...r LED is located on the top board When it is brightly illuminated the TReX is receiving power and is running Note that the power LED can occasionally glow dimly when the TReX is unpowered if it is con...

Page 9: ...dicates that serial is in control of the motors i e serial override is active or the TReX is in serial mode While serial is in control of the motors the green LED acts as a serial packet received indi...

Page 10: ...microcontroller Ungrounding the SO pin will cause the TReX to startup as normal removing the mix jumper will put the TReX into firmware upgrade mode which will cause the red and green LEDs to start al...

Page 11: ...ess or if the channel variance is too large the TReX will not learn the channel Learning mode phase 2 neutral learning report Once phase one is through the TReX will flash its status LEDs five times t...

Page 12: ...nnel value falls below a certain threshold If your controller is not calibrated this channel may not function as intended Channel 5 Enable disable serial override Serial override gives serial control...

Page 13: ...will stop updating until approximately 150 ms elapse at which point the channel s raw value will become 0xFFFF It will remain as such until valid signals are once again detected on the line As a safet...

Page 14: ...be simultaneously met 1 All required channels must have a valid signal This only applies when the TReX is in RC mode since it s not possible to have an invalid analog signal Required channels are dete...

Page 15: ...ands result in two way data transfer An additional consequence of the RS 232 circuit is everything you send to the TReX using the RS 232 connection will be echoed back to you as you re transmitting it...

Page 16: ...l is compatible with the serial protocol used by our other serial motor and servo controllers As such you can daisy chain a TReX on a single serial line along with our other serial controllers includi...

Page 17: ...rks is beyond the scope of this document but you can find a wealth of information using Wikipedia http en wikipedia org wiki Cyclic_redundancy_check The quick version is that a CRC computation is basi...

Page 18: ...a speed perspective You can find an example of this Section 5 f 5 f CRC Generation Algorithm in C The CRC algorithm is typically defined as a bit wise operation however it is possible to rewrite the a...

Page 19: ...s It is possible to reset the TReX to its default serial settings using the following jumper sequence 1 Power off your TReX 2 Attach the channel mix jumper 3 Attach the learning mode firmware update j...

Page 20: ...s this will increase the rate at which you can communicate with and control your TReX Updating Firmware To update the firmware you need to put your TReX into firmware update mode and then send the new...

Page 21: ...initiate the firmware update If all goes correctly you will be prompted to confirm that you want to erase your current firmware and you will then see a progress bar showing you the status of the uploa...

Page 22: ...mpleted the 8 steps above so that the green status LED is flashing once per second you are ready to upload the new firmware file First transmit the character s This will erase the current firmware Nex...

Reviews: