ArduinoGeneral

Alarm-o-Bot Project

userHead DonPesho 2015-02-23 02:47:59 3338 Views2 Replies
Hello Guys
I'm new developer in Arduino + Hardware
And I have
Accelerometer adxl 335 which i tried with simple code and works fine.
SD TF Card Module = with simple code works.
PIR Motion Sensor + Piezo = also with simple code works.
I tried 2 Relay Module = works again :D with simple code.
Now the most important part GPS/GPRS/GSM Module V3.0 = several times i tried to take GPS data but because its in home probably dont have connection with satelites (I will try it outdoor). But i tried to send SMS from the shield but it didn't work. :cry:
I know that could sounds a little bit insolently but can you give me advices about how (to write the code) to combine all other stuff to the GPS Module. The Idea is to send sms with info when the other parts are/and why activated + to save data on the SD card.
I can post which simple code i used for the individual parts if will help.
2015-03-02 06:17:17 I can't try it because when i put the code:
Code: Select all
// Product name: GPS/GPRS/GSM Module V3.0
// # Product SKU : TEL0051
// # Version     : 0.1
 
// # Description:
// # The sketch for driving the gsm mode via the USB interface
 
// # Steps:
// #        1. Turn the S1 switch to the Prog(right side)
// #        2. Turn the S2 switch to the USB side(left side)
// #        3. Set the UART select switch to middle one.
// #        4. Upload the sketch to the Arduino board(Make sure turn off other Serial monitor )
// #        5. Turn the S1 switch to the comm(left side)       
// #        6. RST the board
 
// #        wiki link- https://www.dfrobot.com/wiki/index.php/GPS/GPRS/GSM_Module_V3.0_(SKU:TEL0051)
 
void setup()
 {
   //Init the driver pins for GSM function
    pinMode(3,OUTPUT);
    pinMode(4,OUTPUT);
    pinMode(5,OUTPUT);
   //Output GSM Timing
    digitalWrite(5,HIGH);
    delay(1500);
    digitalWrite(5,LOW);
 }
 void loop()   
 {   
    // Use these commands instead of the hardware switch 'UART select' in order to enable each mode
    // If you want to use both GMS and GPS. enable the required one in your code and disable the other one for each access.
    digitalWrite(3,LOW);//enable GSM TX、RX
    digitalWrite(4,HIGH);//disable GPS TX、RX
 }

Then i go to CoolTerm and connect and then i recieve only this:

RDY

+CFUN: 1

+CPIN: READY

GPS Ready

When i try to write its like this: ❯ and on Backspace is g :D 
userHeadPic DonPesho
2015-02-25 20:30:34 Hi Pesho,

Most cases why SMS won't go out is because of credit on the SIM card or out of range from the SIM network.
For both, i suggest you these 2 options:
connect directly via serial port and use AT commands to gather necessary information. AT commands are listed on the datasheet and some on the wiki.

Plug the Sim card on a working phone and verify it has credit. The signal range could vary from device to device but it could give you an idea. If your shield location reports low quality signal for the SIM card, try it in a different location.

Post your code here, if we can help you we will give you some pointers and ideas!
enjoy building / making :D
userHeadPic Jose