Stopping Stepper Motor 28BYJ-48

Hi, hoping someone can guide a noob.

I got a 28BYJ-48 stepper motor with ULN2003 driver.

I’m happy with the stepper example and can operate the motor but it gets really hot. I don’t need the motor to hold it’s position so I was wondering if there is a way to code it so that once the motor rotates to a specified position it then turns off.

I’ve considered using a relay but I’m thinking someone here will know a simpler way.

Many thanks,

Euan

Then all you need to do is to set the outputs to the same level. Whether this level is high or low depends on what way you have wired the common for the motor. You just put the signals so that no current flows.

28BYJ-48 has a 5V pin and 4 pins that are pulled low to drive the coils when a 1 is written the ULN2003.

Write 0s to the ULN2003 to stop driving (i.e. sinking current thru) the coils.

That’s great thanks I’ll give that a go!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.