Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kbickham/8d2e20a92c77b4a6044cde842b3eba28 to your computer and use it in GitHub Desktop.

Select an option

Save kbickham/8d2e20a92c77b4a6044cde842b3eba28 to your computer and use it in GitHub Desktop.
2 AVR / Arduino stepper motor library variants for non blocking
Modified Unistep2 Lib, non blocking 2 stepper control via 74HC595 (the goal) to decrease wiring pain in the ass for a robot.
Modified the unistep 2 library so that output will wor via 3 signal wires instead of 8 to 2 stepper motors. I tried modified a couple different libraries, this may not functino entirely well. C++ for arduino IDE. I can't support this right now, I have a billion other systems to wokr on. I believe I modified this to only full step (constant torque)
Modified CheapStepper library to use only full stepping. Removed the blocking functions (there is a small microsecond delay in the move function, but not inbetween step calls). Regardless of what people tell you, alternating between 2 coils and 1 coil in a stepper produces non-constant torque. This can lead to missed stepps depending on your delay. If you're using a small cheap 28byj motor...yeah, you need all the help you can get. c++, for arduino. not sure if this is the best working version I have.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment