# GPIO is showing OK not the pin state

**URL:** <https://discourse.nodered.org/t/gpio-is-showing-ok-not-the-pin-state/94965>\
**Category:** General\
**Tags:** gpio\
**Created:** [28 January 2025 18:42 UTC](https://discourse.nodered.org/t/gpio-is-showing-ok-not-the-pin-state/94965 "2025-01-28T18:42:21Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)\
**Post date:** [21 February 2025 16:42 UTC](https://discourse.nodered.org/t/gpio-is-showing-ok-not-the-pin-state/94965/21 "2025-02-21T16:42:59Z")

</div>

I am currently trying on another installation, I think I have figured out where the problem is coming from.

---

<div class="post-metadata">

**Author:** ![devifast](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@devifast](https://discourse.nodered.org/u/devifast)\
**Post date:** [21 February 2025 17:34 UTC](https://discourse.nodered.org/t/gpio-is-showing-ok-not-the-pin-state/94965/22 "2025-02-21T17:34:17Z")

</div>

I solved the problem for my case. I have Dietpi Bullseye64 in the archive. after a new installation things are like this

 ![GPIO_noproblem](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/1/41e0222f82c8fe4c683de1586f8d45b98ec1e099.png)  
After downloading the latest version of Dietpi Bookworm directly from the site and installing and things look like this.  
 ![GPIO_problem](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/e/9e60992352c0614114cbf676f75e4ac0a30305ce.png)  
I will reach out to the Dietpi developers. Greetings.

---

<div class="post-metadata">

**Author:** ![yelkenli](https://avatars.discourse-cdn.com/v4/letter/y/bc8723/32.png) [@yelkenli](https://discourse.nodered.org/u/yelkenli)\
**Post date:** [22 February 2025 13:53 UTC](https://discourse.nodered.org/t/gpio-is-showing-ok-not-the-pin-state/94965/23 "2025-02-22T13:53:50Z")

</div>

> [@Colin](#):
>
> The fact that @yelkenli has not responded to my last suggestion may mean that he has found a problem with the wiring.

I did swap these over. please see the post right after your initial recommendation. The problem followed, telling me that there was something in the wiring or controls at the base station.

However, what I found with my oscilloscope indicates the wiring and controls are just fine.

I never found a solution to my problem, and I ran out of time. Since it is one of four inputs, I had planned to just use the other three.

However, I went back to node-red and retested. It seems to be working. Node-red is now at v4.0.9 (from v4.0.8 at first post). I find it hard to believe this is the issue. I will deploy the sensor and keep an eye on it.

---

<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:** [22 February 2025 22:26 UTC](https://discourse.nodered.org/t/gpio-is-showing-ok-not-the-pin-state/94965/24 "2025-02-22T22:26:56Z")

</div>

@devifast - So - I have had a play with DietPi and yes the proper install does seem a bit broken... so I have added a `--on-diet` option to the normal install script... which will force our usual install onto a DietPi... This should only be used if you uninstall their default node and node red packages using their dietpi-software tool... as a mixture of theirs and ours will probably break.

I have tested it on an early Pi2 (Arm6) and the GPIO now does seem to work ok.

Ideally they will fix the proper DietPi package and our option won't be necessary - but hey - our option is there if you want to try it... Big Caveat Emptor of course - you do so at your own risk.

---

<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 May 2025 22:27 UTC](https://discourse.nodered.org/t/gpio-is-showing-ok-not-the-pin-state/94965/25 "2025-05-23T22:27:12Z")

</div>

Closed on 23 May 2025 22:27 UTC

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

[Previous page](https://discourse.nodered.org/t/gpio-is-showing-ok-not-the-pin-state/94965.md?page=1)
