I am a 71 year old just newly addicted to the arduino and with severe brain fade.
I have the hardware for a focusing rail, a CNC Z axis, which I can just about get to backwards and forwards with very simple coding.
What I would like to do is be able to control it via either a LCD shield with buttons or via the serial monitor, the latter being the easier for the moment I am thinking.
I am looking to be able to say fast forward and backwards to find the total distance I need to focus over. I would then like to be able to input that distance and the size of each step and have the Arduino work out the number of steps to do this.
Once this is done step forward, pause for a shutter release, repeat until the total distance has been travelled.
I would be most grateful if you could help out with the coding by either pointing be in the right direction or giving me a framework I could work from.
Thanking you in anticipation... Colin