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

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Jackli
Posts: 80
Joined: Thu Apr 29, 2021 9:11 am

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

Post by Jackli » Mon Jun 21, 2021 5:27 am

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.

katesimon123
Posts: 15
Joined: Mon Jun 14, 2021 12:49 am

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

Post by katesimon123 » 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.
Last edited by katesimon123 on Sun Jul 11, 2021 2:21 am, edited 1 time in total.

Jackli
Posts: 80
Joined: Thu Apr 29, 2021 9:11 am

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

Post by Jackli » Mon Jun 28, 2021 5:27 am

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.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

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

Post by pythoncoder » 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.
Peter Hinch
Index to my micropython libraries.

Jackli
Posts: 80
Joined: Thu Apr 29, 2021 9:11 am

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

Post by Jackli » Tue Jun 29, 2021 8:43 am

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!

Post Reply