# OpenLog SD Card - HELP

**URL:** <https://community.sparkfun.com/t/openlog-sd-card-help/30664>\
**Category:** Arduino\
**Created:** [April 5, 2015, 10:08pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664 "2015-04-05T22:08:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Conspir](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@Conspir](https://community.sparkfun.com/u/Conspir)\
**Post date:** [April 5, 2015, 10:08pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/1 "2015-04-05T22:08:49Z")

</div>

Hi! I really need help with this for a project! It’s a fairly simple problem because i’m new to arduino and don’t know how to resolve it! I’m trying to connect a camera module (LS\_Y201) to the arduino board (with a shield) and let it store the images to the SD card (openlog). I tested a few codes online but it seems like it didn’t work, or it didn’t manage to connect with the SD Card. So i’m trying to test if the SD card works but i don’t understand a lot from what is written online. Most Example codes have something called ChipSelect = 4 (CS) and when this example SD card code is ran, it doesn’t work. I tried ChipSelect = 10, 8, and many other values but it still doesn’t seem to find the SD card. Everything is wired correctly. RX to TX, Tx to RX, etc.

Help appreciated! I’ve been stuck with this problem for many days!

Thanks a lot!!!

---

<div class="post-metadata">

**Author:** ![jremington](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/jremington/32/6595_2.png) [@jremington](https://community.sparkfun.com/u/jremington)\
**Post date:** [April 6, 2015, 4:29am UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/2 "2015-04-06T04:29:23Z")

</div>

If you want help, post the links you are reading and describe your entire setup, including a diagram showing the connections. Also post the code you are trying (use code tags).

There is no provision that I know of to access the SD card CS on OpenLog. Why would you want to?

---

<div class="post-metadata">

**Author:** ![Conspir](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@Conspir](https://community.sparkfun.com/u/Conspir)\
**Post date:** [April 6, 2015, 5:37pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/3 "2015-04-06T17:37:37Z")

</div>

Thanks for the reply! I really really appreciate it!

As far as i understand it seems the openlog module uses Serial, and therefore CS (Chip Select) wouldn’t be applicable to connect to my SD card. If this is the case, how can i capture images (With the LS\_Y201) camera module and store them into the SD card? Do you perhaps know of any code that would work for this?

Thanks again, i really appreciate the help!

PS: This is how it looks like: [http://www.control.aau.dk/~jdn/edu/doc/ … ansat/mod/](http://www.control.aau.dk/~jdn/edu/doc/arduino/cansat/mod/)

---

<div class="post-metadata">

**Author:** ![jremington](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/jremington/32/6595_2.png) [@jremington](https://community.sparkfun.com/u/jremington)\
**Post date:** [April 6, 2015, 7:10pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/4 "2015-04-06T19:10:42Z")

</div>

The LS\_Y201 camera does return images via the serial line. However, you would need another computer (like an Arduino) to initiate a snapshot, capture the serial from the camera and store it properly on OpenLog. Alternatively, you could modify the OpenLog code to send the proper control sequences to the camera, and store the resulting images as files with a .jpg extension.

Google hints that someone is already trying to do this.

---

<div class="post-metadata">

**Author:** ![Conspir](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@Conspir](https://community.sparkfun.com/u/Conspir)\
**Post date:** [April 6, 2015, 8:12pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/5 "2015-04-06T20:12:34Z")

</div>

I have no idea how to do this. I’m completley new to arduino. Would it not be possible to use only one arduino to capture images with the LS-Y201? If the openlog SD card module saves images directly via Serial, and therefore i don’t have to manually enter a specific code to save the files into the SD card, wouldn’t it happen automatically? And so all i would require is a code that captures an image from the camera? But i don’t know where to find such a code, i’ve tried to search online but they all seem to be for the SD card with CS (with SIP).

---

<div class="post-metadata">

**Author:** ![jremington](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/jremington/32/6595_2.png) [@jremington](https://community.sparkfun.com/u/jremington)\
**Post date:** [April 6, 2015, 8:19pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/6 "2015-04-06T20:19:42Z")

</div>

> If the openlog SD card module saves images directly via Serial

.

You need to carefully study the documentation for OpenLog and for the camera.

OpenLog just saves whatever data come over the serial line.

The camera requires that control codes be sent before it will take a picture and send the image data.

---

<div class="post-metadata">

**Author:** ![Conspir](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@Conspir](https://community.sparkfun.com/u/Conspir)\
**Post date:** [April 6, 2015, 8:22pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/7 "2015-04-06T20:22:53Z")

</div>

The control codes to take an image? I don’t know what it is, or where i can find it - the datasheet shows HEX values which i have no idea how to use or implement in code.

---

<div class="post-metadata">

**Author:** ![jremington](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/jremington/32/6595_2.png) [@jremington](https://community.sparkfun.com/u/jremington)\
**Post date:** [April 6, 2015, 8:47pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/8 "2015-04-06T20:47:47Z")

</div>

You send those HEX values to the camera via the serial connection.

Take look at the comments on the Sparkfun product page for other people’s experiences. [https://www.sparkfun.com/products/retired/10061](https://www.sparkfun.com/products/retired/10061)

One person posted some Arduino code at: [http://forum.arduino.cc/index.php/topic,157685.0.html](http://forum.arduino.cc/index.php/topic,157685.0.html)

---

<div class="post-metadata">

**Author:** ![Conspir](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@Conspir](https://community.sparkfun.com/u/Conspir)\
**Post date:** [April 6, 2015, 8:56pm UTC](https://community.sparkfun.com/t/openlog-sd-card-help/30664/9 "2015-04-06T20:56:57Z")

</div>

But i need to write it as a code (arduino code) i wish to make the camera able to take screenshots by itself every 5 seconds. The only codes i find online are for ChipSelect-powered SD cards, or SD-Card-modules:S
