# Using a raspberry compute module with Node-red

**URL:** https://discourse.nodered.org/t/using-a-raspberry-compute-module-with-node-red/3607
**Category:** Hardware
**Created:** [2 October 2018 06:19 UTC](https://discourse.nodered.org/t/using-a-raspberry-compute-module-with-node-red/3607 "2018-10-02T06:19:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![laurent83390](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@laurent83390](https://discourse.nodered.org/u/laurent83390)
#### Post date: [2 October 2018 06:19 UTC](https://discourse.nodered.org/t/using-a-raspberry-compute-module-with-node-red/3607/1 "2018-10-02T06:19:56Z")

</div>

Does anybody know if the rpi-gpio node can be used with a compute module (cm3) ?  
The pin out is different and the rpi-gpio node does not detect the board type.

Thank

---

<div class="post-metadata">

### Author: ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discourse.nodered.org/u/Ivan)
#### Post date: [10 December 2020 07:11 UTC](https://discourse.nodered.org/t/using-a-raspberry-compute-module-with-node-red/3607/2 "2020-12-10T07:11:59Z")

</div>

HI.  
To do this, you need to find the file  
~ /.node-red/node\_modules/node-red-node-pi-gpio/nrgpio.py  
Open file in editor sudo nano nrgpio.py  
and change the line GPIO.setmode (GPIO. **BOARD** ) to GPIO.setmode (GPIO. **BCM** ), exit and save.  
Next, enter the GPIO number manually in the window below. For example GPIO16 = 16 but not 36.

---

<div class="post-metadata">

### Author: ![Jamos1988](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jamos1988/32/34562_2.png) [@Jamos1988](https://discourse.nodered.org/u/Jamos1988)
#### Post date: [1 February 2021 11:59 UTC](https://discourse.nodered.org/t/using-a-raspberry-compute-module-with-node-red/3607/3 "2021-02-01T11:59:25Z")

</div>

> [@Ivan](#):
>
> Next, enter the GPIO number manually in the window below. For example GPIO16 = 16 but not 36.

Hi Ivan!

I changed the python script you've mentioned.

Just one question about "Next, enter the GPIO number manually in the window below. For example GPIO16 = 16 but not 36."

I don't see any window, where should I input the gpio manually?  
I am using the node node-red-node-pi-gpio.

---

<div class="post-metadata">

### Author: ![Petuur](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@Petuur](https://discourse.nodered.org/u/Petuur)
#### Post date: [6 August 2021 14:51 UTC](https://discourse.nodered.org/t/using-a-raspberry-compute-module-with-node-red/3607/4 "2021-08-06T14:51:45Z")

</div>

Hi all,

Does someone have an answer to the question of Jamos1988? I'm stuck with the same problem: I don't see any window.

It now allows me to toggle a pin via the flow screen, however, nothing happens on the CM3.

Thanks in advance!
