I eventually want to put together a adruino cnc machine using cd drive stepper motors but right now i just want to test if the motors even work. Iv'e been working on this for almost 2 days now and this is pretty much my last resort since i'm getting really frustrated with such a simple task that everyone seems to have done. Right now the lights on the motor controller blink in a continuous pattern but there is no movement at all. So if anyone could help me out that would be amazing. Here's my setup:
using an arduino uno, L298N Motor controller(linked), 3x 3.7v 6800mah li-on batteries (in series), and a cd drive stepper motor.
Arduino pin 8--->In 1 on controller
Arduino pin 9--->In 2 on controller
Arduino pin 10--->In 3 on controller
Arduino pin 11--->In 4 on controller
ground of battery pack is connected to ground on the motor controller and the positive is connected to the "VMS" port.(arduino powered by computer)
I identified the two internal loops of the stepper motor and just connected them from left to right on the motor to the ports on motor controller from left to right. (I tried every possible configuration and nothing worked in respect to order of the wires) I also checked and all connections had continuity.
Here is a code I found online which is supposed to work with my motor.
I really hope I'm missing something obvious and that the motor isn't burnt or something but any suggestions you guys have would be much appreciated! Thanks,
link to motor controller: https://abra-electronics.com/electr...l-h-bridge-motor-controller-driver-board.html
using an arduino uno, L298N Motor controller(linked), 3x 3.7v 6800mah li-on batteries (in series), and a cd drive stepper motor.
Arduino pin 8--->In 1 on controller
Arduino pin 9--->In 2 on controller
Arduino pin 10--->In 3 on controller
Arduino pin 11--->In 4 on controller
ground of battery pack is connected to ground on the motor controller and the positive is connected to the "VMS" port.(arduino powered by computer)
I identified the two internal loops of the stepper motor and just connected them from left to right on the motor to the ports on motor controller from left to right. (I tried every possible configuration and nothing worked in respect to order of the wires) I also checked and all connections had continuity.
Here is a code I found online which is supposed to work with my motor.
Code:
#include <Stepper.h>
const int stepsPerRevolution = 24; // 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:
Serial.begin(9600);
}
void loop() {
// step one step:
myStepper.step(1);
Serial.print("steps:" );
Serial.println(stepCount);
stepCount++;
delay(100);
}
link to motor controller: https://abra-electronics.com/electr...l-h-bridge-motor-controller-driver-board.html


