steppermotor
Version 1.0.0 (1.17 KB) by
Stijn Haenen
Easy control of a bipolar (4 cable) stepper motor, power by usb port and controlled with audio signal via the audio jack output.
Connect the stepper motor to an audio amplified board like in the image, and connect the audio and power input. Add an optional resitance between the audio board and the stepper motor to prevent too large currents through your motor. Run the script 'steppermotor.m' to control the motor. Use velocities between 1 and 30, negative number of steps results in a movement in the other direction. If the motor does not move, check the volume settings of your computer.
Cite As
Stijn Haenen (2026). steppermotor (https://uk.mathworks.com/matlabcentral/fileexchange/74169-steppermotor), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Electromechanical in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
