Hi,
I connected a PIC16F84 to a ULN2803 5volt driver to a 5volt 6-wire stepper motor. The motor was running for about 20 seconds, then stopped and it will not start again. Even if I turn off power and turn it back on.
Here is my code to control / pulse the stepper motor.
Attached is my schematic. Any idea why it would quit and then not work again?
Jen
start
movlw 0x00
tris PORTA
loop
movlw b'00000101'
movwf PORTA
call DELAY_20
movlw b'00001001'
movwf PORTA
call DELAY_20
movlw b'00001010'
movwf PORTA
call DELAY_20
movlw b'00000110'
movwf PORTA
call DELAY_20
goto loop
I connected a PIC16F84 to a ULN2803 5volt driver to a 5volt 6-wire stepper motor. The motor was running for about 20 seconds, then stopped and it will not start again. Even if I turn off power and turn it back on.
Here is my code to control / pulse the stepper motor.
Attached is my schematic. Any idea why it would quit and then not work again?
Jen
start
movlw 0x00
tris PORTA
loop
movlw b'00000101'
movwf PORTA
call DELAY_20
movlw b'00001001'
movwf PORTA
call DELAY_20
movlw b'00001010'
movwf PORTA
call DELAY_20
movlw b'00000110'
movwf PORTA
call DELAY_20
goto loop