[En-Nut-Discussion] Connecting a R/C servo on ethernut

Simon Biniek lightfreakde at yahoo.com
Fri Jan 16 15:32:14 CET 2004


> I have looked at some articles about using a r/c
> servo on ethernut. 
> Is it correct to use this code? Will a servo work?
> 
> void servo(){
>  while(2>1){
>   NutDelay(20);
>   outp(0xFF,PORTD);
>   NutDelay(1);
>   outp(0x00,PORTD);
>  }
> }
> 
> I have tried this code, but it won't work? Do
> someone have a better example??

The NutDelay function is not accurate enough for that
purpose.
You can use the PWM Unit of the 128. Again:
Read the Datasheet.

regards

Simon

P.S.
No, i've no code


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus



More information about the En-Nut-Discussion mailing list