Hi,
I've been playing around with two hacked motors from my Mom's roomba and want to control them from my Pi - which is why I bought the Adafruit Stepper + DC motor HAT.
I wrote some code based on the ADAFruit python libs and am able to drive motors individually but not simultaneously! I'm powering the HAT with a 10000mAh 12v Li-ion battery. From other hacks of the roomba - I've figured out they're 12v motors but not sure if they pull more than 1.2A each - really doubt it.
So my big question is - can the HAT drive two motors simultaneously and what am I doing wrong?
Any help is appreciated.
Help with Adafruit Stepper and DC motor HAT
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- gearjammer
- Posts: 3
- Joined: Tue Oct 06, 2015 6:24 pm
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Help with Adafruit Stepper and DC motor HAT
The standard library only knows how to control motors one at a time. The AccelStepper library knows how to run them at the same time: https://github.com/adafruit/AccelStepper
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/