# Controlling GPIOs on another Raspberry Pi

**URL:** <https://discourse.nodered.org/t/controlling-gpios-on-another-raspberry-pi/4190>\
**Category:** General\
**Created:** [22 October 2018 14:44 UTC](https://discourse.nodered.org/t/controlling-gpios-on-another-raspberry-pi/4190 "2018-10-22T14:44:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rich](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rich](https://discourse.nodered.org/u/Rich)\
**Post date:** [22 October 2018 14:44 UTC](https://discourse.nodered.org/t/controlling-gpios-on-another-raspberry-pi/4190/1 "2018-10-22T14:44:15Z")

</div>

I'm running Node Red on a Raspberry Pi and would like to be able to trigger the GPIO pins on another Raspberry Pi running Node Red. Is there an easy way to do this?

I'm a newbie any help is appreciated!

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [22 October 2018 14:51 UTC](https://discourse.nodered.org/t/controlling-gpios-on-another-raspberry-pi/4190/2 "2018-10-22T14:51:57Z")

</div>

you could use the http request nodes on one and a http-in out on the other.

But take a look at MQTT, you would need to set up a broker (usually mosquito) and then one pi published a command and the other pi subscribed to that command. There are lots of MQTT intros and tutorials online take a look at them and see if it meets your requirements

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 October 2018 18:10 UTC](https://discourse.nodered.org/t/controlling-gpios-on-another-raspberry-pi/4190/3 "2018-10-22T18:10:44Z")

</div>

The gpiod node allows remote access also - see [https://github.com/node-red/node-red-nodes/tree/master/hardware/pigpiod](https://github.com/node-red/node-red-nodes/tree/master/hardware/pigpiod)
