androidthings / contrib-drivers

Open source peripheral drivers
Apache License 2.0
558 stars 174 forks source link

Support for Stepper Motors #91

Open IeiuniumLux opened 6 years ago

IeiuniumLux commented 6 years ago

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?

Fleker commented 6 years ago

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

CavHaunch commented 5 years ago

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?

Fleker commented 5 years ago

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.

PaulTR commented 5 years ago

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 notifications@github.com 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 .

fail572872916 commented 5 years ago

Android things's library is too small.

Please write your notes when you have time.