ESP8266 + MotorShield and Stepper Motor

Hi everyone;

I'm trying to make a Stepper Motor work with an ESP8266 and a Motor Shield. Data sheets of the motor shield are the following:


As you can see, D1 and D2 are mainly to adjust the speed of the motor, while D3 and D4 are to adjust its orientation. However, my stepper motor has 4 wired, because it works under bipolar conditions and therefore it needs 2 full-bridge to work.

This is the code I am using:

#include <Stepper.h>

Stepper motor(200,D1,D2,D3,D4);

void setup() {
pinMode(LED_BUILTIN, OUTPUT);
motor.setSpeed(20);
Serial.begin(9600);
}

void loop() {
motor.step(100);
}

As you can see, it is very easy, but it only makes my motor to vibrate without turning. And after measuring with an oscilloscope, I have found the following:

In that picture, we can see phases A+ and B+, and we can see how the period of B+ is twice the period of A+

On the other hand, in the following picture, I have measured A+ and B-, and I have found that there is no value for B- ever:

I think that the mistake is that D1 and D2 are just to adjust speed, while D3 and D4 are for the orientation. However I want all of them of the speed. How can I solve this?

Thank you!

PS: I forgot to mention that VH and GND of the Shield are connected to a 12V-2Amax power supply

Hi Zhivab,
did you solve the problem and got the Shield going?
I have run into the same situation - stepper motor vibrates only.