DOCUMENTATION

How to start with the Servo module

This guide contains all the basic notions you will need to use the Luos Robotics servo module.

Servo module category


Actuators

Actuators modules are able to act on the physical world.

How to connect your servo-motor to your modules


The Servo module has 4 servo-motor ports ordered as shown on the picture on the left, from S1 to S4.

The servo module accepts supply voltage from 5V to 7V.

Warning: USB module generally provides too weak power to drive a Servo.

 

How to control Servo module using pyluos


To control your servo-motor through a Luos Robotics module, you can use the following command as an example:

Following is the full list of this module’s commands (robot and servo are to be replaced by the actual names of your robot and Servo module):

Get the last position order of the servomotor’s output, in degrees (°) (0.0 by default):

Set the position of the output, in degrees (°):

Set max_angle value, in degrees (°):

Get the last value order of max_angle, in degrees (°) (180.0 by default)

Set min_pulse value, in seconds (s):

Get the last value order of min_pulse, in seconds (s) (0.0005 by default):

Set max_pulse value, in seconds(s):

Get last value order of max_pulse, in seconds (s) (0.0015 by default):

Open the control set of this module:

Get the last position order of the servomotor’s output, in degrees (°) (0.0 by default):

Set the position of the output, in degrees (°):

Set max_angle value, in degrees (°):

Get the last value order of max_angle, in degrees (°) (180.0 by default)

Set min_pulse value, in seconds (s):

Get the last value order of min_pulse, in seconds (s) (0.0005 by default):

Set max_pulse value, in seconds(s):

Get last value order of max_pulse, in seconds (s) (0.0015 by default):

Open the control set of this module: