bonezegei / Bonezegei_ULN2003_Stepper

ULN 2003 to Control Strpper Motor (28BYJ-48)
MIT License
0 stars 0 forks source link

About the motor rotation Angle 关于电机转动角度的问题 #1

Closed lvcc99 closed 6 months ago

lvcc99 commented 6 months ago

Hello, how can I use this library to rotate the motor to the Angle I want? Like 90 degrees。

bonezegei commented 6 months ago

Good Day,

I just added a function for step using Angle. The Direction either 1 or 0 for FORWARD or BACKWARD. And Angle how many angles from the initial point the motor will rotate.

stepAngle(Direction, Angle)

This new update has not been tested yet. Im on travel right now I can't test the library . But based on the datasheet for 28BYJ-48 – 5V Stepper Motor. The new function should work. Thank you for suggesting this function.