You need two NodeMCUs and two RFID RC522s. Because here you have to make check in and check out process. So that's why you want two components. If you don`t want to make like this then fine with one module.
You have to upload code in different different module for check in and check out.
1. RFID RC522:
RC522 is a highly integrated read and write card chip applied to the 13.56MHz contactless communication. Launched by the NXP Company, it is a low-voltage, low-cost, and small-sized non-contact card chip, a best choice for intelligent instrument and portable handheld devices.
The MF RC522 uses advanced modulation and demodulation concept which fully presented in all types of 13.56MHz passive contactless communication methods and protocols. In addition, it supports rapid CRYPTO1 encryption algorithm to verify MIFARE products. MFRC522 also supports MIFARE series of high-speed non-contact communication, with a two-way data transmission rate of up to 424kbit/s. As a new member of the 13.56MHz highly integrated reader card series, MF RC522 is much similar to the existing MF RC500 and MF RC530 when there are also great differences. It communicates with the host machine via the serial manner which needs less wiring. You can choose between SPI, I2C and serial UART mode (similar to RS232), which helps reduce the connection, save PCB board space (smaller size), and reduce cost.
Pin Function:
Electrical Parameters:
- Operating current: 13—26mA/DC 3.3V
- Idle current: 10-13mA/ DC 3.3V
- Sleep current: <80uA
- Peak current: <30mA
- Operating frequency: 13.56MHz
- Supported Cards: mifare1 S50, mifare1 S70, mifare UltraLight, mifare Pro, mifare Desfire
- Physical features: size: 40mm×60mm
- Ambient operating temperature: - 20-80 degrees centigrade
- Ambient storage temperature: - 40-85 degrees centigrade
- Ambient relative humidity: 5%—95%
Module Interface SPI Parameters:
- Data Transfer Rate: Max. 10Mbit / s
2. NodeMCU:
NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module. The term "NodeMCU" by default refers to the firmware rather than the development kits. The firmware uses the Luascripting language. It is based on the eLua project, and built on the Espressif Non-OS SDK for ESP8266. It uses many open source projects, such as lua-cjson and SPIFFS.
Pins:
NodeMCU provides access to the GPIO (General Purpose Input/Output) and a pin mapping table is part of the API documentation.
I/O index --> ESP8266 pin
0[*] --> GPIO16
1 --> GPIO5
2 --> GPIO4
3 --> GPIO0
4 --> GPIO2
5 --> GPIO14
6 --> GPIO12
7 --> GPIO13
8 --> GPIO15
9 --> GPIO3
10 --> GPIO1
11 --> GPIO9
12 --> GPIO10
[*] D0 (GPIO16) can only be used for GPIO read/write. It does not support open-drain/interrupt/PWM/I²C or 1-Wire.
Comments