How to start with the Stepper motor module

This guide contains all the basic notions you will need to use the Stepper motor module.

Stepper motor module category


Actuators modules are able to act on the physical world.

How to connect your stepper motor to your modules

The Stepper motor module have one PH connector with 4 pins where a stepper motor can be plugged.

This module accepts supply voltage from 7V to 24V.

Warning: USB module provides too weak power to drive a motor-reducer with this module. A power module such as Battery module or Power plug module shall be used.


How to use the Stepper motor module with Pyluos

This module can control a stepper motor.

To control your Stepper motor module, you have to connect it in a Luos network and connect this network through a communication module to Pyluos.

Then you can access to your module and control it.

Module’s type settings:

Warning: These settings must be set in your code as an initialization before starting to use your module.


The number of steps per turn must be defined, as well as the wheel diameter at the output of the motor. These specs may figure in your motor’s datasheet. The following set values are examples (robot and stepper are to be replaced by the actual names of your robot and Stepper motor module). 

Number of steps per turn:

Wheel diameter, in mm:

Reinitialize the position measurement:

Module’s control values:

Several values can be get or set, using the following commands:

Get a value:

Set a value:

The characters **** must be replaced by one of the following:

  • compliant (Return or set True or False)
  • target_rot_speed (Return or set the target value of the output’s speed in degrees/second)
  • target_rot_position (Return or set the target value of the position in degrees)
  • target_trans_speed (Return or set the target value of the linear speed of the wheel, in millimeters / second)
  • target_trans_position (Return or set the target value of the wheel’s position in millimeters)


Display the controls of the module: