Traxxas XL5
ATC
Posts: 1
Does anyone know the·programming code to make the traxxas xl5 speed·controller work with the basic stamp 2?····
Comments
The Traxxas XL-5 is an "Electronic Speed Control", aka "ESC".
The BS2 can 'stand-in' for the Radio Controller. The control signal will be that of a "Servo", which the BS2 implements with a "PULSOUT" statement. The Servo control signal is a 1.0 mSec to 2.0 mSec pulse (1.5 mSec 'center' position) repeated every 20 to 30 milliseconds. With a BS2, this looks like:
ThrotPos VAR WORD
ThrotPin PIN 1
MAIN:
· ThrotPos = 750
· GOSUB SetThrottle
· Pause 20
· GOTO MAIN
SetThrottle:
· PULSOUT ThrotPin, ThrotPos
· RETURN
Review page 17 of the manual for how to setup the ESC.