How to connect Node-RED to Arduino-based PLC
Learn how to use Node-RED with Arduino based PLCs and this industrial Arduino & Node-RED Tutorial
28 December, 2021 by
How to connect Node-RED to Arduino-based PLC
Boot & Work Corp. S.L., Fernandez Queralt Martinez

Introduction

When programming IoT projects with Raspberry Pi, Arduino, or ESP32-based PLCs, you can use either a terminal window, or a platform or software to program them.

In this blog post, we will use the Node-RED platform to link Node-RED and Arduino together, so that we can do industrial automation and Arduino automation projects with MQTT, WiFi, or whatever communication you would like to use.

Latest Posts

Requirements

  • B type cable to program the Arduino based PLC 

Install Node-RED and Arduino

In order to install Node-RED onto a Raspberry PLC or our PC, we are going to follow these steps:

1. Install Git:

sudo apt install build-essential git curl

2. Install Node.js, npm and Node-RED.

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

3. Autostart Node-RED on boot and start the service.

sudo systemctl enable nodered.service
sudo systemctl start nodered.service

4.  Download the Arduino IDE from this link >

Arduino out node on Node-RED

Once you downloaded both Node-RED and the Arduino IDE, launch Node-RED by going to your browser:

http://localhost:1880/
 
Download Arduino nodes if you still do not have them:

1. Go to the Node-RED menu on the right > Manage palette > Install > Type: node-red-node-arduino > Click on Install.

2. Drop them to the flow if you want to use them both. We are going to use the arduino out node.

3. Select the Arduino port.

4. Select the type of output you want to control. In our case: digital.

5. For selecting the Arduino pin, we will go to the user guide from the Arduino Programmable Logic Controller, which you can find on the product page of your open source industrial PLC controller. You can see this example for M-Duino 21+ PLC.

M-Duino 21+ PLC - How to connect Node-RED to Arduino-based PLC

In there, we will find the information of the Arduino pinout. You can see the Arduino pinout of an M-Duino 21+ PLC in this table on the right.

So, if we want to control the Q0.0 output, we will have to set pin 36 in the Node-RED Arduino out node.

Arduino PLC pinout - How to connect Node-RED to Arduino-based PLC

6. Add two inject nodes: One with number 1 and the other one with number 0. Connect them to the Arduino node.

The configuration would be like this:

Configuration - How to connect Node-RED to Arduino-based PLC

Deploy changes and click on the inject node with value 1 to activate an output.

 Node-RED & Arduino-based PLC not connecting?

Arduino Firmata & Node-RED

You need the Standard Firmata sketch in your PLC so that the Arduino board knows that can be controlled through Node-RED.
By default, you can find it in the Arduino IDE in:

File > Examples > Firmata > StandardFirmata

If you do not find it, go to the GitHub >, click on Code > Download .ZIP > Go to the Arduino IDE > Go to Sketch > Include Library > Add .ZIP Library... > Select the Firmata .ZIP you just downloaded. Again, try to go to File > Examples > Firmata > StandardFirmata.

Upload it by going to Tools > and select the Arduino Board whose PLC is based on. In the case of M-Duino 21+ PLC: Arduino Mega 2560

You can also find that information in the user guide:

Arduino Firmata & Node-RED - How to connect Node-RED to Arduino-based PLC

Continue by selecting the board, processor and port.

Go back to Node-RED, inject the value 1, and see how the LED from the output turns on!

Get this flows.json, and compare it with yours!


[{"id":"ed63f7fadb48e2f7","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"c9d8f02d.c9424","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey","palette":"light"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":60,"sy":60,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"c662856.b2c7878","type":"ui_tab","name":"Open Idea","icon":"dashboard","disabled":false,"hidden":false},{"id":"94e80e20.ee556","type":"ui_group","name":"","tab":"c662856.b2c7878","order":1,"disp":true,"width":"14","collapse":false},{"id":"18eca158.c30bef","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":3,"width":3,"height":1},{"id":"66b1ac62.f204c4","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":5,"width":2,"height":1},{"id":"57e7a054.1d3d","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":6,"width":1,"height":1},{"id":"3d2f0a19.b50e16","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":7,"width":3,"height":1},{"id":"2818fa86.78b246","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":8,"width":2,"height":1},{"id":"b7071d44.aac77","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":9,"width":14,"height":1},{"id":"76d851d4.191b1","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":10,"width":1,"height":1},{"id":"2b8a21d5.7e913e","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":12,"width":1,"height":1},{"id":"8ff507a5.bebcf8","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":13,"width":1,"height":1},{"id":"4e0db42.3a7d74c","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":14,"width":1,"height":1},{"id":"6ef46fcc.54f8d","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":15,"width":14,"height":1},{"id":"ff69b32a.fafbb","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":16,"width":1,"height":1},{"id":"a4c5a26b.0ba75","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":18,"width":1,"height":1},{"id":"aba323e0.729b9","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":19,"width":1,"height":1},{"id":"caa68f8b.b56ca","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":20,"width":1,"height":1},{"id":"7db45a2e2009a112","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":"14","collapse":false},{"id":"a8a589c2bd8096fe","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":"14","collapse":false},{"id":"650178a94412516d","type":"ui_spacer","name":"spacer","group":"a8a589c2bd8096fe","order":2,"width":1,"height":1},{"id":"41520cc5c5debd27","type":"ui_spacer","name":"spacer","group":"a8a589c2bd8096fe","order":3,"width":1,"height":1},{"id":"d7384f9539eeb32f","type":"ui_spacer","name":"spacer","group":"a8a589c2bd8096fe","order":4,"width":1,"height":1},{"id":"ec214d0fcde739b3","type":"ui_spacer","name":"spacer","group":"a8a589c2bd8096fe","order":5,"width":1,"height":1},{"id":"8fda7675a3803028","type":"ui_spacer","name":"spacer","group":"a8a589c2bd8096fe","order":6,"width":1,"height":1},{"id":"ec92b79e411cce41","type":"ui_spacer","name":"spacer","group":"a8a589c2bd8096fe","order":7,"width":1,"height":1},{"id":"c1fdf85f7492cf0e","type":"ui_spacer","name":"spacer","group":"a8a589c2bd8096fe","order":8,"width":1,"height":1},{"id":"1f6695fb88e9a91b","type":"ui_spacer","name":"spacer","group":"a8a589c2bd8096fe","order":9,"width":1,"height":1},{"id":"fd86c3aceccb7a6f","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":14,"collapse":false},{"id":"2765f3bd4a273180","type":"ui_spacer","name":"spacer","group":"7db45a2e2009a112","order":7,"width":2,"height":1},{"id":"936edf4a8c6d2670","type":"ui_spacer","name":"spacer","group":"7db45a2e2009a112","order":10,"width":1,"height":1},{"id":"bec63aaece6173d0","type":"ui_spacer","name":"spacer","group":"7db45a2e2009a112","order":12,"width":10,"height":1},{"id":"bdf7f79c9459d7f7","type":"ui_spacer","name":"spacer","group":"7db45a2e2009a112","order":17,"width":1,"height":1},{"id":"b30bd859d4e80d2f","type":"ui_spacer","name":"spacer","group":"7db45a2e2009a112","order":20,"width":1,"height":1},{"id":"e0bf4de3ab727c40","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":"14","collapse":false},{"id":"ce5f724377fd4a08","type":"ui_spacer","name":"spacer","group":"e0bf4de3ab727c40","order":8,"width":1,"height":1},{"id":"1621c08cda4a0daf","type":"ui_spacer","name":"spacer","group":"e0bf4de3ab727c40","order":12,"width":9,"height":1},{"id":"19420fd10c7c0b12","type":"ui_spacer","name":"spacer","group":"e0bf4de3ab727c40","order":19,"width":1,"height":1},{"id":"9a921db25413d077","type":"ui_spacer","name":"spacer","group":"fd86c3aceccb7a6f","order":5,"width":5,"height":1},{"id":"53a3c745b8cf7b46","type":"ui_spacer","name":"spacer","group":"fd86c3aceccb7a6f","order":9,"width":9,"height":1},{"id":"177c9bb488d91cd0","type":"ui_spacer","name":"spacer","group":"fd86c3aceccb7a6f","order":10,"width":9,"height":1},{"id":"4dcc45e902f01973","type":"ui_spacer","name":"spacer","group":"fd86c3aceccb7a6f","order":11,"width":9,"height":1},{"id":"d3c8b1a85b1a2695","type":"ui_spacer","name":"spacer","group":"fd86c3aceccb7a6f","order":16,"width":5,"height":1},{"id":"48e48dc621386c3a","type":"ui_spacer","name":"spacer","group":"fd86c3aceccb7a6f","order":18,"width":2,"height":1},{"id":"6c2eaf3a7ff65cc7","type":"ui_spacer","name":"spacer","group":"fd86c3aceccb7a6f","order":20,"width":1,"height":1},{"id":"69fef2625bcae797","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":14,"collapse":false},{"id":"f0995cba9faef49a","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":1,"width":6,"height":1},{"id":"8386499ed3985872","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":3,"width":6,"height":1},{"id":"88bfa93404bbb9e8","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":4,"width":2,"height":1},{"id":"8f993c0b0d1ca2c6","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":6,"width":2,"height":1},{"id":"31ac08fa29411053","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":7,"width":2,"height":1},{"id":"a085d999fd2f1543","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":8,"width":2,"height":1},{"id":"93875745799a1a7e","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":9,"width":2,"height":1},{"id":"09b81d9cd3b8a5e3","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":11,"width":2,"height":1},{"id":"fae59351e2c107e1","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":13,"width":2,"height":1},{"id":"16da015529de983e","type":"ui_spacer","name":"spacer","group":"69fef2625bcae797","order":15,"width":2,"height":1},{"id":"68d11f4888371f42","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":2,"width":1,"height":1},{"id":"c952f3843803ca3a","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":4,"width":2,"height":1},{"id":"d94fc37ef13fd5b5","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":6,"width":2,"height":1},{"id":"de6860d7e763ee1f","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":7,"width":2,"height":1},{"id":"b7dea1e1539fd361","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":8,"width":2,"height":1},{"id":"8a992f492da0c389","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":9,"width":2,"height":1},{"id":"59f579f16c8a79f0","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":10,"width":3,"height":1},{"id":"3c6760b2deeb8edc","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":12,"width":3,"height":1},{"id":"4304b47b5a38c1d3","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":13,"width":3,"height":1},{"id":"e7c76c6618406bfb","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":14,"width":3,"height":1},{"id":"1c73f99f95804e0c","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":15,"width":3,"height":1},{"id":"66cf106ea464b138","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":17,"width":3,"height":1},{"id":"f59e5331527d622c","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":18,"width":3,"height":1},{"id":"bd4188df3fba1217","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":19,"width":3,"height":1},{"id":"11149ae50462e712","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":"14","collapse":false},{"id":"d9eb35dfa1f56a6b","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":"14","collapse":false},{"id":"e68a8468aae12d7c","type":"ui_spacer","name":"spacer","group":"d9eb35dfa1f56a6b","order":2,"width":1,"height":1},{"id":"86350b8b09d87fc9","type":"ui_spacer","name":"spacer","group":"d9eb35dfa1f56a6b","order":3,"width":1,"height":1},{"id":"e695b989c88ca386","type":"ui_spacer","name":"spacer","group":"d9eb35dfa1f56a6b","order":4,"width":1,"height":1},{"id":"97b648f2295e61bf","type":"ui_spacer","name":"spacer","group":"d9eb35dfa1f56a6b","order":5,"width":1,"height":1},{"id":"48dff9f6e1890e7f","type":"ui_spacer","name":"spacer","group":"d9eb35dfa1f56a6b","order":6,"width":1,"height":1},{"id":"7db9106c3436c688","type":"ui_spacer","name":"spacer","group":"d9eb35dfa1f56a6b","order":7,"width":1,"height":1},{"id":"e2843b82cd077bd1","type":"ui_spacer","name":"spacer","group":"d9eb35dfa1f56a6b","order":8,"width":1,"height":1},{"id":"d00a0ea86f5dceb1","type":"ui_spacer","name":"spacer","group":"d9eb35dfa1f56a6b","order":9,"width":1,"height":1},{"id":"2c09e91cbc8e6e0f","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":14,"collapse":false},{"id":"c8cc23f922acf265","type":"ui_spacer","name":"spacer","group":"11149ae50462e712","order":7,"width":2,"height":1},{"id":"a60cdc5ae81ae940","type":"ui_spacer","name":"spacer","group":"11149ae50462e712","order":10,"width":1,"height":1},{"id":"1b7909ebb1ddaa8d","type":"ui_spacer","name":"spacer","group":"11149ae50462e712","order":12,"width":10,"height":1},{"id":"8f421b5598559b4b","type":"ui_spacer","name":"spacer","group":"11149ae50462e712","order":17,"width":1,"height":1},{"id":"ffbac30177906f95","type":"ui_spacer","name":"spacer","group":"11149ae50462e712","order":20,"width":1,"height":1},{"id":"905445bab20ca6db","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":"14","collapse":false},{"id":"d10c444b39eb2f1f","type":"ui_spacer","name":"spacer","group":"905445bab20ca6db","order":8,"width":1,"height":1},{"id":"c323326f7958830e","type":"ui_spacer","name":"spacer","group":"905445bab20ca6db","order":12,"width":9,"height":1},{"id":"4db3c8fac1af8b3e","type":"ui_spacer","name":"spacer","group":"905445bab20ca6db","order":19,"width":1,"height":1},{"id":"bf1952147b6b4ea5","type":"ui_spacer","name":"spacer","group":"2c09e91cbc8e6e0f","order":5,"width":5,"height":1},{"id":"0b2d7897709f6e5f","type":"ui_spacer","name":"spacer","group":"2c09e91cbc8e6e0f","order":9,"width":9,"height":1},{"id":"e22f5e922f6c9f71","type":"ui_spacer","name":"spacer","group":"2c09e91cbc8e6e0f","order":10,"width":9,"height":1},{"id":"588a23943d3785a2","type":"ui_spacer","name":"spacer","group":"2c09e91cbc8e6e0f","order":11,"width":9,"height":1},{"id":"321320e5a14098d7","type":"ui_spacer","name":"spacer","group":"2c09e91cbc8e6e0f","order":16,"width":5,"height":1},{"id":"a879bd0827b8f99e","type":"ui_spacer","name":"spacer","group":"2c09e91cbc8e6e0f","order":18,"width":2,"height":1},{"id":"33a76b8f9cf543bf","type":"ui_spacer","name":"spacer","group":"2c09e91cbc8e6e0f","order":20,"width":1,"height":1},{"id":"56f34e37a79c3d01","type":"ui_group","name":"","tab":"","order":1,"disp":true,"width":14,"collapse":false},{"id":"c73d7f014bfbe104","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":1,"width":6,"height":1},{"id":"b08448fdb52e2ca0","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":3,"width":6,"height":1},{"id":"29c5f2c2fcf37c02","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":4,"width":2,"height":1},{"id":"ceb8599438dad1cb","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":6,"width":2,"height":1},{"id":"3632ea435e54f9e5","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":7,"width":2,"height":1},{"id":"8150aa1bd8c37da2","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":8,"width":2,"height":1},{"id":"5c24e785e608aef0","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":9,"width":2,"height":1},{"id":"c41052ac2d6a9c02","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":11,"width":2,"height":1},{"id":"c0053c1b8fa16dcf","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":13,"width":2,"height":1},{"id":"4f967c426be1f3f4","type":"ui_spacer","name":"spacer","group":"56f34e37a79c3d01","order":15,"width":2,"height":1},{"id":"8e220e53f80e628c","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":2,"width":1,"height":1},{"id":"aad739631a5e8311","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":4,"width":2,"height":1},{"id":"b10241278cdf1b51","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":6,"width":2,"height":1},{"id":"e3068a6262e6d1ae","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":7,"width":2,"height":1},{"id":"4083fd49a7615e0c","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":8,"width":2,"height":1},{"id":"177012bcd681394b","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":9,"width":2,"height":1},{"id":"9817a7eb2bf22936","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":10,"width":3,"height":1},{"id":"9d51b7e1584b160b","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":12,"width":3,"height":1},{"id":"dd4489451a804064","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":13,"width":3,"height":1},{"id":"85100227f6f53f95","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":14,"width":3,"height":1},{"id":"2bea5b80189667a7","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":15,"width":3,"height":1},{"id":"9ad14fb540fa76b1","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":17,"width":3,"height":1},{"id":"935c7b5a3a899429","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":18,"width":3,"height":1},{"id":"c6aa85ea767fdbe5","type":"ui_spacer","name":"spacer","group":"78426f95.8f95a","order":19,"width":3,"height":1},{"id":"165c88d84fba9a79","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":2,"width":1,"height":1},{"id":"5e818ba4fe83fca9","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":4,"width":3,"height":1},{"id":"60183480d7f5195f","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":6,"width":3,"height":1},{"id":"d64f29d8843a517a","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":7,"width":2,"height":1},{"id":"6ea54f9f08b04424","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":8,"width":3,"height":1},{"id":"acab911d9ffd3cde","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":9,"width":3,"height":1},{"id":"c022c9063918c7f9","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":10,"width":16,"height":1},{"id":"b02ad93007f853b0","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":11,"width":2,"height":1},{"id":"d396da9f95463a19","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":13,"width":2,"height":1},{"id":"3a65643c506de254","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":14,"width":2,"height":1},{"id":"ebe88bb48cf54aae","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":15,"width":2,"height":1},{"id":"2af98dd3b79e945c","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":16,"width":16,"height":1},{"id":"90775c9d769c0ce2","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":17,"width":2,"height":1},{"id":"f48972cbbbc2cba0","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":19,"width":2,"height":1},{"id":"34f4b7f9a2db534a","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":20,"width":2,"height":1},{"id":"b0d8ef48d1133053","type":"ui_spacer","name":"spacer","group":"94e80e20.ee556","order":21,"width":2,"height":1},{"id":"9495c5098f91fb63","type":"arduino-board","device":"/dev/ttyACM1"},{"id":"24715a12b77f049a","type":"arduino out","z":"ed63f7fadb48e2f7","name":"Q0.0","pin":"36","state":"OUTPUT","arduino":"9495c5098f91fb63","x":490,"y":260,"wires":[]},{"id":"01d01ba65d48c937","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":290,"y":240,"wires":[["24715a12b77f049a"]]},{"id":"9a652aac855b5197","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":290,"y":280,"wires":[["24715a12b77f049a"]]},{"id":"1214e6be262c70ab","type":"arduino out","z":"ed63f7fadb48e2f7","name":"Q0.1","pin":"37","state":"OUTPUT","arduino":"9495c5098f91fb63","x":490,"y":360,"wires":[]},{"id":"400e3885ef519f80","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":290,"y":340,"wires":[["1214e6be262c70ab"]]},{"id":"fa5efa10ef892b13","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":290,"y":380,"wires":[["1214e6be262c70ab"]]},{"id":"2f2083fedaa8a677","type":"arduino out","z":"ed63f7fadb48e2f7","name":"Q0.7","pin":"6","state":"OUTPUT","arduino":"9495c5098f91fb63","x":930,"y":580,"wires":[]},{"id":"3779dffbdeaa6e4c","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":730,"y":560,"wires":[["2f2083fedaa8a677"]]},{"id":"f20b032396f927db","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":730,"y":600,"wires":[["2f2083fedaa8a677"]]},{"id":"bca632c6a8541842","type":"arduino out","z":"ed63f7fadb48e2f7","name":"Q0.3","pin":"39","state":"OUTPUT","arduino":"9495c5098f91fb63","x":490,"y":560,"wires":[]},{"id":"f52bd4e77e4973fb","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":290,"y":540,"wires":[["bca632c6a8541842"]]},{"id":"dac31a5506716164","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":290,"y":580,"wires":[["bca632c6a8541842"]]},{"id":"159d1f9422a47463","type":"arduino out","z":"ed63f7fadb48e2f7","name":"Q0.4","pin":"40","state":"OUTPUT","arduino":"9495c5098f91fb63","x":930,"y":260,"wires":[]},{"id":"fa48b0f2fa3ed1f7","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":730,"y":240,"wires":[["159d1f9422a47463"]]},{"id":"d1728086f7a328e3","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":730,"y":280,"wires":[["159d1f9422a47463"]]},{"id":"fae8f6119697a5c7","type":"arduino out","z":"ed63f7fadb48e2f7","name":"Q0.5","pin":"4","state":"OUTPUT","arduino":"9495c5098f91fb63","x":930,"y":360,"wires":[]},{"id":"4f79251697dcce58","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":730,"y":340,"wires":[["fae8f6119697a5c7"]]},{"id":"5d37dea4b5b73ac0","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":730,"y":380,"wires":[["fae8f6119697a5c7"]]},{"id":"a65ab8d11f0011eb","type":"arduino out","z":"ed63f7fadb48e2f7","name":"Q0.2","pin":"38","state":"OUTPUT","arduino":"9495c5098f91fb63","x":490,"y":460,"wires":[]},{"id":"976370a8b742ac28","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":290,"y":440,"wires":[["a65ab8d11f0011eb"]]},{"id":"7c2d0ad5213837b8","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":290,"y":480,"wires":[["a65ab8d11f0011eb"]]},{"id":"54a38d5158692f6f","type":"arduino out","z":"ed63f7fadb48e2f7","name":"Q0.6","pin":"5","state":"OUTPUT","arduino":"9495c5098f91fb63","x":930,"y":480,"wires":[]},{"id":"632e6dfbf676a8aa","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":730,"y":460,"wires":[["54a38d5158692f6f"]]},{"id":"2fa58dd6253cd7ac","type":"inject","z":"ed63f7fadb48e2f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":730,"y":500,"wires":[["54a38d5158692f6f"]]}]

 

 Now, try with the other ones and start programming your application!

Find what you are looking for
Search in our Blog

How to connect Node-RED to Arduino-based PLC
Boot & Work Corp. S.L., Fernandez Queralt Martinez
28 December, 2021
Share this post
Archive

Looking for your ideal Programmable Logic Controller?

Take a look at this product comparison with other industrial controllers Arduino-based. 

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


Industrial PLC comparison >>>

Do you want more information?

Just fill the form!

Tell me more!