Okay, after reaching out to the manufacturer of the motors I had, I managed to acquire the datasheet:
24HC2307-01.pdf (146.6 KB)
I've also acquired one of the 3DM580S 3-phase motor drivers, and I wanted to try and run it with a Teensy 4.0.
I looked on the internet for some wiring diagrams for this driver, and the most common one I saw was this one:
Now, whenever I previously ran any motors with any drivers, there were always a pin for the direction, and a pin for the stepping, alongside the logic VDD power supply (usually 5V).
In this case, however, it appears to be far more complicated to setup, and I'm looking for assistance in understanding the setup here.
From the datasheet of the motors, I'm pretty sure that I have a motor with the "Star-Connection" type.
I'm not quite sure why there is a + and - for each one pof the "PUL", "DIR" and "ENABLE" inputs for the motor. I can see that there is a long semicircle in the datasheet that covers all the connections going from the supposed controller to the motor. Is that a symbol for the "Half-Bridge" circuits that were mentioned earlier in this thread?
There was also another connection diagram, that looked like this:
In this case, all the connections going from the controller appear to also be connected to the "VCC" power supply (which I'm assuming is the logic power). From these diagrams, I tried settup up a setup like this:
As I expected, this didn't run the motors. For reference, here's the code I'm trying to run this with on the Teensy:
const int stepPin = 2;
const int dirPin = 4;
const int spinDelay = 2000;
void setup()
{
Serial.begin(9600);
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
}
void loop()
{
Serial.println("Spinning one!");
digitalWrite(dirPin, HIGH);
for (int x = 0; x < 200; x++)
{
digitalWrite(stepPin, HIGH);
delayMicroseconds(spinDelay);
digitalWrite(stepPin, LOW);
delayMicroseconds(spinDelay);
}
delay(1000);
Serial.println("Spinning two!");
digitalWrite(dirPin, LOW);
for (int x = 0; x < 200; x++)
{
digitalWrite(stepPin, HIGH);
delayMicroseconds(spinDelay);
digitalWrite(stepPin, LOW);
delayMicroseconds(spinDelay);
}
delay(1000);
}
Usually, there was an "ENABLE" pin on simpler motor drivers, such as the A4988, however those were always left unconnected in any connection diagrams I looked at... Moreover, none of the connections going from my Teensy 4.0 ever had ad + or a -, it was always a direct connection. I'm assuming that with these motors, I would have to setup some sort of a circuit in order to provide the VDD power to those connections, but I'm unsure how to.
How would I go about connecting this driver in a proper way, so that it could run with my Teensy 4.0? Is it even possible to run this driver with a Teensy 4.0?