• V
 

Interacting with Raspberry Pi GPIO

There are a few node modules available for interacting with the Pi’s GPIO pins.

node-red-node-pi-gpio

This module is preinstalled with Node-RED when using our install script. It provides a simple way to monitor and control the GPIO pins.

Raspbian comes preconfigured for this node to work. If you are running a different distribution, such as Ubuntu, some additional install steps may be needed. The node's README has the details.

node-red-node-pi-gpiod

This module uses the PiGPIOd daemon which offers some more features over the default nodes. For example, the node can be easily configured to do PWM output or drive a Servo.

The module is available here.

node-red-contrib-gpio

This modules supports GPIO across a wide range of device types, using the Johnny-Five library.

The module is available here.