Motor Shield
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Shield
We ask questions because we need to know the answers to accurately diagnose problems.
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Motor Shield
No, we normally get some cooperation from the user in solving their problem. Do you want help?Do you normally just hound people until they just get discourged and quite for the$30?
- biobreed
- Posts: 13
- Joined: Wed Aug 13, 2014 11:46 am
Re: Motor Shield
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
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 (383.2 KiB) Viewed 449 times
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Shield
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.
- biobreed
- Posts: 13
- Joined: Wed Aug 13, 2014 11:46 am
Re: Motor Shield
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 (393.6 KiB) Viewed 446 times
- biobreed
- Posts: 13
- Joined: Wed Aug 13, 2014 11:46 am
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Shield
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.
- biobreed
- Posts: 13
- Joined: Wed Aug 13, 2014 11:46 am
Re: Motor Shield
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
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
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Shield
The ICSP is just a pass-through. All communication is via SDA and SCL.
- biobreed
- Posts: 13
- Joined: Wed Aug 13, 2014 11:46 am
Re: Motor Shield
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
Bill
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Shield
We do test these in production and DOA boards are pretty rare. But it does happen from time to time.
- biobreed
- Posts: 13
- Joined: Wed Aug 13, 2014 11:46 am
Re: Motor Shield
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.
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.
- biobreed
- Posts: 13
- Joined: Wed Aug 13, 2014 11:46 am
Re: Motor Shield
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..
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..
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Motor Shield
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
- biobreed
- Posts: 13
- Joined: Wed Aug 13, 2014 11:46 am
Re: Motor Shield
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.
Reason: Added [code] tags.
Please be positive and constructive with your questions and comments.