How to attatch adafruit motor shield to arduino (not working)

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!


The pins look like they are not soldered.

1 Like
  • You need to solder the pin headers to the PCB.

  • Also, did you read thru their overview.

1 Like

adafruit_products_1438kit_LRG

9 volt battery sets of the alarm. A PP3 battery will not manage to motors run. Try a 6 pack AA.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.