Issues when using SPI SD card

jjamjohnson
Posts: 9
Joined: Thu Nov 12, 2020 10:48 pm

Re: Issues when using SPI SD card

Postby jjamjohnson » Tue Jan 12, 2021 12:14 am

chegewara wrote:
Sat Dec 26, 2020 3:28 pm
The reason i mentioned about 5V for this sd card module is because i am using exactly the same module and it was the issue i had with it. I found the same answer on arduino-esp32 github. Im not saying it is/was the issue in your case, but i thought its worth to mention.
This module is using AMS1117 which characteristics says that Vin >= Vout + 1,5V.
You were right. It is 5V module and the reason it works is that I connected it to VIN pin that is 5V pin which is connected to ESP32 through AMS1117 on my ESP32 DevKit board.

It also needed to decrease speed as PeterR suggested. It worked on Arduino without speed changing because Arduino uses different SPI driver than ESP-IDF.

If I connect SPI SD card it to 3.3V pin it does not work. Probably it would work if i connect it to 3.3V and short-circuit input and output but I would need to try it. In case I try it I will report the results here.

Thank You both for help!

jjamjohnson
Posts: 9
Joined: Thu Nov 12, 2020 10:48 pm

Re: Issues when using SPI SD card

Postby jjamjohnson » Mon Oct 04, 2021 2:07 pm

thery577 wrote:
Wed Sep 15, 2021 5:04 pm
  1. I have the same problem, how do you reduce the speed of the SPI frequency?
Hello, I was not around for a while, but if it still helps I did it the following way:

Code: Select all

static sdmmc_host_t host = SDSPI_HOST_DEFAULT();
...
host.max_freq_khz = 10000;
...
// Further initialization
Additional advice - be sure to solder the SD module with short copper wires.

abansal22
Posts: 105
Joined: Wed Apr 22, 2020 8:24 am

Re: Issues when using SPI SD card

Postby abansal22 » Fri Nov 26, 2021 10:32 am

max spi frequency of this module is 19000khz.

Who is online

Users browsing this forum: Google [Bot] and 68 guests