Hmm, well that works, sort of.. its not centering and its not full to the ends..
I tried my old "center the servo" code with slightly modifications too:
Code:
' servocenter
@ device INTRC_OSC_NOCLKOUT,MCLR_OFF,LVP_OFF,WDT_OFF,PROTECT_OFF
DEFINE OSC 4
start:
pulsout portb.0, 150
pause 18
goto start
..Well, this is strange..
The first time I tried it it seemed to work.. but if i moved the servoarm (with power disconnected ofcourse) it gives very strange results.
If its in 180 degrees position, or close to that, it will work, it will center (more or less) the arm and hold it there.. HOWEVER.. if its in another position, it will just hold the current position ??
this is so strange.
Bookmarks