Hi
I am trying to program the rc522 module with uart to read the UID of the cards, but I can't find the library or the code,
I'm using arduino nano
Welcome to the forum
Have you tried using the Library Manager in the IDE to search for RC522 ?
Finding a library is not a problem with the IDE Topic moved to a more suitable location on the forum.
Please provide the link to your RC522 module.
Lovely, a photo that is unsharp and overexposed.
As far as I can see, there are no UART signals; I2C and SPI only.
@mahdi_shd
Why do you think it is possible to communicate with this module via UART?
I haven't seen any arduino libraries that work with the RC522 module via UART, so it seems you'll have to write the code yourself. First what you need to do is figure out how to switch the chip interface to the UART protocol.
I remember reading somewhere that the selection of connection type is made by special pins on the chip, but these pins are not routed to the module contacts. In any case, you should start by studying the datasheet.
SPI us a bus system. Multiple devices can be connected to it and which one is active at any time is determined by the state of their unique select pin
Why don't you want to use spi for this module as well?
Thanks for the better 'picture'.
Did you already consult the datasheet of the module that will tell you how to use it?
The datasheet for the MFRC522 seems quite clear that there are hardware connections that must be observed in order to use the UART interface.
Have you modified your breakout board in order to be compliant with selecting the UART over the SPI interface?
And given that a hardware mod is required, I think it's unlikely that you will find a ready made library that supports it. You will very likely have to write your own library and code.
Thank you all, I managed to solve this challenge
Do you mind sharing the solution for others that encounter the same problem?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.