Hi all,
For my project, I am trying to drive a DC vibrating motor with the DRV8833 breakout (from Adafruit, pictured below) but my motors won't run. My voltmeter isn't reading any voltage from its AOUT pins. I've tried hooking it up to various sizes of DC motors as well to no avail though I know the motors work fine because they run when simply hooked up to batteries.
I've tried various wiring diagrams similar to the pics attached, and two different codes. I might be wrong, but from my understanding to run the motors via the DRV8833, one should digitalWrite high to one pin and low to the other:
#define AIN1 5
#define AIN2 6
void setup() {
pinMode(AIN1, OUTPUT);
pinMode(AIN2, OUTPUT);
Serial.begin(9600);
}
void loop() {
Serial.println("MOTOR ON");
digitalWrite(AIN1, HIGH); //run motor
digitalWrite(AIN2, LOW);
delay(3000);
Serial.println("MOTOR OFF");
digitalWrite(AIN1, LOW); //stop motore
digitalWrite(AIN2, LOW);
delay(3000);
}
I also tried an example code from a DRV8833 library:
/*
* DRV8833_Test
* Simple test for the DRV8833 library.
* The DRV8833 is a dual motor driver carrier made by Pololu.
* You can find it here: https://www.pololu.com/product/2130
*
* Attach the positive wire of a motor to the Aout1 and the negative
* wire to the Aout2 pins on the DRV8833.
* Attach the Arduino's ground to the one of the GND pins on the DRV8833.
* Attach a 9V battery's positive connection to the Vin pin
* on the DRV8833, and the negative connection to one of the GND pins.
*
* Created March 16, 2015, by Aleksandr J. Spackman.
*/
#include <DRV8833.h>
// Create an instance of the DRV8833:
DRV8833 driver = DRV8833();
// Pin numbers. Replace with your own!
// Attach the Arduino's pin numbers below to the
// Ain1 and Ain2 DRV8833 pins.
const int inputA1 = 5, inputA2 = 6;
void setup() {
// put your setup code here, to run once:
// Start the serial port:
Serial.begin(9600);
// Wait for the serial port to connect. Needed for Leonardo.
while (!Serial);
// Attach a motor to the input pins:
driver.attachMotorA(inputA1, inputA2);
Serial.println("Ready!");
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Forward:");
// Put the motor in forward:
driver.motorAForward();
// Wait to see the effect:
delay(500);
// Pause the motor for stability:
driver.motorAStop();
Serial.println("Reverse:");
// Put the motor in reverse:
driver.motorAReverse();
// Wait to see the effect:
delay(500);
Serial.println("Stop:");
// Stop the motor:
driver.motorAStop();
// Wait to see the effect:
delay(500);
}
I doubt the breakout is faulty though I'm not sure how to verify that; I feel that the problem lies in my wiring, power supply, or code. A definite wiring diagram for my Arduino-DRV8833-motor system would be greatly appreciated if possible as I'm still very lost about which diagram to follow.

Thanks in advance for any help! I've been struggling to run this motor for a while now; though I'm unsure of the voltage/current draw of my motor, it is the one in the picture attached.






