Home Blog Archive Hardware Arduino: GSM module set up - so it goes

Arduino: GSM module set up - so it goes

  • May 17, 2024
  • 724
  • 0

In this practical tip we show you how to use a GSM module with Arduino correctly, and set up.

Arduino: GSM module set up the required components

A GSM module set up, you need first of all, of course, a GSM-module. All of the components we will show you also, in the gallery at the end of the article.
  • In addition, you need an Arduino, and a power supply, a USB cable and three Male-Male-Jumper-cable.
  • In order for the module to properly use, you need a SIM card.
Arduino: GSM module set up

GSM module: SIM card & software serial activate.

First of all, you need to take some precautions on the GSM module.
  • First, on the back of the GSM-module, SIM-card a. Ensure that this is not protected with a PIN.
  • Also, you need to re-connect the two black connectors of the GSM module. How this should be correctly arranged, you will see in the picture. In order to make sure that the module "software serial" is used for this project is important.
GSM module: software serial

Arduino library for the module to install

So you can use the GSM module correctly, you need a suitable library.
  • First download this library from GitHub to download.
  • Then extract the ZIP file. In the extracted folder you will find another folder with the same name. Cut this folder and paste it in the libraries folder of the Arduino IDE. You can find this at "C:\Users\Ihr_Benutzername\Documents\Arduino\libraries".
  • Rename the folder in addition, for the sake of Clarity in "GSMSHIELD".
  • Then edit the file "GSM.cpp" and change in line 27 and 28 the "_GSM_TXPIN_" in 7 and "_GSM_RXPIN_" in 8.
  • They also change in the file "GSM.h" in line 45 and 46, the value for "GSM_ON" in 9 and the value in "GSM_RESET" in 6.
  • Do not forget to save the files at the end.
Arduino library for the module

Arduino: Code upload

Now start the Arduino IDE. In the case of the example codes use appropriate Codes for the GSM should show up module.
  • We choose in this example, a Code called "GSM_GPRSLibrary_SMS". Here we remove the two slashes in the line 40 and 41, to the comments into the correct commands.
  • In addition, is registered in the command in line 40, the own number (with country code). Also, the content of the message can be edited here: "if (sms.SendSMS("+49123456789", "Hello, CHIP!"))"
  • Finally, the Code is loaded on the Arduino, and this disconnected from the PC.
Arduino: Code upload

GSM module to Arduino connect

Next, you need to connect the GSM module is connected correctly to the Arduino.
  • Three Pins of the GSM module must be connected with Pin 7 and 8 and a Ground on the Arduino. The details you see in the picture.
GSM module to Arduino connect

Arduino: GSM-module

Finally, you can test the GSM module.
  • First of all, connect the power supply (power supply) to the GSM module and move the switch.
  • Then press for 3 seconds the PWRKEY button on the side.
  • As soon as the LED flashes slowly, you can connect the Arduino to the PC, so this is now started.
  • Open recently with [Ctrl] + [Shift] + [M] to the serial Monitor.
  • A few seconds later, you should receive a new SMS.
Arduino: GSM-module use
In the next practical tip we show you how to make a light sensor with an Arduino to build can.

Latest Videos

Can a GSM module with an Arduino control, you need first of all, of course, an Arduino.

Can a GSM module with an Arduino control, you need first of all, of course, an Arduino.

We are using a GSM-module of the company "AZ-Delivery".

We are using a GSM-module of the company "AZ-Delivery".

You will also need a 10 Watt power supply.

You will also need a 10 Watt power supply.

Finally, you need to have a USB cable for the Arduino, three Male-Male-Jumper-cable.

Finally, you need to have a USB cable for the Arduino, three Male-Male-Jumper-cable.

A place on the back of the GSM-module SIM-card. This should not be PIN protected.

A place on the back of the GSM-module SIM-card. This should not be PIN protected.

To stuck next, this black connectors, so that they "can use software serial".

To stuck next, this black connectors, so that they "can use software serial".

Now connect the Arduino to the GSM module.

Now connect the Arduino to the GSM module.

The GSM module is connected to Pin 7 and 8 and to a Ground on the Arduino.

The GSM module is connected to Pin 7 and 8 and to a Ground on the Arduino.

With the GSM module, you can send also SMS and make calls.

With the GSM module, you can send also SMS and make calls.

Very practical as well as a Keypad and a Display.

Very practical as well as a Keypad and a Display.

YOU MAY ALSO LIKE

0 COMMENTS

LEAVE A COMMENT

Human?
1 + 3 =