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:
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.
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.