Hi to all.
I need some help with TB6600 setup.
This are the parts that am using:
Motors: 23HS30-2804S-SG10 ( geared NEMA23 motors )
Driver : TB6600
Power supply for driver : 24V
Ardino mega
Code:
#define DIR_PIN 5
#define PUL_PIN 6
#define ENA_PIN 7
void setup() {
pinMode(DIR_PIN, OUTPUT);
pinMode(PUL_PIN, OUTPUT);
pinMode(ENA_PIN, OUTPUT);
digitalWrite(DIR_PIN, HIGH);
digitalWrite(ENA_PIN, LOW);
}
void loop() {
digitalWrite(PUL_PIN, HIGH);
delayMicroseconds(500);
digitalWrite(PUL_PIN, LOW);
delayMicroseconds(500);
}
//-----------------------
With this code motor is spinning at rate of one fully spin / 3 sec and for this setup microswitch on TB6600 is set on :
OFF /ON/ON/OFF/OFF/OFF
I was trying different solutions with this microswitches but i can not get some faster speed.
Of course, i must set delay to 10 or even lower value but still, i can get faster speeds.
IMHO this motor should run at least one full spin / 1 sec so am guessing am doing something wrong. Any suggestion and input is welcome !
Arnix