# Debian - use gpio

**URL:** https://discourse.nodered.org/t/debian-use-gpio/51527
**Category:** General
**Created:** [26 September 2021 08:58 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527 "2021-09-26T08:58:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![sdalee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sdalee/32/18818_2.png) [@sdalee](https://discourse.nodered.org/u/sdalee)
#### Post date: [26 September 2021 08:58 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/1 "2021-09-26T08:58:56Z")

</div>

HI,

I installed debian 11 some days ago for Rpi 4, but I can't use GPIO. I installed 'node-red-node-pi-gpio' add-on. I'd like to use input, but the message doesn't come when I change the state of GPIO input. Under raspbian it works. Somewhere I read an old article (or forum) that the the gpio doesn't work under debian. Is it true? Is there a solution for the usage of GPIO under debian?

---

<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: [26 September 2021 09:03 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/2 "2021-09-26T09:03:09Z")

</div>

Any vanilla OS doesn't know anything about the Pi GPIO pins

---

<div class="post-metadata">

### Author: ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)
#### Post date: [26 September 2021 09:06 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/3 "2021-09-26T09:06:49Z")

</div>

As I mentioned in another similar topic, just a few days ago... Did you follow ALL the instructions for the GPIO node?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/510dd04d2fa9da5c8946b9b789b7338a36e29fae.png)

This is not a guaranty... only Raspbian will be that 🙂

---

<div class="post-metadata">

### Author: ![sdalee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sdalee/32/18818_2.png) [@sdalee](https://discourse.nodered.org/u/sdalee)
#### Post date: [26 September 2021 09:51 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/4 "2021-09-26T09:51:51Z")

</div>

Thank you for your help, I didn't find this node-red page (I looked for google and node-red pages too), but now I find it. However I get error messages when I run : "sudo pip install RPi.GPIO" command:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/1475e46ec1e448e3b5c2f76b6102310019643c77.png)  
....  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/59067eb573915efe4b1efffb597531a2991cc81d.png)

I'm not a linux expert, so I don't know what is the reason of error messages?

Can you help me more a little bit?

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [26 September 2021 10:20 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/5 "2021-09-26T10:20:35Z")

</div>

> [@sdalee](#):
>
> I'm not a linux expert,

So why are you installing debian 11 and not Raspibian?

---

<div class="post-metadata">

### Author: ![sdalee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sdalee/32/18818_2.png) [@sdalee](https://discourse.nodered.org/u/sdalee)
#### Post date: [26 September 2021 10:59 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/6 "2021-09-26T10:59:17Z")

</div>

@zenofmud: I have used the node-red with Raspbian for some years, so I have some complex subflows which processes zigbee2mqtt devices, but the home assistant knows more devices than node-red and HA dashboard can handle multiple users. Well, I like to HA for UI and device input/output and NR for automatization.  
At first, I installed Home Assistant Operating System with node-red, mqtt broker, and zigbee2mqtt add-ons, but the Z2M add-on sends more and a slightly different message than standalone NR with raspbian and I don't want to update my existing NR subflows.  
After that, I installed HA container on Rasbian, but it doesn't include HA Supervisor.  
This week I installed HA supervised, but I read, it can be installed on Debian.  
I had some trouble after installed debian and I try to solve them step by step. Now I have two bugs. One of them this GPIO problem, the other is related to the SD card. I use SSD and the debian looks for SD card evry 10-12 seconds.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [26 September 2021 11:18 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/7 "2021-09-26T11:18:09Z")

</div>

Your screen prints of red text on black bckground make it near impossible to read them. I would suggest you use a white background in the future when asking for support.

I won't be able to help since I just use Raspibian and also do not use HA. You might have more success asking on the HA forum.

---

<div class="post-metadata">

### Author: ![sdalee](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sdalee/32/18818_2.png) [@sdalee](https://discourse.nodered.org/u/sdalee)
#### Post date: [26 September 2021 12:12 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/8 "2021-09-26T12:12:57Z")

</div>

Yes, I'll try it

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [25 November 2021 12:13 UTC](https://discourse.nodered.org/t/debian-use-gpio/51527/9 "2021-11-25T12:13:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
