Page 1 of 2

GPIO16 issue of ESP WROOM32

Posted: Mon Feb 25, 2019 10:21 am
by jadhavashitoshj48
Hello ,
I have attached push button switch to GPIO16 of ESP WROOM32 as shown in the figure. I am using GPIO16 as interrupt pin. On the falling edge of switch I am performing some task. But the problem is that GPIO16 is automatically triggering this task after some time without touching push button. Is there any issue with this GPIO16 or should I modify the circuit. Please help me to solve this problem.
SCHEMATIC.png
SCHEMATIC.png (23.98 KiB) Viewed 11047 times

Re: GPIO16 issue of ESP WROOM32

Posted: Mon Feb 25, 2019 12:05 pm
by AshIsPurestWhite
I think the schematic is OK, and you may check your code with respect to the GPIO init. You can post the code if you like. Also the GPIO may suffer noises from other part of the board. In this situation a larger value of the capacitor will help to solve the problem, e.g. 1uF.

Re: GPIO16 issue of ESP WROOM32

Posted: Mon Feb 25, 2019 12:15 pm
by mikemoy
Circuit is fine.

Re: GPIO16 issue of ESP WROOM32

Posted: Tue Feb 26, 2019 6:57 am
by jadhavashitoshj48
I tried it with larger capacitor also but it is not working . I found that this problem occurs when I am switching the AC load using relay.I have connected 8 relays to ULN2803 IC . When I am switching the AC load ,it is triggering the interrupt connected to the push button. There is no connection between the AC load and push button. I monitored the status of GPIO16 there is no falling edge on this GPIO16 when I was monitoring the status of this on digital oscilloscope. When I am not connecting any AC load to the relay that time all operations okay .

Re: GPIO16 issue of ESP WROOM32

Posted: Tue Feb 26, 2019 7:05 am
by jadhavashitoshj48
AshIsPurestWhite wrote:
Mon Feb 25, 2019 12:05 pm
I think the schematic is OK, and you may check your code with respect to the GPIO init. You can post the code if you like. Also the GPIO may suffer noises from other part of the board. In this situation a larger value of the capacitor will help to solve the problem, e.g. 1uF.
When I removed the capacitor connected to push button,false triggering frequency gets reduced by 80 percentage.

Re: GPIO16 issue of ESP WROOM32

Posted: Tue Feb 26, 2019 9:26 am
by Denis Brion
Is your uln2803 + relay decoupled? (see http://forum.arduino.cc/index.php?topic=157018.0)

Re: GPIO16 issue of ESP WROOM32

Posted: Tue Feb 26, 2019 1:15 pm
by jadhavashitoshj48
Hello When I am connecting 8 relay to output of ULN2803 and controlling it with 3.3V to the input of ULN2803. The problem is that when I am controlling 12V relay it is effecting the operation of ES32 .Please tell me the solution

Re: GPIO16 issue of ESP WROOM32

Posted: Tue Feb 26, 2019 1:39 pm
by mikemoy
Your not providing enough information for people to help.
How are you powering your ESP32
How are you powering your 12v relays.
What is the schematic of your system, how are things wired up, what other components do you have on your system.
The more information you provide the more it will help.

Re: GPIO16 issue of ESP WROOM32

Posted: Tue Feb 26, 2019 1:55 pm
by jadhavashitoshj48
Find the attached schematic

Re: GPIO16 issue of ESP WROOM32

Posted: Tue Feb 26, 2019 4:27 pm
by Denis Brion
12v should be decoupled (say, 10 uF -low pass, for relay activation- + 100 nf).
3.3v decoupling (2*0.1 uF : 100nf + 0.1uf) is either a typo, or unsufficient (100 nF + 1 uF would be better)