# Node using GPIO on Raspberry Pi 1 & 2

**URL:** <https://forums.balena.io/t/node-using-gpio-on-raspberry-pi-1-2/70>\
**Category:** Product support\
**Created:** [June 18, 2015, 1:30pm UTC](https://forums.balena.io/t/node-using-gpio-on-raspberry-pi-1-2/70 "2015-06-18T13:30:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vergissberlin](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/vergissberlin/32/37_2.png) [@vergissberlin](https://forums.balena.io/u/vergissberlin)\
**Post date:** [June 18, 2015, 1:30pm UTC](https://forums.balena.io/t/node-using-gpio-on-raspberry-pi-1-2/70/1 "2015-06-18T13:30:13Z")

</div>

**Hi,**

I am loving **Node-RED** on a **Raspberry Pi**. There is also a great package for [resin.io](http://resin.io) available [GitHub - elaval/resin-node-red-basic](https://github.com/elaval/resin-node-red-basic) BUT it don’t includes **GPIO** support.  
The package _python-rpi.gpio_ or _python3-rpi.gpio_ doesn’t exist in the apt-get repo:

> E: Unable to locate package python-rpi.gpio  
> E: Couldn’t find any package by regex ‘python-rpi.gpio’  
> E: Unable to locate package python3-rpi.gpio  
> E: Couldn’t find any package by regex ‘python3-rpi.gpio’

So I have succesfully installed RSP.GIP with the _pip_ installer:

```
apt-get install python-dev python3-dev
apt-get install mercurial
apt-get install python-pip python3-pip
apt-get remove python-rpi.gpio python3-rpi.gpio
pip install hg+http://hg.code.sf.net/p/raspberry-gpio-python/code#egg=RPi.GPIO

```

But this don’t fixed the problem with node-red, as you can read here: [Redirecting to Google Groups](https://groups.google.com/forum/#!msg/node-red/TKct8P6N9lQ/O3JHRrORXtgJ)

-The result ist always the same-  
A log message from Node-Red:

> “[warn] Can’t find Pi RPi.GPIO python library.”

This causes that I can not use the GPIO Nodes.

I am a bit surprised that RPI.GPIO is not already installed in the resin/rpi-node package.  
Any idea, how to fix that?

Kindly regards,  
vergissberlin (forget berlin)

---

<div class="post-metadata">

**Author:** ![nchronas](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nchronas](https://forums.balena.io/u/nchronas)\
**Post date:** [June 18, 2015, 2:10pm UTC](https://forums.balena.io/t/node-using-gpio-on-raspberry-pi-1-2/70/2 "2015-06-18T14:10:41Z")

</div>

Hello,

Can you try and install the .deb package and see if it fixes your problem?

You can take the package from here: [http://sourceforge.net/projects/raspberry-gpio-python/files/raspbian-wheezy/](http://sourceforge.net/projects/raspberry-gpio-python/files/raspbian-wheezy/)

Let me know if it worked.

---

<div class="post-metadata">

**Author:** ![vergissberlin](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/vergissberlin/32/37_2.png) [@vergissberlin](https://forums.balena.io/u/vergissberlin)\
**Post date:** [June 19, 2015, 2:34pm UTC](https://forums.balena.io/t/node-using-gpio-on-raspberry-pi-1-2/70/3 "2015-06-19T14:34:01Z")

</div>

**Hi nchronas!**

thank you, for your fast response! This idea even _thiseldo_ has come.

> **[thiseldo/resin\_io\_nodered](https://github.com/thiseldo/resin_io_nodered/)**
>
> Resin.io repository to setup Node-RED application - thiseldo/resin\_io\_nodered

**I tried to install it that way** Holy cow from Bashdaria! I had a successful deployment with that!

I made a folk, so you can test it here:  
[https://github.com/vergissberlin/resin\_io\_nodered](https://github.com/vergissberlin/resin_io_nodered)

regards, André

---

<div class="post-metadata">

**Author:** ![nchronas](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nchronas](https://forums.balena.io/u/nchronas)\
**Post date:** [June 23, 2015, 1:37pm UTC](https://forums.balena.io/t/node-using-gpio-on-raspberry-pi-1-2/70/4 "2015-06-23T13:37:49Z")

</div>

Hi again,

I’ve just tested it and it works fine, thanks for the repo, I will look more into node red when I have time, It seems very interesting.
