# Recommendation for remote or wired digital I/O to combine with NR running on Raspberry Pi

**URL:** <https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463>\
**Category:** Hardware\
**Created:** [20 December 2022 11:15 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463 "2022-12-20T11:15:51Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [20 December 2022 11:15 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/1 "2022-12-20T11:15:51Z")

</div>

I'm renovating a house and since it's quite big, I was thinking of automating things like lights, heating, and so on.

I have a small Raspbery Pi 4 that I could use as dedicated NR server, but the I/O is clearly insufficient, and I might need a way of linking additional sensors, thermostats, and so on. It is a big house, so it might be useful if I could set up some remote I/O running over the internal WiFi or ethernet.

At work, I am using NR from a dedicated server and get the information not directly from the sensors themselves, but from machine PLCs or PCs, so I don't really have anything to compare with.

Any recommendations will be welcome 🙂

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [20 December 2022 11:25 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/2 "2022-12-20T11:25:20Z")

</div>

Run Mosquitto on your Raspberry Pi 4.

Assuming that your wifi covers the whole house, a common arrangement is to have sensors connected to cheap, wifi enabled ESP8266 or ESP32 boards and communicating with Node-red by MQTT.  
MQTT works over ethernet too, and even Lorawan if you have a sensor at the bottom of the garden!

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [20 December 2022 11:28 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/3 "2022-12-20T11:28:36Z")

</div>

What I have in my house (and I believe a number of people on the forum have similar setups) is a Raspberry Pi running headless that acts as the server for my house. I then have WiFi-enabled microcontrollers (e.g. Wemos D1 Minis) fitted with various sensors or relays or LEDs around the house. All of the communication is via MQTT. The Raspberry Pi runs Node-RED and displays and controls things via the dashboard.

EDIT: Pretty much the same response as what @jbudd has posted.

---

<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:** [20 December 2022 15:10 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/4 "2022-12-20T15:10:34Z")

</div>

I have well over 100 remove devices communicating with NR via MQTT. There is a discord forum called digiblur. There is tons of info there to help get you started plus a lot of great smart people. What you are wanting to do has been done many, many times. The other thing to look up is Tasmota.

Good luck!!

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [20 December 2022 15:30 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/5 "2022-12-20T15:30:50Z")

</div>

Thanks for the replies. I'll take a look. I have some Echo Dot devices I want to integrate into the setup, and it looks they play nice with NR, so... 🙂

---

<div class="post-metadata">

**Author:** ![Billy\_C](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/billy_c/32/74647_2.png) [@Billy\_C](https://discourse.nodered.org/u/Billy_C)\
**Post date:** [26 January 2023 05:12 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/6 "2023-01-26T05:12:43Z")

</div>

I know it’s an older thread but new to the forum so missed this discussion. Sounds like you might have an even better solution at work with getting the sensor data from the PLCs. Why not use some experience from that and apply it at home? My PLC I/O module projects have been rock solid with hardwired Ethernet communication and NR. Unfortunately, I can’t say the same for all the WIFI “smart home” devices.

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [26 January 2023 07:20 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/7 "2023-01-26T07:20:11Z")

</div>

Well... At work I do have the proper PLC software licenses (VIA portal v13), which I do not have at home. Their programs are already done for scanning the sensors and load the info on the tag list, that can be accessed later with the S7 nodes in NR. I have seen raspberry Pi-based Soft PLCs that can be programmed directly in Node-Red, and I am also familiar with Siemens and Mitsubishi PLCs, but the cost of any PLC often runs in the hundreds of euros.

I already have a RPi with a passive cooling metal case, so that's what I wanted to use.

---

<div class="post-metadata">

**Author:** ![magicfire](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magicfire/32/93420_2.png) [@magicfire](https://discourse.nodered.org/u/magicfire)\
**Post date:** [29 January 2023 07:32 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/8 "2023-01-29T07:32:57Z")

</div>

I'd like to introduce a netgate hardware to your appication.This netGate named PN6400 can communicate with your sensors via 485/zigbee/WiFi/232 uart and so on.You can control the natGate by Node-red ,and may upload data to cloud such as [thingscloud](https://www.thingscloud.xyz/).  
The description of netGate is here[PN6400](http://www.chvda.com/magicfire/products/52426771.html)

---

<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:** [29 January 2023 11:50 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/9 "2023-01-29T11:50:35Z")

</div>

@magicfire, if you have a commercial interest in this product please declare that when you recommend it.

---

<div class="post-metadata">

**Author:** ![magicfire](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magicfire/32/93420_2.png) [@magicfire](https://discourse.nodered.org/u/magicfire)\
**Post date:** [30 January 2023 05:22 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/10 "2023-01-30T05:22:52Z")

</div>

Thanks for your notification.  
For sure, I am a Node-RED user/code contributor as well as a netGate company runner.Our company named chvda , locates in Beijing, China, and focus on embedded system R&D.  
I will obey the forum rules, especially when talking about our products.  
By the way, if I need to do some commercial activities，is there any dos and don'ts I should pay special attention to?

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [30 January 2023 12:11 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/11 "2023-01-30T12:11:53Z")

</div>

From your post, I see that you didn't really read my question.

I already have a Raspberry Pi to run NR. My problem was the physical I/O and how to connect it. @jbudd 's reply was more in line with what I needed, but I haven't been able to try yet (and that's why I didn't mark it a solution, for now).

---

<div class="post-metadata">

**Author:** ![jw\_te\_r](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jw_te_r/32/69700_2.png) [@jw\_te\_r](https://discourse.nodered.org/u/jw_te_r)\
**Post date:** [30 January 2023 16:54 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/12 "2023-01-30T16:54:47Z")

</div>

As @jbudd mentioned, MQTT is an interesting option.

I use MQTT for communication with Wifi- and Zigbee-components, and in my opinion Zigbee is the more stable option.

If you are interested in adding Zigbee components from vendors like Ikea and Philips (Philips Hue) in the same network, you might want to take a look at [Zigbee2MQTT](https://www.zigbee2mqtt.io/). With this open source software, you can add a lot of MQTT-enabled components, that communicate via Zigbee.

An extensive list of supported devices can be found [here](https://www.zigbee2mqtt.io/supported-devices/).

Integration with Node-Red automations is very easy.

---

<div class="post-metadata">

**Author:** ![magicfire](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magicfire/32/93420_2.png) [@magicfire](https://discourse.nodered.org/u/magicfire)\
**Post date:** [31 January 2023 06:14 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/13 "2023-01-31T06:14:13Z")

</div>

PN6400 offers **4 DI + 4 DO +4 AI +2 AO +Modbus +232 uart +ZigBee(based on Z2M)**  
I still suppose it may link pleny of sensors for you.  
Nodes are ready to use as below, and the help documents are in English:

 ![1675145513773](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/7/87bc3653091c45aa5654627324e4765130b3067e.png)

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [1 February 2023 14:33 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/14 "2023-02-01T14:33:10Z")

</div>

> [@magicfire](#):
>
> PN6400

But I don't need a PC, just remote I/O that can connect to the Pi.

---

<div class="post-metadata">

**Author:** ![markost](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@markost](https://discourse.nodered.org/u/markost)\
**Post date:** [1 February 2023 16:56 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/15 "2023-02-01T16:56:44Z")

</div>

> **[Denkovi A E LTD](http://denkovi.com/)**
>
> We develop and produce USB Relay boards, Ethernet IP Relays, WiFi I/O Relays for IoT, Home Automation, Irrigation, Kiosks, Industrials and Robotics.

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [1 February 2023 21:45 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/16 "2023-02-01T21:45:09Z")

</div>

Your basic decision is do you want to go hardwired (as per your experience with PLC at work) or ar eyou happy that wireless will give you good enough results

Once you make that decision you can then decide on what connectivity technoogy - in the case of wireless you have wifi, 433mhz, thread/matter (not really an option just yet), zigbee or zwave and bluetooth

In my case i have gone with Wifi and have deployed small cheap wifi routers throughout my house and yard for a dedicated IOT network - each of these come back to a centralised location where my swithces and NR run.

I can then mix and match sensors - for instance i have Bluetooth enabled Temp and Humidity sensors that talk to local ESP32 boards and then relay that info through WIFI to the nearest router and then on to NR with MQTT.

Craig

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [2 February 2023 02:56 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/17 "2023-02-02T02:56:38Z")

</div>

I would avoid wiring direct to your Pi as its all too easy to damage GPIO pins.  
ESPs are small cheap and very flexible, allowing you to build custom devices for most IOT needs.  
As you mentioned Alexa, an ESP flashed with Tasmota or similar supports direct control by Alexa, for basic on off colour brightness etc via Echo's built in Philips Hue capabilities. So you can just discover it and control without even needing to code anything in NR.

---

<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:** [3 April 2023 02:57 UTC](https://discourse.nodered.org/t/recommendation-for-remote-or-wired-digital-i-o-to-combine-with-nr-running-on-raspberry-pi/72463/18 "2023-04-03T02:57:04Z")

</div>

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