- This topic has 1 reply, 2 voices, and was last updated 13 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Angular rotation of 50 degrees
I want to interface a motor with 8051 microcontroller so that it would rotate 50 degree from a fixed point and then stop. First off, woul I be using a stepper motor or a servo motor?
Could anyone please make a simple schematic diagram of how this is to be done using 8051? I am using C for programming purpose. Please also specify the code which will need to be installed in the microcontroller.
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:
}
}