I have an Arduino Uno. I need to use an electric linear actuator to control the movement of a joint in which I have installed a rotary encoder to know in what angles it's moving.
The actuator is a 12 Volt DC and has only two wires to control it, no libraries or anything. I have a 'double relay' which I think is useful to make the actuator run in both directions, but I'm not sure if I'm going to fry it or not. I also need to connect the arduino and the actuator to batteries or an outlet and I really don't know how NOT to fry them and this is my real problem right now since I don't know what kind of power source to use.
The encoder is to prevent the actuator to move between some angles and to measure the rotation speed, and the movement of the actuator is supposed to be controlled by two buttons, one to go forward while is being pressed, and the other to move backwards.
To picture the design a little better, imagine a leg in which the actuator is in the thigh and it pushes the calf in order to move the leg. The encoder is located inside the knee joint.