Page 1 of 1
Door opener with pn532
Posted: 09 Dec 2016, 10:07
by Negan1969
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.
Re: Door opener with pn532
Posted: 09 Dec 2016, 20:48
by iron
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.
This is how I enter my door :
on RFID#Tag=75XXXX98 do // Iron Jakcom R3F ring
gpio,14,0
delay 800
gpio,14,1
endon
Re: Door opener with pn532
Posted: 10 Dec 2016, 14:58
by Negan1969
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
Re: Door opener with pn532
Posted: 10 Dec 2016, 18:45
by iron
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
Your second condition triggers the same pin pin / status twice ?
Re: Door opener with pn532
Posted: 11 Dec 2016, 14:47
by Negan1969
Yes, two valid Tags trigger the same Relais for the door opener.
Thanks again.
Re: Door opener with pn532
Posted: 30 Dec 2016, 11:11
by Negan1969
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