3 RFID Module based on NXP MFRC-522
RFID Module TABLE OF CONTENTS 1. Overview 2. Pin-Assignment 3. Using with an Arduino 3.1 Connecting the module 3.2 Installing the module 3.3 Example application 4. Using with a Raspberry Pi 4.1 Connecting the module 4.2 Setting up the system 4.3 Installing the module 4.4. Example application 5. Information- and take-back obligations 6. Support Published: 08.07.
RFID Module 1. OVERVIEW Dear customer, Thank you very much for choosing our product. In the following we will show you what has to be observed during commissioning and use. Should you encounter any unexpected problems during use, please feel free to contact us. 2. Frequecy 13,56 MHz Communication SPI RFID Protokoll Mifare Power Supply DC 3,3V PIN-ASSIGNMENT Assignment Published: 08.07.
RFID Module 3. USING WITH AN ARDUINO 3.1 CONNECTING THE MODULE Connect the RFID module to the pins of your Arduino as shown in the following picture and in the table in Chapter 2. Published: 08.07.
RFID Module 3.2 INSTALLING THE MODULE In order to use the module with your Arduino, it is first necessary to install the MFRC522 library from the Arduino library manager. In the window that opens, enter the term "MFRC522" in the search field and install the library. Published: 08.07.
RFID Module 3.3 EXAMPLE APPLICATION After you have successfully installed the library, your module is ready for use. You can use the following code example and transfer it to your Arduino to start up and test the module. #include #include #define RST_PIN #define SS_PIN 9 10 MFRC522 mfrc522(SS_PIN, RST_PIN); void setup() { //Initialisierung des RFID-Moduls Serial.begin(9600); while (!Serial); SPI.begin(); mfrc522.PCD_Init(); mfrc522.
RFID Module 4. USING WITH A RASPBERRY PI 4.1 CONNECTING THE MODULE Connect the RFID module to the pins of your Raspberry Pis as shown in the following figure and in the table in Chapter 2. Published: 08.07.
RFID Module 4.2 SETTING UP THE SYSTEM If you are already using a current Raspbian system on your Raspberry, you can skip this step and proceed immediately to step 3. First download the latest version of the Raspbian operating system here. With the help of a suitable program (e.g. „Win32 Disk Imager“) you can install the downloaded image file on a micro-SD card. Once the process is complete, you can insert the micro-SD card into your Raspberry Pi and start it. Published: 08.07.
RFID Module 4.3 INSTALLING THE MODULE Before you can use the module, it is necessary to install additional libraries. Open a terminal window on your Raspberry Pi and enter the following commands: sudo apt-get install python-pip python-dev build-essential sudo pip install RPi.GPIO Now open the config.txt file with the following command: sudo nano /boot/config.
RFID Module Now the scripts for writing and reading the data have to be written. Enter the following command to create the script for reading: sudo nano Read.py Enter the following script in this file: #!/usr/bin/env python import RPi.GPIO as GPIO import sys sys.path.append('/home/pi/MFRC522-python') from mfrc522 import SimpleMFRC522 reader = SimpleMFRC522() print("Now place tag next to the scanner to write") try: id, text = reader.read() print(id) print(text) finally: GPIO.
RFID Module 4.4 EXAMPLE APPLICATIONS The library now installed already contains sample applications for reading and writing. You can start the application for reading with the following command: sudo python Read.py Run the file to write a clip or a card with the following command: sudo python Write.py Published: 08.07.
RFID Module 5. INFORMATION- AND TAKE-BACK OBLIGATIONS Symbol on electrical and electronic equipment This crossed-out dustbin means that electrical and electronic appliances do not belong in the household waste. You must return the old appliances to a collection point. Before handing over waste batteries and accumulators that are not enclosed by waste equipment must be separated from it.
RFID Module 6. SUPPORT We are also there for you after the purchase. If you still have questions or problems, we are also available by e-mail, telephone and ticket support system. E-Mail: service@joy-it.net Ticket-System: http://support.joy-it.net Phone: +49 (0)2845 98469 – 66 (9:30 - 17:00 Uhr) For further information please visit our website: www.joy-it.net Published: 08.07.