This Arduino Linear Actuator Tutorial shows how to do basic control of a large linear actuator using an Arduino and two buttons with each button preset to a position.
Large linear actuators traditionally have five wires. Two wires are for powering the motor and three wires go the internal potentiometer for reading position. The two relays are used to toggle the positive and negative power to the motor in order to determine the direction of piston travel. The analog potentiometer is wired to one of the analog inputs on the sensor shield for reading the current position. When a button is pressed the code reads the current position, then determines which direction to drive the piston to reach the goal position. Once the goal position is reached it shuts off the power to the motor.
Other Recommended Arduino Linear Actuator Tutorials:
- Preset Position Button Control of a Large Linear Actuator
- Manual Button Control of a Large Linear Actuator
- Button Control of a Small Linear Actuator
- Incremental Joystick for Small Linear Actuator
- Direct Analog Control of Small Linear Actuator
Project Parts List:
|Device||Sensor Shield Port|
|RobotGeek Pushbutton 1||Digital Pin 2|
|RobotGeek Pushbutton 2||Digital Pin 4|
|RobotGeek Relay 1||Digital Pin 7|
|RobotGeek Relay 2||Digital Pin 8|
|Linear Actuator Potentiometer||Analog 0|