I am trying to build a camera slider to timelapse my 3D printing.
Got it all set up to take a picture, when the print head parks after every layer.
What I want to do now, is to input the amount of layers in the 3D print say 320 using the keypad, then use that to alter the distance traveled by the stepper at each pulse so at the end of the print the slider is as the end.
so you have a way to detect when the head is parked, which is what triggers taking a picture ?
if your stepper starts at position 0 and needs to be at position endPos (in steps) at the end of the print, if you know there are layerCnt pictures to take then at layer number currentLayer you move the stepper to position currentLayer * endPos / layerCnt
Thanks all for your help, I am just getting into this type of programming am so old, I used to quite happily program BBC basic, could do anything, just a matter of getting used to it, I am getting there, just needed some pointers, thanks