Microcontroller › 8051 › Angular rotation of 50 degrees › this circuit showes how to
December 2, 2011 at 2:08 am
#6892
Participant
this circuit showes how to interface the servo motor with 8051.
whenever it is switched on for 50degree rotation give a time delay for the servo to stop the motor.
void PRESSUR_DELAY(unsigned char TIME)
{
int Y;
Y= TIME;
x++;
switch (Y)
{
case 1:
Delay_in_1s(182); //182
break;
case 2:
Delay_in_1s(189); //189
break;
case 3:
Delay_in_1s(200); //200
break;
case 4:
Delay_in_1s(222); //222
break;
case 5:
}
}