Problems with combining an rfid card reader and ili9341 display

I am using an esp32s2. my display is working well and I know that my card reader is working well but when I combine them both my card reader is only working when I disconnect the display from power.

I connected the card to the same spi pins as the display. when I first used the hspi pins. the card reader did not work properly. it kept coming up that, "the device isn't properly connected." so i decided to use the same pins.
this display can also be used as touch screen. so i enabled the touch as well with the same spi pins.

So to conclude, i need the display and the card reader to work together so any advice would be very helpful.

my current pin connections for the card reader are:

SS - 8
RST- 42
MOSI - 35
MISO - 37
SCK - 36

Pin conncections for the ILI9341 display are:

CS- 34
RST - 40
DC - 38
MOSI - 35
SCK - 36
LED - 3.3V
MISO - 37
T_CLK - 36
T_CS - 16
T_DIN - 35
T_D0 - 37
T_IRQ - 15

Please give me advice on how I can connect these two devices so that they can work simultaneously....I am also supposed to connect a motor with them but that is not of concern right now.

You most probably have got a card reader with a broken SPI interface. It works if it's the only device on the bus but it blocks the bus for others. That's because of a level converter that doesn't tri-state the MISO line if CS is pulled high. Some of these readers may be fixed with good soldering skills others cannot be used in a multi-device setup.

If you want to fix it, disconnect the OE pin of the level converter and connect it to the CS signal.

If you buy a replacement, choose one of the serious suppliers (Adafruit, Sparkfun, etc.) as they don't have these problems but on cheap Chinese boards it's quite common.

Thank you so much for your reply.
Can you tell me how I can disconnect the OE pin of the level converter?

thank you again

Did you identify it already? Post the type of chip used on your board. Using that information you can find out which pin of the chip is the OE, in many cases you can then cut the trace and solder a thin wire to the pin. This needs solid solder skills. If you don't have them buy a board from a serious supplier.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.