0

Motor Shield v2.3 Motors Don't Work (worked with v1)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Motor Shield v2.3 Motors Don't Work (worked with v1)

by rcglenn on Mon Jan 11, 2016 9:53 pm

Using Arduino Uno:

First I used the Motor Shield v1, connecting both it and the arduino to 4 AA batteries, but I realized I wanted the stack-ability of the v2, so I ordered that. I ended up putting the v1 together in the meantime, taping a bluetooth transceiver into place. It worked well, except for the obvious lack of a stable BT connection.

I received the v2, and affixed it to the arduino by pressing in some stackable headers (not soldered at first). This seemed to produce the same affect as before (the BT worked, and both arduino and shield seemed to be powered by the battery pack; at least the LED on the shield was brightly lit), except that the motors wouldn't do anything (not even wine or click or anything). I figured it was a loose connection, so I soldered the headers in (full disclosure, I'm not a talented solderer..), but this seemed to produce the same effect: LED brightly lit, both units powered by the same battery pack.

I then saw https://learn.adafruit.com/adafruit-mot ... ing-motors, and tried powering the arduino separately (removing the bridge or w/e) with a 9v battery. Again, everything seemed to be powered, but the motors.

A video of the working v1 version: https://drive.google.com/file/d/0B2hGlp ... =drive_web

Can't seem to add pictures yet, but I will when I can.

rcglenn
 
Posts: 3
Joined: Mon Jan 04, 2016 10:34 pm

Re: Motor Shield v2.3 Motors Don't Work (worked with v1)

by adafruit_support_mike on Tue Jan 12, 2016 12:06 am

The forum puts a limit on file sizes. 800x600 images usually work.

You do have to solder the headers. It isn't optional. You can't get reliable signal connections between pin header and a PCB without solder.

adafruit_support_mike
 
Posts: 60685
Joined: Thu Feb 11, 2010 2:51 pm

Re: Motor Shield v2.3 Motors Don't Work (worked with v1)

by franklin97355 on Tue Jan 12, 2016 1:20 am

Are you running the v2 libraries?

franklin97355
 
Posts: 21488
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Motor Shield v2.3 Motors Don't Work (worked with v1)

by adafruit_support_bill on Tue Jan 12, 2016 6:58 am

I received the v2, and affixed it to the arduino by pressing in some stackable headers (not soldered at first).

That is most likely your problem. It cannot work reliably without properly soldered headers.

You also need to convert your code to use the V2 library as noted by Franklin. The V1 library is not compatible with the V2 shield.

adafruit_support_bill
 
Posts: 76160
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield v2.3 Motors Don't Work (worked with v1)

by rcglenn on Tue Jan 12, 2016 6:34 pm

Surely it's the library :). I'll check later and update. Thanks for the replies!

rcglenn
 
Posts: 3
Joined: Mon Jan 04, 2016 10:34 pm

Re: Motor Shield v2.3 Motors Don't Work (worked with v1)

by rcglenn on Tue Jan 12, 2016 9:48 pm

Still not working :(. Probably my poor soldering job. Including some pictures.

Code example (couldn't add an ino file so I'm hacking together a short example):

Code: Select all | TOGGLE FULL SIZE
#include <Adafruit_MotorShield.h>

Adafruit_MotorShield AFMS = Adafruit_MotorShield();
Adafruit_DCMotor *right_motor = AFMS.getMotor(2);
Adafruit_DCMotor *left_motor = AFMS.getMotor(3);

void setup() {
  Serial.begin(9600);
  Serial.flush();
  Serial.println("Motor test!");
 
}

void loop() {

      left_motor->setSpeed(150);
      right_motor->setSpeed(150);
      left_motor->run(FORWARD);
      right_motor->run(FORWARD);
      delay(50);
      left_motor->run(BACKWARD);
      right_motor->run(FORWARD);
      delay(50);
      left_motor->run(RELEASE);
      right_motor->run(RELEASE);
}
Attachments
motorshield2_small.jpeg
motorshield2_small.jpeg (152.33 KiB) Viewed 295 times
motorshield1_small.jpeg
motorshield1_small.jpeg (165.56 KiB) Viewed 295 times

rcglenn
 
Posts: 3
Joined: Mon Jan 04, 2016 10:34 pm

Re: Motor Shield v2.3 Motors Don't Work (worked with v1)

by adafruit_support_bill on Wed Jan 13, 2016 6:43 am

Looks like some of the solder joints have not flowed well onto the solder pads. Have a look at this page. There are some good tips on finding and repairing common soldering problems: http://learn.adafruit.com/adafruit-guid ... n-problems

adafruit_support_bill
 
Posts: 76160
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.