Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 952 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 952 Bytes

ESPnfc

NodeMCU module (ESP8266) using a PN532 NFC chip to read tags and do a thing with UDP

Follow the install instructions for the PN532/NFC library here

Connects to wifi and waits for a NFC tags with specific UIDs. Sends a UDP packet if a matching tag is found.

This specific version is used to unlock a door, hence the unlock() function. (and the IPAddress object called doorIP)

To enable debug message, define DEBUG in PN532/PN532_debug.h, which is part of the NFC library.

Runs on an ESP8266 (nodeMCU v0.9) connected to an adafruit NFC (PN532) shield

Sort of a counterpart to this: https://github.com/Robotto/UDPrx_relay

HW setup:

NFC NodeMCU (ESP)
SS (CS) D2 (GPIO4)
IRQ D3 (GPIO0)
RST D4 (GPIO2)
SCK D5 (GPIO14)
MISO D6 (GPIO12)
MOSI D7 (GPIO13)