contrib-drivers icon indicating copy to clipboard operation
contrib-drivers copied to clipboard

Support for Stepper Motors

Open IeiuniumLux opened this issue 6 years ago • 5 comments

Will MotorHat or other contrib-driver have support for stepper motors?

MotorHat was inspired by Zugaldia's code; who already added support for stepper motors in his repository. Should we use that one instead?

IeiuniumLux avatar Mar 03 '18 03:03 IeiuniumLux

I have a DC motor at my desk, but haven't looked into adding stepper motors to any project so far.

Fleker avatar Mar 03 '18 09:03 Fleker

Could you suggest some resources for getting a project like that going on Android Things? What is the best way to control the power source to a motor from a microcontroller?

CavHaunch avatar Oct 25 '18 18:10 CavHaunch

If you have a motor, you can use a motor driver, like an h-bridge, to get enough current from your microcontroller to the motor.

Fleker avatar Oct 25 '18 20:10 Fleker

It depends on the type of motor you have, I'm sure, but I had a lot of luck porting this library over https://github.com/tyhenry/CheapStepper/blob/master/CheapStepper.cpp for the 28byj-48 ULN2003 5V stepper motor and driver board if you're just looking for something to use.

On Thu, Oct 25, 2018 at 2:16 PM Nick [email protected] wrote:

If you have a motor, you can use a motor driver, like an h-bridge, to get enough current from your microcontroller to the motor.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/androidthings/contrib-drivers/issues/91#issuecomment-433190641, or mute the thread https://github.com/notifications/unsubscribe-auth/ACOhb4ZHGnK_LM7QJah2u-Gctm94Yl16ks5uohwvgaJpZM4Saw8F .

PaulTR avatar Oct 25 '18 21:10 PaulTR

Android things's library is too small.

Please write your notes when you have time.

fail572872916 avatar Nov 09 '18 09:11 fail572872916