Using a Linear Actuator

I am trying to program a linear actuator to work with an Arduino. Is it possible to program the linear actuator to stretch out and to retract in the code, and not have to have a joystick or any other source of input telling the actuator what to do?

Is it possible to program the linear actuator to stretch out and to retract in the code, and not have to have a joystick or any other source of input telling the actuator what to do?

Yes

Does the actuator behave like a servo ?

If so then look at the Servo sweep example in the IDE

I am trying to program a linear actuator to work with an Arduino. Does the sweep example on the resources page relate to having the actuator stretch out and then retract back to its original state?

Duplicate of Using a Linear Actuator - Programming Questions - Arduino Forum

Does the sweep example on the resources page relate to having the actuator stretch out and then retract back to its original state?

Please post this question in your other thread on the same subject

Does the sweep example on the resources page relate to having the actuator stretch out and then retract back to its original state?

Only for those actuators with a servo-like control board.

Can you supply more detail? Is it just out and back or do you need intermediate positions under the Arduino control?

Post a link to the product page or data sheet for the actuator.

This is the link to the website where I purchased the linear actuator. It is a Actuonix L16-R Miniature linear servos for Arduino

As the name says, the acutronix (pka Firgelli) -R models behave like servos.

So yes, the servo "sweep"code which swings the servo position between 0 and 180 degrees and back to 0, will extend and retract the actuator. Fully in will be 0 or 180, and fully out will be 180 or 0. (Although you may have to play with the actual numbers: maybe it will be from 10 to 170?)

Also look at writeMicroseconds() on the servo page for finer control.

@Ryan_Baluta, please do not cross-post. Threads merged.