Hi,
I am using the adafruit motor shield for the first time and am pretty confused on how to attach it to the arduino. I just aligned the pins and put it on but its pretty lose do I have to solder it or anything? I tried using it just like this with the following code and a 9v battery but nothing seems to work.
#include <AFMotor.h>
AF_DCMotor motor(1);
void setup() {
motor.setSpeed(255);
}
void loop() {
motor.setSpeed(255);
motor.run(FORWARD);
delay(2000);
motor.run(RELEASE);
}
Any help is much-appreciated ty!