Well, I tried!
In fact I don't have to double up the delay - it's 130x125, so I just alter the values.
Making the delay shorter (5x5) results in no movement from the motor at all - but I expected that would be too fast...
Making the delay longer (250x250) results in slower movement, but with the same low torque. It's just as if the L293D is only sending one pulse to the coil, rather than holding the coil on until the next change occurs. Surely if you:
MOVLW HSTEP1 ;(hstep1 is FF, for example)
MOVWF PORTB
this should leave all PORTB pins high until PORTB is changed? Or perhaps the L293D only sends one pulse to the motor, and I need to increase the current or duration on this in some way?




Bookmarks