alpha91
Full Member level 3
Hi all,
Recently I am learning on how to control a stepper motor.
The circuit working condition is as below:
PIC 16F628a --> ULN 2003 --> 28BYJ-48 stepper
My code is as below:
but i can feel that my motor is vibrating when i am holding it, but the shaft just dont rotate.
May i know what is the problem?
Recently I am learning on how to control a stepper motor.
The circuit working condition is as below:
PIC 16F628a --> ULN 2003 --> 28BYJ-48 stepper
My code is as below:
void main()
{
CMCON = 0x07; // To turn off comparators
TRISB = 0; // PORT B as output port
PORTB = 0x0F;
do
{
PORTB = 0b00000011;
Delay_ms(500);
PORTB = 0b00000110;
Delay_ms(500);
PORTB = 0b00001100;
Delay_ms(500);
PORTB = 0b00001001;
Delay_ms(500);
}while(1);
}
but i can feel that my motor is vibrating when i am holding it, but the shaft just dont rotate.
May i know what is the problem?