This project works with 3 different types of Micro-controller boards:
* Arduino MKR Wi-Fi 1010
* Espressif ESP32 (ThingPulse)
* ESP8266 NodeMCU
The board and Mifare RC522 RFID SPI Reader to track employees coming and going from the office. Could be used as In/Out board, but these days it will be used for keeping track of a possible COVID-19 infected person visiting a site.
The MCU listens on the SPI interface for a card to be swiped. When a card is detected, it connects to Wi-Fi using either regular or enterprise authentication and sends a specially-crafted HTML message to a web server that then stores the UID of the card in a SQL database with a timestamp and location for later reporting and alerting.
Note if Wi-Fi and/or the target web server cannot be reached, the swipe history will be retained as long as the device has power. Transmission will continue to be reattempted until all data is sent.
Although developed with the ThingPulse dev board with the intention of having low-power battery-operated LiPo supply, the code also works with the Arduino MKR Wi-Fi 1010 and ESP8266 (NodeMCU 0.9 tested); also for either regular or enterprise Wi-Fi connections.
Free and open source software. MIT license.
Although marked as a "work in progress" this RFID Logger is feature complete and operational, even though new capabilities are being added.
Code created with the Arduino IDE and the Visual Micro extension for Visual Studio based on samples from:
Espressif, martinius96, JeroenBeemster
Comments