# GPIO pinout change

**URL:** <https://discourse.nodered.org/t/gpio-pinout-change/82712>\
**Category:** Hardware\
**Created:** [8 November 2023 13:37 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712 "2023-11-08T13:37:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/peter/32/25135_2.png) [@Peter](https://discourse.nodered.org/u/Peter)\
**Post date:** [8 November 2023 13:37 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/1 "2023-11-08T13:37:02Z")

</div>

Hi Everyone,

It's been a long time since we have connected, and I've missed you guys!!

I have a technical question regarding my challenge with the general GPIO out/In nodes for Raspberry Pi. I'm using a different, unknown SBC (similar to a CM4). Everything works well, and node-red v3 is up and running. The challenge I face is that the GPIO node pins id's don't match those of my board and thus don't work at all. However, If I run a quick simple phyton script from the terminal, I can confirm my hardware functions as planned and the LED on/off as intended from the GPIO Pins. I can confirm it's not the same as Raspberry and would like to change the GPIO Node file with the pinout data to match my board.

Now my question is, where do I allocate this lib or file to be amended, and is it even possible? have some attempted this before?

It would be great if someone could be so kind to assist.

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 November 2023 14:26 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/2 "2023-11-08T14:26:15Z")

</div>

Hey Peter, long time no see. I hope you are well.

Unfortunately, I don't do much with GPIO at all & not having the same board as you I am unable to give you a leg up.

I know there are others on the forum that do and will be better able to advise.

In the mean time, the source code for the GPIO nodes are here: [https://github.com/node-red/node-red-nodes/tree/master/hardware/PiGpio](https://github.com/node-red/node-red-nodes/tree/master/hardware/PiGpio)

You may have some success hacking away.

If you do, we _might_ be able to find a way of letting users specify custom mapping (or perhaps provide a "hardware mapping" drop-down?) Pure speculation until someone with more knowledge in this area pops in.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 November 2023 14:26 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/3 "2023-11-08T14:26:38Z")

</div>

Hi Peter, welcome back.

Which GPIO node are you referring to? There are quite a lot: [Library - Node-RED (nodered.org)](https://flows.nodered.org/search?term=gpio)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 November 2023 14:27 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/4 "2023-11-08T14:27:49Z")

</div>

> [@Steve-Mcl](#):
>
> the GPIO nodes

Those are only Pi specific though aren't they? If using a different SBC, no reason to think those would work at all.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 November 2023 14:30 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/5 "2023-11-08T14:30:00Z")

</div>

> [@TotallyInformation](#):
>
> no reason to think those would work at all

Quite right Julian.

See here:

> [@Steve-Mcl](#):
>
> Unfortunately, I don't do much with GPIO at all & not having the same board as you I am unable to give you a leg up

😃

* * *

In fairness, I made some assumptions from the statement "The challenge I face is that the GPIO node pins id's don't match those of my board" (I read, "if the IDs were lined up, it should work")

This is where the hardware guys step in and tell me to keep out 😃

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 November 2023 14:34 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/6 "2023-11-08T14:34:57Z")

</div>

> [@Steve-Mcl](#):
>
> tell me to keep out

I doubt many of the active people on the forum have the capability to keep out of things - I know that's one of my failings! 😳

---

<div class="post-metadata">

**Author:** ![Peter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/peter/32/25135_2.png) [@Peter](https://discourse.nodered.org/u/Peter)\
**Post date:** [8 November 2023 14:51 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/7 "2023-11-08T14:51:35Z")

</div>

HI @Steve-Mcl , thanks for the quick response and so nice to hear from you again my friend. I will have a look at the link you shared maybe it get wiser .

---

<div class="post-metadata">

**Author:** ![Peter](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/peter/32/25135_2.png) [@Peter](https://discourse.nodered.org/u/Peter)\
**Post date:** [8 November 2023 14:53 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/8 "2023-11-08T14:53:57Z")

</div>

The standard RPI nodes are the most common ones used on RPI.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 November 2023 17:17 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/9 "2023-11-08T17:17:53Z")

</div>

> [@Peter](#):
>
> used on RPI.

Yes, but I thought you weren't using an RPi? Did I misunderstand? But if you are using a Pi, aren't the pins standard on all of them?

---

<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:** [7 January 2024 17:18 UTC](https://discourse.nodered.org/t/gpio-pinout-change/82712/10 "2024-01-07T17:18:22Z")

</div>

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