<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5Stack - Simple Applications for RFID- Arduino]]></title><description><![CDATA[<p dir="auto">HI,<br />
I would like to connect a RFID reader to a M5Stack, I have a RC522 sensor witch is connected like this SDA to SDA, SCK to SCK, MOSI to MO, MI to MI, Reset to 1.  I have this code:</p>
<p dir="auto">#include &lt;SPI.h&gt;<br />
#include &lt;MFRC522.h&gt;<br />
#include &lt;M5Stack.h&gt;</p>
<p dir="auto">#define RST_PIN  1    //Pin 1 para el reset del RC522<br />
#define SS_PIN  21   //Pin 21 para el SS (SDA) del RC522<br />
MFRC522 mfrc522(SS_PIN, RST_PIN); //Creamos el objeto para el RC522</p>
<p dir="auto">void setup() {<br />
M5.begin();<br />
Serial.begin(9600); //Iniciamos la comunicación  serial<br />
SPI.begin();        //Iniciamos el Bus SPI<br />
mfrc522.PCD_Init(); // Iniciamos  el MFRC522<br />
Serial.println("Lectura del UID");<br />
M5.Lcd.println("Lectura del UID");<br />
}</p>
<p dir="auto">void loop() {<br />
// Revisamos si hay nuevas tarjetas  presentes<br />
if ( mfrc522.PICC_IsNewCardPresent())<br />
{<br />
//Seleccionamos una tarjeta<br />
if ( mfrc522.PICC_ReadCardSerial())<br />
{<br />
// Enviamos serialemente su UID<br />
Serial.print("Card UID:");<br />
M5.Lcd.println("Card UID:");<br />
for (byte i = 0; i &lt; mfrc522.uid.size; i++) {<br />
Serial.print(mfrc522.uid.uidByte[i] &lt; 0x10 ? " 0" : " ");<br />
M5.Lcd.print (mfrc522.uid.uidByte[i] &lt; 0x10 ? " 0" : " ");<br />
Serial.print(mfrc522.uid.uidByte[i], HEX);<br />
M5.Lcd.print (mfrc522.uid.uidByte[i], HEX);<br />
}<br />
Serial.println();<br />
M5.Lcd.println();<br />
// Terminamos la lectura de la tarjeta  actual<br />
mfrc522.PICC_HaltA();<br />
}<br />
}<br />
´´<br />
Unfortunately does not work.<br />
Please, could somebody give me an advise, something  simple...<br />
In the future I want to create a door access.<br />
Thank you in advance.</p>
]]></description><link>https://community.m5stack.com/topic/105/m5stack-simple-applications-for-rfid-arduino</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 20:13:54 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/105.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Feb 2018 20:46:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stack - Simple Applications for RFID- Arduino on Thu, 15 Mar 2018 21:50:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jp128" aria-label="Profile: jp128">@<bdi>jp128</bdi></a>  <a class="plugin-mentions-user plugin-mentions-a" href="/user/dave" aria-label="Profile: Dave">@<bdi>Dave</bdi></a>   <a class="plugin-mentions-user plugin-mentions-a" href="/user/ddaniel" aria-label="Profile: ddaniel">@<bdi>ddaniel</bdi></a></p>
<p dir="auto">Hi Jp128,<br />
Thanks for the tip..... could be very useful.... more reading required....</p>
]]></description><link>https://community.m5stack.com/post/604</link><guid isPermaLink="true">https://community.m5stack.com/post/604</guid><dc:creator><![CDATA[JJ]]></dc:creator><pubDate>Thu, 15 Mar 2018 21:50:43 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack - Simple Applications for RFID- Arduino on Thu, 15 Mar 2018 19:38:43 GMT]]></title><description><![CDATA[<p dir="auto">You could take a look at <a href="https://www.sparkfun.com/products/11828" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.sparkfun.com/products/11828</a></p>
<p dir="auto">It is somewhat more expensive, but has a body type that may be able to fit just fine into a different stack, or even the protoboard.  They have other models as well.</p>
]]></description><link>https://community.m5stack.com/post/603</link><guid isPermaLink="true">https://community.m5stack.com/post/603</guid><dc:creator><![CDATA[jp128]]></dc:creator><pubDate>Thu, 15 Mar 2018 19:38:43 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack - Simple Applications for RFID- Arduino on Fri, 09 Mar 2018 10:45:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dave" aria-label="Profile: dave">@<bdi>dave</bdi></a> Hi Dave,</p>
<p dir="auto">I have a RFID-RC522 module on order but hasn't arrived yet... Apparently the board dimensions are:     3.9 x 6 cm</p>
<p dir="auto">So unfortunately it seems the whole module won't fit  inside the M5 case....</p>
<p dir="auto">Might be ok with just a little sticking out the side....</p>
]]></description><link>https://community.m5stack.com/post/539</link><guid isPermaLink="true">https://community.m5stack.com/post/539</guid><dc:creator><![CDATA[JJ]]></dc:creator><pubDate>Fri, 09 Mar 2018 10:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack - Simple Applications for RFID- Arduino on Sun, 04 Mar 2018 09:33:33 GMT]]></title><description><![CDATA[<p dir="auto">I am interested in a compact RFID reader with a feedback display.<br />
I am wondering whether you have managed to build the sensor into the stack or whether it needs to be put off to the side somewhere?</p>
]]></description><link>https://community.m5stack.com/post/499</link><guid isPermaLink="true">https://community.m5stack.com/post/499</guid><dc:creator><![CDATA[Dave]]></dc:creator><pubDate>Sun, 04 Mar 2018 09:33:33 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack - Simple Applications for RFID- Arduino on Wed, 21 Feb 2018 05:19:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ddaniel" aria-label="Profile: ddaniel">@<bdi>ddaniel</bdi></a> Read my answer again: don't use pin 1 for RST_PIN. Connect it to another pin that isn't used yet.</p>
]]></description><link>https://community.m5stack.com/post/432</link><guid isPermaLink="true">https://community.m5stack.com/post/432</guid><dc:creator><![CDATA[dda]]></dc:creator><pubDate>Wed, 21 Feb 2018 05:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack - Simple Applications for RFID- Arduino on Tue, 20 Feb 2018 18:43:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dda" aria-label="Profile: dda">@<bdi>dda</bdi></a> Are there any other solucions to connect RFID to M5Stack?</p>
]]></description><link>https://community.m5stack.com/post/426</link><guid isPermaLink="true">https://community.m5stack.com/post/426</guid><dc:creator><![CDATA[Ddaniel]]></dc:creator><pubDate>Tue, 20 Feb 2018 18:43:24 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack - Simple Applications for RFID- Arduino on Tue, 20 Feb 2018 15:04:52 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">#define RST_PIN  1    //Pin 1 para el reset del RC522</p>
</blockquote>
<p dir="auto">As <a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a> said, PIN 1 is used by Serial0. You should pick a GPIO that's not in use already.</p>
]]></description><link>https://community.m5stack.com/post/425</link><guid isPermaLink="true">https://community.m5stack.com/post/425</guid><dc:creator><![CDATA[dda]]></dc:creator><pubDate>Tue, 20 Feb 2018 15:04:52 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack - Simple Applications for RFID- Arduino on Tue, 20 Feb 2018 03:43:58 GMT]]></title><description><![CDATA[<p dir="auto">pin 1 is for serial0, maybe not good for this.</p>
]]></description><link>https://community.m5stack.com/post/421</link><guid isPermaLink="true">https://community.m5stack.com/post/421</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Tue, 20 Feb 2018 03:43:58 GMT</pubDate></item></channel></rss>