ArduCAM / Arduino

This is ArduCAM library for Arduino boards
MIT License
473 stars 349 forks source link

Cant open file ARDUCAM #340

Open KlydeLencioco opened 6 years ago

KlydeLencioco commented 6 years ago

Hello. I am using the demo program ArduCAM_Mini_Capture2SD. I cant save the file to my sd card. I keed getting the error "file open failed". Has anybody encountered this error? Thank you. I really need help on this one.

image

UCTRONICS commented 6 years ago

@KlydeLencioco Please ensure your SD card's memory is less than 8G and format in Fat32.

KlydeLencioco commented 6 years ago

Is 8gb sd card will do?

UCTRONICS commented 6 years ago

@KlydeLencioco Yes.

KlydeLencioco commented 6 years ago

Thank you very much! It worked. Now I encounter that the fifo is oversized. What causes this one? and how can I fix it? thank you

UCTRONICS commented 6 years ago

@KlydeLencioco What's the camera's version are you using ? Please attached me your camera's picture .

KlydeLencioco commented 6 years ago

I am using the ov5642 mini camera module

KlydeLencioco commented 6 years ago

image image image

KlydeLencioco commented 6 years ago

that is the camera I am using with the micro sd. My previous problem about saving the file came back.

UCTRONICS commented 6 years ago

@KlydeLencioco You are using the Mini 5MP Plus instead of Mini 5MP, Please use our ArduCAM_Mini_5MP_Plus_Multi_Capture2SD demo .

KlydeLencioco commented 6 years ago

I've just tried that demo program. I am getting the error file open failed. My sd card now is 8gb and in fat32 format. How can I fix this?

KlydeLencioco commented 6 years ago

Update: I was able to save the image on the sd card but it appears that the image is corrupted since I cant view the image on my computer.

KlydeLencioco commented 6 years ago

Now the fifo is over sized again.

image

UCTRONICS commented 6 years ago

@KlydeLencioco Your camera capture total_time used 0 ms, I guess your hardware has not connect stable. Please ensure your hardware connect stable

KlydeLencioco commented 6 years ago

@UCTRONICS I'm pretty sure that my connections are stable. Right now I am getting a fifo size of 0. The only working demo program that I have tried is the one that will use your host app. Your demo program ArduCAM_Mini_5MP_Plus_OV5462_RAW is also working and I get the raw file in my sd card. I can't understand why the demo program that will save a jpeg file is not working.

KlydeLencioco commented 6 years ago

image

UCTRONICS commented 6 years ago

@KlydeLencioco

I will test it and give you a reply as soon as possible.

UCTRONICS commented 6 years ago

@KlydeLencioco I have tested it and it can work fine. demo demo2

KlydeLencioco commented 5 years ago

@UCTRONICS what pins on the shield should I connect to the atmega328p chip? thank you

UCTRONICS commented 5 years ago

@KlydeLencioco Please refer to this video demo https://www.youtube.com/watch?v=hybQpjwJ4aA&feature=youtu.be

KlydeLencioco commented 5 years ago

image @UCTRONICS where is the SD CS pin for this shield? I'm trying to connect this one to an atmega328p chip

UCTRONICS commented 5 years ago

@KlydeLencioco The SD card CS is Pin 9 when you plug it into the UNO board, it will connect to the pin 9.

KlydeLencioco commented 5 years ago

@UCTRONICS I am connecting it to to pin 9. But it says SD card error. I dont know if the cs pin under the trigger pin of the shield is the cs pin for the sd card

UCTRONICS commented 5 years ago

@KlydeLencioco Please attach me your hardware connection diagram. On Arduino UNO platform, the memory size of the SD should less than 8G. What's more, the format should be fat32.

KlydeLencioco commented 5 years ago

connection @UCTRONICS here is my connection to arduino uno/atmega328p. If I attached the shield on arduino directly it works perfectly but when I use dupont lines it cannot detect the sd card. I need to attach the shield through dupont line since I need my project to work on atmega328p chip.

UCTRONICS commented 5 years ago

@KlydeLencioco The CS of SD card is not the CS on ARDUCAM SHIELD you have connected. Look at the imge I attached for you.

cs
KlydeLencioco commented 5 years ago

@UCTRONICS thank you it fix the problem but it only works on the first try and the file cant be opened. Also the sd led indicator is just blinking. What is the meaning of that? is it not enough supply voltage?

UCTRONICS commented 5 years ago

@KlydeLencioco The led blinking means it is saving image data to the SD card. You should wait until the led blink stop.

KlydeLencioco commented 5 years ago

@UCTRONICS its ok now but after some iteration it fails to open the file. capture

UCTRONICS commented 5 years ago

@KlydeLencioco How many memory left in your SD card, Is there not enough memory?

KlydeLencioco commented 5 years ago

@UCTRONICS its ok now. Thank you very much for assisting. How can I increase the resolution of the image in the code? I am using the multicapture2sd.ino

UCTRONICS commented 5 years ago

@KlydeLencioco Just use myCAM.OV2640_set_JPEG_size(); to change the resolution

KlydeLencioco commented 5 years ago

@UCTRONICS Iam having a probelm again connecting the shield using the dupont line. Sometimes it work sometime it doesnt. But if the shield is directly attached to arduino, it works absolutely fine. Do you have any idea how to fix this?

KlydeLencioco commented 5 years ago

![Uploading 20181129_134325.jpg…]() ![Uploading 20181129_134301.jpg…]()

KlydeLencioco commented 5 years ago

@UCTRONICS does it have anything to do with the wires I am using? I am using a 20cm dupont lines

UCTRONICS commented 5 years ago

@KlydeLencioco Please ensure the dupont lines as short as possible.