How to connect a Stepper Motor to Raspberry PLC
Stepper motor & Raspberry PLC for industrial automation
5 October, 2021 by
How to connect a Stepper Motor to Raspberry PLC
Boot & Work Corp. S.L., Fernandez Queralt Martinez


Stepper motors are electric motors very useful in the field of lasers and optics they are frequently used in precision positioning equipment such as linear actuators, linear stages, rotation stages, goniometers, and mirror mounts.

Other uses are in packaging machinery, and positioning of valve pilot stages for fluid control systems. Or for commercial uses, stepper motors are used for intelligent lighting, camera lenses, CNC machines, or 3D printers, for example.

In this blog, we will learn how to connect a stepper motor with the microstep driver to the power supply and the Raspberry PLC.

Latest Posts

What is a Stepper Motor

A stepper motor, step motor or stepping motor, is a brushless DC electric motor that divides a full rotation into a number of equal steps.

The motor's position can be commanded to move and hold at one of these steps without any position sensor for feedback (an open-loop controller), as long as the motor is correctly sized to the application in respect to torque and speed. 

Do not confuse with a servo motor, that is one kind of closed-loop motor that is connected to an encoder to provide speed feedback & position. The motor which moves in discrete steps is known as the stepper motor.

Odoo • Image and Text

What are Microstep Drivers

Microstep Drivers apply power to the appropriate step motor winding to produce torque. They precisely divide the current between the motor phases thus positioning the step motor at smaller increments between full steps. They provide higher resolution but with less torque. Microstepping does not increase step accuracy, but will allow a motor to run with less noise, minimize low speed resonance effects and produce smooth rotation over a wide speed range. 

Odoo • Image and Text


So, connect the stepper motor to the microstep driver, which will be powered by the power supply. And connect it to the Raspberry PLC as shown below.

 Odoo • A picture with a caption
Stepper motorMicrostep DriverRaspberry PLCPower Supply
Blue cableA-

Red cableA+

Black cableB-

Green cableB+






 Now, would you like to know how to make your stepper motor run?   Know how >

Find what you are looking for
Search in our Blog

How to connect a Stepper Motor to Raspberry PLC
Boot & Work Corp. S.L., Fernandez Queralt Martinez
5 October, 2021
Share this post

Looking for your ideal Programmable Logic Controller?

Take a look at this product comparison with other industrial controllers Arduino-based. 

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.

Industrial PLC comparison >>>

Do you want more information?

Just fill the form!

Tell me more!