Skip to content

⚡️ Use Arduino Serial Monitor To Control The Moror Speed, Steps, Direction, & Style

Notifications You must be signed in to change notification settings

kalaschnik/stepper-motor-debugging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Debug and Test Stepper Motors

This script uses the Arduino Serial Monitor to receive an input to dynamically control different parameters of a stepper motor. This parameters are:

  • Motor Speed (RPM)
  • Motor Steps
  • Motor Direction (either 1 (FORWARD) or 2 (BACKWARD))
  • Motor Style (either 1 (SINGLE), 2 (DOUBLE), 3 (INTERLEAVE), 4 (MICROSTEP))

Example Input: <10, 20, 1, 1> which translates to:

  • Set Motor Speed to 10 RPM
  • Perform 20 Steps
  • Move FORWARD
  • in SINGLE steps

NB: This script is based on the excellent post by Robin2: https://forum.arduino.cc/index.php?topic=396450.0. The post explains the difficulties when transfering data to the Arduino and how to address them. The script is based on Example 5. I adjusted this script to work with the above stepper motor parameters.

About

⚡️ Use Arduino Serial Monitor To Control The Moror Speed, Steps, Direction, & Style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages