EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
You are here: Home / Topics / how to interface gsm module sim900a to arduino

how to interface gsm module sim900a to arduino

|

Microcontroller › Arduino › how to interface gsm module sim900a to arduino

  • This topic has 1 reply, 1 voice, and was last updated 6 years, 6 months ago by rupa.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 26, 2016 at 8:12 am #4241
    rupa
    Participant

    helllo all,

    iam using sim900a with arduino uno 

    and iam want to send sms using it i have tried a program but i failed to do it no idea it is running everything in serial monitor but it is not sending msg to moblie 

    my program is 

    int timesTosend=1;
    int count=0;
    char phone_no[]="8885751592";
    void setup()
    {
    Serial.begin(9600);
    delay(2000);
    Serial.println("AT+CMGF=1"); //set GSm to test mode
    delay(200);
    }
    void loop()
    {
    while(count<timesTOsend){
    delay(1500);
    Serial.print("AT+CMGF="");
    Serial.print(phone_no);
    Serial.println(""");
    while(Serial.read()!='>');{
    Serial.print("test messsage from arduino ….hello…how r u");
    delay(5000);
    Serial.write(26);//sends ctrl+z end of message
    delay(5000);
    }
    count++;
    }
    }
     
    can anyone help me with this 
    January 26, 2016 at 1:21 pm #13660
    rupa
    Participant

    but u dont find anything going on serial monitor but u will get sms to ru phone

    #include <SoftwareSerial.h>
     
    SoftwareSerial mySerial(9, 10);
    void setup()
    {
    mySerial.begin(9600);
    Serial.begin(9600);
    delay(2000);
     //set GSm to test mode
    }
     
    void loop()
    {
      if (Serial.available()>0)
       switch(Serial.read())
     
    mySerial.println("AT+CMGF=1");
    delay(1000);
    mySerial.println("AT+CMGS="+918885751592"r");
    delay(1000);
    mySerial.print("test messsage from arduino ….hello…how r u");
    delay(1000);
    mySerial.println((char)26);//sends ctrl+z end of message
    delay(1000);
    }
     
  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Looking for amplifier ic August 12, 2022
  • alternate of 80386/486 microprocessor August 12, 2022
  • Trying to troubleshot 1960s Panasonic transistor radio August 12, 2022
  • Company name: any suggestions? August 12, 2022
  • uc3843 Buck-boost August 11, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools