arduino-libraries / SD

SD Library for Arduino
http://arduino.cc/
GNU General Public License v3.0
182 stars 155 forks source link

SD card doesn't go sleep between transfers #56

Open jekhor opened 6 years ago

jekhor commented 6 years ago

My SD card (4G by Transcend) consumes ~20 mA in idle state between transfers. Author of SdFat library wrote some years ago about this: 'I understand the problem. You are using SD.h and it has a bug that doesn't allow the SD to sleep.

SD.h has not added bug fixes from SdFat for about three years and the Adruino developers have added their own bugs. I tried SD.h with my tests and found cards pulled from 15 to 28 ma when idle.' (http://forum.arduino.cc/index.php?topic=149504.msg1124464#msg1124464)

After conversion my code from SD to latest SdFat library power consumption in idle state became normal.

daanvV commented 2 years ago

Any updates on this? Does the SD library support sleep for SD cards now, or should we be using SdFat by William Greiman instead? https://github.com/greiman/SdFat