Node Red GPIO use

Good morning,

I am trying to use the GPIO pins in Node-red but it does not detect them with the PI-Gpio node. any ideas?


did you find any solution ?

  1. sudo mcedit /root/
    sudo echo 60 > /sys/class/gpio/export
    sudo echo out > /sys/class/gpio/gpio60/direction
    sudo chmod 666 /sys/class/gpio/export
    sudo chmod 666 /sys/class/gpio/gpio60/value

  2. sudo chmod +x /root/

  3. In /etc/sudousers add line
    rock ALL=(ALL) NOPASSWD:ALL // Disable sudo password

  4. sudo /root/
    echo 1 > /sys/class/gpio/gpio60/value // Testing

  5. In /etc/rc.local add string: sudo /root/
    before exit 0

  6. sudo apt-get install build-essential

  7. Add nodes node-red-contrib-opi-gpio

  8. In Node-RED, in node opi-gpio, set “output pin=60”