Page 1 of 1

Ghost ringing

Posted: 26 Jun 2021, 21:51
by Metatron
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

Re: Ghost ringing

Posted: 26 Jun 2021, 23:21
by TD-er
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

Re: Ghost ringing

Posted: 26 Jun 2021, 23:25
by ThomasB
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

Re: Ghost ringing

Posted: 27 Jun 2021, 08:23
by Metatron
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.

Re: Ghost ringing

Posted: 27 Jun 2021, 10:15
by Ath
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.

Re: Ghost ringing

Posted: 27 Jun 2021, 11:22
by TD-er
Have you tried to twist the cables between the button and the ESP?
And like Ath suggested, maybe also add a capacitor too.

Re: Ghost ringing

Posted: 27 Jun 2021, 21:43
by Metatron
Added 4.7k Pull-Up, quiet so far!

Re: Ghost ringing

Posted: 27 Jun 2021, 21:54
by TD-er
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 ;)

Re: Ghost ringing

Posted: 27 Jun 2021, 22:42
by Metatron
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

Re: Ghost ringing

Posted: 27 Jun 2021, 23:44
by TD-er
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.

Re: Ghost ringing

Posted: 28 Jun 2021, 08:00
by Metatron
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.

Re: Ghost ringing

Posted: 28 Jun 2021, 09:59
by TD-er
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.

Re: Ghost ringing

Posted: 09 Jul 2021, 17:04
by Metatron
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