npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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

v0.2.0

Published

Node to use serial communication with Node-RED MCU

Downloads

36

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

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/