0

I have the Adafruit Motor Shield V2 and an Adafruit stepper motor. I have not soldered the shield onto the Arduino (which is an Uno) yet because I don't want to make anything permanent yet. I have the Arduino plugged into a DC wall adapter and have the VIN jumper in the shield, and the green power light on the shield is lit. This is how the stepper is connected. setup

As you can see in the picture, all the wires from the stepper are plugged in. The order of the wires is what it says it should be on the website, which is orange-pink-red-blue-yellow. My sketch's code is an adapted version of the StepperExample from the Adafruit motor library. Here's the full code

#include <Wire.h>
#include <Adafruit_MotorShield.h>
#include "utility/Adafruit_PWMServoDriver.h"
Adafruit_MotorShield AFMS = Adafruit_MotorShield(); 
Adafruit_StepperMotor *myMotor = AFMS.getStepper(513, 2);
void setup() {
 Serial.begin(9600);
 Serial.println("Stepper test!");
 AFMS.begin();
 myMotor->setSpeed(5);
} 
void loop() {
 myMotor->step(100, FORWARD, SINGLE); 
}

But the stepper still doesn't move. Can anyone point out what I'm doing wrong here?

asked May 12, 2014 at 1:21
2
  • 4
    You must solder the header pins to the shield. You can then plug and unplug that from the sockets of the arduino board, but you must solder the pins to the shield board for reliable electrical connection. Commented May 12, 2014 at 5:19
  • 2
    You have a lot of extra exposed wire that may cause problems if they touch. You should have little or no bare wire extending out of the screw terminals. Commented May 12, 2014 at 16:58

1 Answer 1

5

As far as I know, you have to solder the header pins. Here is a nice video demonstrating the assembly: Motorshield V2 assembly

The Guy with The Hat
5,2927 gold badges30 silver badges51 bronze badges
answered May 12, 2014 at 9:44
2
  • Ok, I'll try this later and see if it works. Commented May 12, 2014 at 9:57
  • Also we removed the vin jumper when we attached an external power source. Cant really see on your pic whether its on or off. Commented May 12, 2014 at 9:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.