The Robotics Connection Serializer WL is a powerful robotics I/O controller. It
has dual built-in H-bridges, ten digital I/O channels, six 10-bit analog channels,
dual quadrature encoder inputs, and removable communication modules. It also has
built-in support for popular sensors making it easy to work with. This device
uses serial communication through one of its wireless modules or through the RS-232
module shown.
Note: All features of this controller may not be fully supported yet. Just
because a feature is not listed here does not mean that it is not supported. Please
refer to the release notes for more information. As with any controller if a particular
feature is not implemented it can still be used with a little more effort. All
controllers have a RawWrite() method that will write commands directly to the controller.
You will need to read the documentation for your controller to implement a non-supported
feature of that controller.
The controller must be initialized with a few values before it can be used. Below we will
setup a controller in VB.NET on communications port 40 with a buad rate of 19.2k and a motor
ramp rate of 500.
Dim ctlr As SerializerWL = New SerializerWL("COM40",
19200, 500)
After the controller is initialized, the port must be opened before communication can begin. This
is done by making a call to OpenPort().
Note: The properties and methods for this controller are diagramed to the right.
For more detailed information on these properties and methods refer to the documentation.
The most used properties would be the pin assignments. This controller has both digital i/o and
analog inputs. Adding devices to these pins are as easy as setting the analog or digital pin
assignment to the desired device.
ctlr.AnalogPin(2) = IR1
ctlr.DigitalPin(6) = ping
In this example we have assigned an InfraRed range sensor to analog pin 2 and a
PING))) sensor to digital pin 6.
Another noteworthy property would be the Voltage property. This value holds the voltage
of the controller's power source.
Motors & Servos can be controlled using the appropriate methods that the
SerializerWL class provides. They can also be controlled with individual
objects, similar to how sensors are used. Motors and Servos can have different properties depending on
how the controller communicates with them. Therefore, the GetMotor() and GetServo() methods provide a
way of retrieving a pre-initialized Motor or Servo
object for use with this controller.
'Get Motor object for motor 1
Dim m1 As Motor = ctlr.GetMotor(1)
'This will cause the motor to movem1.Value = 10