<?xml version="1.0" encoding="UTF-8" ?><oembed><version>1.0</version><provider_name>Projects</provider_name><provider_url>https://projects.schneidr.de</provider_url><author_name>Gerald</author_name><author_url>https://projects.schneidr.de/author/admin/</author_url><title>MFRC522 and Arduino</title><html>Today the MFRC522 RFID reader I ordered some weeks ago arrived. Using it with an Arduino proved to be pretty easy after I found &lt;a href=&quot;http://www.grantgibson.co.uk/blog/2012/04/how-to-get-started-with-the-mifare-mf522-an-and-arduino/&quot;&gt;this blog post&lt;/a&gt;.

[caption id=&quot;attachment_677&quot; align=&quot;aligncenter&quot; width=&quot;584&quot;]&lt;a href=&quot;http://projects.schneidr.de/files/2013/05/P1090255-1280x960.jpg&quot;&gt;&lt;img class=&quot;size-large wp-image-677&quot; alt=&quot;Arduino Nano and MFRC522 RFID reader on a breadboard&quot; src=&quot;http://projects.schneidr.de/files/2013/05/P1090255-1280x960-600x450.jpg&quot; width=&quot;584&quot; height=&quot;438&quot; /&gt;&lt;/a&gt; Arduino Nano and MFRC522 RFID reader on a breadboard[/caption]

&lt;!--more--&gt;The crucial part from this blog post was the pin map ... every other blog post or forum thread was about software, nobody noted how you have to wire it up. The Arduino code provided on this post is a little confusing ... I have the impression it is a chinese translation of a code snippet I found on another site before, which only merged the code from module and sketch from &lt;a href=&quot;https://github.com/miguelbalboa/rfid&quot;&gt;this GitHub repository&lt;/a&gt; into one sketch file, making it extremely difficult to read. The code from Miguel Balboa on the other hand, while much more tidy is lacking information on how to use it.

So, this is how I wired the RFID reader to the Arduino, using the notations on the PCB:
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;MFRC522&lt;/th&gt;
&lt;th&gt;Arduino&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SDA&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SDK&lt;/td&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MOSI&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MISO&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;td&gt;GND&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RST&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3.3V&lt;/td&gt;
&lt;td&gt;3V3&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
This way I was able to use Balboas sketch and module without modifications.

[gallery ids=&quot;678,679&quot;]
&lt;h2&gt;Update 27.11.2013&lt;/h2&gt;
In the comments some people asked how they can make the RFID module work with other Arduino variants. It is really difficult to help with hardware I do not possess myself, so you can only hope that somebody else reads your comment and can help you. You will get much better help when you ask on a dedicated community site, I can highly recommend the &lt;a href=&quot;http://electronics.stackexchange.com/&quot;&gt;Electrical Engineering Stack Exchange site&lt;/a&gt;.</html><type>rich</type></oembed>