Arduino Tutorial: Connecting to the Internet using the GPRS service with a GSM shield a Nokia 5110

Dear friends welcome to another video! This
is Nick from and today we are going connect our Arduino project to the Internet
using the GPRS service! Our projects can now access the Internet even from remote places
where there is no Ethernet or WiFi available! Without any further delay let’s get started!
If you have watched my previous videos you will know that I really like this GSM shield
and I like to build projects with it. The only thing I hadn’t tested so far was the
Internet capability of it. That’s what we are going to do today. This project, connects
to the Internet via the GPRS service and visits my website in order to download a small text
which is then displayed on a Nokia 5110 LCD display. The text that it downloads is located
at this path and it is our familiar text “It works fine!”. As
you can see, after a few seconds, the text appears on the display! Great, our project
works fine! We can now connect to the Internet even from remote areas given that there is
GSM coverage at that area! The connection speed is slow, at most time less the 100Kbps
but it is more than enough for simple projects! Let’s now see how to build this project!
The parts needed in order to build this project are these:
• An Arduino Uno • A TinySine GSM shield
• A Nokia 5110 LCD display You can find links for all the parts in the
description of the video. The connection is really easy. After connecting the GSM shield
to the Arduino Uno board, all we have to do is to connect the Nokia 5110 display. Since
some of the digital pins of the Arduino are used by the GSM shield we have to connect
the Nokia LCD display to the remaining ones. The TinySine shield is using pins D2,D3,D7,D8
and D9. I am going to use pins D4, and D10 to D13 for the LCD display. Check the connection
diagram and also watch the Nokia 5110 LCD display tutorial I have prepared for more
details. That’s it. If we now power up the project, it will connect to the GSM network,
next to the GPRS service, and after about 2 minutes it will display the text from the
remote server. The procedure is slow, we are going to miss the speed the Wi-Fi. Now let’s
see the code of the project. We are using two libraries today. The TinySine
GSM library and the Nokia 5110 Basic library. You can find links for both libraries in a
link in the description of the video. The code of the project is simple. At first
we connect to the GSM network. Next we connect to the GPRS service. In order to achieve that
we have to enter the APN settings for our cell phone provider. For my provider which
is COSMOTE the APN settings are these. Name, username and password. Find the settings for
your provider and enter them in this line. Next we send a GET request to the remote server.
We define the server, the path, the port, a char array in order to save the result,
and finally how many bytes we want to get from the server. That’s it! We got the text
from the server and all we have to do is to remove the HTTP headers and print it on the
display! As always you can find the code of the project in a link in the description of
the video. As you can see, connecting to the Internet
using the GSM shield is easy. That opens up a whole new world of projects. Our projects
can now easily sense the environment and log that data in an online database even from
remote areas! I am already building a project like this, so stay tuned. I can see a couple
of problems though. The connection is slow, it can take up to two minutes to connect the
internet and that requires a lot of power. The second problem is that projects like this
require a lot of memory. An Arduino Uno only has 2KBs of RAM memory so in this example
I was using 70% of the RAM memory of the Arduino Uno! Since this GSM shield does not work well
with an Arduino Mega or Due, we have to find another shield if we want to build more complex
projects that require more sensors and functionality. Do you know any GSM shields that can work
well on an Arduino Mega or Due and have a good library support? Also do you plan to
use the GPRS capability of this shield with your project? Please post any comments or
ideas in the comments section below. Before we go, I would like to show a small
footage from one of my favorite Greek cities I visited lately. Naufplio, is one of the
most beautiful Greek cities, if you ever visit Greece, don’t miss it! If this is your first time here, I would love
to have you subscribed. In this channel I post videos about DIY projects every Saturday.
I build projects with Arduino, Raspberry Pi, I build robots and simple electronic circuits.
I love making things and helping people doing the same. I hope that you will join our community.
Until next Saturday, Watch, Learn, Build!

31 Replies to “Arduino Tutorial: Connecting to the Internet using the GPRS service with a GSM shield a Nokia 5110

  1. Wow! I didnt even knew That you could connect to the internet with the GSM Shield! I thought it could Only call and send SMS

  2. una vez hecho, una vez grabado, se podria grabar la pista de audio en castellano, por tu acento es evidente que sabes castellano. gracias

  3. Why does the GSM shield not work with Mega? Could it work with Teensy, which would give a lot more memory and ports?
    My application is to use this for monitoring and control of FM radio relay transmitters in remote hilltop areas that have no telephone line or 3G, but do have basic 2G GSM service.

  4. Hi Nick, another nice project, many thanks. Would you consider building a GPS tracker using your GSM shield and your GPS shield ? The idea is to call the GSM shield and if your phone number is recognize then the GSM shield send back an SMS with a Google Map link with the GPS position. I found some tutorials but not clear enough.

  5. Great video – perfect timing as I have a project to get an XMEGA 256A3U to send log data to a server via GPRS…
    I'm using a QUECTEL M66 GSM modem, it's cheap, and tiny. Of course, I had to make my own part in Eagle for the PCB…
    Couple of things: Power. Seems everyone using GSM modules uses that damn 29302 linear regulator, as indeed am I on my first prototype. Firstly, unless it's loaded with 7mA (at 4V output), its output WILL go overvolts! Try it (not on a module….).
    In other words, if your modem is idling, its supply capacitor will see 12v after a few seconds and it'll get a nasty surprise when it wakes up.
    See the datasheet. Plus, at 12V input, 4V out, it's about 30% efficient.
    I tried this:
    I replaced the pot. with calculated resistors, and get about 90% efficiency out of it. Be careful with the enable signal, a pullup resistor has to be removed here also, else the arduino will see half the input supply (6-7V) which may kill it.
    Compared with another prototype, issuing the command "AT+CSQ" gave the same signal strength with zero BER as the linear, so noise wasn't an issue.
    As to memory, for data storage, how about a cheap SPI flash? Same SPI lines as the display, one more CS line.

  6. I'm developing a project and would like to transmit the data collected by the Arduino to the cloud through a cell, because the installation places do not have internet. They know something that can help?

  7. Thanks a lot for the awesome video.Please cold you help how to connect a camera with that system sothat I get the pictures.

  8. Hi
    Awesome video Thank you for sharing that tutorial….i need a help how do i send sensor data on webserver using GSM sim900.

  9. How to locate an imei number to gsm shield if the ordered shield is not imei recorded in our country? anyone managed that?

  10. hi I am working with sim808, arduino and websockets so which library should i use and how should I proceed .
    Thnaks in advance

  11. hi
    this video is nice.i have one project in this project i want to provide internet to my whole system then this system is applicable? and which generation sim is useful (2g 3g 4g)?

Leave a Reply

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