I have a problem with a stepper motor.
I have tried it to work with a digital output port.
port. write( false)
I have problems and lost steps.
if I put the sleep to two milliseconds works fine but for me is too slow.
I’m using cerbuino bee.
I have test too with pwm and a frequency about 800 May be good,
but…, how can I count the number of steps?
the question is… how can I send, for instance, 45 steps with pwm? I never have used in the past pwm and I was not able to found documentation about it.
thanks in advance