I've been scratching my head at this problem and can't really figure out where I have went wrong. I am trying to use the Adafruit Motor Shield v2.3 to power a water pump (only the water pump is connected at this time) but all the pump does is squeal.
First some info on the pump:
working voltage range: 5 VDC to 12 VDC
max. load current: 0.35 A at 12 VDC
power consumption: 4.2 W at 12 VDC
driving mechanism: brushless DC motor
For this to work I have connected an external power supply to the motor shield's power input and I have NOT attached the VIN Jumper. The external power supply yields 12VDC and a maximum of 1500mA.
To ensure the pump is not damaged I have connected it directly to the power supply and boy does it go. I have also measured on top of the incoming power terminal on the motor shield and can see that it does indeed show 12V. I also measured on the output motor port where the pump is connected and can see that it shows 12V.
Here's how the connections look (couldn't use the image function for some reason):
https://imgur.com/a/D7vGD5f
And here's the code:
Code: Select all
/*
This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2
It won't work with v1.x motor shields! Only for the v2's with built in PWM
control
For use with the Adafruit Motor Shield v2
----> http://www.adafruit.com/products/1438
*/
#include <Wire.h>
#include <Adafruit_MotorShield.h>
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
Adafruit_DCMotor *myMotor = AFMS.getMotor(1);
void setup() {
Serial.begin(9600);
Serial.println("Adafruit Motorshield v2 - DC Motor test!");
AFMS.begin();
myMotor->setSpeed(255);
myMotor->run(FORWARD);
}
void loop() {
delay(3000);
Serial.println("Still running...");
}