Stepper motor control with PIC18F4520

Status
Not open for further replies.

KhaledOsmani

Full Member level 6
Joined
May 4, 2014
Messages
384
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Visit site
Activity points
3,933
Hi,

Assume you have a stepper motor located at the center of a squarred room.
Assume you have 4 nodes located at the 4 corners of The squarred room.

Using PIC Basic Simulator IDE 18, with a PIC18f4520 controller, how to control the stepper motor (via StepCw & StepCcw) to make the stepper motor aims:

At each node of the squarred room with equal delay of 300 microseconds

To aim at the first two consecutive nodes of the room, with a delay twice than the other else nodes & vice-versa

To aim at two non consecutive nodes of the room with a delay triple than the other else nodes

The stepper mode value should be 1 or 2

In the basic help it is said that the first input for stepcw/stepccw syntax is the number of steps to be done, does that mean the real physical step

Finally and since there are 4 terminals for a stepper motor, how to connect it on proteus, true it is not labeled, hence the answer can be given as vertical parallel terminals first set and second set


Thanks
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…