An open API service indexing awesome lists of open source software.

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

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.
![palette](./image/palette.png)

## 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:
![node_types.json](./image/node_types.json.png)

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

![node_edit](./image/node_edit.png)

Wiring:
![moddable_two](./image/sample_moddable_two.jpg)
![esp32](./image/sample_esp32.jpg)

Sample flows are in the examples folder.
Flow on MCU:
![flow_serial](./image/flow_serial.png)
Flow on Raspberry Pi:
![flow_serial_pc](./image/flow_serial_pc.png)
Support for multiple node and port.
![flow_serial_multiple_port](./image/flow_serial_multiple_port.jpg)

## 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ノード)」