Ghost ringing

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
Metatron
Normal user
Posts: 39
Joined: 20 Mar 2021, 09:38

Ghost ringing

#1 Post by Metatron » 26 Jun 2021, 21:51

Hello,

I used to control my door with a raspi, now I switched to ESPEasy, and I encounter "ghost ringing", meaning the doorbell rings, but nobody pressed the button.

I have the following setup with a Wemos Mini:

GPIO 4+5 drive Relays for the door bell and the door opener.
GPIO 14 is output for a buzzer (additional bell)
GPIO 12 light button (unused so far, just input)
GPIO 13 Door bell button, as a switch.
I2c is "none"
Even though I used "Pullup" on both settings, for "hardware" and "switch", I get this occational ringing.
Is the pullup not enough? With the raspi, it was working fine? Is the pin not good?
Image
Image
Safe button does not help either.
Does anybody have an idea, please?

Regards, Metatron

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Ghost ringing

#2 Post by TD-er » 26 Jun 2021, 23:21

Hoe long is the cable between the door bell button and the ESP?

Some common steps to think about:
- Twist long cables
- Use a lower value pull-up resistor, like 10k, or 4k7

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Ghost ringing

#3 Post by ThomasB » 26 Jun 2021, 23:25

First thing to do: Add an external pullup resistor to GPIO13 (D7) with a low value, such as 2.2K or 4.7K ohms.
Installation: One end of resistor to 3.3V, the other end to GPIO13. Install the resistor on the ESP device, not at far end of wiring.
If necessary, increase Klingel's De-Bounce to higher value, such as 250mS.

Edit: I see TD-er beat me to this.

- Thomas

User avatar
Metatron
Normal user
Posts: 39
Joined: 20 Mar 2021, 09:38

Re: Ghost ringing

#4 Post by Metatron » 27 Jun 2021, 08:23

Hello,

thanks a lot for the hints!
Over night, I detached the mass connection of the button - still false alarms.
This means to me, that the internal pull-up does not work. Do I have a faulty Wemos?
I had set external pull-up-resistors if there had not been internal ones.
I will give it a try.
Thanks again, Metratron.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Ghost ringing

#5 Post by Ath » 27 Jun 2021, 10:15

The case with those internal pull-up resistors is that they are somewhere between 80 and 100 kOhm (depends on the actual chip and manufacturing process), where the required value to effectively eliminate signal-noise is more like 2k2 to 10k, as both TD-er and ThomasB already said. I think we've all been there at some time :D
If that pull-up still doesn't reduce the noise enough, a small capacitor like 10 to 100 nF between the GPIO and gnd could improve things, but usually that's not needed.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Ghost ringing

#6 Post by TD-er » 27 Jun 2021, 11:22

Have you tried to twist the cables between the button and the ESP?
And like Ath suggested, maybe also add a capacitor too.

User avatar
Metatron
Normal user
Posts: 39
Joined: 20 Mar 2021, 09:38

Re: Ghost ringing

#7 Post by Metatron » 27 Jun 2021, 21:43

Added 4.7k Pull-Up, quiet so far!

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Ghost ringing

#8 Post by TD-er » 27 Jun 2021, 21:54

Metatron wrote: 27 Jun 2021, 21:43 Added 4.7k Pull-Up, quiet so far!
Maybe also add a camera to make sure you don't have some kids ringing your doorbel ;)

User avatar
Metatron
Normal user
Posts: 39
Joined: 20 Mar 2021, 09:38

Re: Ghost ringing

#9 Post by Metatron » 27 Jun 2021, 22:42

Unfortunately, my esp has become now really slow, and even hung up one time. I added a d18b20 to GPIO 14 and moved the buzzer zu GPIO 0.
Is that a problem?
I am running mega-20210503

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Ghost ringing

#10 Post by TD-er » 27 Jun 2021, 23:44

To what voltage is the pull-up resistor connected?
It should be to 3v3.
The Dallas sensor does also need a resistor, as described here: https://espeasy.readthedocs.io/en/lates ... e-pictures

The buzzer on GPIO-0 should not be a problem, as long as GPIO-0 is pulled up during boot.
If the buzzer pulls down this GPIO, then the ESP will not boot.

User avatar
Metatron
Normal user
Posts: 39
Joined: 20 Mar 2021, 09:38

Re: Ghost ringing

#11 Post by Metatron » 28 Jun 2021, 08:00

Hello,

thanks for the quick reply. I found the reason this morning!
I still had ticked "Use Safe Button (slower):" for the door bell button.
I tried this to see if it can fix my problem, before.
"slower" can be taken literally, it slows the whole system down.
What does it to?

Regards, Metatron

PS: Wiring is all fine, I did it as you described it.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Ghost ringing

#12 Post by TD-er » 28 Jun 2021, 09:59

Not 100% sure, but it looks like the main difference is that it does wait a short while longer to accept it.
And it does send a different event value (4) compared to the normal 0 or 1.

I can't explain why it slowed the entire system down.

User avatar
Metatron
Normal user
Posts: 39
Joined: 20 Mar 2021, 09:38

Re: Ghost ringing

#13 Post by Metatron » 09 Jul 2021, 17:04

Hello,

I was still suffering from occational freezing of the ESP. Removing thermometer, Buzzer etc did not help.
Then I saved the settings and rules and moved from a Wemos D1 to a nodemcu, downgraded to the February release and reloaded the settings and rules.
It is running now without freezes, but it is still very slow, no comparison to all my other ESPs with esp easy.
Any proposal, what else I could try?

Regards, Metatron

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 10 guests