Motor Shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield

Post by adafruit_support_bill »

We ask questions because we need to know the answers to accurately diagnose problems.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Motor Shield

Post by Franklin97355 »

Do you normally just hound people until they just get discourged and quite for the$30?
No, we normally get some cooperation from the user in solving their problem. Do you want help?

User avatar
biobreed
 
Posts: 13
Joined: Wed Aug 13, 2014 11:46 am

Re: Motor Shield

Post by biobreed »

Hi,
I also have a proble right out of the box with the adafruit control board. I have just finished assembling my motor board and have it connected to my arduino uno. I have an R3 uno and the V2 motor board. Using either motor party or stepper test, I get nothing. I have also connected a volt meter to motor port two and to uno pins a4 and a5 and get only very small voltages that do not change. I have had no luck with this board. I have attached a pic of the setup. I am also using a 12V external supply. Any help is appreciated. I had to resize the pic taken from my phone because it was too big??
Thanks
Attachments
IMG_7310.JPG
IMG_7310.JPG (383.2 KiB) Viewed 451 times

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield

Post by adafruit_support_bill »

The connections all look correct. Post a photo of the solder side of the shield. Also make sure you are using the newer V2 library. The older AF_Motor library does not work with the V2 shield.

User avatar
biobreed
 
Posts: 13
Joined: Wed Aug 13, 2014 11:46 am

Re: Motor Shield

Post by biobreed »

Thanks for your prompt reply. I was really excited about getting this to work.. I have verified that the library is for V2. None of the programs will get the motor working. I have tested the motor directly with the 12V power supply and it does work that way. Invoice number 556977. Thanks for your help.
Attachments
solder1.jpg
solder1.jpg (393.6 KiB) Viewed 448 times

User avatar
biobreed
 
Posts: 13
Joined: Wed Aug 13, 2014 11:46 am

Re: Motor Shield

Post by biobreed »

Other side photo.
Attachments
solder2.jpg
solder2.jpg (369.14 KiB) Viewed 448 times

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield

Post by adafruit_support_bill »

Nice job on the soldering! I don't see any problems there. If you contact [email protected] with a link to this thread we can send a replacement.

User avatar
biobreed
 
Posts: 13
Joined: Wed Aug 13, 2014 11:46 am

Re: Motor Shield

Post by biobreed »

Hi,
One more question. Does the ICSP connection on the UNO have anything to do with this board? I see where I could have soldered it a bit better, but it looks like just a pass through connection anyway.
Thanks,
Bill

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield

Post by adafruit_support_bill »

The ICSP is just a pass-through. All communication is via SDA and SCL.

User avatar
biobreed
 
Posts: 13
Joined: Wed Aug 13, 2014 11:46 am

Re: Motor Shield

Post by biobreed »

Thanks for all of your help.It's hard to believe in a dead board from the OEM but I guess it can happen sometimes. I have a hard time losing faith in something fresh out of the box. Incidentally, the reset button on this board does work. It resets the UNO as well when it is stacked. Anyway, thanks for your help. Odds are, the next one will work great.
Bill

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield

Post by adafruit_support_bill »

We do test these in production and DOA boards are pretty rare. But it does happen from time to time.

User avatar
biobreed
 
Posts: 13
Joined: Wed Aug 13, 2014 11:46 am

Re: Motor Shield

Post by biobreed »

Hi Tom,
Thanks for sending the replacement board. Unfortunately, it looks like it might be a problem with my uno. Everything else that I have tried to do with the uno works, but it appears maybe mine is not compatible with the adafruit stepper board. Maybe there is something wrong with it. It does work well with my Pixy cam though. Maybe the analog ports are not working.
I will get another arduino and see if that fixes it.

User avatar
biobreed
 
Posts: 13
Joined: Wed Aug 13, 2014 11:46 am

Re: Motor Shield

Post by biobreed »

Hi,
I just purchased another Arduino thinking that the problem was with it. I still have zero functionality with the Adafruit stepper shield. I am at a loss as to why this doesn't work. I am actually now wondering if anyone else has been able to make this work..

User avatar
adafruit_support_bill
 
Posts: 88088
Joined: Sat Feb 07, 2009 10:11 am

Re: Motor Shield

Post by adafruit_support_bill »

Hmmm. These are one of our most popular shields. We really don't have many problems with them. Please post the exact code you are using to test, and

User avatar
biobreed
 
Posts: 13
Joined: Wed Aug 13, 2014 11:46 am

Re: Motor Shield

Post by biobreed »

Code: Select all

/* 
This is a test sketch for the Adafruit assembled Motor Shield for Arduino v2
It won't work with v1.x motor shields! Only for the v2's with built in PWM
control

For use with the Adafruit Motor Shield v2 
---->	http://www.adafruit.com/products/1438
*/


#include <Wire.h>
#include <Adafruit_MotorShield.h>
#include "utility/Adafruit_PWMServoDriver.h"

// Create the motor shield object with the default I2C address
Adafruit_MotorShield AFMS = Adafruit_MotorShield(); 
// Or, create it with a different I2C address (say for stacking)
// Adafruit_MotorShield AFMS = Adafruit_MotorShield(0x61); 

// Connect a stepper motor with 200 steps per revolution (1.8 degree)
// to motor port #2 (M3 and M4)
Adafruit_StepperMotor *myMotor = AFMS.getStepper(200, 2);


void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Stepper test!");

  AFMS.begin();  // create with the default frequency 1.6KHz
  //AFMS.begin(1000);  // OR with a different frequency, say 1KHz
  
  myMotor->setSpeed(10);  // 10 rpm   
}

void loop() {
  Serial.println("Single coil steps");
  myMotor->step(100, FORWARD, SINGLE); 
  myMotor->step(100, BACKWARD, SINGLE); 

  Serial.println("Double coil steps");
  myMotor->step(100, FORWARD, DOUBLE); 
  myMotor->step(100, BACKWARD, DOUBLE);
  
  Serial.println("Interleave coil steps");
  myMotor->step(100, FORWARD, INTERLEAVE); 
  myMotor->step(100, BACKWARD, INTERLEAVE); 
  
  Serial.println("Microstep steps");
  myMotor->step(50, FORWARD, MICROSTEP); 
  myMotor->step(50, BACKWARD, MICROSTEP);
}
Last edited by Franklin97355 on Thu Sep 04, 2014 8:57 pm, edited 1 time in total.
Reason: Added [code] tags.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”