Controlling GPIOs on another Raspberry Pi

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!

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

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

1 Like