Hi,
Never done this before. it took me ages to even work out how to post a new thread, hope I got it right now.
I can drive a 6 wire unipolar stepper in dual-phase mode with an 08M via a ULN2003 using 4 ouputs no problem. The code:
main:
b1 = 10 'pause
let dirs = %10111 'set pins 0,1,2,4 as outputs
let pins = %10001 'coils 0 and 4
pause b1
let pins = %00011 'coils 0 and 1
pause b1
let pins = %00110 'coils 1 and 2
pause b1
let pins = %10100 'coils 2 and 4
goto main
What I want to do is drive the motor with 2 pins as per the circuit on page 15 of manual 3
!!!!!!!!!!!!!!!!! I don't know what happened there I thought I hit the space bar and everything disappeared ??????? Had to spend ages trying to get back again.
The 4 input to the ULN2003 and resultant output commands to the motor when I test them are:
pin 1 hi and pin 2 hi = 00110
pin 1 hi and pin 2 lo = 00101
pin 1 lo and pin 2 lo = 10001
pin 1 lo and pin 2 hi = 10010
As you can see the commands don't match. Can anyone see where I got crossed up ?
Never done this before. it took me ages to even work out how to post a new thread, hope I got it right now.
I can drive a 6 wire unipolar stepper in dual-phase mode with an 08M via a ULN2003 using 4 ouputs no problem. The code:
main:
b1 = 10 'pause
let dirs = %10111 'set pins 0,1,2,4 as outputs
let pins = %10001 'coils 0 and 4
pause b1
let pins = %00011 'coils 0 and 1
pause b1
let pins = %00110 'coils 1 and 2
pause b1
let pins = %10100 'coils 2 and 4
goto main
What I want to do is drive the motor with 2 pins as per the circuit on page 15 of manual 3
!!!!!!!!!!!!!!!!! I don't know what happened there I thought I hit the space bar and everything disappeared ??????? Had to spend ages trying to get back again.
The 4 input to the ULN2003 and resultant output commands to the motor when I test them are:
pin 1 hi and pin 2 hi = 00110
pin 1 hi and pin 2 lo = 00101
pin 1 lo and pin 2 lo = 10001
pin 1 lo and pin 2 hi = 10010
As you can see the commands don't match. Can anyone see where I got crossed up ?