Rc522 Proteus Library Top › <Newest>
By default, Proteus 8/9 installs libraries here:
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\DATA\LIBRARY
Alternatively, for user-specific libraries:
C:\Users\YourUserName\Documents\Proteus 8 Professional\LIBRARY
To make the RC522 work in Proteus, you need the MFRC522 library installed in your Arduino IDE as well.
(Note: In Proteus, you will load the .hex file of this compiled code into the Arduino properties.)
#include <SPI.h>
#include <MFRC522.h>
#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
void setup()
Serial.begin(9600); // Initiate a serial communication
SPI.begin(); // Initiate SPI bus
mfrc522.PCD_Init(); // Initiate MFRC522
Serial.println("Approximate your card to the reader...");
Serial.println();
void loop()
// Look for new cards
if (!mfrc522.PICC_IsNewCardPresent())
return;
// Select one of the cards
if (!mfrc522.PICC_ReadCardSerial())
return;
//Show UID on serial monitor
Serial.print("UID tag :");
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ");
Serial.print(mfrc522.uid.uidByte[i], HEX);
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
Serial.println();
Serial.print("Message : ");
content.toUpperCase();
if (content.substring(1) == "83 AA 1B 2A") // Change here the UID of the card/cards that you want to give access
Serial.println("Authorized access");
Serial.println();
delay(3000);
else
Serial.println(" Access denied");
delay(3000);
You cannot use the standard MFRC522.h Arduino library directly in Proteus without a small modification. Proteus uses a virtual serial interface, but the RC522 library expects real hardware.
Here is a debug-ready Arduino sketch for Proteus simulation: rc522 proteus library top
#include <SPI.h> #include <MFRC522.h>#define RST_PIN 9 #define SS_PIN 10
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup() Serial.begin(9600); // Virtual Terminal in Proteus SPI.begin(); mfrc522.PCD_Init(); Serial.println("Proteus RC522 Simulator Ready");
void loop() // Check for new cards if ( ! mfrc522.PICC_IsNewCardPresent()) return; By default, Proteus 8/9 installs libraries here: C:\Program
if ( ! mfrc522.PICC_ReadCardSerial()) return;
Serial.print("UID tag: "); for (byte i = 0; i < mfrc522.uid.size; i++) Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte[i], HEX); Serial.println();
// Halt PICC mfrc522.PICC_HaltA();
RC522 Proteus library is a third-party simulation model designed to let you test RFID-based projects in the Proteus ISIS environment. Since the default Proteus library lacks an official RC522 component, these external libraries are essential for simulating security systems, attendance trackers, or door locks without physical hardware. Key Features & Performance Visual Simulation
: Provides a realistic-looking RC522 module component in the Proteus schematic. SPI Protocol Support : Corrected to simulate the SPI (Serial Peripheral Interface)
communication used by actual MFRC522 chips to talk to microcontrollers like Arduino. Virtual Card Interaction
: Most versions include a "Virtual Terminal" or a way to simulate placing a tag near the reader to trigger data transfer. Ease of Integration You cannot use the standard MFRC522
: Once installed, you can find it by typing "MFRC522" or "RC522" in the "Pick Device" selector. Critical Pros & Cons How to Add RFID Module in Proteus - Cykeo
Close and restart Proteus ISIS. Go to Component Mode (the "P" button to pick devices). Type "RC522" in the search bar. If you see the component, the installation was successful.
