Show Posts
Pages: [1] 2 3
1  Using Arduino / Project Guidance / SD card and GPS shield problem on: May 11, 2013, 03:57:28 am
Hey all,

Here am facing problem with the GSM/GPS Shield, i ordered few months ago a GSM/GPS shield (rev.6) and it stopped working for unknown reason, and due to time limit i didn't send it back for checking so i ordered another one, and i got to know that the one i ordered now is (rev.smiley-cool. and there is some changes in it from the previous one.

the problem is when i connect the two modules separately (GSM/GPS shield and SD shield), they work perfectly, but when i connect them together the SD card stops working.

i connected GSM/GPS shield to pin (53)
and connected the SS pin for SD to pin 22
MISO, MSIO, SCK are common between them

P.S. i already had few tests before with my SD shield with GSM/GPS shield (rev.6), and it was working perfectly.
i also tried to use another arduino mega board...but it have th e same problem


Can you please tell me what exactly should i have to do to make both of them work perfectly (SD and GSM module rev.smiley-cool. any advices or suggestion will be appreciated...
2  Using Arduino / Programming Questions / Max size of string to use in arduino Mega2560!! on: May 06, 2013, 08:37:32 am
hey all

i have a little problem i hope someone can help me to solve it..

am saving two strings at the same time
which are GPS coordinates and speed at each point... (100 points)
to save them later in the SD card, the problem is when i reach 99 the system suddenly stops

so is there any limitation for string declaration ?
what maximum size of string that Mega2560 memory can handle, and how to know that?
3  Using Arduino / Project Guidance / Re: Mega 2560 Limitations ? on: May 05, 2013, 08:42:37 am
James C4S:
yes you are right .. i realized its not giving me exactly two readings per second.. (after performimng speed calculationss from gps....long story smiley-razz)

PeterH and MarkT:
In fact i dont need any delay in my system, i included a delay of 500ms
cause i thought if i didnt put any delay, i will damage the board or overload it....is that correct ??




4  Using Arduino / Project Guidance / Re: Mega 2560 Limitations ? on: May 03, 2013, 09:28:27 am
HazardsMind:
Thanks for the reply...
my code size is about 31 bytes... and i put a delay (500) at the end of the loop.
actually what i wanted to know is what is the minimum delay i can put for the loop.
cause the less delay i have in my system the better.

Mr. Peter:
Thanks for the reply
 I think my phrasing for the question was wrong i rephrase it above

Any other information related to this topic will be appreciated..
5  Using Arduino / Project Guidance / Mega 2560 Limitations ? on: May 03, 2013, 07:24:12 am
Hey all,

I have a simple question, and i hope i posted it in the right place..

What is the limitation of Mega2560 ??

I mean if i have an infinite loop, how many reading i can take in one second ?
6  Using Arduino / Storage / Re: Micro SD and GSM/GPS/GPRS shield with Mega 2560 interface problem on: April 03, 2013, 09:46:15 am
Yes, am well aware of the power select jumber of th SD card...
and regarding powering the GPS, i will try to power it from external power supply and see the results...


Thank you so much or you help.. smiley
7  Using Arduino / Storage / Re: Micro SD and GSM/GPS/GPRS shield with Mega 2560 interface problem on: April 02, 2013, 08:10:22 am
i used the ICSP connectors...but still i have to connect SS pin as output to make the library work (i used pin 22 as an output and connected it to SS pin of the SD module)
and pin 53 (SS) is already used it for the GPS shield.

so thats why i used the digital pins to make the connection simpler....and since am using the GPS shield which comes on top of the Mega board..it difficult to connect the ICSP connector...

when i run the programme , it shows me in serial monitor "initialization done" for both the uSD module and the GPS shield
and then followed by the GPS readings...and when i open the saved file it should show me the coordinates
but the thing i get is :

Quote
no í
 Ž       
no valid gps data

GGGGGGGGGGGGGGGGGGG
no valid gps data

4444444444444444444
no valid gps data

,,,,,,,,,,,,,,,,,,,
no valid gps data

,,,,,,,,,,,,,,,,,,,
no valid gps data

,,,,,,,,,,,,,,,,,,,
no valid gps data

5555555555555555555
no valid gps data

,,,,,,,,,,,,,,,,,,,
no valid gps data

,,,,,,,,,,,,,,,,,,,
no valid gps data

,,,,,,,,,,,,,,,,,,,
no í
 Ž       
no valid gps data

GGGGGGGGGGGGGGGGGGG
no valid gps data

5555555555555555555
no valid gps data

,,,,,,,,,,,,,,,,,,,
no valid gps data

,,,,,,,,,,,,,,,,,,,
no valid gps data

,,,,,,,,,,,,,,,,,,,
no valid gps data

no valid gps data

no valid gps data

no valid gps data

no valid gps data

no valid gps data

no valid gps data

no valid gps data



this is the code:

Code:
#include <GSM_GPS_Shield_Mega.h>
#include <SPI.h>
#include <SD.h>
#include <Stdlib.h>

#define power_pin 7


String gps_data;
File gps_datafile;
int j_old=0;
String old_data[0]=10;

GSM gsm(power_pin,9600);                                                 // (power_pin, baudrate)
GPS gps(9600);                                                          // (baudrate)


void setup()
{
   Serial.begin(9600);
   digitalWrite(power_pin,HIGH);  // make power pin 5V
   pinMode(power_pin, OUTPUT);    // make pin 7 as an output
   pinMode(22, OUTPUT);

   if (SD.begin(22))
      {
          Serial.println("initialization done");
          gps_datafile = SD.open("DataFile.txt", FILE_WRITE);

      }
 
    else
      {
          Serial.println("initialization failed!");
      }


  if(gps.initializeGPS())                                            // check the modem initialization
  {
    Serial.println(" Initialization completed");
  }
  else
  {
    Serial.println(" Initialization can't completed");
  }
 
  delay(1000);
 

}

void loop()
{
 
  gps.getGPS();  // get the coordinates
  gps_data=gps.coordinates;
 
  save_data();
 
  gps_datafile.println(gps_data);
  Serial.println(gps_data);
 
  delay(500);

  if(!gps.checkS2())                                                 // if S2 is presed, send a msg including the coordinates
  {
    send_msg();                                                     // call the function
  }

 }


void save_data()
{
  delay(200);
  old_data[j_old]=gps_data;
  gps_datafile.println(old_data[j_old]);
  j_old++;
 
    if (j_old==10)
      {
        j_old=0;
        gps_datafile.close();
        Serial.println("saving is done");       
      }
  delay(100); 
}
8  Using Arduino / Storage / Re: Micro SD and GSM/GPS/GPRS shield with Mega 2560 interface problem on: March 31, 2013, 10:34:00 am
sorry i am not good at using forum...and deleted it by mistake

according to cooking hacks i they said to use digital pins to power the SD module...so i used pin 22 to power the sd module.

http://www.cooking-hacks.com/index.php/documentation/tutorials/arduino-micro-sd

so you means the source of those random numbers i am getting in the sd card is powering it from digital pins ?
and what should i do to solve this issue

Thank you,
9  Using Arduino / Storage / Re: Micro SD and GSM/GPS/GPRS shield with Mega 2560 interface problem on: March 31, 2013, 07:03:02 am
Thank you for your reply..

i knew what my problem was... it related to Slave select

and its working now  smiley
10  Using Arduino / Storage / Micro SD and GSM/GPS/GPRS shield with Mega 2560 interface problem on: March 31, 2013, 03:46:54 am
Hey All,

am using
1- Arduino Mega 2560
2- Micro SD Module for Arduino from Cooking-hacks.
http://www.cooking-hacks.com/index.php/microsd-2gb-module-for-arduino.html
3-  GSM/GPS/GPRS shield from antrax
http://www.antrax.de/site/Online-Shop/Home/Arduino-Components/GSM-GPRS-GPS-Shield::51.html

i used ICSP connection for Micro sd module.
And for the GPS shield i used the kit as shown in the this PDF file
http://www.antrax.de/downloads/arduino-gsm-gprs-gps-shield-mega2560-rework_en.pdf

I tested the SD card and the GPS shield separately and they are working fine, but when i interface them both together i get initialization cant completed for the GPS.

you guys have any idea what would be my problem.if my explanation is not clear you can ask for other information.

PS: Is it possible to take (MOSI, MISO and CS) as common pins and use them for GPS shield and the Micro sd module ??

Waiting for your reply...
11  Using Arduino / Sensors / ADXL345 axis pins on: February 27, 2013, 03:48:41 am
Hey
in ADXL335 it clear which pin i have to use to determine the (X,Y,Z) axis.

but now am working on ADXL345 (16g),
and i have
sdo pin
sda pin
scl  pin

i just want to know which pin is for which axis...

if anyone have any information want to share i would really happy to read it

Thanks,
12  Using Arduino / Project Guidance / GSM_GPRS_GPS_Shield.6...testing problem on: January 27, 2013, 02:34:58 am
hey am new in GPS field and i want your guidance

I am using (gsm-gprs-gps-shield Rev.6) with arduino Mega2560..

this is the PDF fie that shows the connection :
http://www.antrax.de/downloads/arduino-gsm-gprs-gps-shield-mega2560-rework_en.pdf

if i connect the power pins of the shield to 5V ... i should get light indication on the shield module..but am not getting it.. is there any other way to test the GPS ?

Looking forward to your reply
13  Using Arduino / Sensors / Re: ADXL335 measurements in G's on: January 23, 2013, 12:44:47 am
am getting zeros for G values
14  Using Arduino / Sensors / Re: ADXL335 measurements in G's on: January 22, 2013, 08:45:37 am
Hey AWOL,

i am getting some steady readings for raw values...and am trying to get the values in G's, but all what i can read are "zeros"

can you please figure out what is the problem:
this programe turn on led if adxl readings in G exceeds 2

Code:
const int xpin = A0;
const int ypin = A1;
const int zpin = A2;
 
int ledpin = 2;
const float power_supply = 5.0;
const float sensor_power_supply = 3.3;
const float zero_bias = sensor_power_supply / 2;

const int threshold_x = 2;
const int threshold_y = 2;
const int threshold_z = 2;


void setup() {
  Serial.begin   (9600);
  pinMode(ledpin, OUTPUT);
  Serial.print ("x axis \t\t");
  Serial.print ("y axis \t\t");
  Serial.print ("z axis \t\t");
  Serial.println();
 
  delay(1000);

void loop() {
 
  Serial.print(analogRead(xpin));
  Serial.print ("\t\t");
  Serial.print(analogRead(ypin));
  Serial.print ("\t\t");
  Serial.print(analogRead(zpin));
  Serial.print("\n\n");
 
  float voltage_x = (analogRead(xpin)) * power_supply / 1023.0;
  float x = (voltage_x - zero_bias) / 320;
  Serial.print(x);
  Serial.print ("\t\t");
 
  float voltage_y = (analogRead(ypin)) * power_supply / 1023.0;
  float y = (voltage_y - zero_bias) / 320;
  Serial.print(y);
  Serial.print ("\t\t");
 
  float voltage_z = (analogRead(zpin)) * power_supply / 1023.0;
  float z = (voltage_z - zero_bias) / 320;
  Serial.print(z);
      Serial.print("\n_________________________________________________________________\n");
  delay(2000);

if ( ( x > threshold_x) ||(y > threshold_y) || (z > threshold_z))
{
  Serial.println();
  digitalWrite(ledpin, HIGH);
  delay(5000);
  digitalWrite(ledpin, LOW);


}
}
15  Using Arduino / Sensors / Re: ADXL335 measurements in G's on: January 21, 2013, 07:59:42 am
connections are correct...yes you are right the accelerometer is not exactly fixed to a solid ground...i will find solution for that now

if i add capacitors for noise blocking, is that going to affect my readings positively ?
Pages: [1] 2 3