NAME
Device::MiniSSCII - Perl device driver for the Mini SSC II serial servo controller
SYNOPSIS
my $ssc = Device::MiniSSCII->new(
device => '/dev/ttyS0',
baudrate => 9600
);
$ssc->move( 0, 100 );
$ssc->close;
DESCRIPTION
This module implements a driver for the Mini SSC II servo controller from Scott Edwards Electronics Inc (http://www.seetron.com/ssc.htm).
METHODS
new - constructor
my $ssc = Device::MiniSSCII->new(
device => '/dev/ttyS0',
baudrate => 9600
)
The constructor expects two arguments, a device
that denotes the serial port and a baudrate
that can be either 2400
or 9600
.
move - Set the position of a servo
$ssc->move( 0, 128 );
This method sets the position of a servo. The first argument is the servo number, in the range from 0 to 255. The second parameter represents the position to set the servo to, also in the range from 0 to 255.
close - Close serial connection and clean-up
$ssc->close;
AUTHOR
Johan Van den Brande <johan@vandenbrande.com>