maj 29, 2013 - Moduły    Komentowanie nie jest możliwe

Czytnik RFID 13,56MHz + 2 karty

Oferowany zestaw obejmuje:  – czytnik RFID 13,56MHz oparty na układzie RC522 ze złączami prostym i kątowym  – tag RFID 13,56MHz w formie karty dostępowej (Mifare S50) – tag RFID 13,56MHz w formie bryloczka (Mifare S50)

Układ MF RC522 jest modułem do komunikacji zbliżeniowej pracujący na częstotliwości 13,56MHz. Układ obsługuje standardy transmisji ISO 14443A/MIFARE.  Do komunikacji z mikrokontrolerem (np. Arduino) układ wykorzystuje interfejs SPI.

Przykład podłączenia oraz kod do Arduino dostępny jest: tutaj.

rfid-set-1-500x5001[1]

 Parametry techniczne:

  • Pobór prądu 13-26 mA
  • Napięcie zasilania 3,3 V
  • Pobór prądu w trybie uśpienia Częstotliwość pracy 13,56 MHz
  • Obsługiwane karty mifare1 S50, mifare1 S70 MIFARE Ultralight, mifare Pro, MIFARE DESFire
  • Temperatura pracy -20 – 80 °C
  • Odległość od czytnika <50mm/1.95″(mifare 1 )
  • Interfejs SPI
  • Max. prędkość transmisji 10 Mbit/s
  • Wymiary modułu 40 mm x 60 mm

LINIKI:   01   02


RFID on the arduino with the MF522-AN module

This module is very easy to setup and use. Here is how I wired it for the arduino uno.

  • Reset       >   Pin 5
  • SS           >   Pin 10
  • MOSI     >   Pin 11
  • MISO     >   Pin 12
  • SCK       >   Pin 13
  • Ground   >   Ground
  • 3.3v        >   3.3v

I used the following code example or example. There is also similar code at github however the comments are all in spanish. Both sets of code are basically the same code and both compiled and worked on ardiono 1.0.1.

With the first code listed you do have to uncomment lines 186-196 to get it to read the card. There is a lot of code there to play with and develope a basic understanding of how to work with this module. Once you have the code compiled and uploaded just open up the serial monitor and put a card in front of the reader. You should see the data pop up in the serial monitor.

It’s probably worth noting that this code uses SPI which is Synchronous – That means that the clock signal accompanies the data signal.

  • MOSI – Master Out Slave In;
  • MISO – Master In Slave Out;
  • SCK – Clock signal from master to slave;
  • SS – Slave Select signal selects salve devices.
  • SPI is a bus and can have multiple devices on the bus. Because the clock signal is present,
  • SPI can be operated faster than UART.

spi1[1]

MF522-AN1[1]

Here is a link or link  to my pde file. I used to have it as text in the blog post but I recently figured out that wordpress didn’t handle it well, sorry for any issues that caused.

Edited to add – I used the same code with an arduio micro and the MF522-AN

LINKI:   01


 

RFID on the Arduino Micro with the MF522-AN Module

I took a moment today to setup the MF522-AN Module with the Arduino Micro. I started out with a bread board and then realized it would be simpler to just use female to female jumper wires to connect them directly. I uses seven wires out of a ribbon cable to make the wiring cleaner. The little antenna works like a dream. The entire process of wiring and uploading the code only took about three or four minutes to complete. Your not going to get an RFID solution that is much more compact or simpler than this one is.

wiring is as follows for the Arduino Micro

  • Reset     >   Pin 5
  • SS         >   Pin 10
  • MOSI    >   MOSI
  • MISO    >   MISO
  • SCK      >   SCK
  • Ground   >   Ground
  • 3.3v        >   3.3v

Here is a picture of the two in action

Arduino-Micro-MF522-AN1[1]

 And here is a picture of the back side so you can see the wiring setup between the Arduino Micro and the MF522-AN RFID module.

Arduino-Micro-MF522-AN-RFID-module1[1]

Here is the pin out of the Arduino Micro for reference.

ArduinoMicro_pinout1[1]

Here is a screen shot of the serial monitor on my netbook running Kali Linux and the Arduino 1.0.5 IDE (download here)

Arduino-IDE-Serial-Monitor-RFID1[1]

I have included the code I started with here or here. There is a lot of example code here to work with, so the sky is the limit.

LINKI:   01

Comments are closed.