Usage Guide
This guide explains how to operate the NFC Access Control System, including card management, menu navigation, and day-to-day usage.
System Startup
When the system powers on:
The LCD displays a welcome message: “NFC Access Control”
After initialization, it enters IDLE mode
The display shows: “Ready to scan…”
The system is now ready to read NFC cards
Normal Operation
Scanning Cards
When in IDLE mode:
Hold an NFC card near the PN532 reader (within 4 cm)
The system reads the card UID
It checks if the card is authorized
If card is authorized:
LCD displays: “Access Granted” with card ID
Relay activates for the configured duration (default: 3 seconds)
Green LED or buzzer indicates success (if configured)
System returns to IDLE mode
If card is not authorized:
LCD displays: “Access Denied”
Relay remains inactive
Red LED or buzzer indicates failure (if configured)
System returns to IDLE mode after 2 seconds
Card Management
Registering a New Card
To add a card to the authorized list:
Navigate to “Register Card” and press SELECT
LCD displays: “Present card to register”
Hold the card to the reader
System checks if card is already registered
If not registered:
Card UID is stored in EEPROM
LCD shows: “Card registered” with card number
System returns to menu after 2 seconds
If already registered:
LCD shows: “Card already exists”
No changes are made
Capacity: The system supports up to 40 cards.
Deleting a Card
To remove a card from the authorized list:
Navigate to “Delete Card” and press SELECT
LCD displays: “Present card to delete”
Hold the card to the reader
System searches for the card in EEPROM
If found:
Card is removed from storage
LCD shows: “Card deleted”
Remaining cards are reorganized
If not found:
LCD shows: “Card not found”
No changes are made
Listing Stored Cards
To view all registered cards:
Navigate to “List Cards” and press SELECT
LCD displays cards one at a time
Each card shows:
Card number (1-40)
Card UID in hexadecimal
Use UP/DOWN to scroll through cards
Press BACK to exit
Format:
Card 01:
AB 12 CD 34
Advanced Features
Card Cloning
The system supports advanced card cloning using custom sector technology.
To clone a card:
Navigate to “Clone Card” and press SELECT
LCD displays: “Present source card”
Hold the source card (the card to copy from) to the reader
System reads the source UID
LCD displays: “Present target card”
Hold the target card (the card to write to) to the reader
System performs the cloning operation:
Authenticates to Sector 1 of target card
Writes source UID to Block 4 of target card
Writes metadata to Block 5
Verifies the write operation
If successful:
LCD shows: “Clone successful”
Target card now responds with source UID
If failed:
LCD shows error message
Target card is unchanged
Important Notes:
Only works with Mifare Classic 1K/4K cards
Uses default keys (all 0xFF) for authentication
Target card must be writable
Source card can be any NFC card type
See Card Cloning Technology for technical details.
System Information
View system status:
Navigate to “System Info” and press SELECT
Display shows:
Firmware version
Total cards registered
Free card slots
EEPROM usage
Press BACK to return to menu
Customization
Access Duration
The relay activation time can be configured in include/Config.h:
#define ACCESS_GRANT_DURATION 3000 // milliseconds
Modify this value and rebuild the firmware.
Card Capacity
Maximum number of cards is set in include/Config.h:
#define MAX_CARDS 40
Increase or decrease based on your EEPROM size (1KB for Arduino Nano).
Best Practices
Regular Operation
Keep the reader area clear of metal objects
Present cards squarely to the reader
Don’t move the card during reading
Wait for confirmation before removing card
Card Management
Periodically review registered cards
Remove lost or stolen cards immediately
Keep a backup list of authorized card UIDs
Test new cards after registration
System Maintenance
Check power supply stability
Clean the NFC reader antenna periodically
Verify button responsiveness
Monitor serial output for errors
Security Considerations
Physical Security
Mount reader in a protected location
Protect Arduino and power supply from tampering
Use tamper-evident enclosures
Consider backup power for critical applications
Access Control
Limit physical access to the menu system
Regularly audit registered cards
Use card cloning only for authorized purposes
Keep default authentication keys secure
Serial Output
The system provides detailed logging via serial port at 115200 baud:
Card scan events
Authorization results
Menu actions
Error messages
System diagnostics
Example output:
NFC Access Control System
Firmware v1.0.0
Initializing PN532...
PN532 initialized in IRQ mode
System ready
Card detected: AB 12 CD 34
Card authorized - Access granted
Relay activated
Entering menu mode
Menu item selected: Register Card
Card registered: #15
Troubleshooting Common Issues
Card Not Reading
Hold card closer to reader (< 4 cm)
Try different card orientation
Check if card is supported type
Verify PN532 is powered and configured
False Readings
Keep metal objects away from reader
Check for electrical interference
Verify IRQ pin connection
Reduce reader sensitivity if needed
Relay Not Activating
Verify relay pin connection
Check relay power supply
Test relay independently
Review relay configuration
For more troubleshooting, see Troubleshooting.