My setup is fairly simple.
Arduino Uno (USB PC Powered) with ports 8 to 11 connected to the L298n driver. L298n driver powered by a 12v wall wart (2A).
My setup is basically the exact same as this tutorial:
TutorialHowever my stepper is slightly different with different coloured wires:
Stepper motor on AmazonSome pictures of the setup:



Using this code:
/*
Stepper Motor Control - one revolution
This program drives a unipolar or bipolar stepper motor.
The motor is attached to digital pins 8 - 11 of the Arduino.
The motor should revolve one revolution in one direction, then
one revolution in the other direction.
Created 11 Mar. 2007
Modified 30 Nov. 2009
by Tom Igoe
*/
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(10);
// initialize the serial port:
Serial.begin(9600);
}
void loop() {
// step one revolution in one direction:
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);
}
However the motor spins very slowly and has very little torque (can stop it with a slight pinch of the fingers). Is this normal? I was hoping to use this motor to pull the cord of some window blinds.
I've tried changing the setSpeed value to values between 1 and 60, towards 60 the motor just starts jittering like it can't keep up with the command rate.
Only thing I can possibly think of is bad wiring somewhere or the code isn't correct. Am I meant to have a ground also running back to the Arduino board?
At the moment I'm a little lost -- any ideas would be great?