1AdityaX / mfrc522-python

The mfrc522-python library is used to interact with RFID readers that use the MFRC522 chip interfaced with a Raspberry Pi.
https://pypi.org/project/mfrc522-python/
GNU General Public License v3.0
13 stars 4 forks source link

Hello! Is there a way I can customize the pins used? #5

Closed owntheweb closed 4 months ago

owntheweb commented 4 months ago

I'm setting up RC522 to scan stickers then play audio on a Pirate Audio bonnet. Challenge: There's a bit of overlap in the utilized pins with the Pirate Audio hard-wired (pinout here).

Overlap: SDA connects to Pin 24. !!! Pirate Audio Button Y SCK connects to Pin 23. OK MOSI connects to Pin 19. ??? maybe: I2S Pirate Audio (can share maybe?) MISO connects to Pin 21. ??? maybe: I2S Pirate Audio (can share maybe?) GND connects to Pin 6. OK RST connects to Pin 22. OK 3.3v connects to Pin 1. OK

It's getting late and I'm likely missing something.

One idea is I could just not init Button "Y", yet what fun is a button if pressing it does nothing. :) Not sure on pin 19 and 21.

Would you have ideas on how to proceed? In any case, thanks for putting this together. I was super excited to see I could make use of RFID on a Pi. Once mixed with a Pirate Audio, it will serve as a mini boombox for my little one (I will share the 3D design, code and tutorial!).

Thanks for taking a look in advance. ❤️

owntheweb commented 4 months ago

I think I found what I needed after sleep. Have a great day!