# Raspberry pi gpio pins 27 and 28

**URL:** https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140
**Category:** General
**Created:** [24 November 2023 01:39 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140 "2023-11-24T01:39:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![kxkayser](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kxkayser/32/6301_2.png) [@kxkayser](https://discourse.nodered.org/u/kxkayser)
#### Post date: [24 November 2023 01:39 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/1 "2023-11-24T01:39:44Z")

</div>

Hi. I am writing flows for an already established hardware setup. The installation uses pin 28 (gpio 1). However, the gpio node doesn’t seem to allow me to select that pin. Any way around this? Thanks.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [24 November 2023 01:52 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/2 "2023-11-24T01:52:29Z")

</div>

Well, if you are using any I2C devices that may be a problem.

27 and 28 are used for an I2C bus.  
See this link:  
[https://www.jameco.com/Jameco/workshop/CircuitNotes/raspberry-pi-circuit-note.html](https://www.jameco.com/Jameco/workshop/CircuitNotes/raspberry-pi-circuit-note.html)

Now, you say _The installation uses pin 28_.  
Which installation? I am not understanding what you are installing.

---

<div class="post-metadata">

### Author: ![kxkayser](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kxkayser/32/6301_2.png) [@kxkayser](https://discourse.nodered.org/u/kxkayser)
#### Post date: [24 November 2023 02:07 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/3 "2023-11-24T02:07:57Z")

</div>

Thanks for the reply. I am not using i2c in these flows. The existing hardware circuit depends on using pin 28 as a digital io pin. This is based on an existing printed circuit board. I don’t know why the gpio node doesn’t allow use of pins 27 and 28 as they are usable as gpio 0 and 1 respectively in Python and other languages.

---

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [24 November 2023 02:10 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/4 "2023-11-24T02:10:46Z")

</div>

I'm confused.

ALREADY EXISTING HARDWARE SETUP.  
To me means it is working.

And you are now adding something else and it has stopped working.

The link I posted shows you what those pins are used for.  
Alas they don't say/call either of those pins `GPIO 1`

There seems to be more to this than you are sharing.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [24 November 2023 08:54 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/5 "2023-11-24T08:54:07Z")

</div>

Andrew, @kxkayser has a system already built that has that pin wired up and is trying to use node-red to drive it.

@kxkayser, google seems to suggest that the pin is not normally available as GPIO in python either, but I do see that there are workarounds. I don't know whether it is possible in node-red.

Is it not possible for you to use one of the normal GPIO pins?

---

<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: [24 November 2023 09:58 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/6 "2023-11-24T09:58:36Z")

</div>

> [@kxkayser](#):
>
> I don’t know why the gpio node doesn’t allow use of pins 27 and 28

They are not usable because they are reserved on the Pi and the node reflects that by not allowing them to be used. If you do a google search using `rpi python using pin 27` you will find article after article about this for example:

## I2C EEPROM

Pins 27 and 28 (GPIO 0 and GPIO 1) are reserved for connecting a HAT ID EEPROM. Do not use these pins unless you’re using an I2C ID EEPROM. Leave unconnected if you’re not using an I2C EEPROM.]

From: [Raspberry Pi Pinout Guide: How to use the Raspberry Pi GPIOs? | Random Nerd Tutorials](https://randomnerdtutorials.com/raspberry-pi-pinout-gpios/#i2c-eeprom)

---

<div class="post-metadata">

### Author: ![kxkayser](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kxkayser/32/6301_2.png) [@kxkayser](https://discourse.nodered.org/u/kxkayser)
#### Post date: [24 November 2023 15:17 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/7 "2023-11-24T15:17:25Z")

</div>

Hi Colin,

Thanks for the reply. To use another pin I will have to cut a trace on the board and rewire. Doable but not ideal. That’s why I was looking for a way to use the pin in NR.

Regards,

Ken Kayser

Tobaccoville, NC

[kxkayser@gmail.com](mailto:kxkayser@gmail.com)

---

<div class="post-metadata">

### Author: ![kxkayser](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kxkayser/32/6301_2.png) [@kxkayser](https://discourse.nodered.org/u/kxkayser)
#### Post date: [24 November 2023 15:19 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/8 "2023-11-24T15:19:41Z")

</div>

Thanks zenofmud. Guess I’ll have to modify the circuit board. Not ideal but doable.

Ken Kayser

Tobaccoville, NC

[kxkayser@gmail.com](mailto:kxkayser@gmail.com)

---

<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 January 2024 15:19 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-pins-27-and-28/83140/9 "2024-01-23T15:19:52Z")

</div>

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