Stepper motor from cd-rom wiring out

Hi guys

I have a nasty problem with this stepper motors it cant move, I just press a little bit with my finger and I feel the motor trying start. I`m using Arduino uno conected with a uln2003 and the stepper motor is attached to the IC driver

the code is offcial from arduino IDE

#include <Stepper.h>

const int stepsPerRevolution = 400;  // 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);

int stepCount = 0;         // number of steps the motor has taken

void setup() {
  // initialize the serial port:

void loop() {
  // step one step:
  Serial.print("steps:" );


Qcks2 years ago

Well... The first question would be why did the CD rom have to die? was it malfunctioning? If it was, it's possible it had a bad stepper motor...

After that, I wouldn't think the issue here is software.

Does the motor have 4 wires, 6 wires, 8 wires, or some number i haven't mentioned?

That matters because different motors are constructed differently, even within closely matched specifications. It could be a unipolar, Bipolar, Geared with a position sensor, or even more arcane configurations that I am unfamiliar with.

After that, Have you checked your wiring the correct coils in the correct order? it's easy to get them backwards/switched up and the result isn't always fire and death. Sometimes the motor just doesn't spin (don't mess with the current regulators if the motor isn't spinning freely).

caitlinsdad2 years ago

You should post an image of your setup and a schematic of the way things are hooked up. Are the motors 2 or 4 wire?