ESP32 Vs Micro SD issue
Posted: Sun Jan 24, 2021 7:58 pm
Hi all
I have been looking at some projects that need me to read/write to Micro SD Cards. I followed the 'standard' SD Library @ https://github.com/espressif/arduino-es ... braries/SD. I took my soldering iron out and was able to recreate the below, it worked a dream.
I don't like the idea though of soldering wires to a SD card adapter as it will break after a while. So, seeing 9 pins on it, but only 8 pins on the Micro SD card I took the adapter apart to see how it was wired up.
I noted that Pin 4 on the adapter wasn't actually connected to the Micro SD card. The diagram says to put it to GND. As expected if you don't put it to GND, it still works.
I then write down the Pins that I used that worked (on the left below) and made adjustments to how they actually connect on the Micro SD card (on the right).
I ordered a Micro SD card adapter, sadly I didn't realise the pitch was 2mm, so won't plug into a solderless breadboard. I took the card adapter apart so that I could confirm which pin goes where.
Then, since the card goes in with the pin connectors at the bottom, I had to revers the pin direction. I then labelled up what should connect to what as below:
The below is how it should wire up I believe, but sadly it does not work. When I run the code to check for an SD card & to write to it, it fails. I have checked the SD card and code with my other ESP32 that is using the original plastic adapter and it works perfectly, so assume it can only be my wiring of the adapter.
Does anybody have any suggestions on where I went wrong?
Many thanks for any advise you can give.
I have been looking at some projects that need me to read/write to Micro SD Cards. I followed the 'standard' SD Library @ https://github.com/espressif/arduino-es ... braries/SD. I took my soldering iron out and was able to recreate the below, it worked a dream.
I don't like the idea though of soldering wires to a SD card adapter as it will break after a while. So, seeing 9 pins on it, but only 8 pins on the Micro SD card I took the adapter apart to see how it was wired up.
I noted that Pin 4 on the adapter wasn't actually connected to the Micro SD card. The diagram says to put it to GND. As expected if you don't put it to GND, it still works.
I then write down the Pins that I used that worked (on the left below) and made adjustments to how they actually connect on the Micro SD card (on the right).
I ordered a Micro SD card adapter, sadly I didn't realise the pitch was 2mm, so won't plug into a solderless breadboard. I took the card adapter apart so that I could confirm which pin goes where.
Then, since the card goes in with the pin connectors at the bottom, I had to revers the pin direction. I then labelled up what should connect to what as below:
The below is how it should wire up I believe, but sadly it does not work. When I run the code to check for an SD card & to write to it, it fails. I have checked the SD card and code with my other ESP32 that is using the original plastic adapter and it works perfectly, so assume it can only be my wiring of the adapter.
Does anybody have any suggestions on where I went wrong?
Many thanks for any advise you can give.