Επιστροφή στο Forum : πρόβλημα με servo motor
έχω ένα πρόβλημα στο πρόγραμμα για servo motor όταν παο να το μετατρέψω σε hex μου βγάζει error
www.imagesco.com/articles/index.html (http://www.imagesco.com/articles/index.html) Controlling Servo Motors with the PIC Microcontroller
καμια λύση ?
ρε αδερφε πες μας και τι γλωσσα που προγραμματιζεις και το προγραμμα αν θελεις..
το πρόγραμμα είναι σε basic και το site που γράφω
' First servomotor program
' Sweeps left to right, then reverses
Symbol B1 = pw
pw = 100
sweep: pulsout 0,pw
pause 18
pw = pw + 1
if pw > 200 then back
goto sweep
back: pulsout 0,pw
pause 18
pw = pw - 1
if pw < 100 then sweep
goto back
' create a variable pw
' start at extreme left
' send pulse to motor
' set frequency to about 50 Hz
' increase pw by 1
' at extreme right, turn CCW
' otherwise, continue
' send pulse to motor
' set frequency to about 50 Hz
' decrease pw by 1
' at extreme left, turn CW
' otherwise, continue
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.