Because this shield plugs directly on top of the Arduino, it utilizes specific internal pins. You must avoid using these pins for other sensors or modules: Arduino Pin Shield Function DC Motor #2 / Stepper #1 PWM speed control Digital 4 Shift Register 74HCT595 Clock (CLK) Digital 5 DC Motor #3 / Stepper #2 PWM speed control Digital 6 DC Motor #4 / Stepper #2 PWM speed control Digital 7 Shift Register 74HCT595 Latch (STRB) Digital 8 Shift Register 74HCT595 Serial Input (SER) Digital 9 Servo Control #2 Digital 10 Servo Control #1 Digital 11 DC Motor #1 / Stepper #1 PWM speed control Digital 12 Shift Register 74HCT595 Output Enable (OE)
void setup() stepper1.setSpeed(30); // 30 rpm stepper1.step(100, FORWARD, SINGLE);
Do not trust the silkscreen on cheap boards. Always verify with a multimeter, but the table above matches the standard "L298N Shield" reference design.
Because this shield plugs directly on top of the Arduino, it utilizes specific internal pins. You must avoid using these pins for other sensors or modules: Arduino Pin Shield Function DC Motor #2 / Stepper #1 PWM speed control Digital 4 Shift Register 74HCT595 Clock (CLK) Digital 5 DC Motor #3 / Stepper #2 PWM speed control Digital 6 DC Motor #4 / Stepper #2 PWM speed control Digital 7 Shift Register 74HCT595 Latch (STRB) Digital 8 Shift Register 74HCT595 Serial Input (SER) Digital 9 Servo Control #2 Digital 10 Servo Control #1 Digital 11 DC Motor #1 / Stepper #1 PWM speed control Digital 12 Shift Register 74HCT595 Output Enable (OE)
void setup() stepper1.setSpeed(30); // 30 rpm stepper1.step(100, FORWARD, SINGLE);
Do not trust the silkscreen on cheap boards. Always verify with a multimeter, but the table above matches the standard "L298N Shield" reference design.