Stepper Motor Controller

While I was at LabJack I helped a lot of people control electronic devices. One thing that people commonly wanted to control were stepper motors. Due to this, I developed and authored the Stepper Motor Controller Application Note. This involved developing several custom Lua scripts which get downloaded to the LabJack T-Series device and either a Python script or LabVIEW application that enables the device and the motors to be controlled.

LabJack USB, Ethernet, WiFi DAQ Device with sensors

A Lua Scripting Application

How is this possible? A lua script is loaded onto a T-series LabJack and using _RAM based registers data is passed to and from the device to control the connected stepper motor.

Application Block Diagram

LabJack USB, Ethernet, WiFi DAQ Device with sensors

An application needed to be developed that downloaded a Lua Script to a connected device. The application then reads and writes data in _RAM registers which controlls a stepper motor connected with a PS12DC.

Wiring Overview

Wiring a LabJack, PS12DC, and a NEMA stepper motor

In the above image, the following devices are connected together:

Stepper Motor Waveform

Stepper Motor Waveform made by a LabJack T-Series device with Lua Scripting capabilities

A LabJack creates a digital representation of the above waveform using the low-latency capabilities of Lua Scripts.


More Information?

Visit the LabJack website for more details: