Post a new topicPost a reply Page 1 of 2   [ 12 posts ]
Go to page 1, 2  Next
Author Message
 Post subject: arduino-3g-gps (pb SD)
PostPosted: Mon Apr 23, 2012 1:54 pm 

Joined: Mon Apr 23, 2012 1:45 pm
Posts: 34
hello,
i have a problem for take a picture.

i use the exemple code but i have no answer with serial monitor .
its blocked on "AT+CCAMS".
help me pls !


i am french(sry for my bad english)

exemple code:
Code:
int led = 13;
int onModulePin = 2;        // the pin to switch on the module (without press on button)

int x = 0;

char name[20];

void switchModule(){
    digitalWrite(onModulePin,HIGH);
    delay(2000);
    digitalWrite(onModulePin,LOW);
}

void setup(){

    Serial.begin(115200);                // UART baud rate
    delay(2000);
    pinMode(led, OUTPUT);
    pinMode(onModulePin, OUTPUT);
    switchModule();                    // switches the module ON

    for (int i=0;i < 5;i++){
        delay(5000);
    }   

    Serial.println("AT+CCAMS");     //starts the camera
    while(Serial.read()!='K');

    Serial.println("AT+CCAMSETD=640,480");     //sets VGA (640*480) resolution
    while(Serial.read()!='K');
   
    Serial.println("AT+FSLOCA=1");     //stores the image file in sd card
    while(Serial.read()!='K');
   

}

void loop(){

    delay(1500);
    while(Serial.available()!=0){
        Serial.read();
    }
    Serial.println("AT+CCAMTP");     //takes a picture, but not saved it
    while(Serial.read()!='K'); 

    Serial.println("AT+CCAMEP");     // saves the picture into D:/Picture   
    Serial.flush();     
    while(Serial.read()!='/');
    while(Serial.read()!='/');

    x=0;
    do{
        while(Serial.available()==0);
        name[x]=Serial.read();
        x++;
    }while(x < 19);

    while(Serial.read()!='K'); 
    Serial.println(name);

    Serial.println("AT+CCAME");     // stops the camera
    while(Serial.read()!='K'); 

    while(1);
   
}


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Tue Apr 24, 2012 10:37 am 

Joined: Mon Apr 23, 2012 1:45 pm
Posts: 34
plz why i have dont response

normarly he response


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Wed Apr 25, 2012 10:30 am 

Joined: Mon Apr 23, 2012 1:45 pm
Posts: 34
it's ok

i have solve my problem


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Wed Apr 25, 2012 11:39 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2042
Hello djo54150,

Thanks for your contribution.

Regards.


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Wed Apr 25, 2012 2:04 pm 

Joined: Mon Apr 23, 2012 1:45 pm
Posts: 34
i have just a problem with setting for the camera

my picture is green ^^


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Fri Apr 27, 2012 12:34 pm 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2042
Hello djo54150:

Are the contacts of the camera and the shield connector clean?
Are you tried with other images resolutions?

Regards


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Tue Jul 03, 2012 8:43 pm 

Joined: Tue Jul 03, 2012 7:33 pm
Posts: 2
I have the same problem with very poor image quality with the included camera. I have tried changing all the settings including resolution and have checked the connectors are clean and makes good contact. I have even purchased other cameras including the 2MP from omnivision(OV2640) that is recommended in the simcom 5218E manual. Im thinking it may be a problem with the shield! Is it possible to connect the camera directly to the board and bypass the connector? I bought the shield specifically to capture stills!!! Anyone managed to take good stills with this board?


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Wed Jul 04, 2012 6:26 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2042
Hello bikerjimb0:

You have two files of pads between the 3G module and the camera connector. This pads are directly connected to the camera pins.

Regards


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Wed Aug 22, 2012 12:53 pm 

Joined: Mon Jun 04, 2012 12:02 pm
Posts: 18
Hi,

I obtained the pictures from the camera with green spots. I spoke about it in other topic of this forum:
viewtopic.php?f=20&t=3075&start=10

You can see the result here:
http://imageshack.us/photo/my-images/69 ... 02505.jpg/

I have got the best result with the night shots, high brightness and automatic mode.
The white balance and changing the resolution have not worked out well. You should find out the best combination for each situation.


Code:
   
    Serial.println("AT+CCAMSETWB=1");//Set camera white balance.1=auto,4=fluorescent,5=daylight,6=cloudy daylight
    while(Serial.read()!='K');
   
    Serial.println("AT+CCAMSETN=1"); //Set camera night shot.0=off,1=on
    while(Serial.read()!='K');
   
    Serial.println("AT+CCAMSETB=6");//Set camera brightnes.The range is=0-6
    delay(100);


ut the green spots never disappear completely.


Top
 Profile  
 
 Post subject: Re: arduino-3g-gps (pb SD)
PostPosted: Thu Aug 23, 2012 6:10 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2042
Hello vellamy:

We are detected some problems with the actual model of VGA camera. We are working to fix this problem. We contact with the customers who have this product by email and we will send a new model without any cost.

Regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 2   [ 12 posts ]
Go to page 1, 2  Next


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use