Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Mon Dec 01, 2014 1:26 pm |
|
|
You need the interface circuit that converts TTL serial RX/TX signals to the one wire interface it uses (CM-5). Then you can just use serial commands to control it. For the extra 'direction' wire, connect this to one other pin on the PIC, and set this as the direction control line (ENABLE in the #USE RS232).
The unit then accepts serial commands. It uses 1000000bps initially. You send it simple commands for maximum torque, where to go, speed etc., and can read back replies. Each packet needs a checksum, which is the low byte of the sum of all the bytes sent, inverted.
You can daisy chain multiple units on one bus, with different ID's.
I've seen a couple in use, and they are nice units. |
|