I am working on a project for a carbonation chamber. I had successfully interfaced the SD card reader, LCD moniotr, CO2 sensor and arduino successfully. During this time I was able to take the SD card out to check it and then when i put it back in it would continue writing to the file no problem.
However, i was testing out a relay with a 24V DC supply i managed to fry my Arduino and LCD. Having replaced these components and successfully trialed my relay i decided to retry the previous set up. However, now when i take the SD card out and put it back in it doesn't continue to write to the text file , even though i havent changed the set up.
Is there anything obvious i will have missed? I followed the Adafruit tutorial when wiring up SD card reader
Since you've fried everything else, what makes you sure the SD isn't fried as well ?
Also - I'm assuming that you open/close the file system properly when changing the card...
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
In particular how you are powering you project and controlling the 24V relay.
Sorry for the delay in replying. I have now tried swapping the SD card for a new one, and it still doesn't continue writing when i take it in and out. I have attached a quick drawing of the circuit ( just to clarify it is Digital pin 13 - CLK, 12 - DO, 11 - DI and 10 - DS). Apologies for the bad drawing, I need to get a proper sketch drawn up online at some point.
Also, i use the LCD backlight as a guide as to when the SD card is being written to so i am reasonably confident i haven't been taking it ut whilst it is being accessed.
The standard Arduino cannot do this. What have you done to enable this feature?
Show your code.
Which SD breakout board do you have? The SD card itself is 3.3V only and your schematic shows 5V going to the card. Some cards will work for a short time at 5V and then fail.
Sounds like I am not going to be able to do what I wanted to do, so will just have to do the normal switch the power off and on when i take the card out and in. Thanks for all your help!!