Linear Actuator Long Range Wireless Control System using Arduino, NRF24L01, & Bluetooth

(Last Updated On: September 14, 2021)

Linear Actuator Wireless Control, Description:

Linear Actuator

With a linear actuator, you can make an automatic door opening and closing system, you can make a solar tracker, an automatic system for your dish antenna, TV stand, etc. There are thousands of projects in which you can use an Electric Linear Actuator.

Linear Actuator

In this tutorial, you will learn how to make a long range wireless remote control system for an electric linear actuator using Arduino, NRF24L01 RF Transceiver Module, HC-05 Bluetooth module, and an Android application designed in Android studio. The control commands are sent from the Android app to the Arduino Nano wirelessly using Bluetooth. Arduino processes the command and then sends it to the Arduino board on the Receiver side using the NRF24L01 RF transceiver module. The Arduino then controls the linear actuator. Our designed Android App can send three commands which are used to control the forward movement of the shaft, reverse movement of the shaft, and to stop the Linear Actuator. For the practical demonstration watch the video tutorial given at the end of this article.

Linear Actuator

Isn’t it amazing? You don’t need any extra hardware to keep with you all the time, you can just take out your cell phone and start controlling your Linear actuator which is installed within 1-kilometer range if you are using PA + LNA version of the NRF24L01 modules. Now, you have got the idea of what you are going to learn after reading this article.

Note: The yellow color ESCs are only used to provide 5 volts to the Arduino, you can use your laptop to power up the Arduino or you can use any other external 5v regulated power supply.

Without any further delay, let’s get started!!!

Amazon Links:

Linear Actuator

Arduino Nano


Bluetooth Module Hc-05:

12V SPDT Relay:

Other Tools and Components:

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

What is Linear Actuator and it’s working:

Linear Actuator

A Linear Actuator is an Actuator that creates motion in a straight line. We have both AC and DC types of Linear Actuators. The one you can see right now is the DC-type Linear Actuator. So, this is an electric Linear Actuator that converts DC electric Motor’s rotational motion into linear motion, which can be used for lifting, sliding, Dropping or tilting of machines or materials. Inside the Linear Actuator, the DC motor is provided with gears to reduce the speed and to increase the torque.

Working of Linear Actuator:

Linear Actuator

It has two wires and when connected with the desired voltage the shaft will start moving in the forward direction or in the reverse direction, let’s say it’s moving in the forward direction, now if you want to change the direction of movement all you need is to change the polarity and that’s it. Now, this is the simplest and manual way of controlling the Linear Actuator. For changing the polarity we will make our own H-bridge circuit, which I will explain later in this video.

Linear Actuator

The Linear actuators are also provided with limit switches which define the maximum and minimum endpoints. Some Linear actuators are designed in a way that the endpoints can be adjusted as per the requirement, like the one you can see on the screen. You can unscrew this part “the part that activates the limit switch” and change the position to set the lower and upper, or minimum and maximum endpoints.

The main advantage of setting the endpoints is that, when you power up the Linear Actuator, you don’t need to be worried, the limit switches will automatically turn off the motor when any of the two limit switches is activated. So, when the lower limit switch is activated the motor will stop and will stay on this position until the polarity is changed, and then the shaft starts moving in the forward or upward direction. The shaft will keep moving until the upper limit switch is activated. This way the movement of the shaft can be precisely controlled between two points.

The type of electric Linear Actuator I am using needs 24V DC, but for demonstration purposes, I am using an 11.1V Lipo Battery, and this is why the shaft moves slowly. Now, let’s take a look at the transmitter and receiver circuit diagrams.

Transmitter Circuit Diagram:

Linear Actuator

On the transmitter side, we have a Bluetooth module HC-05, Arduino Nano, and NRF24L01 transceiver module. The 5v and GND pins of the Bluetooth module are connected with the 5v and GND pins of the Arduino. The RX and TX pins of the Bluetooth module are connected with the Arduino pins 2 and 3.

A decoupling capacitor of 10uf is connected with the VCC and GND pins of the NRF24L01 module. The VCC and GND pins are connected with the Arduino’s 3.3V and GND pins. CE is connected with Pin9, CSN is connected with Pin10, SCK is connected with 13, MOSI is connected with Pin11, and the MISO pin is connected with Pin12 of the Arduino. Now, let’s take a look at the receiver side circuit diagram.

Receiver Circuit Diagram:

Linear Actuator

The NRF24L01 connection with the Arduino remains exactly the same. The circuit on the left side is basically an H-bridge circuit that is used to control the forward and reverse movement of the Linear Actuator. This H-bridge circuit changes the polarity of the voltage supplied to the motor. The two relays are controlled using Arduino pins 2 and 3. If you want to know in detail about the working of the H-bridge circuit then read my article on “Relay H-bridge Driver circuit and simulation with calculations”.

Linear Actuator

These are the development boards I designed for testing my NRF24L01 based projects, these are the same development boards I have been using in my previous projects.

Download Gerber Files:

Linear Actuator

This is the H-bridge module designed as per the circuit diagram.

Download H-bridge Gerber Files:

Android App Designing:

You will need an android app to control this Linear Actuator. In my previous article, I have already explained how to design your own Bluetooth-supported Android App using Android studio. This tutorial will help you in designing cool android apps for your Arduino projects.

Transmitter Programming:

The transmitter and receiver side programming I have already explained in my previous tutorial based on the Wireless Sensor network, which I highly recommend you should read, because I have explained the most basics things, including how to create different nodes. For this project, I made a few changes.

I added the SoftwareSerial.h header file, which I used for creating another serial port on pins 3 and 2 of the Arduino Nano.

Inside the setup() function, I activated the Bluetooth module.

Inside the loop() function, I added code for the Bluetooth module. If no data is received from the Bluetooth module then simply run this block of code and if the data is received from the Bluetooth module then store the received value in variable Bdata and finally, this value is stored in the array data at the location 0 and is sent to the node00.

Receiver Programming:

On the receiver side, I defined two pins for the H-bridge module. Next, I defined two flags to stop the unnecessary repetition of code. The rest of the code remains exactly the same except for these if conditions. If the value of 23 is received from the transmitter then stop the Linear Actuator, if a value of 34 is received then move the Linear actuator in forward direction, and if a value of 66 is received from the transmitter then move the Linear actuator in the reverse direction. So, that’s all about the programming.

I successfully tested this project, due to the flags used, when the forward button is pressed it will start moving in the forward direction, and when the stop button is pressed the motor is stopped, now if you again press the forward button, it won’t work until you press the reverse button to change the flag, the same happens when you press the reverse button, if this annoys you then you can simply delete the flags.

For the practical demonstration watch the video tutorial, given below.

Watch Video Tutorial:


Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

1 Comment

Leave a Reply

%d bloggers like this: