Shop OBEX P1 Docs P2 Docs Learn Events
Traxxas XL5 — Parallax Forums

Traxxas XL5

ATCATC Posts: 1
edited 2010-05-24 16:54 in BASIC Stamp
Does anyone know the·programming code to make the traxxas xl5 speed·controller work with the basic stamp 2?····

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2010-05-24 16:54
    From looking at the manual: http://www.traxxas.com/PDF-Library/3798_manual.pdf

    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.
Sign In or Register to comment.