Stepper motor

Mehrdad Jazayeri's Avatar

Mehrdad Jazayeri

01 Jun, 2021 12:44 PM

Hi Chris,

Hope all is well. Have you ever had an application for MWorks requiring controlling a stepper motor, say, for a linear stage? We want to add this for our monkey training and I am wondering if there exists already a solution in that space you have worked with. Please let me know and any other thoughts you might have on it.


  1. Support Staff 1 Posted by Christopher Sta... on 01 Jun, 2021 12:58 PM

    Christopher Stawarz's Avatar

    Hi Mehrdad,

    No, I haven't worked with a stepper motor before.

    If I were going to do so, I'd probably first try controlling one via an Arduino board. There are Arduino libraries (simple and advanced) for controlling stepper motors. There's also a proposed extension to the Firmata protocol that makes use of said libraries, so I could potentially add a stepper-control channel type to MWorks' existing Firmata interface. On the other hand, it might be simpler and/or more amenable to your needs to run custom firmware on the Arduino device and communicate with it over serial via Python actions in your MWorks experiment.

    I'm sure there are other possibilities, but that's where I'd start. I hope that helps!


  2. 2 Posted by Mehrdad Jazayer... on 05 Jun, 2021 11:41 PM

    Mehrdad Jazayeri's Avatar

    Thanks Chris!


  3. Christopher Stawarz closed this discussion on 13 Jul, 2021 03:09 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac