Trying to write to an SD card and I am at a loss for ideas

I am trying to record data from a BMC 280 and a Gieger Counter to an SD Card. The code that I am using as a model is here.

I have never tried writing to an SD card, so I suspect it is something simple. When I put the SD card in the computer I can not see that the Arduino has created a file.

I have it sending output to the serial Monitor with this sketch:

This is what I tried using. I currently do not have a clock attached so I commented out those lines.

Which Arduino are you using?
Which SD card module are you using?
How have you wired the two together?
Which SD card are you using?
How have you formatted the SD card? (see sticky at the top of the storage section of the forum)

I would suggest that you start with the basic SD card examples that are known to work first.

I did want to say "Thanks."

I know you didn't write much, but it was enough to get me thinking again. Well, thinking beyond, "I am never going to have this thing working on time," over and over again in my brain.

I found [an article using the exact same components as I am using (https://www.instructables.com/Micro-SD-Card-Tutorial/). Once I got past that and was able to make the test file run reliably it became a simple matter of looking at what was done in the demo and start applying that to my program (I needed to format the SD card and to push the SD card adapter, more firmly, into the breadboard).

Sure, it is an ugly program, but here it is, in working form.

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