aiii,i want some example source code for control 3 servo motor at the same time..
my project is face expression..1 servo for control the mouth,and 2 servo control the eyebrow..i used 180 deg servomotor..for the input,i used a push button..
static void interrupt isr(void)
{
if(TMR0IF==1){
TMR0IF=0;
counter++;
if(counter==position) SERVO=0;
if(counter==390){
counter=0;
SERVO=1;}
}
}
Users browsing this forum: No registered users and 7 guests