Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / Re: sim900 GPRS on Seeeduino causes program to reboot in setup(). on: January 25, 2013, 11:00:44 am
Sorry i have no idea. Maybe my program code "sending a text message" can help you!

Code:

#include <SoftwareSerial.h>
#define SMSTEXT        "Hello World"      //const. string

SoftwareSerial GPRS(8, 9);                //Define Rx und Tx for GPRS Shield communication

void setup() {                 
   
    GPRS.begin(19200);                   // the GPRS baud rate   
    Serial.begin(19200);                 // the Serial port of Arduino baud rate.
    delay(5000);   
}

void loop() {
     
     if (Serial.available())
        switch(Serial.read())
        {
           case 's':                    //Press 's' to send an text message           
           SendSMS();             
           break;
        }
       
      delay (2000);                    // ... 2 seconds delay
}

//------------------------------------------------------------------------------------------------------------------

void SendSMS()           
{
  Serial.println ("Send SMS started!");
  GPRS.print("AT+CMGF=1\r");            //Because we want to send the SMS in text mode
  delay(100); 
  GPRS.println("AT + CMGS = \"+43xxxxxxxxxxxx\"");  //This number will recieve the text message
  delay(100); 
  GPRS.println(SMSTEXT);        //SMSTEXT = constant
  delay(100);
  GPRS.println((char)26);      //the ASCII code of the ctrl+z is 26
  delay(100);
  GPRS.println();
  Serial.println ("Send SMS finished!");   
}

If it not works, i hope that other forum users help you with your problem!
2  Using Arduino / Installation & Troubleshooting / Re: Arduino Leonardo sketch size > 12kBytes too big on: January 25, 2013, 10:36:11 am
Thank you for your support!

I will try to save some strings in the flash or eeprom memory!

If this not help i'll buy the Arduino Due because the SRAM of this Arduino Board will be big enough for my
application.

3  Using Arduino / Installation & Troubleshooting / Re: Arduino Leonardo sketch size > 12kBytes too big on: January 24, 2013, 11:52:11 am
Thank you for the Links!

I minimized my program code to a program size where my arduino works without problems and included the MemoryFree.h from your first Link.
On the Serial Monitor was written " freeMemory = 182". So i think that my RAM of the Arduino only had 182 Bytes free.
Is that enough RAM or can this small amount of free RAM leads to problems like i have mentioned in my first post ?

4  Using Arduino / Installation & Troubleshooting / Re: Arduino Leonardo sketch size > 12kBytes too big on: January 23, 2013, 06:56:49 am
I don't know. How can i check it out?
5  Using Arduino / Installation & Troubleshooting / Arduino Leonardo sketch size > 12kBytes too big on: January 22, 2013, 03:50:01 am
Hi!
I have a problem with my Arduino Leonardo. If i want to upload a sketch
which is bigger than 12kBytes the RX led is always on and Windows says
"USB device isn't recognized". When the sketch size is under 12kBytes, e.g. 11,5 kBytes
the Arduino works very well without problems. The special Reset function (" hold the reset button while uploading ")
doesn't work and the Arduino Software doesn't report any errors or warnings!

Is there anyone who has the same problem or can help me to deal with it?

I'm using Windows 7 64bit and the Arduino Software Version 1.0.3
The Maximum sketch size of the Leonardo is 28672 Bytes


Thanks in advance ...


6  Using Arduino / Installation & Troubleshooting / Re: sim900 GPRS on Seeeduino causes program to reboot in setup(). on: January 09, 2013, 05:49:48 am
Hi! I think i had the same problem when i started do use the gsm/gprs shield on my arduino. I attached the arduino leonardo to the gsm/gprs shield but the communication doesn't work. How did i fixed it?
I connected the Rx(Tx)  of the Arduino Leonardo with the Rx(Tx) of the GSM/GPRS shield with a jumper. And that's no mistake Rx with Rx and Tx with Tx.

My settings:

Arduino Leonardo:

  • uses software serial so you have to include SoftwareSerial.h
  • Rx Pin= Digital Pin 7
  • Tx Pin= Digital Pin 8

GSM/GPRS Shield:


I hope the image can help you!
Pages: [1]