I’m using a Qwiic Motor Driver (ROB-15451) to drive two independent motors. I’m using the SparkFun Serial Controlled Motor Driver Arduino Library. It appears methods enable() and disable() affect both motors.
I would like to leave one motor disabled (braked) while the other motor is enabled. If that is not possible is there a way to set the motor outputs pairs A1/A2 or B1/B2 to low? Using the setDrive() method with a level of 0 produces two, 50% duty cycle output phase PWM signals (non-brake condition).
Thanks for your help.
You’d just need to declare 2 separate motor functions; take a look at this example https://github.com/sparkfun/SparkFun_Se … orTest.ino or this one https://github.com/sparkfun/SparkFun_Se … rRobot.ino to get an idea of what’s needed
Hi there
I’m having the same issue. When I use setDrive() to and attempt to turn off one of the channels by setting the speed to 0, the output pair go PWM 50% but out of phase with each other (about 92kHz freq). For purely resistive loads, this presumably consumes power with the current reversing direction each cycle?
I was hoping to use one of the channels for this device to drive a low power purely resistive load, whilst simultaneously using the other drive for something else. It looks like I can only get to 0 current on the resistive load by disabling the entire drive, and thus being unable to use the second output?