# Try Serial Communication with Function Node in Node-RED MCU

**URL:** https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193
**Category:** General
**Tags:** node-red-mcu
**Created:** [2 January 2024 03:14 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193 "2024-01-02T03:14:53Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mshioji](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mshioji/32/86797_2.png) [@mshioji](https://discourse.nodered.org/u/mshioji)
#### Post date: [2 January 2024 03:14 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193/1 "2024-01-02T03:14:53Z")

</div>

Hello, I'm new here.

Recently I wrote an article in [Qiita.com](http://Qiita.com) then @phoddie encouraged me to share it for this forum.

here is the English version of the article, hope someone enjoy it.  
(press ❤ if you like it. 😊)

> **[Try Serial Communication with Function Node in Node-RED MCU - Qiita](https://qiita.com/mshioji/items/98f2ded0481ce3b5d775)**
>
> Although Node-RED on a PC allows for wired serial communication using the Serial-In and Serial-Out …

I wondered where to post this kind of contents but it seems start with here would be good? Since I'm new, please let me know if there is more appropriate place.

Thank you,

---

<div class="post-metadata">

### Author: ![phoddie](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/phoddie/32/64232_2.png) [@phoddie](https://discourse.nodered.org/u/phoddie)
#### Post date: [2 January 2024 04:39 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193/2 "2024-01-02T04:39:02Z")

</div>

This is a great example of using Function Nodes to quickly integrate new capabilities on a microcontroller. Thanks for sharing.

This may be interesting to @shrickus and @ralphwetzel.

---

<div class="post-metadata">

### Author: ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)
#### Post date: [3 January 2024 05:20 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193/3 "2024-01-03T05:20:38Z")

</div>

Welcome to the community -- and thank you for sharing your sharing your experiences!

It is definitely interesting the way you bridged the javascript running in node-red with the mcu libraries -- I don't think I would have made that connection... so I will be experimenting with that next.

SInce I'm new to mcu programming (but old w.r.t node-red and js), does anyone have any good resources for learning what is possible/available to run on the ESP-32?

---

<div class="post-metadata">

### Author: ![mshioji](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mshioji/32/86797_2.png) [@mshioji](https://discourse.nodered.org/u/mshioji)
#### Post date: [3 January 2024 07:52 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193/4 "2024-01-03T07:52:09Z")

</div>

Thank you for replying.  
yes, it was a bit tricky, but it worked (with help from @phoddie).  
I am glad if this could be of help for your project.

If you are looking for a resource for ESP32 development, how about this book @phoddie wrote?  
This is not specifically for Node-RED MCU but is a development guide for the Moddable SDK that runs inside of Node-RED MCU. It is well-maintained on GitHub.

> **[GitHub - Moddable-OpenSource/iot-product-dev-book: Source code for example...](https://github.com/Moddable-OpenSource/iot-product-dev-book)**
>
> Source code for example apps from IoT Development for ESP32 and ESP8266 with JavaScript. - GitHub - Moddable-OpenSource/iot-product-dev-book: Source code for example apps from IoT Development for E...

---

<div class="post-metadata">

### Author: ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)
#### Post date: [4 January 2024 14:01 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193/5 "2024-01-04T14:01:21Z")

</div>

> [@mshioji](#):
>
> how about this book @phoddie wrote?

My copy (and the Moddable 2 mcu) are on their way...

---

<div class="post-metadata">

### Author: ![mshioji](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mshioji/32/86797_2.png) [@mshioji](https://discourse.nodered.org/u/mshioji)
#### Post date: [4 January 2024 14:55 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193/6 "2024-01-04T14:55:27Z")

</div>

> [@shrickus](#):
>
> My copy (and the Moddable 2 mcu) are on their way...

Great! Have fun! 😊

---

<div class="post-metadata">

### Author: ![mshioji](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mshioji/32/86797_2.png) [@mshioji](https://discourse.nodered.org/u/mshioji)
#### Post date: [4 January 2024 15:34 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193/7 "2024-01-04T15:34:34Z")

</div>

I forgot to mention that 'Moddable Two' can also be used with Node-red-mcu, where dashboard functionality is also available. Given your experience in JavaScript, you might also find the native Moddable SDK interesting. Both options have their merits. 👍

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [4 March 2024 15:35 UTC](https://discourse.nodered.org/t/try-serial-communication-with-function-node-in-node-red-mcu/84193/8 "2024-03-04T15:35:19Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
