Camera Slider

Hello dear Makers.

I am on the process of making a camera slider based on Thomas Sanladerer's video (Build your own Arduino-controlled camera slider! - YouTube) but I've been encountering a feel issues along with it.

I'm modifying it for use on a Arduino Nano and a 5110 display.
The main problem now is that I can't manage to get the math right to sync the time and distance traveled. I've measured the numrums on a end to end travel and it's about 143000. If that helps.

Here's my current code: CameraSliderV3 - Pastebin.com

I've a 1.8ยบ stepper set to 1/16 stepping.

I tried changing the STEPSMM on line 57 to trial and error to match the set distance and time but without success. Can someone more mathematically initiated help a fellow maker?

I'm trying to get it working on a base level so I can expand upon, I removed about ~300 lines from the code that are for the LCD and calibration for the purpose of not confusing.

Here's the current project, later I'm going to code the camera panning, 3d mounts already done :slight_smile: http://i.imgur.com/hqBSraz.jpg

d distance traveled. I've measured the numrums on a end to end travel and it's about 143000. If that helps.

gustavohw:
The main problem now is that I can't manage to get the math right to sync the time and distance traveled. I've measured the numrums on a end to end travel and it's about 143000. If that helps.

Does 'numrums' count the total steps traveled? If so, knowing the length of travel in mm would allow you to calculate the steps per mm. Just divide 143000 by mm traveled.

Knowing how far you want to travel will tell you how many total steps to take. Multiply the distance in mm by the steps per mm.

Knowing how long you you want the motion to take will now tell you how many steps per second (or seconds per step). Just divide the total steps to take by the number of seconds.