SD writing with an Artemis Openlog?

Hi all,

I have an Artemis Openlog which I’ve interfaced to a NEO-M9N GPS board via QWIIC. I can read the info from the NEO-M9N and display it on my PC screen in a serial monitor after fudging the I2C pinouts. I’m now trying to write that data to the SD card on the Openlog board.

First I tried some of the SD examples but I didn’t get them to work as the SPI pinouts are different on the Openlog board and I was getting errors about MISO and MOSI etc not being defined. I didn’t think I would have to modify library files to assign pinouts - I thought the thing about Arduino was that the legwork has been done and now you just write code and marvel at your success…

I tried the Artemis Openlog example from Github:

https://github.com/sparkfun/OpenLog_Art … Serial.ino

If gave lots of compile errors. I’ve also tried some of the examples here:

OpenLog_Artemis/Firmware/OpenLog_Artemis/

But still get lots of compile errors.

I’ve written plenty of code before but I’m new to Arduino and especially new to SD writing so I’m at a loss how to make it work. The libraries seem to be a jungle. Has anyone had any success writing to an SD card with the Artemis Openlog? What I want to do is quite simple: press a button on the Openlog board and log the data coming off the GPS board then stop logging on a second press of the button. I can do the rest but the SD stuff has me beat.

Thanks in advance!