Servo Motor

Başlatan Pros_PektuS, 27 Kasım 2002, 22:58:41

00050319

Ahmak odur ki arzu ve isteklerinin peşinden koşar, Allah'tan da bekler.(Hadis-i Şerif)

XNHCX

Teşekkürler   00050319 ,

Using Servomotors with the PIC Microcontroller
Link'i tekrar yazayım dostum.

http://www.imagesco.com/articles/picservo/01.html
http://www.imagesco.com/articles/picservo/02.html
http://www.imagesco.com/articles/picservo/03.html
.............

Konudan bir örnek:


----Listing 1----

' First servomotor program
' Sweeps left to right, then reverses
Symbol B1 = pw          ' create a variable pw
pw = 100                ' start at extreme left
sweep: pulsout 0,pw     ' send pulse to motor
pause 18               ' set frequency to about 50 Hz
pw = pw + 1            ' increase pw by 1
if pw > 200 then back  ' at extreme right, turn CCW
goto sweep             ' otherwise, continue
back: pulsout 0,pw      ' send pulse to motor
pause 18               ' set frequency to about 50 Hz
pw = pw - 1            ' decrease pw by 1
if pw < 100 then sweep ' at extreme left, turn CW
goto back              ' otherwise, continue

----End of Listing 1----

****
********

XNHCX

Controlling Stepper Motors with a PIC Microcontroller

Bu konuya ait link de aşağıda.

http://www.imagesco.com/articles/picstepper/01.html