So I’ve gone and tried connecting the VCC and GND of a six lead stepper motor (just the two) to the BTS7960 H-bridge, and through that connected to my numbered 0-n pins for I/O on the Arduino Leonardo.
The only problem is I’m not quite sure if I’m following correctly because I have a few options and none are working at least for me.
I see it’s says use pins in case:
- 1pwm+2dir etc
I’m not 100% sure if I’m supposed to use any leads other than the VCC or GND from the motor, because the stepper motor didn’t come with an encoder I had to buy one separately and get that one working.
As of now I’m just connecting:
- L_EN > pin 8
- R_EN > pin 11
- LPWM > pin 9
In case of: 1 PWM + 2DIR
- Pin 9 for PWM
- Pin 8 for DIR L
- pin 11 for DIR R
I’m connecting this through the Arduino Leonardo and just need to know whether or not I messed something up considering the six leads on the motor.
Just to be clear, a one motor set up with two directions is 1PWM 2DIR correct? I tried looking it up but all I got was definitive answers for the methods of how they work but not what they are in terms of application.