Step Motor 28BYJ-48 5V connected to Adafruit Motor Shield v2.3 doesn't work

Hello, for a school project I have to use a motor. Our teacher gave us an Adafruit Motor Shield 2.3 combined with an Arduino Uno.

Even though I've looked on the internet for someone with the same problem, the solution I saw didn't make that motor work. I connected the wires as the product-page told (Small Reduction Stepper Motor - 5VDC 32-Step 1/16 Gearing : ID 858 : $4.95 : Adafruit Industries, Unique & fun DIY electronics and kits), downloaded the Adafruit Motor shield v2 library and made sure there was power in the Motor Shield (a jumper is plugged). I even changed the code example from the library gave according to the website instruction.

And after all that it still doesn't work, not even a sound or a shaking. and I'm here to ask for your guidance :slight_smile: here are some pictures to illustrate my probleme. I hope someone will help me.

Thank you

And I forgot: Here is the code:

/* 
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_MS_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(513, 1);


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

  AFMS.begin(1000);  // create with the default frequency 1.6KHz
  //AFMS.begin(1000);  // OR with a different frequency, say 1KHz
  
  myMotor->setSpeed(5);  // 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);
}

Up !

If you are using this unipolar motor as bipolar, do not connect the red (power, center tap) motor wire to anything.

In any case, in the first photo it appears that you have not connected the motor to the shield properly. Do not use the terminal labeled GND.

You must use a separate motor power supply.