0

So I have a NodeMCU board and I am trying to create a garage door opener. Which I was partially successful with. To explain, I was able to control the garage door using the NodeMCU board and open and close it successfully. However, the issue I am running into is the second I connect the garage door openers pins into my breadboard I cannot open and close the garage with the regular garage door opener button on the wall. From what I understand, it seems as the GPIO pin even in the LOW state (which the led is turned off) has power. My question is, is there any way to completely turn off the GPIO without having to use a relay? Thank you to everyone in advance!

This is the code I am using to turn on and off the GPIO feel free to let me know if I am doing something incorrectly.

digitalWrite(outputD5, LOW); 
digitalWrite(outputD5, HIGH); 
delay(1000); 
digitalWrite(outputD5, LOW); 
kva1992
  • 103
  • 1
  • 11

2 Answers2

0

The answer will be No !

If the pin has been configured as an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.

Make sure you are using appropriate resistor in your schematics and try probing the output pin.

Dharma B
  • 21
  • 9
  • So there is no way to make the GPIO pins like a relay? I mean it technically does it already but I am assuming it is completing the circuit regardless of the power being on or off? By the way, I am a little new at the hardware aspect in case you cannot tell. Like I stated above technically I have got the relay aspect working but it's just when I do that the cycle is still completed so the physical button on the wall stays inactive which makes no sense... Is there a reason the circuit is complete even if the GPIO pin is set to low? – kva1992 Nov 03 '20 at 16:33
  • Could you please post the circuit diagram / schematics here ? – Dharma B Nov 04 '20 at 04:31
  • there really isn't much I have the ground wire connected to the ground and the gpio d5 connected to the positive terminal and as I toggle the d5 it turns on and off the problem is even though the gpio pin d5 is toggled off it still completes the circuit resulting in the physical button on the wall not working – kva1992 Nov 04 '20 at 18:13
0

The solution for this question would be to switch both pins to input that way no signal is sent out, as an added safety measure set both pins to low. When you want to toggle them change the pins to output and high and then revert them to the original after a delay or what not.

kva1992
  • 103
  • 1
  • 11