https://github.com/404background/node-red-contrib-mcu-serial
Node to use serial communication with Node-RED MCU
https://github.com/404background/node-red-contrib-mcu-serial
Last synced: 5 months ago
JSON representation
Node to use serial communication with Node-RED MCU
- Host: GitHub
- URL: https://github.com/404background/node-red-contrib-mcu-serial
- Owner: 404background
- License: mit
- Created: 2024-03-20T23:32:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T08:00:00.000Z (about 2 years ago)
- Last Synced: 2025-12-14T00:49:13.677Z (7 months ago)
- Language: HTML
- Size: 2.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.

## How to use
0. Build the environment for the Node-RED MCU plugin
1. Install this node
Add from the "Manage palette" in Node-RED or execute the following command.
```
cd
npm install
```
2. 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:

3. 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

Wiring:


Sample flows are in the examples folder.
Flow on MCU:

Flow on Raspberry Pi:

Support for multiple node and port.

## Acknowledgements
Thanks to [NW-Lab](https://github.com/NW-Lab) and [mshioji](https://github.com/mshioji) for testing use of Serial with function node.
[@NWLab](https://qiita.com/NWLab):「Node-RED MCUでFunction Nodeを使ったSerial通信をやってみる」
[@mshioji](https://qiita.com/mshioji):"Try Serial Communication with Function Node in Node-RED MCU"
In Japanese:「Node-RED MCU EditionでSerialを使う」
## Other Links
@ralphwetzel/node-red-mcu-plugin
@Moddable-OpenSource/moddable
Node-RED User Group Japan:「ノードの開発」
[@kazuhitoyokoi](https://qiita.com/kazuhitoyokoi):「Node-REDのノードをつくる手順」
my article:Creating a servo node that imports an external class
「Node-RED MCU用のノードを作成してみる その2(Servoノード)」