# Node-red-mcu-plugin v1.0: Integrating Node-RED MCU Edition into the Node-RED editor

**URL:** <https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693>\
**Category:** Share Your Projects\
**Created:** [25 December 2022 19:56 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693 "2022-12-25T19:56:53Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [16 February 2023 20:18 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/141 "2023-02-16T20:18:50Z")

</div>

Do you get the GPI node from one of the plugins? If so, which one? There are a few.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 February 2023 20:21 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/142 "2023-02-16T20:21:23Z")

</div>

It is one of the core nodes, I think.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 February 2023 20:22 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/143 "2023-02-16T20:22:46Z")

</div>

Ah, no, it is one of the Rpi nodes.

**[Edit]** Which makes me wonder myself how I come to have it on my Ubuntu machine.

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [16 February 2023 20:29 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/144 "2023-02-16T20:29:02Z")

</div>

LOL, now you understand my confusion.

I think I found the node npm install node-red-node-pi-gpio

edit: Now I am thinking that node will not work. I am getting a "rpi-gpio : Raspberry Pi specific node set inactive"

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 February 2023 20:38 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/146 "2023-02-16T20:38:45Z")

</div>

> [@jmorris644](#):
>
> I am getting a "rpi-gpio : Raspberry Pi specific node set inactive"

It won't work if you put it in a normal flow, but it does work in an mcu flow, as that doesn't run on your computer, but on the device it is connected to,

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [16 February 2023 22:10 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/147 "2023-02-16T22:10:36Z")

</div>

@BartButenaers

As I told you:

> [@ralphwetzel](#):
>
> We'll make it fly ... 😉

Here's the procedure:

- Prepare the WT32 for flash (connect IO0 to GND)

- Choose Build Target `build`, press **Build** button: ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/530a86f5a915dc8c28280757c28a12acfc7729cc.png)

- Choose Build Target `deploy`, press **Build** button: ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/033a74d20385d40956bf627fbf6645b7d070f462.png)

- Disconnect IO0

- Choose Build Target `xsbug`, press **Build** button: ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/b/6b67afb1ca8d822ff6041fdf0313d459b8d85837.png)  
(Alternatively, choose `Reconnect to xsbug` from the Build button down-arrow-menu)

- Disconnect Power Pin @ WT32

- Reconnect Power @ WT32

- Enjoy! 😄

There's one issue though: Build Target `xsbug` fails with Debug Target `console` (and thus in your setup!) ... most probably due to an error in the make script. This needs a bit of further investigation...

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [17 February 2023 21:27 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/148 "2023-02-17T21:27:33Z")

</div>

> [@ralphwetzel](#):
>
> Here's the procedure:

Faster than my shadow 😉

1. The build phase seems ok to me:

2. The deploy phase also seems ok to me:

3. I got the impression that every time after 2, I get this error:

4. The xsbug step - after disconnecting IO0 - always seem to fail for me:

5. The same log lines occur when I choose "Reconnect to xsbug".

6. When I reconnect the power again my wt32-eth01 I see nothing happing in my Debug panel.

Is that the same issue that you are referrring to? But is that a real show stopper, or did you expect something to see in my Debug panel? Or perhaps I forgot to install something...

I think my flow is correct:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/c/3c15d7957d43236040451b71be89065ea676bb0c.png)

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [17 February 2023 22:15 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/149 "2023-02-17T22:15:51Z")

</div>

> [@BartButenaers](#):
>
> I got the impression that every time after 2, I get this error:

Same happened to me. Guess that's a peculiarity of the wt32 board...

> [@BartButenaers](#):
>
> The xsbug step - after disconnecting IO0 - always seem to fail for me:

It does as well for me. There's something strange happening (platform Linux, build target xsbug, debug target xsbug-log) ... and it's not related to the plugin. I propose you report an issue @ the Moddable repository.

> [@BartButenaers](#):
>
> But is that a real show stopper

It is. To start the debug data transmission of the MCU, a connection to (a type of) xsbug currently is still mandatory.

> [@BartButenaers](#):
>
> I think my flow is correct:

Your flow is perfect for an initial test...

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [18 February 2023 09:04 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/150 "2023-02-18T09:04:55Z")

</div>

> [@ralphwetzel](#):
>
> I propose you report an issue @ the Moddable repository.

I have created a [ticket](https://github.com/Moddable-OpenSource/moddable/issues/1038). Hopefully they can figure out what is going wrong. Have a nice weekend!

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [23 February 2023 20:07 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/151 "2023-02-23T20:07:12Z")

</div>

> [@BartButenaers](#):
>
> I have created a [ticket](https://github.com/Moddable-OpenSource/moddable/issues/1038). Hopefully they can figure out what is going wrong. Have a nice weekend!

Hi @ralphwetzel,

Andy did one attempt to fix my issue, and it was immediately jackpot. Very impressive...

My first flow is now running on my wt32-eth01:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/6/66614d5c9fb57cacf948afbc3017eb3fb6f6805b.png)

Although it is a ridiculous useless flow, this will be most probably one of my Node-RED highlights of 2023 already. This is so cool 🥳 🎉 🍾

Now I need to find some time to test the sensors that Andy implemented for me...

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [23 February 2023 20:46 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/152 "2023-02-23T20:46:33Z")

</div>

I'm really happy to see that flow running on your board... 👍

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [24 February 2023 16:54 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/153 "2023-02-24T16:54:29Z")

</div>

LOL, I had the exact same ridiculous flow to start with. Then I added a MQTT Send node. Not much better but it worked like a charm!!

---

<div class="post-metadata">

**Author:** ![jmorris644](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jmorris644/32/31964_2.png) [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Post date:** [28 February 2023 15:13 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/154 "2023-02-28T15:13:45Z")

</div>

I have not had time to get back to this. But my interest is still peaked. It has been pretty quiet overall. Is there another communication area that has some activity that I can lurk on?

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [28 February 2023 19:40 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/155 "2023-02-28T19:40:34Z")

</div>

> [@jmorris644](#):
>
> Is there another communication area that has some activity that I can lurk on?

The community around Moddable is growing. You can find some very interesting [discussions](https://github.com/Moddable-OpenSource/moddable/discussions) on their Github repository. And more specifically around their Node-RED integration (i.e. node-red-mcu), you can find the [discussions](https://github.com/phoddie/node-red-mcu/discussions) here.

> [@jmorris644](#):
>
> It has been pretty quiet overall

Keep in mind that most of us have a daily job, familly, other Node-RED contributions, and so on...

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 March 2023 16:14 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/156 "2023-03-01T16:14:07Z")

</div>

I have this simple flow functioning in a Wemos D1 Mini. It regularly gets the current temperature from one or more DS18B20 sensors and publishes them individually to topics which include the device ID. It requires node-red-contrib-ds18b20-sensor to be installed. A nice feature is that if you want a number of them, in different rooms for example, they can all be identical as the topic includes the sensor id. They do not need to be individually programmed.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c090f1f963dfdf6e43fbe3882782eaf78a5269c3.png)

Basically it works perfectly, except that I am falling over [this issue](https://github.com/phoddie/node-red-mcu/issues/93) (it is a node-red-mcu issue rather than the plugin) which causes the sensor node to fail dependent on what should be trivial details of the flow.

```auto
[{"id":"ca71fe5f83dd3ed0","type":"tab","label":"mcu test","disabled":false,"info":"","env":[]},{"id":"daf71fd6976e6abe","type":"mqtt out","z":"ca71fe5f83dd3ed0","name":"","topic":"","qos":"0","retain":"false","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"75fb29423f8a0770","x":690,"y":260,"wires":[]},{"id":"e8104385c3f36513","type":"debug","z":"ca71fe5f83dd3ed0","name":"debug 86","active":true,"tosidebar":false,"console":true,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":510,"y":60,"wires":[]},{"id":"5da2de6f6e27f039","type":"inject","z":"ca71fe5f83dd3ed0","name":"Measure","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":true,"onceDelay":"3","topic":"","payload":"","payloadType":"date","x":100,"y":260,"wires":[["36501d946e21bc46","e8104385c3f36513"]]},{"id":"36501d946e21bc46","type":"rpi-ds18b20","z":"ca71fe5f83dd3ed0","topic":"","array":false,"name":"","x":270,"y":260,"wires":[["28589ba6de2421c5","e8104385c3f36513"]]},{"id":"28589ba6de2421c5","type":"function","z":"ca71fe5f83dd3ed0","name":"Extract id and temperature","func":"if (msg.payload.id && msg.payload.id.length > 0) {\n msg.topic = `tydwr/ds18b20/${msg.payload.id}`\n msg.payload = msg.payload.temp\n return msg\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":260,"wires":[["daf71fd6976e6abe"]]},{"id":"75fb29423f8a0770","type":"mqtt-broker","name":"Owl2 for mcu","broker":"192.168.49.83","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]

```

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [2 March 2023 06:09 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/157 "2023-03-02T06:09:57Z")

</div>

> [@Colin](#):
>
> It requires node-red-contrib-ds18b20-sensor

Hi @Colin,  
I am a bit confused right now. I thought that if you would like to read data from a ds18b20 sensor, that the people from Moddable need to implement it. And that you need to use their Sensor class.

But do you mean that you do it on the mcu using that node? Thanks for clarifying it!

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [2 March 2023 07:24 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/158 "2023-03-02T07:24:43Z")

</div>

For a small number of contributed nodes - like `rpi-ds18b20` - there're shims available, node-red-mcu targeted implementations that are used (transparently) when building the flow for the mcu.

A list of all implementations available in the node-red-mcu core is maintained in its [documentation](https://github.com/phoddie/node-red-mcu/blob/main/readme.md#nodes).

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 March 2023 07:29 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/159 "2023-03-02T07:29:31Z")

</div>

In node red you have to place the sensor node in the flow, so you need to install it for node red. At run time it uses the version of the node supplied by node-red-mcu, configured by the flows file.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [10 March 2023 10:16 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/160 "2023-03-10T10:16:44Z")

</div>

I just got a Lilygo T5 4.7" e-paper display with touchscreen, can this work with the NR MCU edition ?  
Fiddling around with esphome, but I find it too much work :') although it does work well.

---

<div class="post-metadata">

**Author:** ![ralphwetzel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ralphwetzel/32/53713_2.png) [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Post date:** [10 March 2023 10:32 UTC](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693/161 "2023-03-10T10:32:11Z")

</div>

> [@bakman2](#):
>
> Lilygo T5 4.7" e-paper display with touchscreen

There's native support for any ESP32, dedicated stuff for [lilygo\_ttgo](https://github.com/Moddable-OpenSource/moddable/tree/public/build/devices/esp32/targets/lilygo_ttgo) & [lilygo\_t5s](https://github.com/Moddable-OpenSource/moddable/tree/public/build/devices/esp32/targets/lilygo_t5s), capability to support touch interfaces & even an [epaper Blog](https://blog.moddable.com/blog/epaper/#examples).

Thus I'm sure there's something you can build on. At best, you create (based on this information) a config that we can put into the toolkit - which yet might demand some fiddling around as well.

[Previous page](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693.md?page=7)

[Next page](https://discourse.nodered.org/t/node-red-mcu-plugin-v1-0-integrating-node-red-mcu-edition-into-the-node-red-editor/72693.md?page=9)
