Hi all of you.
I want to use a a4988 stepper motor driver .
I using a dvd writer stepper motor.
I have a library that attached.
and I have written code below.
Sub Process_Globals
Public Serial1 As Serial
Public motorX As A4988
Public dir_pin As Pin
Public step_pin As Pin
Public enable_pin As Pin
Public ms1_pin As Pin
Public ms2_pin As Pin
Public ms3_pin As Pin
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
ms1_pin.Initialize(1,ms1_pin.MODE_OUTPUT)
ms2_pin.Initialize(2,ms2_pin.MODE_OUTPUT)
ms3_pin.Initialize(3,ms3_pin.MODE_OUTPUT)
step_pin.Initialize(5,step_pin.MODE_OUTPUT)
dir_pin.Initialize(6,dir_pin.MODE_OUTPUT)
enable_pin.Initialize(7,enable_pin.MODE_OUTPUT)
dir_pin.DigitalWrite(True)
step_pin.DigitalWrite(True)
enable_pin.DigitalWrite(True)
ms1_pin.DigitalWrite(True)
ms2_pin.DigitalWrite(True)
ms3_pin.DigitalWrite(True)
End Sub
I can not continue.