I juste bought this little actuator (Actuonix PQ12-R Micro Linear Servo) from actuonix and didn't see someone who already used it with an arduino.
It says that it is compatible with an arduino board.
I have no idea how can I use it and I am calling for your help
They are used just like a regular hobby servo. You will need an external power supply for the servos. Arduinos just can't supply enough current for a servo (especially one under load) nor can they supply 6V. A 4 AA battery pack is a good choice for power. Connect the + of the battery to the + of the servo, the control line to an Arduino pin and the - (ground) of the battery to the - (ground) of the servo and Arduino ground.
The Servo library that is included with the Arduino IDE makes using servos easy.
/*
Try this test sketch with the Servo library to see how your
servo responds to different settings, type a position
(0 to 180) or if you type a number greater than 200 it will be
interpreted as microseconds(544 to 2400), in the top of serial
monitor and hit [ENTER], start at 90 (or 1472) and work your
way toward zero (544) 5 degrees (or 50 micros) at a time, then
toward 180 (2400).
*/
#include <Servo.h>
Servo servo;
void setup() {
// initialize serial:
Serial.begin(9600); // set serial monitor baud rate to match
// set serial monitor line ending to Newline
servo.write(90);
servo.attach(9);
prntIt();
}
void loop() {
// if there's any serial available, read it:
while (Serial.available() > 0) {
// look for the next valid integer in the incoming serial stream:
int pos = Serial.parseInt();
// look for the newline. That's the end of your sentence:
if (Serial.read() == '\n') {}
servo.write(pos);
prntIt();
}
}
void prntIt()
{
Serial.print(" degrees = ");
Serial.print(servo.read());
Serial.print("\t");
Serial.print("microseconds = ");
Serial.println(servo.readMicroseconds());
}