Remote Control a Linear Actuator With Visuino & Arduino

by RonFrtek in Circuits > Arduino

285 Views, 1 Favorites, 0 Comments

Remote Control a Linear Actuator With Visuino & Arduino

Remote Control a Linear Actuator With Visuino & Arduino

Learn how to remotely control a 12V linear actuator using a 433MHz RF module, Arduino Uno, and Visuino! In this step-by-step tutorial, we’ll use an L298N motor driver to control the actuator’s movement with ease. Perfect for DIY automation projects.

If you press the top-right or the top-left button the actuator will move fully to one direction, If you press the bottom-right or the bottom-left button the actuator will move to one direction only for the time that you press the button.

Watch the video!

What You Will Need

FBT0SNVKTFSTS9D.jpg
FWQKKSTM2NBD8RX (1).jpg
l298n.jpg
arduino.jpg
VisuinoAdvrtisemenTexasInstruments-Release.jpg
power-supply1.png
F5OFEUQJJ4ZYFKY.LARGE.jpg
  1. Arduino UNO (Or any other Arduino)
  2. Linear Actuator
  3. LN298N DC Motor Driver
  4. 433 MHz RF module
  5. Jumper wires
  6. Power Supply
  7. Visuino program: Download Visuino


The Circuit

2025-03-17_18-13-08.png
  1. Connect Remote pin [VCC] to Arduino pin [5V]
  2. Connect Remote pin [GND] to Arduino pin [GND]
  3. Connect Remote pin [D0] to Arduino digital pin [4]


  1. Connect Power supply (batteries) pin (gnd) to motor driver controler pin (gnd)
  2. Connect Power supply (batteries) pin (+) to motor driver controler pin (+)
  3. Connect Power supply (batteries) pin (+) to Arduino pin (VIN)
  4. Connect GND from Arduino to motor driver controler pin (gnd)
  5. Connect digital pin(6) from Arduino to motor driver pin (IN1)
  6. Connect digital pin(8) from Arduino to motor driver pin (IN2)
  7. Connect Linear Actuator to the motor driver as you can see on the schematic


Start Visuino, and Select the Arduino UNO Board Type

select-board-uno.jpg
Visuino-Select-Board-UNO.jpg

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

In Visuino Add Components

2025-03-17_16-42-19.png
2025-03-17_16-44-54.png
2025-03-17_16-45-35.png
2025-03-17_16-47-18.png
2025-03-17_16-48-06.png
2025-03-17_16-49-06.png
2025-03-17_16-50-29.png
2025-03-17_16-51-16.png
  1. Add 4X "Debounce Button" component
  2. Add 2X "Digital Multi Source" component
  3. Add "Digital (Boolean) Inverter (Not)" component
  4. Add 3X "Digital Multi-Source Merger" component
  5. Add 2X "Toggle(T) Flip-Flop" component
  6. Add "Analog Value" component
  7. Add "Speed and Direction To Speed" component
  8. Add "Dual DC Motor Driver Digital and PWM Pins Bridge (L9110S, L298N)" component



In Visuino Set Components

2025-03-17_16-52-15.png
2025-03-17_17-25-16.png
2025-03-17_17-26-20.png
2025-03-17_17-27-21.png
  1. Select "MultiSource1" and in the properties window set "Output Pins" to 3
  2. Select "MultiSource2" and in the properties window set "Output Pins" to 3


  1. Select "DigitalMultiMerger1" and in the properties window set "Input Pins" to 3
  2. Select "DigitalMultiMerger2" and in the properties window set "Input Pins" to 3
  3. Select "AnalogValue1" and in the properties window set "Value" to 1
  4. Select "DualMotorDriver1" and in the properties window select "Motors" > "Item[ 0 ]" > "Enabled" and click on the pin Icon and select "Boolean SinkPin"

In Visuino Connect Components

2025-03-17_17-51-43.png
remote-actuator.png
  1. Connect "DualMotorDriver1" > [Motors.Item[0].Direction] pin [Out] to "Arduino" pin Digital pin [8]
  2. Connect "DualMotorDriver1" > [Motors.Item[0].Speed] pin [Out] to "Arduino" pin Digital > Analog PWM pin [6]
  3. Connect "SpeedAndDirectionToSpeed1" pin [Out] to "DualMotorDriver1" > [Motors.Item[0] pin [In]
  4. Connect "AnalogValue1" pin [Out] to "SpeedAndDirectionToSpeed1" pin [speed]
  5. Connect "DigitalMultiMerger2" pin [Out] to "SpeedAndDirectionToSpeed1" pin [Reverse]
  6. Connect "Arduino" digital pin [11] to "Button1" pin [In]
  7. Connect "Button1" pin [Out] to "MultiSource1" pin [In]
  8. Connect "Arduino" digital pin [12] to "Button2" pin [In]
  9. Connect "Button2" pin [Out] to "MultiSource2" pin [In]
  10. Connect "Arduino" digital pin [9] to "Button3" pin [In]
  11. Connect "Button3" pin [Out] to "TFlipFlop1" pin [Set] and "TFlipFlop2" pin [Set]
  12. Connect "Arduino" digital pin [10] to "Button4" pin [In]
  13. Connect "Button4" pin [Out] to "TFlipFlop1" pin [Set] and "TFlipFlop2" pin [Reset]
  14. Connect "MultiSource1" pin [0] to "DigitalMultiMerger3" pin [0]
  15. Connect "MultiSource1" pin [1] to "DigitalMultiMerger2" pin [0]
  16. Connect "MultiSource1" pin [2] to "DigitalMultiMerger1" pin [0]
  17. Connect "MultiSource2" pin [Pin[0]] to "DigitalMultiMerger3" pin [1]
  18. Connect "MultiSource2" pin [1] to "Inverter1" pin [In]
  19. Connect "MultiSource2" pin [2] to "DigitalMultiMerger1" pin [1]
  20. Connect "Inverter1" pin [Out] to "DigitalMultiMerger2" pin [1]
  21. Connect "DigitalMultiMerger1" pin [Out] to "DualMotorDriver1" > [Motors.Item[0] pin [Enabled]
  22. Connect "DigitalMultiMerger2" pin [Out] to "SpeedAndDirectionToSpeed1" pin [Reverse]
  23. Connect "DigitalMultiMerger3" pin [Out] to "TFlipFlop1" pin [Reset]
  24. Connect "TFlipFlop1" pin [Out] to "DigitalMultiMerger1" pin [2]
  25. Connect "TFlipFlop2" pin [Out] to "DigitalMultiMerger2" pin [2]

Generate, Compile, and Upload the Arduino Code

Visuino-Compile-UNO.jpg

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Play

If you power the Arduino module and press the buttons on the remote control the Linear Actuator will start to move.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this tutorial, you can download it here and open it in Visuino: https://www.visuino.eu