Linear Actuator Wiring Guide: Switch, Relay, Control Box and Arduino
A DC linear actuator has two motor wires. Connect + and − to extend it, and reverse the polarity to retract it. This guide shows the four common ways to wire a Purlin 24VDC linear actuator, from a simple switch to a microcontroller.
How a DC linear actuator is wired
Inside the actuator is a DC motor with inbuilt limit switches. Power on the two motor wires one way extends the rod; swapping them retracts it. At each end of the stroke the limit switch cuts the power, so the actuator stops by itself. Always check the wire colours on the datasheet for your model.
Method 1: DPDT rocker or toggle switch
The simplest manual control. A DPDT (double-pole, double-throw) momentary switch swaps the polarity.
- Connect the 24VDC supply + and − to the two centre terminals of the switch.
- Connect the actuator wires to one outer pair of terminals.
- Cross-link the outer pairs: top-left to bottom-right and top-right to bottom-left.
- Press one way to extend and the other way to retract. Centre position = stop.
Use a switch rated above the actuator's full-load current.
Method 2: Two relays (for PLCs and timers)
Two SPDT relays form a simple H-bridge. Relay A switches + to wire 1 and relay B switches + to wire 2; the normally-closed contacts connect each wire to −. Energise relay A to extend and relay B to retract. Never energise both at once. A PLC with two outputs can drive the relays directly.
Method 3: Purlin control box and hand control
The easiest and safest option for beds, desks and furniture. The control box takes mains power, includes the 24VDC supply and drives 2 to 6 actuators, with a hand control or remote. Multi-channel boxes keep several actuators moving together; see how to synchronise actuators.
Method 4: Arduino or microcontroller with a motor driver
A microcontroller cannot drive the motor directly. Use an H-bridge motor driver rated for 24V and above the actuator's current (for example a BTS7960-type module).
- Driver motor outputs → actuator wires.
- Driver power input → 24VDC supply.
- Two PWM pins → driver direction/PWM inputs; join the grounds.
- PWM duty sets the speed; the inbuilt limit switches still stop the ends.
Fuses, cables and power supply
- Fit a fuse in the + line rated about 1.25 times the full-load current.
- Use thicker cable for long runs to avoid voltage drop at full load.
- Choose a 24VDC power supply that can give the full-load current of all actuators running together.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| Actuator moves only one way | It is at a limit switch, or one switch contact is open | Reverse the polarity; check the switch wiring |
| Hums but does not move | Load too high or supply too weak | Check the force with the force calculator; use a bigger supply |
| Stops after a few cycles | Thermal protection after exceeding the duty cycle | Let it cool; respect the 10% duty cycle |
| Fuse blows | Short circuit in the cable or wrong relay wiring | Check the cables and relay contacts against the diagram |
Frequently asked questions
How do I reverse a linear actuator?
Swap the polarity of the two motor wires. A DPDT switch, two relays, an H-bridge driver or a control box does this for you.
Do I need limit switches?
Purlin actuators have inbuilt limit switches that stop the motor at each end of the stroke, so you do not need to add external ones for end stops.
Can I connect a linear actuator directly to an Arduino?
No. Use an H-bridge motor driver rated for 24V and the actuator's current. The Arduino sends PWM and direction signals to the driver.
What size power supply do I need?
A 24VDC supply rated for the full-load current of every actuator that can run at the same time, plus about 20% margin.
Need help choosing a linear actuator?
Send your load (N), speed (mm/sec), stroke length (mm), voltage and application. Our Bengaluru team will recommend the right model and send a quotation.
Request a quotation