SD Card bringing the SPI bus down?
Posted: Fri Jan 01, 2021 7:47 pm
Hi,
I'm working on a long term home project building a handheld GPS with touch screen.
I have connected three devices joining the VSPI bus:
- 3.2" TFT screen: Chip select GPIO 5
- Resistive touch panel: Chip select GPIO 16, also using IRQ on GPIO 13
- Micro SD card (6 pin type, 3.3V): Chip select GPIO 26
They all join:
- SCK: GPIO 18
- MISO: GPIO 19
- MOSI: GPIO 23
I'm including the simple wiring diagram.
Also, I have
- a GPS with TX connectied via serial link to GPIO 4 and
- a 6-DoF accelerometer hooked up to I2C (SDA 21 / SCL 22)
I did not yet install a driver for the SD card, just for the screen and the touch panel, which work excellent.
Everything works well (see image below) until I plug in the micro SD card. As soon as I do, the screen goes white.
It seems like the SD card is pulling a lead of the SD card up or down. I don't have a signal analyzer.
I ordered the components from AliExpress:
1. MN-EH Live ESP32 Minikit: https://www.aliexpress.com/item/4000232 ... 4c4dUEGiZK
2. SD card: https://www.aliexpress.com/item/3267363 ... 4c4dL440tU
3 .Touch screen: https://www.aliexpress.com/item/3291185 ... 4c4diYw1pe
4. GPS module: https://www.aliexpress.com/item/3279686 ... 4c4d6ImvZa
5. Accelerometer: https://www.aliexpress.com/item/3270166 ... 4c4dZzrM2J
Anyone got a clue? Help is much appreciated.
Kind regards,
HenkJan van der Pol.
I'm working on a long term home project building a handheld GPS with touch screen.
I have connected three devices joining the VSPI bus:
- 3.2" TFT screen: Chip select GPIO 5
- Resistive touch panel: Chip select GPIO 16, also using IRQ on GPIO 13
- Micro SD card (6 pin type, 3.3V): Chip select GPIO 26
They all join:
- SCK: GPIO 18
- MISO: GPIO 19
- MOSI: GPIO 23
I'm including the simple wiring diagram.
Also, I have
- a GPS with TX connectied via serial link to GPIO 4 and
- a 6-DoF accelerometer hooked up to I2C (SDA 21 / SCL 22)
I did not yet install a driver for the SD card, just for the screen and the touch panel, which work excellent.
Everything works well (see image below) until I plug in the micro SD card. As soon as I do, the screen goes white.
It seems like the SD card is pulling a lead of the SD card up or down. I don't have a signal analyzer.
I ordered the components from AliExpress:
1. MN-EH Live ESP32 Minikit: https://www.aliexpress.com/item/4000232 ... 4c4dUEGiZK
2. SD card: https://www.aliexpress.com/item/3267363 ... 4c4dL440tU
3 .Touch screen: https://www.aliexpress.com/item/3291185 ... 4c4diYw1pe
4. GPS module: https://www.aliexpress.com/item/3279686 ... 4c4d6ImvZa
5. Accelerometer: https://www.aliexpress.com/item/3270166 ... 4c4dZzrM2J
Anyone got a clue? Help is much appreciated.
Kind regards,
HenkJan van der Pol.