OpenLog SD Card - HELP

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!!!

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?

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/

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.

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).

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.

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.

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

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

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