Node-RED is a visual programming tool. Visually displays relationships and functions, and allows the user to program without having to write a line of code. Node-RED is a browser-based flow editor where you can add or remove nodes and connect them to each other in order to make them communicate with each other. It is an emerging, free and very attractive platform to integrate all kinds of radio room accessories.
This site does not pretend to explain or clarify all the possibilities that Node-Red offers, without a doubt that you will find on the Internet all kinds of information about what Node-Red is and can be done. Here we are going to see how you can control your motor control system (ARS-USB) or Stacks/Antennas controller (RemoteBox) from this platform so that it is a very interesting alternative for controlling motors and antennas.
To simplify Node-Red access to ARS-USB, we are going to use the ser2net service. This ser2net program acts as a router from serial port to TCP/IP then from Node-Red instead of using the serial port, a TCP/IP connection will be used.
Note: There is an advanced version of ser2net called ser2net+ that allows several simultaneous TCP / IP connections to the same serial port, with which we can have, for example, the ARSVCOM and Node-Red accessing the same ARS-USB
This diagram shows the diagram of the complete solution. It consists of the following modules:
- Ser2Net: module that listens on a TCP/IP port and routes traffic to the serial port of each device (ARS-USB, RemoteBox or StackMain). Node-Red accesses this service to access the equipment to be controlled.
- Node-Red: Visual flow programming platform that will allow controlling any of the equipment: ARS-USB, RemoteBox, StackMain.
- EA4TX Flow: Demo flow for Node-Red, which controls any of the equipment designed by EA4TX (RemoteBox, ARS-USB, …) and provides a graphical interface for motor control.
The solution offers 2 interfaces:
- Browser: On the one hand, Node-Red (EA4TX Flow) provides a graphical interface via WEB, with which any mobile device, tablet or computer can interact and manage the antenna rotator
- Native TCP/IP: so that the ARSVCOM program that is included with the ARS-USB, can coexist and interact with the ARS-USB rotator controller.
The ideal hardware platform to manage the equipment (ARS-USB, RemoteBox, …) is undoubtedly the Raspberry Pi (aka RsPi) due to its reliability, low consumption – with which we do not worry about leaving it on 24 hours – and at its interesting price.
Since an RsPi has 4 USB ports, we can have up to 4 different computers connected by Raspberry Pi.
In a few simple steps, we are going to implement this solution, it will not be necessary to have great computer knowledge although you can always request a Raspberry Pi or the image with Node-Red and everything already installed in our store.
1.- Ser2Net service installation
The ser2net service can be installed using the command:
2.- Node-Red Installation
Although Node-Red can work on any platform (Linux, Windows, Mac OSX), here we are going to limit its operation with a Raspberry Pi.
To install Node-Red, without a doubt, it is best to go to the official source:
https://nodered.org/docs/getting-started/raspberrypi
And once installed, you can access your Raspberry Pi through the browser:
Note: replace <hostname> with the IP of your Raspberry Pi

3.- Import "EA4TX Flows"
To familiarize yourself at first with Node-Red, it is best to read some tutorial on the internet or watch a video, specifically to become familiar with the environment and its interface, to know what a node is, how to edit nodes, how they connect with each other and above all , load or import a Flow, since this is where you will have to go to be able to import the Flow from the ARS.
To import the Flow file for the ARS control you must go to the upper right and indicate Import

Select the file to import and import it over a new flow.

In this case, the import has added 2 Flows or flows:
- EA4TX ARS Rotor: for rotor management
- RemoteBox: for RemoteBox (Antennas) management
The flows group nodes that can be interconnected with each other and that will allow to represent graphically the position of the motor and Presets or Memories to be able to use. In the case of the ARS-USB flow, nodes are grouped that correspond to Memories buttons, buttons for turning left, right and Stop and the display of the motor position. Also included is the subflow to access the ARS-USB and which is visible as one more node.
In addition, 2 subflows have been incorporated:
- EA4TX Rotor Node
- RemoteBox Node
Sub-flows are a set of nodes that operate as a library. The EA4TX Rotor Node subflow manages everything related to motor control, while the RemoteBox Node subflow handles everything related to the RemoteBox (antenna controller).
Thus, for example, when one of these subflows is incorporated into a Flow, it is represented as one more node; This subflow has 2 properties that are:
- IP of the equipment (for example if it is on the same machine 127.0.0.1)
- Port: Port that it is listening on. This parameter, for example, corresponds to the port defined in the ser2net service for that device.

On the other hand, each sub-flow includes a command input, and an output for its responses.

The input of this subflow is used to send orders to the ARS-USB, for example to turn to a Preset and the output returns responses, for example the position of the rotator.
Finally, we are going to explain the operation of the EA4TX ARS Rotor flow.
To explain this flow, we start with the subflow made by the interface with the ARS-USB. From 1 let us choose the position of the rotator that is sent to node 2 where it is processed. This node at its output delivers the result to:
- 3 where the triangle of the radiation lobe of +/- 10º is calculated from the position the motor is pointing at and it is sent to node 5 where it is painted together with the orthogonal map
- 4 to be displayed in a frame
If the user clicks on the map (SVG Graphics Node), those coordinates are passed to 6 where the angle is calculated and which in value is forwarded to other 2 nodes:
- On the one hand, the order is generated to send the command to turn to that Preset, a flow that passes through 8
- This heading is passed to node 7 to calculate the radiation lobe triangle of the calculated preset value.
On the other hand, the 8 Memories buttons, as well as the Turn Left/Right and STOP buttons deliver their values to the send subflow to the ARS at input point 9
And the aspect of the complete flow for the control of the ARS, is the following:
