# Using GPIO via Node-red on the Jetson-Nano

**URL:** https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629
**Category:** General
**Created:** [12 October 2019 15:02 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629 "2019-10-12T15:02:41Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Schotte2360](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Schotte2360](https://discourse.nodered.org/u/Schotte2360)
#### Post date: [12 October 2019 15:02 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/1 "2019-10-12T15:02:41Z")

</div>

Hey.  
I am used to use node-red on the Raspberry Pi to control the GPIO pins.  
I manage to install Node-red, but I can't get the GPIO working from Node-red on the Jetson Nano.  
Can someone help me?

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [12 October 2019 15:08 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/2 "2019-10-12T15:08:13Z")

</div>

> [@Schotte2360](#):
>
> Jetson Nano

I don't think there are any Node-RED nodes to control the GPIO pins on that board

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [12 October 2019 15:18 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/3 "2019-10-12T15:18:22Z")

</div>

Having said that - if your feeling lucky - it might just work if install the Pi gpio node [https://flows.nodered.org/node/node-red-node-pi-gpio](https://flows.nodered.org/node/node-red-node-pi-gpio) , then find the folder where its gets installed, then edit nrgpio.py  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/37bcb02ac466268031e514c45fa60c4adc25b36e.png)

and replace the marked line with

```auto
import Jetson.GPIO as GPIO

```

then restart node-red and clear the cache in your browser

But your going to have to be very lucky 🙂

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [12 October 2019 15:41 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/4 "2019-10-12T15:41:29Z")

</div>

> **[Jetson.GPIO](https://pypi.org/project/Jetson.GPIO/)**
>
> A module to control Jetson GPIO channels

---

<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: [12 October 2019 17:16 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/5 "2019-10-12T17:16:22Z")

</div>

hopefully they used the same pins - or they will need remapping as well... but looks like that should get you most of the way there... I someone wanted to create a nodes for that - that would be welcome.

---

<div class="post-metadata">

### Author: ![Schotte2360](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@Schotte2360](https://discourse.nodered.org/u/Schotte2360)
#### Post date: [13 October 2019 08:31 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/6 "2019-10-13T08:31:34Z")

</div>

Help,  
I can't find the file nrgpio.py on the jetson Nano

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [13 October 2019 08:36 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/7 "2019-10-13T08:36:31Z")

</div>

On a Pi its in

/home/pi/.node-red/node\_modules/node-red-node-pi-gpio

so if you can find your node-red folder on your Jetson, it might me in the same sub-folders

---

<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: [13 October 2019 08:44 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/8 "2019-10-13T08:44:21Z")

</div>

by default it won't be installed unless you have added the pi gpio node

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [16 January 2020 18:08 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/9 "2020-01-16T18:08:01Z")

</div>

@Odiezapha

Ref other thread when you said you tried this and it didn't work

What bit of of it didn't work?

Did you install the standard pi nodes and then modify nrgpio.py to import Jetson.GPIO instead of RPi.GPIO ?

---

<div class="post-metadata">

### Author: ![Odiezapha](https://avatars.discourse-cdn.com/v4/letter/o/919ad9/32.png) [@Odiezapha](https://discourse.nodered.org/u/Odiezapha)
#### Post date: [13 April 2021 17:31 UTC](https://discourse.nodered.org/t/using-gpio-via-node-red-on-the-jetson-nano/16629/10 "2021-04-13T17:31:01Z")

</div>

Actually if you just go into rpi.gpio module folder in node red. You'll find 2 py scripts. Open them and swap. Rpi.gpio for Jetson.gpio. it points the nodes in the right place and works great.
