I'm currently running a Shapeoko 2 with the typical Arduino Uno and GRBL v0.9 with gShield. I'm building another machine from scratch that will have NEMA23's and I'd like to run those using my Arduino Uno and GRBL. Does anyone have a pin out or diagram of how to connect the Uno to the TB6600 and any configuration changes I'd need to make?
Or, maybe there's a better driver to use that will supply the current to the NEMA 23.
and - pairs of pins drive an opto coupler input (ie an IR LED bascically). Hence +PUL, -PUL
(pulse, ie step), +DIR, -DIR (direction) which connect to the LED (often with a series resistor too).
You first check to see if a series resistor is needed (depends on the drive, they usually provide
one good for 3.3 and 5V), but basically you either connect the - pins to GND and drive the + ones,
or connect + pins to Vcc and drive the - ones inverted.
For (machining) CNC you want speed for rapids, when not cutting, and torque for cutting
(low speed, lots of force if using ballscrews). So the typical stepper torque/speed profile
isn't a bad match. Of course a decent servo motor will stomp all over any stepper for
performance, but that requires encoders and more expensive electronics.
I've got a NEMA17 stepper to 3600rpm at 24V, though it was 2.5A rated (very low impedance).
I'm getting about 250 RPM at 12V with the generic Chinese driver.
code
int j = 5000;
int d = 5000;
void setup()
{
pinMode (13, OUTPUT);
pinMode (8, OUTPUT); // dir pin
pinMode (9, OUTPUT); // step pin
digitalWrite(8, LOW);
digitalWrite(9, LOW);
digitalWrite(13,LOW);
}
void loop()
{
do {
j=j-2;
digitalWrite(9,HIGH);
digitalWrite(13,HIGH);
delayMicroseconds (j);
digitalWrite(9, LOW);
digitalWrite(13,LOW);
delayMicroseconds (j);
} while (j > 600);
do {
d = d-1;
digitalWrite(9,HIGH);
digitalWrite(13,HIGH);
delayMicroseconds (j);
digitalWrite(9, LOW);
digitalWrite(13,LOW);
delayMicroseconds (j);
} while (d>10);
digitalWrite(13,LOW);
digitalWrite(9, LOW);
delay (5000);
// blink led 5 seconds
digitalWrite(13,HIGH);
delay (5000);
j = 5000;
d = 5000;
}
motor gets flakey below 600 microseconds of delay.
I have a 24V power supply that might bring up the speed a little haven't tried it yet.
What are you using for a driver at 3600 RPM?
I do lots of CNC work for my day job. Currently trying to get funding approved for a servo controlled, mix on demand system for production. Bad news is system needs to move 20-30 gallons per min minimum.
Good news, I get to play experiment with a lot of hardware.
morrisonandboyd:
I have a 24V power supply that might bring up the speed a little haven't tried it yet.
What are you using for a driver at 3600 RPM?
24V is twice the speed of 12V system typically.
I've my own board design using DRV8711 and discrete MOSFETs good to 5A. You can get
a DRV8711-BOOST board commercially I believe which is basically the same thing.