Hi everyone,
I am using node-red-contrib-rc522 on a raspberry pi and as long as I use the pins indicated by default everything works fine.
Since I need to use the RFID reader together with a touch screen that has a connector that occupies the first 26 pins of the Raspberry GPIO, I have to move the RFID reader to SPI1.
Then, connecting the reader to the pins as per follow
33 3,3V
37 RST
39 GND
34 IRQ
35 MISO
38 MOSI
40 SCK
36 SDA
and by changing in accordance the configuration of file /home/pi/.node-red/node-modules/node-red-contrib-rc522/rc522.js, the reader can consistently read the cards I use.
However, in this situation, immediately after the deployment of the rc522 node on my flow, the touch screen goes white and, although the touch function continues to work, I can no longer see anything.
From time to time the reading of the card fails too.
This suggests a conflict to me.
The touch screen peripherals use spi0.0 (touch input) and spi0.1 (graph) and therefore it seems that something is conflicting with spi0.1
I tried also to look in mfrc522-rpi and rpi-softspi libraries to change some configurations but I wasn’t able to fix the issue.
I’m currently using this config.txt for the overlay
dtoverlay=spi0-2cs
dtoverlay=spi1-3cs,cs0_pin=36,cs1_pin=31 ,cs2_pin=32
but I guess the issue is related to something else. Am I wrong?
Do you have any idea on what to change to avoid this problem?