Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4781

Python • Re: Pi 5 / RC522 / Python for RFID Reading?

$
0
0
What!!! is quite simple.


First Were you able to connect the RFID to your raspberry Pi 5?
Were you able to read a card with it?

Then if both are yes adding a time stamp and send this to a SQL data base is simple.

I assume that you want to record time in time out.

We could give you help on how to connect the MFCR522 to the PI5 if it is not done.
mfrc522.jpg
You should by some protoboard and jumper wire.
jumperwire.jpg


To enable SPI on the PI5!

1 - do on a console "sudo raspi-config" and enable the spi . [ 3 Interface options, I3 SPI , YES , OK, Finish]



And to test if the reader works.

1 - clone my github
2- and run Read.py.
daniel@Pi5:~/MFRC522-python $ cd
daniel@Pi5:~ $ cd MFRC522-python/
daniel@Pi5:~/MFRC522-python $ python3 Read.py
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Move the rfid card near the reader. et voila!

Statistics: Posted by danjperron — Thu Mar 21, 2024 5:50 pm



Viewing all articles
Browse latest Browse all 4781

Trending Articles