Dear all, I'm trying to figure out the following. I'm driving 2 steppermotors each one has a driver. The driver is pretty nice! I can control it with a pulse and a direction. That's it, so the normal arduino stepper library is useless for me at the moment.
I'm not what you call, a programming hero, but I've got it to work. What I do is to create a pulse with changing the state of a pin with the digitalWrite command with a few microseconds of delay in between.
But to the arduino there are a few more thing connected. 2 steppers, 4 servo's, a compass, a external clock and some switches.
I'm not having problems at the moment, but I'm already expecting some because I create a pulse fromout the mainloop. Also because I read somewhere that changing the state with digitalWrite can not be faster than 5ms. Which is a bit slow if i want to use the drivers microsteps.
My question is; is there a library or a piece of code which will work from outside the mainloop? I think it's called 'interupt-driven', but I'm not familiar with it.
Thanks in advance, Rob.
PS the drivers are really nice, you can take a look here, mine is the M415C http://stappenmotor.nl/Steppermotor/Microstepdrivers/Stepmotordrivers%20global.htm