Using a TReX Jr. with a Baisc STAMP

I hope this is simple but am afraid it is going to open up a lot more questions. :slight_smile:

Can I drive a TReX Jr. through the RC/analog inputs directly for the motor outputs on a BoeBot board?

Thanks,

Jim

Hello.

Yes, but why not just use the serial interface?

- Ben

Ben,

I am open to serial if you or someone can point me to some info on how to do it. I am vaguely familiar with the SEROUT and SERIN commands for the STAMP but making that make sense to the TReX is beyond my ability.

Jim, K6JMG

I think serial communication is quite easy using the Basic Stamp, and the bytes you need to send are documented in the TReX Jr’s user’s guide. For example, here’s a sample program someone is writing to talk to the qik 2s9v1 motor controller:

forums.parallax.com/showthread.php?t=127341

Your program to control the TReX Jr would be something similar.

- Ben

Ben,

Thanks! I will read through the sample and see where I get to.

Jim, K6JMG