I think something may be wrong with my shield, as I looked at the other forums related to this question and still can not get help.

I know that I can't run it from a 9V source by itself, as the Adafruit website specifically said I can't. So they said to use a LiPo battery or 8 AA batteries. So I tried powering the shield with 8 AA batteries and the light comes on to confirm that.

I then added a 9 volt battery to power the Arduino itself. My motor is a DC motor from RadioShack that can work at 9V, 12V or 18V. I have the motor connected to M2. What am I doing wrong? Here is the site I am following.

Here is the DC motor.

Again, if anyone knows what I am doing wrong, that would be very helpful to know. Thank you for your time and effort.

Edit 1:

#include <AFMotor.h>

AF_DCMotor motor(2, MOTOR12_64KHZ); // create motor #2, 64KHz pwm

void setup() {
  Serial.begin(9600); // set up Serial library at 9600 bps
  Serial.println("Motor test!");
  motor.setSpeed(200); // set the speed to 200/255

void loop() {
  motor.run(FORWARD); // turn it on going forward
  motor.run(BACKWARD); // the other way
  motor.run(RELEASE); // stopped
  • Please describe what is not working
    – Mazaryk
    Mar 14 '17 at 19:14
  • The motor is not spinning even though I know the motor is working. I think there was a thread called motor not spinning or something but that thread did not help. So what am I doing wrong that the motor doesn't spin?
    – Bob G.
    Mar 14 '17 at 19:28
  • Can you provide more information about how the 8 AA batteries are configured? Are they in series or parallel or some combination? How are you initiating the signal to motor that it should turn? Do you have some code?
    – Mazaryk
    Mar 15 '17 at 2:36
  • The batteries are in series as they are in a battery holder that I got from radio shack. All battery holders are in series. I will provide the code at edit number 1.
    – Bob G.
    Mar 15 '17 at 3:37
  • 1
    Does anyone know what is wrong? I have been searching for days.
    – Bob G.
    Mar 17 '17 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.