- This topic has 2 replies, 3 voices, and was last updated 11 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › How to run the stepper motor ?..
Hai to every one I am sureshkumar from india(Tamil Nadu). First I am using PIC16F877A device.
Mplab v8.90.
CCS C compiler v4.068.
pickit2
I was try to run the stepper motor in many ways. using ULN2003APG and using L298h bridge but the motor does not run only shake the motor soft.
what can i do…
Motor specification:
That motor is i was purchased from autonics.
That motor have 6 wires.
Back side priented on that motor
3.6vdc
1.2amp/phase
1.8* phase
what is this ?
Please any one help me
How to run the stepper motor using this controller. I was purchased L298 Hbridge from NSK Electronics(bangalore).
That have many pins.
IN1,IN2,IN3,IN4, EN1 and EN2. What is this ?… how to use this pins ?…
Can you post the diagram and the code? Why have chosen PIC as the controller for this project?
What you must do is to investigate which is the secuence of the stepper motor.
The 16 posibilities are next:
IN1 IN2 IN3 IN4
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
” ” ” “
1 1 1 1
Get a battery or power supply of 3,6V
1º connect GND of Power to the GND of the motor.
2º Try all the 16 posibilities and if the motor turns note down in which direction.
3º If for example there are 3 secuencies that turn in right direction reproduce this, but betwen out a secuence and out the next secuence put a delay that will mark the velocity of the motor. Watch out with the delay is not too small.
while (1)
{
out port (0100) //Secuence 1 turn right
delay_ms (500) //delay 0,5 s
out port (1000) //Secuence 2 turn right
delay_ms (500) //delay 0,5 s
out port (1100) //Secuence 3 turn right
delay_ms (500) //delay 0,5 s
}
with this example the motor always turn in the right direction