contrib-drivers
contrib-drivers copied to clipboard
Support for Stepper Motors
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?
I have a DC motor at my desk, but haven't looked into adding stepper motors to any project so far.
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?
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.
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 .
Android things's library is too small.
Please write your notes when you have time.