Device::MiniSSCII - Perl device driver for the Mini SSC II serial servo controller
my $ssc = Device::MiniSSCII->new( device => '/dev/ttyS0', baudrate => 9600 ); $ssc->move( 0, 100 ); $ssc->close;
This module implements a driver for the Mini SSC II servo controller from Scott Edwards Electronics Inc (http://www.seetron.com/ssc.htm).
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.
device
baudrate
2400
9600
$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.
$ssc->close;
Johan Van den Brande <johan@vandenbrande.com>
To install Device::MiniSSCII, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::MiniSSCII
CPAN shell
perl -MCPAN -e shell install Device::MiniSSCII
For more information on module installation, please visit the detailed CPAN module installation guide.