Pizzarules668
Posts: 9
Joined: Sat Aug 17, 2019 10:01 pm

MFRC522 input

Sat Aug 17, 2019 10:09 pm

I am new to programming is they a way to take input from my mfrc522 via GPIO?

User avatar
topguy
Posts: 5935
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: MFRC522 input

Sun Aug 18, 2019 2:29 am


Pizzarules668
Posts: 9
Joined: Sat Aug 17, 2019 10:01 pm

Re: MFRC522 input

Mon Aug 19, 2019 2:19 pm

I used that to set it up.
I mean something like this

Code: Select all

if RFID.input == 3:
	print("3")

danjperron
Posts: 3419
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: MFRC522 input

Mon Aug 19, 2019 10:37 pm

if RFID.input == 3:
print("3")
GPIO???

An old version from Alexs reads the RFID card and executes a command found in the file /etc/RC522.conf. If you mean turn ON/OFF some GPIO using a RFID card this is what you need.


I made an updated version of the original code.
https://github.com/danjperron/rc522_reader

This is an example using the card to change video.
ex:https://dl.dropboxusercontent.com/s/89l ... ngRFID.MP4

Return to “Python”