I'm trying to build an automated cat food dispenser. All I need to do is turn the handle of a gumball machine one revolution to dispense a serving on a schedule.
I'm using a pi B+, L298N motor driver & a 28BYGH301 bipolar stepper. I have been following this tutorial.
viewtopic.php?f=49&t=55580
I have been unable to find documentation on the pinout of the motor. The 4pin connector has pins 1 & 4 designated. pin 1 is black, 2 is green, 3 red, 4 blue. Pin 1 is connected to in1 on the L298N, pin 2 in2, pin3 in3, pin 4 in4. This pinout yields the jerky rotation. When using different pin configurations (the guess & check troubleshooting method) the motor just hums.
After the program finishes execution the motor just hums. I surmise that the coils are still energized after the program completes. Rebooting the pi stops the hum. I need a more elegant solution.
So, I would like to a get a complete non jerky rotation & B, stop that hum.
Picture of setup: http://jeffloper.me/20180304_140631/
Video of symptoms: http://jeffloper.me/20180304_140938/
Suggestions?