QEC-M-02 Tips banner

[Technical Tips] Start Guide for QEC-M-02 MQTT Communication to Node-RED UI with 86EVA

In modern industrial automation and Industrial IoT environments, remote monitoring and control of devices have become increasingly important. Engineers often need an efficient way to collect device data, monitor system status, and control equipment through network-based platforms.

QEC-M-02 MQTT tips

In this start guide, we demonstrate how to use the QEC-M-02 together with the QEC-R11MP3S-N to communicate with an MQTT broker and visualize device data through a Node-RED dashboard.


Advantages of the Start Guides

  • Complete environment setup
    Instructions for installing the required tools, including the 86Duino IDE, MQTT broker, and Node-RED.
  • Example programs
    Sample code demonstrating MQTT communication, motor control, digital I/O control, and device monitoring.
  • Node-RED dashboard integration
    A ready-to-use Node-RED UI dashboard for visualizing device data through a web interface.
  • Troubleshooting
    Common issues and solutions to help users quickly resolve development problems.

Start Using QEC-M-02 with MQTT and Node-RED UI

Before using the example programs and dashboard flow, please make sure Mosquitto and Node-RED have been installed correctly. If the environment is not ready yet, you can continue reading the following sections of this page for the setup instructions.

Click the links below to explore the available guides:


How to install Mosquitto Broker

This section describes the steps required to install the Mosquitto MQTT broker on Windows 11.

The broker provides the messaging service required for MQTT communication between devices, Node-RED, and other MQTT clients.

If MQTT broker is already installed and running in your environment, this section may be skipped.

Step 1: Download Mosquitto

Download Mosquitto from https://mosquitto.org/download/

QEC-M-02 MQTT1

Step 2: Run Mosquitto install

Run the installer and follow the installation wizard.

The default installation path is usually: C:\Program Files\mosquitto

QEC-M-02 MQTT2

Step 3: Start Mosquitto Broker

Open Command Prompt as an administrator and run: cd “C:\Program Files\mosquitto”

QEC-M-02 MQTT3

When the terminal is in the Mosquitto directory, run: mosquitto -v

If you see the following output in the terminal, Mosquitto has started successfully.

QEC-M-02 MQTT4

Step 4: Start Node-RED

Open Command Prompt and run: node-red

QEC-M-02 NR5When Node-RED starts successfully, you will see a page like the one below.

You should see: Server now running at http://127.0.0.1:1880/

QEC-M-02 NR6

Step 5: Open Node-RED Editor

Open your browser and go to: http://127.0.0.1:1880/ The Node-RED editor interface will appear.

QEC-M-02 NR7

Step 6: Install Nodes in Node-RED

After successfully opening the Node-RED Editor in your browser, you need to install the MQTT and Dashboard packages.

1.Click the Menu (☰) in the top-right corner of the Node-RED Editor, and select Manage palette.

QEC-M-02 NR9

2.Go to the Install tab, and Search for: mqtt

QEC-M-02 NR11

3.Find the package node-red-iot-mqtt-api and click Install.

QEC-M-02 NR15

4.After installing the MQTT package, if you want to use the Node-RED UI, you need to install the Dashboard and UI packages.

QEC-M-02 NR13

Step7: Import Node-RED Flow (JSON)

When you have a Node-RED UI flow JSON file (such as a sample flow generated by AI), you can import it into Node-RED by following the steps below.

1.Open the Node-RED editor in your browser.

QEC-M-02 NR7

2.Click the menu button (☰) in the top-right corner and Select Import from the menu.

QEC-M-02 NR163.Paste the JSON flow content into the import window or upload the JSON file.

QEC-M-02 NR17

4.Click Import to add the flow to your workspace.

QEC-M-02 NR185.Click Deploy to apply the changes.

QEC-M-02 NR19

6.Once deployed, the dashboard will be available at http://127.0.0.1:1880/ui.

QEC-M-02 NR20


QEC-M-02

Featured Products QEC-M-02:

  • ライブラリ対応のC/C++プログラミング用86Duino IDEを内蔵
  • リアルタイムEtherCAT MDevice通信専用のコア
  • グラフィカルライブラリに対応したHDMIディスプレイ(1280×720×256)
  • 16チャンネルの絶縁型デジタル入力および16チャンネルの絶縁型デジタル出力
  • 動作温度:-20°C ~ +70°C(オプション:-40°C ~ +85°C)
  • EtherCAT、ギガLAN、USB、COM、HDMI、ロータリースイッチ、およびRUN/STOPスイッチに対応

QEC-RXXMP3S

Featured Products QEC-RXXMP3S:

  • CiA402とGコードによるドライブプロファイルのサポート
  • 3ステッピングモーター(2相バイポーラステッピングモーター)
  • Drive current up to 4.5A, peak 5.0A (Adjustable by Switch)
  • エンコーダインターフェース(A、B、Z)、ディファレンシャル
  • モーターが動いていないときの自動電流削減
  • 内部監視ハードウェア情報
  • EtherCATコンフォーマンステストツールを検証
  • 動作温度 -20~+70 °C

For more information or to request a sample, please email us at info@icop.com.tw, contact your nearest ICOP Branches, or get in touch with our Worldwide Official Distributor.

お買い物カゴ
上部へスクロール