I want to control a Motor Speed Controller with the SSC-32. The throttle and brake operate via Analog Brake and Throttle Input: 0-5 Volts. Producing 0-5V signal with 3-wire pot. newkellycontroller.com/produ … cts_id=263
The website below sold exactly what I was looking for but unfortunately it has been discontinued because they were unable to source certain parts for the board to make them.
“RCA Analog Interface” for $48.00
Use this board to interface between your RC receiver and large speed controls that are not already set up for radio-controlled operation.
Not super slick or high tech, but you could use a small servo to turn your 5k pot similar to my switch setup below until you can find something better.
I’m going to have several R/C Switches for blinkers, brakes, and headlights. I also have two rear mounted cameras that I want to be able to rotate with servos. ant-systems.net/Product.asp?id=407
I copied this code directly from the manual (page 143). It looks like it would do what I want but I get a syntax error on this line:
pwm p1, duty, duration
I tried setting up the filter per the manual and used HPWM instead of PWM on P11. I only get 4.47 volts or 0. I’m thinking that means my filter isn’t working. Has anyone else done this?
The Capacitor is:
Radio Shack part # 272-1053
Metalized-Film Capacitor
Radial leads - 250WVDC max
Tolerance ± 10%
Per the manual: The output of the PWM command must be integrated (using a low
pass filter) to produce an analog voltage. A circuit such as the one
shown below will suffice for most uses. http://www.otherrobots.com/lynxmotion/AnalogConverterPWMDiagram.bmp The values of capacitor, series resistor (RS) and load resistor (RL)
may be varied to produce the desired output voltage and response
time. The values shown produce adequate filtering. Note that
response time is relatively slow, and the PWM command with a filter
such as this is mainly suitable for producing steady-state voltages
rather than rapidly varying waveforms.
The values shown will produce a voltage that varies linearly from 0V
(with duty set to 0) to approximately 4.6V (with duty set to 255). The
frequency of the pwm signal is approximately 125 kHz with duty set to
128 (50%) and drops significantly at both higher and lower duty
cycles.
duty var byte
duration var word
duration = 5000
main
PAUSE 1000
duty=0
gosub generate
duty=64
gosub generate
duty=128
gosub generate
duty=192
gosub generate
duty=255
gosub generate
goto main
generate
serout S_OUT, i9600, [dec duty, 13] 'output to com port
sound P9,[10\51.913]
low P9
hPWM p11, duty, duration
'PWM p12, 0, 5000
sound P9,[10\1046.502]
low P9
PAUSE 10000
return