Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

CONTROL stepper motor using PIC microcontroller

Status
Not open for further replies.

wiqi136

Newbie level 3
Joined
Jun 14, 2012
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
hi guys, this is the first time ever i put my hands on stepper motor.
i am using unipolar stepper motor (1.8 degrees step angle)...
is it possible to control the desired angle of rotation using pic microcontroller.
for example i want my motor to rotate 7.2 degrees after every 1 second..
please somebody guide me about the step sequences to control the rotation.
Thanks
 

write code in this way
portb=0x03;
delay_ms(5);
portb=0x06;
delay_ms(5);
portb=0x0c;
delay_ms(5);
portb=0x09;
delay_ms(5);
portb=0;
delay_ms(980);

and for high torque apllication
write code in this way
portb=0x03;
delay_ms(250);
portb=0x06;
delay_ms(250);
portb=0x0c;
delay_ms(250);
portb=0x09;
delay_ms(250);

- - - Updated - - -

write code in this way
portb=0x03;
delay_ms(5);
portb=0x06;
delay_ms(5);
portb=0x0c;
delay_ms(5);
portb=0x09;
delay_ms(5);
portb=0;
delay_ms(980);

and for high torque apllication
write code in this way
portb=0x03;
delay_ms(250);
portb=0x06;
delay_ms(250);
portb=0x0c;
delay_ms(250);
portb=0x09;
delay_ms(250);
 

write code in this way

write code in this way
portb=0x03;
delay_ms(5);
portb=0x06;
delay_ms(5);
portb=0x0c;
delay_ms(5);
portb=0x09;
delay_ms(5);
portb=0;
delay_ms(980);

and for high torque apllication
write code in this way
portb=0x03;
delay_ms(250);
portb=0x06;
delay_ms(250);
portb=0x0c;
delay_ms(250);
portb=0x09;
delay_ms(250);

how to understand the logic behind this step sequence..... i mean why, 03,06,0c,09 ??
 

it has 2 coils with common joint which may be gnd or vcc or get help from google. if not understanding tell

- - - Updated - - -

it has 2 coils with common joint which may be gnd or vcc or get help from google. if not understanding tell
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top