Hi guys, i am trying to develop a mechanical tool changer, but i am stuck at the following point, i need to control a micro servo using an output
from my motion controller. I tried to write a code, like this, to try creating a "pulse":
Sub Advance_Servo()
Dim i As Integer
i = 0
While i<10
ActivateSignal(OUTPUT4)
Sleep(1.5)
DeactivateSignal(OUTPUT4)
Sleep(18.5)
i=i+1
Wend
End Sub
This is creating a square wave in the oscilloscope, but it's so weird, really weird.
The pulses are not in the programmed time. Is this the motion controller, or macro's just can't create a nice waveform ?
This is my servo:
http://mekanus.com.br/imagens_ML/servo-9g/s3.jpg