• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Arduino GSM Shield : Getting Started With DIY IoT

By Abhishek Ghosh August 9, 2015 9:55 am Updated on August 9, 2015

Arduino GSM Shield : Getting Started With DIY IoT

Advertisement

Compared to Wi-Fi Shield, Arduino GSM Shield is Practical as It Opens the Door Towards Real IoT. We Need to Control Things Over Internet. You can live without Wi-Fi. The basic theory is very important to know – what is Ethernet, what is Wi-Fi, Wi-Fi vs Ethernet, GSM, GPRS, TCP etc.

 

Arduino GSM Shield : Why We Prefer it Over Wi-Fi Shield

 

Wi-Fi is for creation of Wireless LAN. There is no meaning of playing with so basic networking with limitation of range. With only one Arduino UNO board, Arduino GSM Shield is far better option despite it costs higher than Wi-Fi Shield. You can add a Static IP address like normal networking. We can control it over real internet not Wi-Fi.

Wi-Fi Shield is good for connecting between two Arduino UNO or other variations of microcontroller based boards.

Advertisement

---

WiFi, in very short, can not send data or receive data over few hundred KMs apart. You’ll argue that the usage of Wi-Fi Shield is different. Very much true. Biggest question possibly you have in mind :

Is Arduino 3G Shield Available?

Answer is yes for third party shield, no for official. If you can handle, 3G is obviously better as instead of GPRS, usually they have support for WCDMA, HSPA 3G. Connection speed is far higher even on Arduino. More funny information for you – ZTE MF190 model like 3G modems actually can be interfaced with Arduino. If you have some extra 3G Modems and working capability, web searching capabilities, actually you might not need Arduino GSM Shield at all.

We are not Instructables or AdaFruit. We have nothing to sell. It is possible to use 3G Modem as the popular models support flashing with OpenWrt.

But we are talking about buying Arduino GSM Shield, not building a 3G interface with ZTE USB Modem. You need not to break ZTE MF190 model, as it working model in 2015, it should remain in the market still 2018 or so. There are lower models from Huawei and ZTE, those works fine. You are not going to reach even 1 mbps speed by any means. You need an USB Host Shield 2.0 for Arduino.

More funny, you can actually do interfacing with an Android device!

You should avoid official Arduino forum to talk about USB Modem if you are newbie. Open Source and Free Software project has differences. You can ask at any third party blogs and forums who has closer guides.

You target need matters.

Arduino GSM Shield - Getting Started With DIY IoT

 

Arduino GSM Shield : Getting Started With DIY IoT

 

It does not matter whether you purchase original Arduino GSM Shield or a Clone Shield at fraction of price. Thing is practically the same. AT Commands are simple textual commands sent to the GPRS modem over its serial interface (UART), so you can use any serial terminal software to communicate with it.

Follow few steps to set up the hardware system. Insert an activated SIM card to SIM Card Holder. A 6 Pin Holder for SIM Cards. Both 1.8 volts and 3.0 volts SIM Cards are supported by SIM900, the SIM card voltage type is automatically detected. Make sure the antenna have installed properly in the antenna interface. The GPRS shield can be controlled via hardware serial port or software serial port of Arduino. Here we use the software serial port as default. Choose it by inserting jumper caps as written on product’s official description. Plug to Arduino
Stack the GPRS Shield onto Arduino. Power up Arduino by USB cable or DC Jack. The Power-on indicator LED should light up once connected.

The GPRS Shield comes with all accessories that you need to get started with sending data over the GSM network except an Arduino board and a GSM SIM Card. If you want to make voice calls, you would also require a headset with microphone. Exactly like the USB Modems.

This is the official code for getting started with GPRS connection :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// include the GSM library
#include <GSM.h>
 
// PIN number if necessary
#define PINNUMBER ""
 
// APN information obrained from your network provider
#define GPRS_APN       "GPRS_APN" // replace with your GPRS APN
#define GPRS_LOGIN     "login"    // replace with your GPRS login
#define GPRS_PASSWORD  "password" // replace with your GPRS password
 
// initialize the library instances
GSMClient client;
GPRS gprs;
GSM gsmAccess;
 
// This example downloads the URL "http://arduino.cc/latest.txt"
 
char server[] = "arduino.cc"; // the base URL
char path[] = "/latest.txt"; // the path
int port = 80; // the port, 80 for HTTP
 
void setup()
{
  // initialize serial communications
  Serial.begin(9600);
  Serial.println("Starting Arduino web client.");
  // connection state
  boolean notConnected = true;
 
  // Start GSM shield
  // pass the PIN of your SIM as a parameter of gsmAccess.begin()
  while(notConnected)
  {
    if((gsmAccess.begin(PINNUMBER)==GSM_READY) &
        (gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD)==GPRS_READY))
      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }
  }
 
  Serial.println("connecting...");
 
  // if you get a connection, report back via serial:
  if (client.connect(server, port))
  {
    Serial.println("connected");
    // Make a HTTP request:
    client.print("GET ");
    client.print(path);
    client.println(" HTTP/1.0");
    client.println();
  }
  else
  {
    // if you didn't get a connection to the server:
    Serial.println("connection failed");
  }
}
 
void loop()
{
  // if there are incoming bytes available
  // from the server, read them and print them:
  if (client.available())
  {
    char c = client.read();
    Serial.print(c);
  }
 
  // if the server's disconnected, stop the client:
  if (!client.available() && !client.connected())
  {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
 
    // do nothing forevermore:
    for(;;)
      ;
  }
}

As always we say – we expect Arduino to donate the users the shields at $5.00 for helping to learning.

Tagged With Arduino gsm connection to iot , arduino gsm iot , arduino gsm vs ethernet , https://thecustomizewindows com/2015/08/arduino-gsm-shield-getting-started-with-diy-iot/

This Article Has Been Shared 905 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Arduino GSM Shield : Getting Started With DIY IoT

  • iBeacon and Nearables : Basics

    iBeacon uses smartphone’s precise location for navigation within the confined spaces, based on Bluetooth Low Energy (BLE). Nearables describes the idea of smart objects.

  • Used Mobile Phone’s Display For Arduino & Other DIY Projects

    It Is Not Abnormal To Think About Used Mobile Phone’s Display For Arduino & Other DIY Projects To Save the Total Cost. Here are some details.

  • Basic Electronic Components List and What They Do

    Here is an Illustration of the Basic Electronic Components List and What They Do. This article is helpful for new Electronics Enthusiasts.

  • DIY LED Dot Matrix Display For Arduino Scrolling Text

    Here Are Many Ways To Build DIY LED Dot Matrix Display For Arduino Scrolling Text and Other Effects. Save Money By Buying Raw Components.

  • Breathing LED Arduino : Circuit & Code

    LED Never Breathes! MacBook Pro Has Sleep LED Which Pulsates Resembling Human Breathing. Here is Breathing LED Arduino Circuit & Code.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Arduino GSM Shield : Getting Started With DIY IoT," in The Customize Windows, August 9, 2015, February 1, 2023, https://thecustomizewindows.com/2015/08/arduino-gsm-shield-getting-started-with-diy-iot/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT