Door opener with pn532

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Negan1969
New user
Posts: 5
Joined: 09 Dec 2016, 09:15

Door opener with pn532

#1 Post by Negan1969 » 09 Dec 2016, 10:07

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.

User avatar
iron
Normal user
Posts: 221
Joined: 24 Sep 2016, 08:37
Location: Greece
Contact:

Re: Door opener with pn532

#2 Post by iron » 09 Dec 2016, 20:48

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
-D

Negan1969
New user
Posts: 5
Joined: 09 Dec 2016, 09:15

Re: Door opener with pn532

#3 Post by Negan1969 » 10 Dec 2016, 14:58

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

User avatar
iron
Normal user
Posts: 221
Joined: 24 Sep 2016, 08:37
Location: Greece
Contact:

Re: Door opener with pn532

#4 Post by iron » 10 Dec 2016, 18:45

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 ?
-D

Negan1969
New user
Posts: 5
Joined: 09 Dec 2016, 09:15

Re: Door opener with pn532

#5 Post by Negan1969 » 11 Dec 2016, 14:47

Yes, two valid Tags trigger the same Relais for the door opener.

Thanks again.

Negan1969
New user
Posts: 5
Joined: 09 Dec 2016, 09:15

Re: Door opener with pn532

#6 Post by Negan1969 » 30 Dec 2016, 11:11

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

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests