My Pololu TReX DMC01 arrived today, but ever since I first powered it up it continually flashes red (approx. one flash per second). The blue power LED is constantly lit.
I have tried finding some basic arduino sketches online for serial communication, and it seems that none of these work as well. After a good search online the only conclusion I have come to is that it has the wrong firmware in it (unlikely? Unless firmware has become corrupt), or I have found this from the documentation:
“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.”
Is there any other problems that could be causing this?
Do you have the jumpers on the TReX set to serial mode? If you are not sure how to set them, you can refer to the Jumper Settings section in the TReX user’s guide. You should also double check your signal connections. You can refer to the Signal Connections section in the user’s guide. If you continue to have problems after checking those things, could you post pictures showing your setup including how you have everything connected to the TReX?
When I give power to both the Arduino and TReX, the blue power light comes on, and the red light flashes five times and then goes to a solid red.
I have the SI on the TReX going to pin 5 on the Arduino (Uno), and SO going to pin 4. I have ground connected to ground.
I have 6x AA batteries (9V) powering the TReX, and motors connected.
I have uploaded the sketch from the link below, but get the attached response from the serial monitor (I think the person replying to the other thread was having the same unresolved issues).
I am powering the Arduino with a single 9V battery.
Jumpers should be shown, but I have the BEC jumper on, learning mode/firmware upgrade off, serial/RC/Analog jumper off, and the channel mix jumper off.
If I have the channel mix jumper on, then when everything is powered up the red light will flash once per second until powered off again (ie. wont then go to a solid red).
Are there some steps I am missing in the process? Or should I be able to wire everything up, write my code and get a response? I want to make sure everything is connected and reading/writing properly before I start writing code for motor movement.
Thanks for the pictures. It looks like you have the signal connections on your Arduino shifted over one pin onto pins 3 and 4 instead of pins 4 and 5. Could you double check your connections and see if that fixes the issue?
I reread your earlier post and noticed you said you had SI connected to pin 5 and SO connected to pin 4, but the comment in the example code says it should be the other way around. Can you confirm you are connecting them in accordance with what the sample code expects?
If that all looks good, maybe you should try a loop-back test to make sure your program is doing what you think it is. To do this, just connect pin 4 directly to pin 5 and make sure you’re receiving what you’re transmitting.
You definitely should not just be swapping connections as a sanity check. Connecting the serial lines in the wrong way is effectively shorting two outputs together, which can permanently break things on the TReX or Arduino. In general, it seems like you have not been very careful when making your connections, and that kind of thing is just asking for trouble when working with electronics like this.
Do you have access to a USB-to-serial adapter that you could use to try to connect to the TReX through your computer?
How can you tell that the TReX is now receiving a signal, and what was wrong before? Are you using your Arduino or a USB-to-serial adapter? Can you tell me specifically what you are sending the controller (and how) to get it to drive the motors?