--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/283af7e7-ab5a-4d95-a504-fe3205bbaafbn%40googlegroups.com.
Do you have a pullup resistor on the GPIO? With a NO contact you need this.

Otherwise the GPIO will ‘float’ and can give strange results. ESP8266 GPIO are ON when the GPIO is at 0V and OFF when the GPIO is at Vcc
With a NC contact swap the positions of Vcc and 0V
Regards
Phil K
Sent from Mail for Windows 10
From: Robert Tomiczek
Sent: 11 May 2021 13:03
To: TasmotaUsers
Subject: Re: Wemos d1 mini pro + MFRC522 (stops reading)
Hi,
As on pictures below:
In addition: just found out that after detaching switch physically (not only in software) everything works correctly. But I don't understand why...
This is the switch I'm using. Both button and switch NO between GND and GPIO
rules I'm using:
rule1 ON Switch1#state do Publish stat/%topic%/@ ON endon (sent mqtt informing about letter passing mailbox opening)
rule2 ON RC522#UID=******** DO power on ENDON ON RC522#UID=*********** DO power on ENDON (open gate based on rules to avoid situation when access stop working due to lot wifi signal)
Everything powered via 5v phone charger through micro USB.
wtorek, 11 maja 2021 o 13:24:39 UTC+2 knowles...@gmail.com napisał(a):
From: Robert Tomiczek
Sent: 11 May 2021 11:29
To: TasmotaUsers
Subject: Wemos d1 mini pro + MFRC522 (stops reading)
Hello,
I have connected Wemos D1 mini pro with MFRC522 + button + switch and put into mailbox to get information about new letter and to be able to open garden gate by MQTT and RFID.
However MFRC522 stops reading cards after anything is triggered (relay <via button/mqtt/web>; button; switch <detached from relay using rules>). Then after reboot it reads again until anything is triggered.
Previously I have used it with esp-rfid and everything was working fine, except that I hadn't opportunity to attach switch to detect letters. Ofc I tried disabling the switch but didn't help.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/283af7e7-ab5a-4d95-a504-fe3205bbaafbn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/bffd38b6-4c26-4308-b168-4c8cac66cad6n%40googlegroups.com.
The internal pull ups are ‘weak’ and the fact that disconnecting the switch makes a difference might point to that being the issue.
Sent from Mail for Windows 10
From: Robert Tomiczek
Sent: 11 May 2021 14:55
To: TasmotaUsers
Subject: Re: Wemos d1 mini pro + MFRC522 (stops reading)
Internal input pull-up are activated in Tasmota software. (Button_n and Switch_n would be without input pull-up)
wtorek, 11 maja 2021 o 15:42:48 UTC+2 knowles...@gmail.com napisał(a):
Do you have a pullup resistor on the GPIO? With a NO contact you need this.
Otherwise the GPIO will ‘float’ and can give strange results. ESP8266 GPIO are ON when the GPIO is at 0V and OFF when the GPIO is at Vcc
With a NC contact swap the positions of Vcc and 0V
Regards
Phil K
Sent from Mail for Windows 10
From: Robert Tomiczek
Sent: 11 May 2021 13:03
To: TasmotaUsers
Subject: Re: Wemos d1 mini pro + MFRC522 (stops reading)
Hi,
As on pictures below:
In addition: just found out that after detaching switch physically (not only in software) everything works correctly. But I don't understand why...
This is the switch I'm using. Both button and switch NO between GND and GPIO
rules I'm using:
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/e1cd08a8-6306-4a25-91c9-49dd3faa1fb1n%40googlegroups.com.