The slider that I've built, works perfectly when it comes to moving from side to side, but I also want it to pan, or to maintain the position of the subject. I've seen other sliders that do this, but they use a rod to set the position of the camera, which is something that I don't want to do, I want to do it with the stepper.
Here are a couple of sliders that do this with a rod.
I have seen one that claims that it will maintain the position of the subject, but from what I've seen, it does not, after a couple of times up and down the slider, it loses it's position.
Here's a link to someone who used the Axis 360 with this problem
Jump to 7:38 on video to see the subject off center.
I will be using my laptop and the Arduino IDE as my interface.
The additional programing is for panning the camera. I have it going from side to side, but I also want the ability to pan, and if I have a subject in frame, I want the to be able to upload a sketch that keeps the subject in frame. (see last link on my post for example of subject in frame.)
Here's the code that I'm using for one stepper to move the camera from side to side, I need to add the other stepper to pan, and or to keep the subject in frame.
#include <AFMotor.h>
AF_Stepper motor(200, 1);
void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Stepper test!");
motor.setSpeed(50); // 30 rpm
}
void loop() {
motor.step(6900, FORWARD, INTERLEAVE);
motor.release();
delay(1000);
motor.step(6900, BACKWARD, INTERLEAVE);
motor.release();
delay(1000);
}
But there are some "special cases" when the complex mathematics is not needed.
If the object is exactly in front of the slider (slider axis is perpendicular to the direction to the object) - the decision how to capture the object is trivial.