@background404/node-red-contrib-mcu-serial 0.2.0

Node to use serial communication with Node-RED MCU

npm install @background404/node-red-contrib-mcu-serial

node-red-contrib-mcu-serial

Node to use serial communication with Node-RED MCU

Overview

With this node, you can use Serial communication of MCU.
There are two nodes, Serial in and Serial out.
palette

How to use

  1. Build the environment for the Node-RED MCU plugin
  2. Install this node
    Add from the "Manage palette" in Node-RED or execute the following command.
cd <directory of where package.json is located>  
npm install <folder_path>  
  1. Add the path of manifest.json to node_types.json
    (This step may not be necessary because moddable_manifest has been added to the HTML file.
    If you have any problems, please report them to issue)
    node_types.json is located in the directory:
    ".node-red/node_modules/@ralphwetzel/node-red-mcu-plugin/node-red-mcu"
    On Raspberry Pi:
    node_types.json

  2. Try to build with the Node-RED MCU plugin.

Test case

On Raspberry Pi 400, Windows

  • Moddable Two & ESP32
  • TX: 17
  • RX: 16
  • Port: 2
  • Baud: 115200

and

  • TX: 32
  • RX: 33
  • Port: 1
  • Baud: 115200

node_edit

Wiring:
moddable_two
esp32

Sample flows are in the examples folder.
Flow on MCU:
flow_serial
Flow on Raspberry Pi:
flow_serial_pc
Support for multiple node and port.
flow_serial_multiple_port

Acknowledgements

Thanks to NW-Lab and mshioji for testing use of Serial with function node.

@NWLab:「Node-RED MCUでFunction Nodeを使ったSerial通信をやってみる」
https://qiita.com/NWLab/items/5360eff7b8e2685e925a

@mshioji:"Try Serial Communication with Function Node in Node-RED MCU"
https://qiita.com/mshioji/items/98f2ded0481ce3b5d775

In Japanese:「Node-RED MCU EditionでSerialを使う」
https://qiita.com/mshioji/items/a750a5d713ab4d54c4cf

Other Links

@ralphwetzel/node-red-mcu-plugin
https://flows.nodered.org/node/@ralphwetzel/node-red-mcu-plugin

@Moddable-OpenSource/moddable
https://github.com/Moddable-OpenSource/moddable

Node-RED User Group Japan:「ノードの開発」
https://nodered.jp/docs/creating-nodes/

@kazuhitoyokoi:「Node-REDのノードをつくる手順」
https://qiita.com/kazuhitoyokoi/items/64ed5b7798197bb6dfdf

my article:Creating a servo node that imports an external class
「Node-RED MCU用のノードを作成してみる その2(Servoノード)」
https://404background.com/program/node-create-2/

Node Info

Version: 0.2.0
Updated 8 months, 2 weeks ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

9 in the last week

Nodes

  • mcu_serial_in
  • mcu_serial_out

Keywords

  • node-red
  • node-red-mcu
  • moddable
  • Serial

Maintainers