Stepper motor

Thread Starter

Cristopher Tingcang

Joined Jul 31, 2011
18
Hi!
I am currently working on my unipolar stepper motor as a project.

And our professor requires the following:

PB1 pressed turns on the motor at low speed
PB2 pressed turns on the motor at mid speed
PB3 pressed turns on the motor at high speed
TS1 selects the angle turn (position 1=90, position 2= 180, position 3= 360)
low speed 60rpm, midspeed 120 rpm, high speed 240 rpm

I am using PIC16f84A.

Can anyone suggest the code/syntax for the said problem!
Thank you!
 

Thread Starter

Cristopher Tingcang

Joined Jul 31, 2011
18
Sorry for that post. Actually, I have tried in simulation using ISIS but I cannot find the right delay for the timing of the RPM. And I can't make the right code for the 90, 180 and 360 degrees step angle.
 
Top