I am using the 5 VDC micro SD card SPI module to write data and debug logs to micro SD card. It works fine with Arduino Uno as well as with Arduino MEGA.
Recently I bought few 3.3VDC micro SD card SPI modules. Those are working fine with Arduino Uno, but not with Arduino MEGA.
- Tried several Arduino MEGA boards
- Tried several different SD cards
- Tried the sample code. The
CardInfocode works, but when the sketch writes data into file, only garbage is created on the SD card (it seems the FAT table is damaged?, looks like reading is okay, but writing not?) See the screenshot below:
Debug window with the Serial output
Anyone had same or similar experience? What could be the issue with Arduino MEGA and the possible root cause of the problem?
Here are photos of both modules:
3.3VDC (left) and 5VDC (right) micro SD card SPI modules
Thanks a lot