Page 1 of 1

MicroPython how to achieve communication between ESP32 + RC522 (read and write cards)

Posted: Mon Jun 21, 2021 5:27 am
by Jackli
I have a module of ESP32 with Micropython firmware, I want to try to connect with mrfc522 to read/write cards, I have read some related articles on the web, https://www.instructables.com/How-to-Di ... gh-LCD-Wi/
but not using Micropython, I hope someone can give an idea.

Re: MicroPython how to achieve communication between ESP32 + RC522 (read and write cards)

Posted: Thu Jun 24, 2021 6:01 am
by katesimon123
RC522 is an SPI module, so you can easily interface it with SPI pins of ESP32. You need to download its third-party library and you will find ready to run examples to test it out. Try those examples and share your results.

Re: MicroPython how to achieve communication between ESP32 + RC522 (read and write cards)

Posted: Mon Jun 28, 2021 5:27 am
by Jackli
katesimon123 wrote:
Thu Jun 24, 2021 6:01 am
RC522 is an SPI module, so you can easily interface it with SPI pins of ESP32. You need to download its third-party library and you will find ready to run examples to test it out. Try those examples and share your results.
Can I ask you for a link to a third-party library? I'm not quite sure if I can download the right one for that library.

Re: MicroPython how to achieve communication between ESP32 + RC522 (read and write cards)

Posted: Mon Jun 28, 2021 9:34 am
by pythoncoder
See this thread which seems quite a compact driver.

I also looked at this Arduino library which is pretty hairy: nearly 2K lines of C. Clearly there is a lot more to RFID than meets the eye.

Re: MicroPython how to achieve communication between ESP32 + RC522 (read and write cards)

Posted: Tue Jun 29, 2021 8:43 am
by Jackli
pythoncoder wrote:
Mon Jun 28, 2021 9:34 am
See this thread which seems quite a compact driver.

I also looked at this Arduino library which is pretty hairy: nearly 2K lines of C. Clearly there is a lot more to RFID than meets the eye.
Thank you so much! You are really a very kind person. It really helped me a lot! Once I'm done with this project it will be displayed in the appropriate place!