Hello guys,
i'am trying to connect the ESP Easy with one pn532 tag reader to my existing door intercom.
On my D1 mini Mini NodeMcu 4M i got Firmware 147, i can see the pn532 device over i2c (D1 and D2).Now I want to set the rules for 2 valid tags and control one relais on gpio16 for 5 sec to the door opener.
-------------------------------------------------------------
On PN532#Tag do
if [PN532#Tag]=123456
gpio,16,1
timerSet,1,1
if [PN532#Tag]=1234567
gpio,16,1
timerSet,1,1
endif
endon
-------------------------------------------------------------
I this the way to go ?
Thank you.
Door opener with pn532
Moderators: grovkillen, Stuntteam, TD-er
Re: Door opener with pn532
This is how I enter my door :Negan1969 wrote:Hello guys,
i'am trying to connect the ESP Easy with one pn532 tag reader to my existing door intercom.
On my D1 mini Mini NodeMcu 4M i got Firmware 147, i can see the pn532 device over i2c (D1 and D2).Now I want to set the rules for 2 valid tags and control one relais on gpio16 for 5 sec to the door opener.
-------------------------------------------------------------
On PN532#Tag do
if [PN532#Tag]=123456
gpio,16,1
timerSet,1,1
if [PN532#Tag]=1234567
gpio,16,1
timerSet,1,1
endif
endon
-------------------------------------------------------------
I this the way to go ?
Thank you.
on RFID#Tag=75XXXX98 do // Iron Jakcom R3F ring
gpio,14,0
delay 800
gpio,14,1
endon
-D
Re: Door opener with pn532
thank you Iron, it works:
On PN532#Tag do
if [PN532#Tag]=123456
gpio,16,1
delay 2800
gpio,16,0
if [PN532#Tag]=1234567
gpio,16,1
delay 2800
gpio,16,1
endif
endon
On PN532#Tag do
if [PN532#Tag]=123456
gpio,16,1
delay 2800
gpio,16,0
if [PN532#Tag]=1234567
gpio,16,1
delay 2800
gpio,16,1
endif
endon
Re: Door opener with pn532
Your second condition triggers the same pin pin / status twice ?Negan1969 wrote:thank you Iron, it works:
On PN532#Tag do
if [PN532#Tag]=123456
gpio,16,1
delay 2800
gpio,16,0
if [PN532#Tag]=1234567
gpio,16,1
delay 2800
gpio,16,1
endif
endon
-D
Re: Door opener with pn532
Yes, two valid Tags trigger the same Relais for the door opener.
Thanks again.
Thanks again.
Re: Door opener with pn532
For my little Project arrived a Relais Shield (Relay Shield für WeMos D1 mini Wifi ch340 IoT Lua Arduino kompatibel 397) that I wanted to stack to the Mini NodeMcu.Now I read that the shield uses the same D1 Pin which I use to connect the RFDI (D1 and D2) reader.
Is it possible for me to you use this shield so i can trigger it over gpio,16,1 (Mini NodeMcu) and rule set with my RFDI reader and how would be the setup in ESP Easy ? - or do I need a different relay ?
Greetings
Negan
Is it possible for me to you use this shield so i can trigger it over gpio,16,1 (Mini NodeMcu) and rule set with my RFDI reader and how would be the setup in ESP Easy ? - or do I need a different relay ?
Greetings
Negan
Who is online
Users browsing this forum: Ahrefs [Bot] and 13 guests