answersLogoWhite

0

Stepper motor to rotate 90deg using 8051 Programming?

Updated: 8/17/2019
User Avatar

Wiki User

11y ago

Best Answer

#include <reg51.h>

sbit p10=P1^0;

sbit p11=P1^1;

sbit p12=P1^2;

void delay()//Delay process

{

unsigned i,j,k;

for(i=0;i<500;i++)

{}

}

main()

{

while(1)

{

if(p10==0)

{

P2=0X01;//Inversion of control //0011

delay();

P2=0X02;//0110

delay();

P2=0X04;//1100

delay();

P2=0X08;//1001

delay();

}

if(p11==0)

{

P2=0X08;//Control is transferred

delay();

P2=0X04;

delay();

P2=0X02;

delay();

P2=0X01;

delay();

}

if(p12==0)

{

P2=0X00;

delay();

}

}

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Stepper motor to rotate 90deg using 8051 Programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you rotate the stepper motor to different angles?

A; stepper motor can rotate to various angle if the resolution is infinite then the rotation will be infinite. however practically is set to step a certain angle per step


What is a stepper motor?

A stepper motor (also referred to as step or stepping motor) is an electromechanical device achieving mechanical movements through conversion of electrical pulses. Stepper motors are driven by digital pulses rather than by a continuous applied voltage. Unlike conventional electric motors which rotate continuously, stepper motors rotate or step in fixed angular increments. A stepper motor is most commonly used for position control. With a stepper motor/driver/controller system design, it is assumed the stepper motor will follow digital instructions. One important aspect of stepper motors is the lack of feedback to maintain control of position, which classifies stepper motors as open-loop systems.


Who invented the stepper motor?

In 1920,English engineer Walker invented the frist stepper motor which was a switched reluctance stepper motor.


What are stepper motors used for?

A stepper motor (also referred to as step or stepping motor) is an electromechanical device achieving mechanical movements through conversion of electrical pulses. Stepper motors are driven by digital pulses rather than by a continuous applied voltage. Unlike conventional electric motors which rotate continuously, stepper motors rotate or step in fixed angular increments. A stepper motor is most commonly used for position control. With a stepper motor/driver/controller system design, it is assumed the stepper motor will follow digital instructions. One important aspect of stepper motors is the lack of feedback to maintain control of position, which classifies stepper motors as open-loop systems


Transfer function of stepper motor?

A stepper motor has a transfer function. The exact function is determined by a motor's individual characteristics. The speed at which it is capable of repeating a position is based on its geometric configuration and size.


Where is the Stepper motor for a 2004 Chevy impala located?

The stepper motor is located in the instrument cluster. The stepper motor is what turns the needles in all the gauges.


where can i buy a stepper motor driver online?

You could purchase a new stepper motor driver at a Home Depot. They offer new stepper motor drivers at great prices and the new stepper motor drivers are very durable.


How stepper motor?

A stepper motor is a type of electric motor that is brushless. The "question" isn't actually a question, so I'm not sure what else you would like to know about stepper motors.


What motor is used in watches?

stepper motor


Is a stepper motor with feedback loop a servo motor?

No, stepper and servo motor are by mechanical design two different types of motors.


Is a stepper motor easier to maintain than a normal ac motor?

A stepper motor is more easier to maintain than a normal ac motor. Ac motor is a seal motor under pressure. A stepper can easliy be open and the interwheels can be fixed and cleaned.


Where can i buy a bipolar stepper motor online?

YOu can go to the following website to buy a bipolar stepper motor online and for great prices http://www.anaheimautomation.com/products/stepper/stepper-motors-list.php?cID=19