Page 1 of 1

hello..problem with servo commmand

PostPosted: Sat Mar 20, 2010 2:04 am
by muz
i'm using sc16a for my current project..the problem is..when i send
CODE: SELECT_ALL_CODE
send_cmd(0x41, 732, 10);
delay(200000);
send_cmd(0x41, 1400,10);

the servo rotates for the 732 angle only and stop.
why the signal cannot be received by sc16a for 1400 angle?
i'm using pic16f877a and 20Mhz crystal and cytron c55r servo and PIC compiler .

tq for your cooperation.

Re: hello..problem with servo commmand

PostPosted: Sat Mar 20, 2010 2:19 pm
by ober
So what is the command after:
send_cmd(0x41, 1400,10);
??

Re: hello..problem with servo commmand

PostPosted: Sun Mar 21, 2010 10:17 am
by muz
my servo is now working well for the next command..however it is continuously moving (looping) base on given command although i did not put any while loop..how to stop the servo at the last command?

Re: hello..problem with servo commmand

PostPosted: Sun Mar 21, 2010 1:34 pm
by muz
hai..
one more thing.
how to calculate other speed to control the servo instead of speeds stated in sc16a manual page 25.

tq

Re: hello..problem with servo commmand

PostPosted: Sun Mar 21, 2010 4:07 pm
by ober
muz WROTE:my servo is now working well for the next command..however it is continuously moving (looping) base on given command although i did not put any while loop..how to stop the servo at the last command?


So what is the previous problem?

The servo keep looping because you do not put any program to stop the microcontroller from RESET. you can put a simple while(1) continue; after the command given.

Re: hello..problem with servo commmand

PostPosted: Sun Mar 21, 2010 4:08 pm
by ober
muz WROTE:hai..
one more thing.
how to calculate other speed to control the servo instead of speeds stated in sc16a manual page 25.


What do you mean by that? Please elaborate more.

Re: hello..problem with servo commmand

PostPosted: Thu Jun 17, 2010 1:37 am
by tkleong1437
may be try insert delay after the 1400 command, give some time delay for it process