0

Flashing LED light on Adafruit Motor Shield v2.3
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Flashing LED light on Adafruit Motor Shield v2.3

by Amroth on Wed Nov 11, 2020 1:53 am

Hi all,

I am conducting a simple project using an ARDUINO UNO with an Adafruit Motor shield v2.3 to power a Wantai Stepper motor https://www.openimpulse.com/blog/products-page/product-category/42byghm809-stepper-motor-1-68-4-2-kg%E2%8B%85cm/.

I ran the code below with the intention of only moving the motor a little at a time. The motor did move as expected, but after a while, the LED light begins to flash and the ARDUINO UNO becomes disconnected via USB The ARDUINO UNO board and the Adafruit Motor Shield v2.3 also becomes rather hot.

I have checked using a voltmeter that the wires that go into M1 and M2 are the correct pairs. I have not attached the wires in order of polarity though because it was not clear to me that this was needed nor does there seem to be any markings near the analog input ports that tell me which polarity is required.

Only after waiting a few minutes and re-plugging the power input do I get a solid green power LED again. Is there a way to ascertain what I did wrong in this context to cause the flashing lights? Do I need the correct polarity for the analog inputs? Do I need a heat sink of sorts?

While the lights are flashing, I did dis-attach the wires into the M1 port which actually stopped the power LED from blinking - does this mean it is just the motor's issue and not the Adafruit or Arduino UNO's issue??

#include <Wire.h>
#include <Adafruit_MotorShield.h>

Adafruit_MotorShield AFMS = Adafruit_MotorShield();

Adafruit_StepperMotor *myMotor = AFMS.getStepper(100, 1);

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


// step(#steps, direction (FORWARD/BACKWARD), (SINGLE, DOUBLE,INTERLEAVE, MICROSTEPPING))
myMotor->setSpeed(20); // 10 rpm

}

void loop() {
myMotor->step(30, FORWARD, DOUBLE);
}
Attachments
run_stepper.zip
(3.1 KiB) Downloaded 4 times
124821832_1717904741717279_1119436097271230178_n.jpg
124821832_1717904741717279_1119436097271230178_n.jpg (469.7 KiB) Viewed 179 times

Amroth
 
Posts: 2
Joined: Wed Nov 11, 2020 1:39 am

Re: Flashing LED light on Adafruit Motor Shield v2.3

by adafruit_support_bill on Wed Nov 11, 2020 6:51 am

That motor is not compatible with the shield. You are having power issues because the motor is pulling too much current.

Specifications
Step accuracy: ±5%
Ambient temperature range: 20°C ~ 50°C
Insulation resistance: 100MΩ Min.50V DC
Dielectric strength: 500V AC for 1 minute
Step angle: 0.9°
400 steps / rev
Voltage rating: 2.7 V
Current rating: 1.68 A
Resistance: 1.6 Ω per coil
Inductance: 3.5 mH per coil
Temperature rise tolerance: 80°C
Holding torque: 4200 g⋅cm
Detent torque: 260 g⋅cm
Number of leads: 4
Motor length : 4.8 cm
Nema 17 form factor
Weight: 340 g


Based on the phase resistance, this motor was designed for use with a current limiting driver.
https://learn.adafruit.com/all-about-st ... he-stepper
The #324 motor in the store is a better match for the shield: https://www.adafruit.com/product/324

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

Re: Flashing LED light on Adafruit Motor Shield v2.3

by Amroth on Wed Nov 11, 2020 7:02 am

adafruit_support_bill wrote:That motor is not compatible with the shield. You are having power issues because the motor is pulling too much current.

Specifications
Step accuracy: ±5%
Ambient temperature range: 20°C ~ 50°C
Insulation resistance: 100MΩ Min.50V DC
Dielectric strength: 500V AC for 1 minute
Step angle: 0.9°
400 steps / rev
Voltage rating: 2.7 V
Current rating: 1.68 A
Resistance: 1.6 Ω per coil
Inductance: 3.5 mH per coil
Temperature rise tolerance: 80°C
Holding torque: 4200 g⋅cm
Detent torque: 260 g⋅cm
Number of leads: 4
Motor length : 4.8 cm
Nema 17 form factor
Weight: 340 g


Based on the phase resistance, this motor was designed for use with a current limiting driver.
https://learn.adafruit.com/all-about-st ... he-stepper
The #324 motor in the store is a better match for the shield: https://www.adafruit.com/product/324


Thank you so much for the response! I was actually given this set of equipment and was told to put it together - without considering the possibility that they were incompatible. I will order one in and have a squiz to see.

Amroth
 
Posts: 2
Joined: Wed Nov 11, 2020 1:39 am

Please be positive and constructive with your questions and comments.