Strange CD card behaviour

It works fine when connected and powered with USB cable to the computer. But when using the same cable powered to USB power supplier it initiate card, read data from it then it try to write new data and fails, after that it can't initiate card again (without power off or reset). when I power off it again first time initiate ok and next as described. When I connect it back to the computer it again works properly as expected. I am using SPI module with resistor signal level adjustment. I did try different power suppliers all worked the same way. I did try to power card module trough build in 3,3V stabilizer and directly from 3,3V on Arduino UNO board no difference.

Well, it is strange but seems that the problem was with pure connections or some interferences between goldpin cables.
I have loaded device in the destination case reconnected everything and surprise it works on external power supplier.

Unfortunately I am back, it was working yesterday, and today again the same! powered from computer works fine, powered from external power supplier USB or stabilized 9V wall plug doesn't work what is going on? Any suggestions?

Well I think I found it, I had to add 10k pull-up resistor between MISO and 3.3V pins and now it seem to work without any issues.

That's interesting...
I was having some SD card issues on a STM32, and in researching the problem, there were many schematics that showed a 10-100K pull up resistor on MISO.

In my case, the issue was the default SdFat SPI CLK speed setting. Setting it manually resolved the issue.

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