The sectors are further divided into 4 blocks each with 2 bytes of data. The 1 KB of space is divided into 16 sectors. The card or tag contains a unique UID and 1 KB of storage space (btw, there are also 4 KB cards available for purchase ). Here you’ll see the contents of your RFID card or tag. This should be what you’ll see on the serial monitor: Upload this sketch into your Arduino board and then tap your RFID card or tag to the reader. You can download it in his repository.Īfter installing the library, you’ll get access to a number of examples via File > Examples > MFRC522.įor our first try, we’ll be using the DumpInfo sketch. The most popular RFID library for Arduino is the one by Miguel Balboa. This is discussed in the last part of this article. If you want to use I2C, you need to modify the module to make the chip go to I2C mode. The wiring I presented above uses SPI communication rather than I2C. This means, we can just connect the RC522 module directly to an Arduino like this: Building an Arduino RFID Readerįortunately, even though the module is powered through 3.3V, the rest of the pins are 5V tolerant. The module runs on 3.3V but thankfully don’t consume too much power so you can just connect it to the Arduino’s power pin. If you have been working with embedded and microcontroller systems, you’ll immediately know that this module works with SPI and I2C. Here is the pinout of the RFID reader board: The choice as to which header to use depends on your project. Obviously, you need to solder any one of those pins into the eight holes on the reader board. ![]() Upon purchasing the module, you will have the RFID reader board, an RFID card and tag and two eight-pin headers: one straight and one bent to 90 degrees. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |