I have read much of what is one here on the use of a stepper motor with an arduino board, but I am still not altogether sure whether it can allow me to achieve my purpose "reasonably easily". Before I get stuck in I wondered whether in principle I could achieve the following:
I'd like to be able to rotate a stepper using external software, which will also be recording several over instruments, by a given total number of steps.
The stepper should do it's thing, count each step or n steps I set and spit out the total counts to a register that my program, when required, can read. The stepper will keep working till the total number of steps are made and the register will of course just continue updating if it is isn't queried.
Would prefer if the number in the register is a number relative to some value I initialise it to, this is not critical at this stage, but would be handy.
If I change my mind and decide that the rotation I set is heading me towards disaster, I would like to be able to stop/interrupt the on going rotation.
The questions relating to the points above:
How quickly can I communicate and get information like a simple integer number of steps from the board? 10 times/sec, 1 time/second etc?
I read somewhere that every time you connect to board it runs your script from the start, this would mess up my initialisation, why is this setup that way and is there a way around this default?
I have already ordered a board but trying read as much and understand as much as possible before getting it, so don't have any code or definite questions yet but would appreciate answers to these points to get a sense of the scope available to me.