General

GSM/GPS Module changing the pins

userHead Jing 2013-10-03 00:22:54 4910 Views4 Replies
Hello

I would like to know how can i change the pins in use from 3,4,5 ? since pins 4 and 5 already taken by my LCD and i would like to change them to other pins, i have already took off the jumpers j10,j11,j12 on the board and in my code i do as follows but i can't seem to get the module working:
Code: Select all
#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup()
{
  
   lcd.begin(16, 2);              // start the library
   lcd.setCursor(0,0);
   lcd.print("WAIT..");
 
  pinMode(10,OUTPUT);//The default digital driver pins for the GSM and GPS mode
  pinMode(11,OUTPUT);
  pinMode(12,OUTPUT);
  digitalWrite(12,HIGH);
  delay(1500);
  digitalWrite(12,LOW);
 
  digitalWrite(10,LOW);//Enable GSM mode
  digitalWrite(11,HIGH);//Disable GPS mode
  delay(2000);
  Serial.begin(9600); 
  delay(5000);//GPS ready
 
  Serial.println("AT");   
  delay(2000);
  //turn on GPS power supply
  Serial.println("AT+CGPSPWR=1");
  delay(1000);
  //reset GPS in autonomy mode
  Serial.println("AT+CGPSRST=1");
  delay(1000);
 
  digitalWrite(11,LOW);//Enable GPS mode
  digitalWrite(10,HIGH);//Disable GSM mode
  delay(2000);
 
  Serial.println("$GPGGA statement information: ");
}
That's a part of code, as you can see the lcd took some of pins so i have to use other pins.

Thank you
2013-10-08 09:51:00 Have you tried the SIM card on a cellphone and confirm it is working and enabled by your service provider?
Also confirm the bandwidth of your service provider is same as the specifications on the module.
userHeadPic Jose
2013-10-07 04:21:53 Alright i could finally make the GPS work in arduino mode. still no hope for GSM, im getting that strange CPIN NOT READY!
I also have connected the power to my arduino but no luck
userHeadPic Jing
2013-10-06 16:09:20 Hello,

It doesnt seem that i can make this module running, im following the wiki example for GPS and GSM through USB and this is what i receive everytime
and there is no OK message or anything else when the module connected.
is it possible that the module i received is faulty or anything?
im also using an external power 12v 1A so i dont think this is power related issue.

any tips?
userHeadPic Jing
2013-10-04 13:47:49 Hello Jing,

You need jumper cables in place of the jumpers you took off and connect them to the pin you want to use.

Cheers^^
userHeadPic Jose