Cómo conectar Node-RED a un PLC basado en Arduino
Aprende a usar Node-RED con PLCs basados en Arduino y este tutorial industrial de Arduino y Node-RED
28 diciembre, 2021 por
Cómo conectar Node-RED a un PLC basado en Arduino
Boot & Work Corp. S.L., Fernandez Queralt Martinez

Introducción

Cuando se programan proyectos IoT con Raspberry Pi, Arduino, o PLCs basados en ESP32, se puede utilizar tanto una ventana de terminal, como una plataforma o software para programarlos.

En esta entrada del blog, vamos a utilizar la plataforma Node-RED para enlazar Node-RED y Arduino juntos, para que podamos hacer proyectos de automatización industrial y automatización de Arduino con MQTT, WiFi, o cualquier comunicación que quieras utilizar.

√öltimas publicaciones

Requisitos

  • Cable tipo B para programar el PLC basado en Arduino¬†¬†

Instala Node-RED y Arduino

Para instalar Node-RED en un PLC Raspberry o en nuestro PC, vamos a seguir los siguientes pasos:

1. Instala Git:

sudo apt install build-essential git curl

2. Instala Node.js, npm y Node-RED.

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

3. Autoincia Node-RED en el arranque e inicia el servicio.

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

4.  Descarga Arduino IDE desde este enlace >

Arduino out node en Node-RED

Una vez que hayas descargado tanto Node-RED como Arduino IDE, lanza Node-RED yendo a tu navegador:

http://localhost:1880/
 
Descarga los nodos Arduino si a√ļn no los tienes:

1.¬†Ve al men√ļ de Node-RED de la derecha > Gestionar paleta > Instalar > Escribe: node-red-node-arduino > Haz clic en Instalar.

2. Suelta los dos en el flujo si quieres usar ambos. Nosotros vamos a utilizar el nodo arduino out.

3. Selecciona el puerto Arduino.

4. Selecciona el tipo de salida que quieres controlar. En nuestro caso: digital.

5. Para seleccionar el pin de Arduino, acudiremos a la guía de usuario del controlador lógico programable Arduino, que puedes encontrar en la página de producto de tu controlador PLC industrial de código abierto. Puedes ver este ejemplo para 
PLC M-Duino 21+.

M-Duino 21+ PLC - Cómo conectar Node-RED al PLC basado en Arduino

Allí encontraremos la información del pinout de Arduino. Puedes ver el pinout de Arduino de un PLC M-Duino 21+ en esta tabla de la derecha.

Así, si queremos controlar la salida Q0.0, tendremos que poner el pin 36 en el nodo de salida del Arduino Node-RED.

Pinout del PLC Arduino - Cómo conectar Node-RED al PLC basado en Arduino

6. A√Īade dos nodos de inyecci√≥n: Uno con el n√ļmero 1 y otro con el n√ļmero 0. Con√©ctalos al nodo Arduino.

La configuración sería así:

Configuración - Cómo conectar Node-RED al PLC basado en Arduino

Despliega los cambios y haz clic en el nodo de inyección con valor 1 para activar una salida.

¬†¬ŅNodo-RED y PLC basado en Arduino no se conectan?

Arduino Firmata y Node-RED

Necesitas el sketch Standard Firmata en tu PLC para que la placa Arduino sepa que puede ser controlado a través de Node-RED.
Por defecto, se puede encontrar en Arduino IDE en:

Archivo > Ejemplos > Firmata > StandardFirmata

Si no lo encuentras, ve a¬† GitHub >, haz clic en Code¬†Descargar .ZIP > Ve al¬†Arduino IDE > Sketch > Incluir librer√≠a > A√Īadir librer√≠a .ZIP... > Selecciona el Firmata .ZIP que acabas de descargar. De nuevo, intenta ir a Archivo > Ejemplos > Firmata > StandardFirmata.

S√ļbelo yendo a Herramientas > y selecciona la placa Arduino en la que se basa el PLC. En el caso del PLC M-Duino 21+: Arduino Mega 2560.¬†¬†

También puedes encontrar esa información en la guía de usuario:

Arduino Firmata y Node-RED - Cómo conectar Node-RED a un PLC basado en Arduino

Contin√ļa seleccionando la placa, el procesador y el puerto.

Vuelve a Node-RED, inyecta el valor 1, ¡y verás cómo se enciende el LED de la salida!

Consigue este flows.json, ¬°y comp√°ralo con el tuyo!


[{"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"]]}]

 

 ¡Ahora, prueba con los otros y empieza a programar tu aplicación!

Encuentra lo que buscas. ¬°Busca en nuestro Blog!

Cómo conectar Node-RED a un PLC basado en Arduino
Boot & Work Corp. S.L., Fernandez Queralt Martinez
28 diciembre, 2021
Compartir
Archivar

¬ŅEst√°s buscando tu Controlador L√≥gico Programable ideal?

Echa un vistazo a esta comparativa de producto de varios controladores industriales basados en Arduino.

Comparamos entradas, salidas, comunicaciones y otras especificaciones con las de los equipos de otras marcas destacadas.


Comparación PLC industrial >>>

¬ŅQuieres m√°s informaci√≥n?

¬°Rellena el formulario!

¬°Cu√©ntame m√°s!