28830 Parallax Inc, 28830 Datasheet - Page 8

Interface Modules & Development Tools Propeller Servo Controller

28830

Manufacturer Part Number
28830
Description
Interface Modules & Development Tools Propeller Servo Controller
Manufacturer
Parallax Inc
Datasheet

Specifications of 28830

Interface Type
USB, Serial
Data Bus Width
8 bit
Operating Supply Voltage
5 V
Product
Interface Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PSE – Servo Enable
Syntax: “!SCPSE” <channel> <CR>
Reply: None
This command allows you to enable a servo channel that has been previously disabled. The command
format is, “!SCPSE” followed by a byte value of 0 – 31 for the channel and a carriage return ($0D).
Enabling a channel will cause it to move to the last position it was commanded to, or the startup default
if no other position commands have been sent since power up/reset. The following code (re)enables
channel 0.
' {$STAMP BS2}
' {$PBASIC 2.5}
Sdat
Baud
Enable:
EDD – Startup Servo Mode
Syntax: “!SCEDD” <mode> <CR>
Reply: “DL” <mode>
This command sets whether the PSCU centers all servo channels on startup (mode 0) or uses custom
startup positions stored in EEPROM (mode 1). In mode 1 you can set a custom startup position for each
servo channel using the default position command below. To set the Startup Servo Mode, the following
must be sent to the PSCU: “!SCEDD” followed by a byte value of 0 for default (center) or 1 for custom
and finally a carriage return ($0D). The following code can be used to set the startup servo mode to 1
using a BASIC Stamp 2.
' {$STAMP BS2}
' {$PBASIC 2.5}
Sdat
Baud
buff
SetPort:
Note: The PSCU must be reset after this command is sent or power must be cycled to activate the
change.
Copyright © Parallax Inc.
DEBUG "Enabling Channel 0", CR
SEROUT Sdat, Baud+$8000, ["!SCPSE", 0, CR]
STOP
DEBUG "Setting Startup Servo Mode...", CR
SEROUT Sdat, Baud+$8000, ["!SCPSS", 1, CR]
SERIN
DEBUG "Startup Mode:
DEBUG "Please reset PSCU or cycle power now."
STOP
Sdat, Baud,500, SetPort, [STR buff\3]
PIN
CON
PIN
CON
VAR
15
396
15
396
Byte(3)
", buff(0), buff(1), DEC1 buff(2), CR
Propeller Servo Controller USB (#28830)
' Serial Data I/O Pin
' Constant For 2400 Baud
' Serial Data I/O Pin
' Constant For 2400 Baud
' Temporary Variable (Array)
v1.0 8/24/2009 Page 8 of 12

Related parts for 28830