Blog Details

Rc522 Proteus: Library Updated

#include #include #define RST_PIN 9 #define SS_PIN 10 MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance void setup() Serial.begin(9600); // Initialize serial communications with the PC while (!Serial); // Do nothing if no serial port is opened SPI.begin(); // Init SPI bus mfrc522.PCD_Init(); // Init MFRC522 card Serial.println(F("Scan PICC to see UID, SAK, type, and data blocks...")); void loop() // Reset the loop if no new card is present on the sensor/reader. if ( ! mfrc522.PICC_IsNewCardPresent()) return; // Select one of the cards if ( ! mfrc522.PICC_ReadCardSerial()) return; // Dump debug info about the card; PICC_HaltA() is automatically called Serial.print(F("Card UID:")); 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(); delay(1000); Use code with caution. Running the Simulation

The RC522 Proteus library is a third-party peripheral model designed for Labcenter Electronics Proteus. It emulates the SPI-based MFRC522 RFID reader module.

Includes dedicated, selectable RFID cards and key fobs within the workspace. rc522 proteus library updated

Now that the library is installed, you need to set up the schematic.

This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later. #include #include #define RST_PIN 9 #define SS_PIN 10

/* * Typical pin layout used: * ----------------------------------------------------------------------------------------- * MFRC522 Arduino Arduino Arduino Arduino Arduino * Reader/PCD Uno/101 Mega Nano v3 Leonardo/Micro Pro Micro * Signal Pin Pin Pin Pin Pin Pin * ----------------------------------------------------------------------------------------- * RST/Reset RST 9 5 D9 RESET/ICSP-5 RST * SPI SS SDA(SS) 10 53 D10 10 10 * SPI MOSI MOSI 11 / ICSP-4 51 D11 ICSP-4 16 * SPI MISO MISO 12 / ICSP-1 50 D12 ICSP-1 14 * SPI SCK SCK 13 / ICSP-3 52 D13 ICSP-3 15 */

To use the RC522 module in your schematic capture, you must manually add the library files to your Proteus installation directory. Step 1: Download the Library Files mfrc522

| File Type | Folder Path | Purpose | | :--- | :--- | :--- | | | ...\Proteus X Professional\LIBRARY\ | Contains the schematic symbol and basic metadata (like pin labels) for the RC522 component. | | Model files (e.g., .HEX , .DLL ) | ...\Proteus X Professional\MODELS\ | Contains the actual simulation model , which defines how the component's internal logic behaves during a simulation. |

To simulate your RFID project, remember to compile your Arduino sketch to a first. Double-click your microcontroller in Proteus and load the file into the "Program File" section to begin your test.