GPIO16 issue of ESP WROOM32

jadhavashitoshj48
Posts: 6
Joined: Mon Feb 25, 2019 9:37 am

GPIO16 issue of ESP WROOM32

Postby jadhavashitoshj48 » Mon Feb 25, 2019 10:21 am

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 11392 times

AshIsPurestWhite
Posts: 7
Joined: Tue Dec 11, 2018 3:09 am

Re: GPIO16 issue of ESP WROOM32

Postby AshIsPurestWhite » 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.

mikemoy
Posts: 627
Joined: Fri Jan 12, 2018 9:10 pm

Re: GPIO16 issue of ESP WROOM32

Postby mikemoy » Mon Feb 25, 2019 12:15 pm

Circuit is fine.

jadhavashitoshj48
Posts: 6
Joined: Mon Feb 25, 2019 9:37 am

Re: GPIO16 issue of ESP WROOM32

Postby jadhavashitoshj48 » Tue Feb 26, 2019 6:57 am

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 .

jadhavashitoshj48
Posts: 6
Joined: Mon Feb 25, 2019 9:37 am

Re: GPIO16 issue of ESP WROOM32

Postby jadhavashitoshj48 » Tue Feb 26, 2019 7:05 am

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.

Denis Brion
Posts: 9
Joined: Tue Feb 19, 2019 4:45 pm

Re: GPIO16 issue of ESP WROOM32

Postby Denis Brion » Tue Feb 26, 2019 9:26 am

Is your uln2803 + relay decoupled? (see http://forum.arduino.cc/index.php?topic=157018.0)

jadhavashitoshj48
Posts: 6
Joined: Mon Feb 25, 2019 9:37 am

Re: GPIO16 issue of ESP WROOM32

Postby jadhavashitoshj48 » Tue Feb 26, 2019 1:15 pm

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

mikemoy
Posts: 627
Joined: Fri Jan 12, 2018 9:10 pm

Re: GPIO16 issue of ESP WROOM32

Postby mikemoy » Tue Feb 26, 2019 1:39 pm

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.

jadhavashitoshj48
Posts: 6
Joined: Mon Feb 25, 2019 9:37 am

Re: GPIO16 issue of ESP WROOM32

Postby jadhavashitoshj48 » Tue Feb 26, 2019 1:55 pm

Find the attached schematic
Attachments
Capture.JPG
Capture.JPG (174.89 KiB) Viewed 11268 times

Denis Brion
Posts: 9
Joined: Tue Feb 19, 2019 4:45 pm

Re: GPIO16 issue of ESP WROOM32

Postby Denis Brion » Tue Feb 26, 2019 4:27 pm

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)

Who is online

Users browsing this forum: No registered users and 217 guests