0

Upgrade from Motor Shield V1 to V2
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Upgrade from Motor Shield V1 to V2

by rvaneynd on Sun May 13, 2018 3:46 pm

After I upgraded my Motor Shield from V1 to V2, my NEMA 17 motor does not run smooth anymore.
I have upgraded the Arduino code to reflect the V2 motor shield and using the Adafruit V2 library.
I use the same settings for Freq, Speed as used for V1 and the motor makes a lot of noise.

Is there something I am missing?

Raoul

rvaneynd
 
Posts: 4
Joined: Sun May 13, 2018 3:42 pm

Re: Upgrade from Motor Shield V1 to V2

by adafruit_support_bill on Sun May 13, 2018 3:57 pm

Please post the electrical specifications for the motor and power supply.
Also, please post the code you are using.

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

Re: Upgrade from Motor Shield V1 to V2

by rvaneynd on Sun May 13, 2018 4:31 pm

This is the motor: https://www.amazon.co.uk/STEPPERONLINE- ... B06X8ZKS69

I use an Arduino Mega ADK with Motor Shield V2 with external 12v on the MotorShield v2.

Code:
Code: Select all | TOGGLE FULL SIZE
#include <Arduino.h>
#include <Wire.h>
#include <Adafruit_MotorShield.h>
#include "utility/Adafruit_MS_PWMServoDriver.h"

Adafruit_MotorShield AFMS = Adafruit_MotorShield();
Adafruit_StepperMotor *Focuser = AFMS.getStepper(200, 2);

void Setup()
{
  AFMS.begin();
  Focuser->setSpeed(150);
  Focuser->release();   
}

void Loop()
{
  Focuser->step(1000, FORWARD, SINGLE);
  Focuser->release();
  delay(2000);
  Focuser->step(1000, BACKWARD, SINGLE);
  Focuser->release();
  delay(2000);
}


rvaneynd
 
Posts: 4
Joined: Sun May 13, 2018 3:42 pm

Re: Upgrade from Motor Shield V1 to V2

by adafruit_support_bill on Sun May 13, 2018 4:47 pm

resistance 3.5ohms

That motor is not compatible with the motor shield. With a 12v supply, it will try to draw about 3.5A/phase. From the limited specifications posted, it appears to be designed for use with a current limiting driver: https://learn.adafruit.com/all-about-st ... he-stepper

The rough running on the motor shield is most likely due to the drivers going into overload.

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

Re: Upgrade from Motor Shield V1 to V2

by rvaneynd on Sun May 13, 2018 4:56 pm

Thank you for the quick response.
Any idea why it worked fine with Motorshield v1?

I think I will replace the motor with this one https://www.ebay.co.uk/itm/121679235014

rvaneynd
 
Posts: 4
Joined: Sun May 13, 2018 3:42 pm

Re: Upgrade from Motor Shield V1 to V2

by adafruit_support_bill on Sun May 13, 2018 6:35 pm

Any idea why it worked fine with Motorshield v1?

Hard to say. We have not manufactured the V1 for many years. Most likely a difference in how the overload circuitry works in the L293D chips vs the TB6612 chips.

I think I will replace the motor with this one https://www.ebay.co.uk/itm/121679235014

The specs for that motor do not include the phase resistance, so it is hard to say if it will be compatible. For 12v operation with the V2 shield, the phase resistance should be 10 ohms or higher.

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

Re: Upgrade from Motor Shield V1 to V2

by rvaneynd on Mon May 14, 2018 6:26 am

That one has a phase resistance of 30 Ohm. So it should be okay.

rvaneynd
 
Posts: 4
Joined: Sun May 13, 2018 3:42 pm

Please be positive and constructive with your questions and comments.