What are 2 Pin motors? DC motors? If they are standard DC motors, I dont think you can step them accurately enough to use on a CNC.
Hey guys,Im trying to make very basic 3 axis machine.I have used cd rom motors.I have used h bridge to control my motors which have only 2 pins and all worked well.Then I found out that grbl dont support h bridge.
Im looking for shield that can step controll 3x 2 pins motors.
Can someone help me please ?
Pajamac
Similar Threads:
What are 2 Pin motors? DC motors? If they are standard DC motors, I dont think you can step them accurately enough to use on a CNC.
Author of: The CNC Construction Set Books, the KRMx01, KRMx02, KRmc01, and KRmf70 CNC Books, the HANS Electric gear clock book. All available at www.kronosrobotics.com.
Well,Im not quite sure I think that cd roms use steppers cuz they need good accuracy + I used this code and motor was moving so I think that I have stepper motor.
#include <Stepper.h>
const int stepsPerRevolution = 200;
Stepper myStepper(stepsPerRevolution, 6,3);
void setup() {
// set the speed at 6 rpm:
myStepper.setSpeed(6);
// initialize the serial port:
Serial.begin(9600);
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
Serial.println("anti");
myStepper.step(-stepsPerRevolution);
}
If the motor only has 2 wires then it is not a stepper. Plain and simple. A stepper motor will have AT LEAST 4 wires. You have asked this question on the GRBL Github forum and were given the same answer. Please do a google search for "stepper motor" and it will give you a myriad of websites that explain stepper motor operation.
Your code will make a DC motor move, but that does not make it a stepper motor and does not mean you can control position. Your code is simply appyling a voltage to a DC motor. That in itself will make it turn. You could hook a battery to it and it will move too.
GRBL only works with drivers that use step and direction inputs.
There's three different motors in a CD rom. The stepper that moves the head, the DC motor that spin the CD and then the DC motor that opens and closes the door.
The only one having two wires is the door motor.
To use DC motors on a CNC, you will need rotary or strip encoders for step and direction input. Im not sure what shield you can use but there are lots of tutorials on Youtube of builds using rotary or strip encoders.