# SD logging with outside USB connectivity

**URL:** <https://forum.arduino.cc/t/sd-logging-with-outside-usb-connectivity/1132404>\
**Category:** General Guidance\
**Created:** [May 29, 2023, 8:17pm UTC](https://forum.arduino.cc/t/sd-logging-with-outside-usb-connectivity/1132404 "2023-05-29T20:17:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![psmieja](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/psmieja/32/971160_2.png) [@psmieja](https://forum.arduino.cc/u/psmieja)\
**Post date:** [May 29, 2023, 8:17pm UTC](https://forum.arduino.cc/t/sd-logging-with-outside-usb-connectivity/1132404/1 "2023-05-29T20:17:26Z")

</div>

Hi guys!

I am workingmm on a GPS data logger that gets data such as coordinates from a gps module and than uses an SD card module to save the data to a .txt file. I would like to make the project waterproof so that it can be used on a sailboat, but i also would like to utilize this ([Magnetic USB Charging Cable for 4 Pin 0.1 Magnetic Connector [60cm long] : ID 5412 : $4.95 : Adafruit Industries, Unique & fun DIY electronics and kits](https://www.adafruit.com/product/5412)) magnetic cable on the outside for battery charing and to offload the data from the SD card inside.

I ran into a problem trying to interface the 4 pin standard usb cale with the sd card module. Do you guyus have any ideas on how i could adapt the SPI SD card module to the USB connector?

I was thinking of tapping into the sd card directly and adapting the sd pins using a standard adapter, but that seems like a lot tedious work to make with with both the SPI adapter and the USB adapter.

Let me know if you have any ideas!

Thanks,  
Piotr

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [May 29, 2023, 8:42pm UTC](https://forum.arduino.cc/t/sd-logging-with-outside-usb-connectivity/1132404/2 "2023-05-29T20:42:27Z")

</div>

Try this link: [How to get the best out of this forum - Using Arduino / Project Guidance - Arduino Forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/681308)

> [@psmieja](#):
>
> interface the 4 pin standard usb cale with the sd card module

That looks crazy.  
Draw a logic block diagram showing the devices and their place in the project.

---

<div class="post-metadata">

**Author:** ![psmieja](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/psmieja/32/971160_2.png) [@psmieja](https://forum.arduino.cc/u/psmieja)\
**Post date:** [May 29, 2023, 9:13pm UTC](https://forum.arduino.cc/t/sd-logging-with-outside-usb-connectivity/1132404/3 "2023-05-29T21:13:10Z")

</div>

Ok, here is a diagram that shows off how the devices work together. Let me know if this is what you were looking for!  
[Diagram.pdf](https://forum.arduino.cc/uploads/short-url/59wS0j76GxZjxeMrmQznmbVj1GI.pdf) (52.4 KB)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [November 25, 2023, 9:13pm UTC](https://forum.arduino.cc/t/sd-logging-with-outside-usb-connectivity/1132404/4 "2023-11-25T21:13:35Z")

</div>

Closed on November 25, 2023, 9:13pm UTC

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