Stepper Motor Positioning using a joystick

Hi
I would like to drive a model with two stepper motors, however I do not need a full 360 deg revolution. The best example I can think of is a PTZ Camera where, with a joystick you can move a camera up and down, side to side. I have such a base but with no control. So given some idea's on one unit I can make another and hopefully tie them up with a joystick.

In an ideal situation I would need about 0 to 270deg in one and 0 to 100deg in the other. I believe that there are sketches available to control speed and direction but not positioning.

Thanks for any help members may offer.

Jim

The camera gives you VISUAL feedback. What feedback can your model give?
Paul

Hi

I did mention a PTZ camera as an example but the model is in fact a skull and like an animatronic project it may well end up with a camera

but I would like to get it moving first. So I have a frame with two steppers one which will turn the skull and the other make it tilt. Internally

I have a servo for the jaw and LEDs for the eyes. But thank you for your prompt reply.

Jim

And the feedback?
Paul

That's correct. You can control the speed and direction of a servo motor but not its position. What you need is a servo motor. A servo motor contains a sensor which tells the motor is current position, so when it receives a command to move to a new position, it knows how far and which direction to move. A stepper motor has no such sensor. If using a stepper motor, you can add a sensor of some kind to your circuit and program the Arduino to receive position feedback from the sensor and calculate the direction and angle to move when required. But it would have been much easier to have researched the different types of motors and their capabilities before you spent your pocket money!

Have a look here, This may give you some idea. DIY Camera slider
The guy explains in detail all about it.
https://curiousscientist.tech/blog/arduino-based-diy-camera-slider

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.