As Jim said - the RC car speed controllers are usually not a great choice for robotics (althought the gap is shrinking - i.e. mamba series of ESC start smooth and allow throttle and brake curve adjustments - commonly used for RC crawling applications). These functions in a ESC can be costly and in the case of the mambas you will require 2 for tank steering.
Here is an example for you
I have used the HB25 created by Parallax and sold by lynxmotion for several projects including a tank bot and have nothing but good to say about it. This platform I built last winter putfile.com/pic.php?img=5063606 currently uses 2 HB25s I bought at lynxmotion several years ago and I have very happy with the ease of programming.
lynxmotion.com/Product.aspx? … egoryID=10
using a Newmicros controller the programing for forward and reverse control with the HB25 is this simple
DECIMAL
: RGT-HB25 5000 100 */ ( scale 0-100 to 0-5000 )
5000 + (add base value of 5000 )
PWMA0 PWM-OUT (output duty cycle, 7.6-15% of 65535 )
;
: LFT-HB25 5000 100 */ ( scale 0-100 to 0-5000 )
5000 + (add base value of 5000 )
PWMA1 PWM-OUT (output duty cycle, 7.6-15% of 65535 )
;
32767 PWMA0 PWM-PERIOD (set period to 13.1 msec, near 76 Hz )
0 RGT-HB25 (output 0% of range, 1.0 msec pulse width - full reverse)
50 RGT-HB25 (output 50% of range, 1.5 msec pulse width )
100 RGT-HB25 (output 100% of range, 2.0 msec pulse width - full forward)
using the SSC as the swap out for the PWM signals sent by the newmicros controller in the example above would do the same thing using appropriate syntax to send control signals from your chosen control system.
For example - if using VB as the control application on the PC (VB6) you can
- Connect serial cable from VB ready computer to SSC32
- Set the baud rate of this com port to whatever baud rate you would like to use and that the SSC32 supports - 2400, 9600, 38400, 115,000 in this case) for this example I will use 9600.
- plug a servo into channel 10
- From the instructions for the SSC32 there are a list of commands that are accepted as ASCII strings of decimal numbers that make things happen. Learn these.
Within VB6.0
- Set up a Form along with a serial control object (MsComm)
to open the port
MSComm1.Settings = “9600,N,8,1”
MSComm1.CommPort = 1
If MSComm1.PortOpen = False Then
MSComm1.PortOpen = True
Else
MSComm1.PortOpen = False
End If
// create a variable
Dim Test_Value as Integer
//assign a value to the variable
Test_value = 1500
//output the variable
MSComm1.Output = “#10 P” & Test_Value & “S750” + Chr$(13)
This example send control signals to the SSC32 that corresponds to the center position of the PWM range output for the HB25 which places the HB25 output at zero volts. Change the value of Test_value up or down for forward or reverse HB25 voltage bias (+ or - volts output from the HB25 to the motor)
hope this helps
Chris