Sorry Is a little bi confused.
I am using RPi 4b, pins below are used.
RPi 4b - RFID READER
PIN 24(GPIO8) - PIN 8 (SDA)
PIN 23(GPIO11) - PIN 7 (SCK)
PIN 19(GPIO10) - PIN 6 (MOSI)
PIN 21(GPIO9) - PIN 5 (MISO)
PIN 6(GROUND) - PIN 3 GND
PIN 22 (GPIO25) - PIN 2 RST
PIN 1 (3V3) - PIN 1 (3.3V)
So, may I use PIN 11 (GPIO17) and PIN 13 (GPIO27) ?
View attachment 881016
Is not working, please see below the error from a CONFIG FILE
RPI 4B GPIO 27 - PIN 7 - Not working
Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 393, in _gpio_list
return tuple(_to_gpio(int(channel)) for channel in chanlist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'int' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 365, in _to_gpio
return _BOARD_MAP[channel]
~~~~~~~~~~^^^^^^^^^
KeyError: 27
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
2025-07-30 20:55:11 RPINTS RFID Reader RFID-RFID 1 is Running
2025-07-30 20:55:11 RPINTS Sending Status;N;-1;0;0;|
self.run()
File "/var/www/html/python/FlowMonitor.py", line 662, in run
self.dispatch.updatepin(int(self.splitMsg[part]), MODE)
File "/var/www/html/python/PintDispatch.py", line 711, in updatepin
GPIO.setup(pin, GPIO.OUT)
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 680, in setup
for gpio in _gpio_list(chanlist):
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 396, in _gpio_list
return (_to_gpio(int(chanlist)),)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 367, in _to_gpio
raise ValueError('The channel sent is invalid on a Raspberry Pi')
ValueError: The channel sent is invalid on a Raspberry Pi
2025-07-30 20:55:11 RPINTS Sending Status;N;-1;0;0;|
---------------------------------
RPI 4B GPIO 17 - PIN 6 - Not working
Exception in thread Thread-13:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 393, in _gpio_list
return tuple(_to_gpio(int(channel)) for channel in chanlist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'int' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 365, in _to_gpio
return _BOARD_MAP[channel]
~~~~~~~~~~^^^^^^^^^
KeyError: 17
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/var/www/html/python/FlowMonitor.py", line 662, in run
self.dispatch.updatepin(int(self.splitMsg[part]), MODE)
File "/var/www/html/python/PintDispatch.py", line 711, in updatepin
GPIO.setup(pin, GPIO.OUT)
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 680, in setup
for gpio in _gpio_list(chanlist):
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 396, in _gpio_list
return (_to_gpio(int(chanlist)),)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 367, in _to_gpio
raise ValueError('The channel sent is invalid on a Raspberry Pi')
ValueError: The channel sent is invalid on a Raspberry Pi
2025-07-30 20:56:58 RPINTS RFID Reader RFID-RFID 1 is Running
2025-07-30 20:56:58 RPINTS Sending Status;N;-1;0;0;|