I recently bought a SD module to use with the Arduino uno wifi rev 2 for data logging.
Before starting my own project I tried to use the examples from the SD library to see if all the basic functionalities were working.
Using the CardInfo example worked perfectly, so I'm guessing that my wiring and SD card are fine. However when i tried out the Datalogger example problems started occuring. The Arduino would create the file for the data logging, but it wouldn't actually write anything into it. I also tried the ReadWrite example but the same thing happened. While trying the ReadWrite example the following would appear on the serial monitor:
"Initializing SD card...initialization done.
Writing to test.txt...done.
error opening test.txt"
But like i said before, nothing would actually be written onto the file created on the SD card. Now I know that most people use the SDfatlib library, but since I've only started working with Arduino recently this went a bit above my head. This issue has probably been covered before so I'm sorry for bringing it up again. Hopefully one of you is willing to help me.
I know you'll probably need more info to help me so please tell me what details you need and I'll respond asap