element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum arduino and gsm interfacing
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 8 replies
  • Answers 1 answer
  • Subscribers 394 subscribers
  • Views 1014 views
  • Users 0 members are here
Related

arduino and gsm interfacing

Former Member
Former Member over 9 years ago

hi, need some help here.

it confuses me how pin configs differ from one type of gsm module to another.

though i found that some gsm shields fits pecfectly (kinda) with arduino uno, i would like to replace it with arduino mega 2560.

can anyone tell me how to interface a gsm module (specifically e gizmo sim900D) with arduino mega 2560?

  • Sign in to reply
  • Cancel

Top Replies

  • volly
    volly over 9 years ago +1 suggested
    aypii . Please attempt the following: If you are using Arduino Mega 2560, follow these steps. [1] How to switch between Arduino Mega and Arduino Uno? 1) Open GSM.h and comment-decomment the appropriate…
  • manisha17
    manisha17 over 8 years ago in reply to volly +1
    Please tell me interfacing of gsm sim 900 and GPS module with arduino Uno....
  • volly
    0 volly over 9 years ago

    aypii.
    Please attempt the following:

     

    If you are using Arduino Mega 2560, follow these steps.
    [1]    How to switch between Arduino Mega and Arduino Uno?
      
       1)
       Open GSM.h and comment-decomment the appropriate lines like below
       e.g. for Arduino Mega
       //#define UNO
       #define MEGA
      
       2)
       If you use Arduino Uno comment the line in HWSerial.h or decomment if
       you are using Arduino Mega
       e.g. for Arduino Mega
       #define MEGA

     

       3)
       Save and compile

     

    [2]   How to switch between the old shield (that uses 4 and 5 pins for
       SoftwareSerial and the new (that used 2 and 3 pins)?

     

       1)
       Open GSM.cpp and comment-decomment the appropriate lines like below
       e.g. for the new one

     

       //#define _GSM_TXPIN_ 4
       //#define _GSM_RXPIN_ 5
       #define _GSM_TXPIN_ 2
       #define _GSM_RXPIN_ 3
      
       2)
       Save and compile

     

    Connect the RX pin of your sim module to pin 18 of your arduino mega and the TX pin to pin 19 of the arduino mega. This is because the library uses Hardware serial for mega. Connect VIO pin of your sim module to IOREF pin of your arduino mega and the connect the GND of your sim module to GND of your arduino mega. That's all.

     

    I came across this somewhere very recently....give it a go and see if it works for you and let us know.
    You can also checkout this link....
    Interfacing SIM900D GSM Module Board with Arduino Mega 2560
    Regards,
    YV.
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • manisha17
    0 manisha17 over 8 years ago in reply to volly

    Please tell me interfacing of gsm sim 900  and GPS module with arduino Uno....

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • volly
    0 volly over 8 years ago in reply to manisha17

    manisha17, Hi....

    Its is fairly straight forward, you'll find all the instructions in detail at this link:

    http://www.instructables.com/id/Using-the-Sim900sim900A-mini-module-with-Arduino-U/?ALLSTEPS

     

    regards,

    YV.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • manisha17
    0 manisha17 over 8 years ago

    Hii..

    How can I integrate gsm and GPS with button using arduino UNO???

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • abhijitnathwani
    0 abhijitnathwani over 8 years ago in reply to manisha17

    Hi Manisha,

    Can you elaborate more what you want to achieve? Then we can suggest appropriately.

     

    Regards,
    Abhijit

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • manisha17
    0 manisha17 over 8 years ago in reply to abhijitnathwani

    Hello Sir,

    When I pressed a switch then the location of user should be sent to predefined number by SMS.That's why I want to integrate gsm and GPS.So please tell me how can I implement this....

    Regards,

    Manisha Bindal

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jackthomaser
    0 jackthomaser over 8 years ago

    I am also use this type of module in my solar project  WE generate sms by GSM module through Programing

    A GSM Module is basically a GSM Modem  (like SIM 900) connected to a PCB with different types of output taken from the board – say TTL Output (for Arduino, 8051 and other microcontrollers) and RS232 Output to interface directly with a PC (personal computer). The board will also have pins or provisions to attach mic and speaker, to take out +5V or other values of power and ground connections. These type of provisions vary with different modules.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • grendell
    0 grendell over 8 years ago in reply to volly

    Hi Yunus

     

    I realise this thread is a year old but....  

    I too am just starting a project to interface the GPS card to the Ardunio Megga 2560. I follow your details 1.1-3 but 2.1 seems to be  referring to using a serial link on 4/5 or 2/3.  I would prefer to use the second hardware UART on 18/19 as you suggest. Do I comment out the reference to 4/5 AND 2/3?

     

    I am not sure how GSM.h would know to use 18/19.

     

    Also is there an updated link for the  "Interfacing SIM900D .....with .. Mega 2560"? I can't get the link you gave to work.

     

    many thanks

     

    G

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube