Getting Started with the Arduino GSM Shield 2

Arduino + GSM SIM Card? Absolutely!

Today we’ll be talking about the Arduino GSM Shield 2. Welcome to the ultimate “getting started” tutorial. This board allows the user to make phone calls, send SMS, and even access the internet by using the integrated Quectel M10 modem.

Quectel M10 Modem
Quectel M10 Modem

It features a download speed of 84,6 kbps (wow! :p) and uses the old GPRS network to get access to the internet.

Quick setup

Obviously, we need to grab an activated SIM card, know its PIN code, and make sure that we are not incurring in any other costs.

SIM Cards

We also need to know our carrier APN. The APN is the network access point, a gateway that mobile phone carriers use to connect you to the internet. This information is normally available to the public, but as phones download automatically these settings from the GSM network, it may be a bit tough to find. Solution: use a google search: ” apn”. And solved! In the code below, the Vodafone APN for Spain is used.

Getting Started

Let’s try to download a single page to our device. First off, we need to decide which page we’re going to download, and the purpose of downloading it right away to our arduino. We might want to download the current timestamp from an internet server, the weather of a specific place, or make complex interactions with server-side scripts. We can even upload our data to a server (communication is bidirectional) and develop an IoT device. Anyways, for this simple example we will download a simple page: the arduino’s latest version txt file located at

Two important remarks: do NOT break your query down into several parts like this:

And last, but not least, do not use “client.println”, for maximum compatibility use “client.print” and add a final “\r\n” right after your request header.

Test it, and leave your comments!

Aerospace Engineer
Aeronautical Engineer. My dream is to work for a leading company in the aerospace field to develop projects that can make the world a better place; improving people's life, safety, and comfort. I am interested in Aerospace Engineering, big data, CFD, photography, automatic control, maths and electronics.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.