# GPIO ouput pin does not change state

**URL:** <https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578>\
**Category:** Hardware\
**Created:** [23 April 2021 05:10 UTC](https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578 "2021-04-23T05:10:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rarmentas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rarmentas/32/40612_2.png) [@rarmentas](https://discourse.nodered.org/u/rarmentas)\
**Post date:** [23 April 2021 05:10 UTC](https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578/1 "2021-04-23T05:10:27Z")

</div>

Hello everyone!  
I wonder if someone has faced the following issue:

I am activating a GPIO output with a MQTT message:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46828ffd69492411799e5d25eab37effa0d423bc.png)

So when a message with a specific topic arrives, "filter timer..." node sends a "1" to the GPIO node for a period and then a "0" to turn on the pin timely.  
The issue is that I send ones and zeros to the GPIO node and the correspoding pin does not actually change its voltaje to 0 nor 3.3 V. I faced this problem last month and solved it by changing interface settings for GPIO remote server for it to be enabled. Nevertheless two days ago it suddely stoped working again. I setup remote GPIO server againd and upgraded apt list. Nothing worked.

What is weird is that there are no error messages in node red nor in the node iindicator led (it changes to 0 and 1 accordingly with the messages, but the pin still does not change voltaje).

I am using a Rpi Zero rev 1.3

---

<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:** [23 April 2021 07:31 UTC](https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578/2 "2021-04-23T07:31:18Z")

</div>

Hi  
If you simply stick two inject nodes into the GPIO node with msg.payload set to 1 and 0 - does the pin change voltage?

> [@rarmentas](#):
>
> solved it by changing interface settings for GPIO remote server for it to be enabled

I just read this bit  
What do you mean by"GPIO remote server"?

Are you using the standard Pi GPIO node or something else?

---

<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:** [23 April 2021 07:42 UTC](https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578/3 "2021-04-23T07:42:19Z")

</div>

Does it work with another pin ?

---

<div class="post-metadata">

**Author:** ![rarmentas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rarmentas/32/40612_2.png) [@rarmentas](https://discourse.nodered.org/u/rarmentas)\
**Post date:** [24 April 2021 00:01 UTC](https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578/4 "2021-04-24T00:01:14Z")

</div>

Hi! Thanks for your answer.  
About the GPIO remote server:  
This is in raspi-config screen, under interface settings. There you will find Gpio remote acces/server.

I am using the regular gpio nodes that come with the instalation.

---

<div class="post-metadata">

**Author:** ![rarmentas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rarmentas/32/40612_2.png) [@rarmentas](https://discourse.nodered.org/u/rarmentas)\
**Post date:** [24 April 2021 00:02 UTC](https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578/5 "2021-04-24T00:02:45Z")

</div>

Hello! Thank you for the answer. No, it does not work for another pin.  
When I solved this last month, it got solved also for every pin.

---

<div class="post-metadata">

**Author:** ![rarmentas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rarmentas/32/40612_2.png) [@rarmentas](https://discourse.nodered.org/u/rarmentas)\
**Post date:** [24 April 2021 00:05 UTC](https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578/6 "2021-04-24T00:05:26Z")

</div>

If I simply inject payloads as you firstly say I got the same results.  
The node icon does change the indicator (the indicator changes to 1 and 0 accordingly, but the voltage does not change)

Also must add that if I control the GPIO pins with Python code from the console, pins work properly. So it seems to be something with node red.

---

<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:** [23 June 2021 00:05 UTC](https://discourse.nodered.org/t/gpio-ouput-pin-does-not-change-state/44578/7 "2021-06-23T00:05:55Z")

</div>

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