ich möchte mehrere NFC Reader(https://www.amazon.de/gp/product/B01M28 ... UTF8&psc=1) an einem Raspberry Pi anschließen und mittels Python mit denen kommunizieren.
Mit diesem Tutorial(https://pimylifeup.com/raspberry-pi-rfid-rc522/) wird ein NFC Reader an einem Raspberry Pi angeschlossen.
Folgende Pins werden benötigt:
- Pin 24 (CE0)
- Pin 23 (SLCK)
- Pin 19 (MOSI)
- Pin 21 (MISO)
- Pin 6
- Pin 22
- Pin 1
Kann man, da es fast alle Pins doppelt gibt also 2 NFC Reader an ein Raspberry Pi anschließen? Was ist mit Pin 24 (CE0), wäre Pin 26 (CE1) identisch?
Das Python Code aus dem Tutorial:
Code: Alles auswählen
#!/usr/bin/env python
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
try:
id, text = reader.read()
print(id)
print(text)
finally:
GPIO.cleanup()