# Problem with node red and gpio

**URL:** <https://discourse.nodered.org/t/problem-with-node-red-and-gpio/89823>\
**Category:** General\
**Tags:** gpio\
**Created:** [28 July 2024 00:43 UTC](https://discourse.nodered.org/t/problem-with-node-red-and-gpio/89823 "2024-07-28T00:43:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![makomouse](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/makomouse/32/93151_2.png) [@makomouse](https://discourse.nodered.org/u/makomouse)\
**Post date:** [28 July 2024 00:43 UTC](https://discourse.nodered.org/t/problem-with-node-red-and-gpio/89823/1 "2024-07-28T00:43:48Z")

</div>

Hello!  
I'm reaching out to you after searching in many places without finding a solution.  
I have a Raspberry Pi 2 and a Raspberry Pi 3, both with Node-RED installed, one with 32-bit Raspbian and the other with 64-bit Raspbian, both downloaded from the official Raspberry site.  
I installed Node-RED on both Raspberry Pis, but I can't get the GPIO to activate using the Node-RED nodes. I have a relay connected to the Raspberry Pi, connected to the 3V VCC, GND, and the signal to GPIO21 (pin 40). When I send a 0 or a 1, nothing happens, it only changes state in Node-RED, but it is not able to control the GPIO. Any suggestions? Please.

---

<div class="post-metadata">

**Author:** ![magicfire](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magicfire/32/93420_2.png) [@magicfire](https://discourse.nodered.org/u/magicfire)\
**Post date:** [28 July 2024 01:30 UTC](https://discourse.nodered.org/t/problem-with-node-red-and-gpio/89823/2 "2024-07-28T01:30:30Z")

</div>

If you raise your question with the NodRED code, others may help you more easily.  
I use node-red-contrib-opi-gpio to control ARM board GPIO, and that works.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/0/b08b521d010163e7e6536485e4bd1a7b9c8dff20.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/c/eca6d09222993b2c5883e83da0ade96687d33381.jpeg)

---

<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:** [26 October 2024 01:30 UTC](https://discourse.nodered.org/t/problem-with-node-red-and-gpio/89823/3 "2024-10-26T01:30:56Z")

</div>

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