Shield gprs gsm sim900 connection. GSM module SIM900A


Shield GPRS/GSM SIM900 with antenna
SIM900 GPRS/GSM Shield Development Board Quad-Band Kit For Arduino Compatible

Module for microcontroller operation Arduino devices and similar in networks cellular communications according to GSM and GPRS standards. Focused on use in automation and control systems. Data exchange with other modules occurs via the UART interface. Shield GPRS/GSM SIM900 with antenna can interface directly with the microcontroller via the UART interface or work in conjunction with personal computer when using a portPC-UART interface converter. This is possible thanks to software compatibility at the level of the class of commands used to control modems - AT commands.
Objects are monitored and controlled through the exchange of data within reach mobile communications. Provides voice communication, sending SMS, MMS and many other functions and services. The operation of the module is based on the SIM900 component.

Article in Russian from a magazine about the SIM900 component. The component was developed by SIMCom Wireless Solutions. The SIMCom website has a Russian version. The GSM module board on the component side contains connectors for connecting an antenna, headphones and a microphone. On the solder side of the board there is a CR1220 3 volt battery holder that supports the operation of the module clock and a container for installing a SIM card.
One of the applications of the device is a vehicle movement tracking system in conjunction with GLONASS or GPS device. Sending SMS messages allows you to use the module in dispatching, wireless alarms and security systems. As a result of ongoing events, various SMS can be sent: “Emergency stop of elevator 2 of building No. 34”, “Car door is open”, “Basement is open”, “220 V voltage is turned off”, “ Entrance door The dacha is open”, “The lighting is on”, “The temperature in the greenhouse is below critical.” The module is indispensable for monitoring and controlling moving objects moving on long distances. Or in the case of the operator moving a long distance from a stationary object.

Shield GPRS/GSM SIM900 with antenna provides ample opportunities to study the operation of the SIM900 component. Installation of the SIM900 component is carried out according to the most modern technologies why solder to printed circuit board SIM900 in laboratory conditions is very difficult. Having a module with installed SIM900, you can conduct experiments on the use of the SIM900 component. When used in own developments SIM900 component can be debugged software and verification of circuit solutions.

Characteristics

Nutrition
voltage, V
nominal 5
range 4.8-5.2
current
normal mode 50-450 mA
in sleep mode 1.5 mA
maximum pulse 2 A
Supports SIM cards powered by 1.8 and 3 V
Communication bands 850, 900, 1800, 1900 MHz
Supports 2G network
Transmission power in different bands
1 W 1800 and 1900 MHz
2 W 850 and 900 MHz
Compliant GSM standard phases 2/2+
Built-in TCP protocols and UDP
Data transfer class GPRS multi-slot class 10/8
Audio codecs HR, FR, EFR, AMR, echo cancellation
CSD up to 14.4 kbit/s
PPP stack
MUX (07.10)
HTTP protocols and FTP
It is possible to send DTMF signals and play recordings like on an answering machine
RTC real time clock support
Temperature, ℃
air during operation -30...75
storage -45...90
dimensions 86 x 58 x 19 mm

Control components

The Power select switch sets the power source: external, connected to a coaxial connector, or the power source of the Arduino microcontroller module.

The Power key turns the power on or off when pressed and held for 2 seconds.

Indication

The status of the module is indicated by 3 LEDs:
PWR (green) - module power indicator,
Status (red) - SIM900 component power indicator,
Net Light (green) - connection to the network.
Net Light LED Messages.
Off - SIM900 does not work.
Flashes at intervals, indicated in seconds:
0.064 on and 0.8 off - network not detected,
0.064 on and 0.3 off - network detected,
0.064 on, 0.03 off - GPRS connected.

Contacts

The SIM900 component contains a UART port, its signals are output to the component pins and connected to jumpers that determine which pins of the Shield GPRS/GSM SIM900 module will be connected to the UART port of the SIM900 component with D0, D1 or D7, D8.
UART Shield GPRS/GSM can be connected: to the hardware interface of the MK via contacts TXD and RXD of the Shield GPRS/GSM module, D0, D1 are used for this. Or to a software emulated Arduino, for this, contacts D7 and D8 of the Shield GPRS/GSM module are used. The full UART interface has 10 signals output to pins in the corner of the board: R1, DCD, DSR, CTS, RTS, GND, 2V8, TX, RX, DTR.
12 signed digital GPIO pins are located in the corner of the board. There are 2 output signal contacts with pulse width modulation PWM1, PWM2. ADC input ADC pin. The built-in time counter interface has 4 contacts. Pin designations: DISP_CLK, DISP_DATA, DISP_D/C, DISP_CS.
Pin D9 is used for program control turning on or off SIM900.
The board has a connector for connecting an antenna.

Pin assignment of the SIM900 component.

External power on and off

You can turn the module's power on or off using the signal at control input D9. To change the state, a pulse lasting 1 s is sent to D9. The state change occurs 3.2 s after the start of the pulse.

Enabling the module. Graphs of the module supply voltage, external control pulse and STATUS power indicator.

When controlling the module with a control device, switching on must occur without using Power buttons key, i.e. immediately after power is applied. To do this, several commands should be added to the MK program.

Void powerUpOrDown()
{
pinMode(9, OUTPUT);
digitalWrite(9,LOW);
delay(1000);
digitalWrite(9,HIGH);
delay(2000);
digitalWrite(9,LOW);
delay(3000);
}

This group of commands in the program can also be used to turn off the module. Also turn off GSM module You can send an AT command.

Finally, I managed to start studying perhaps the most popular GSM module in the DIY environment - GSM900. What is a GSM module? This is a device that implements the functions cell phone. In other words, GSM900 allows you to call other subscribers cellular network, receive calls, send and receive SMS messages. And, of course, transmit data using the GPRS protocol.

I needed this module for quite specific purpose: a project for a remotely controlled lighting system has appeared. The easiest way to solve this problem is by SMS messages: send one SMS - the light turns on, send another - it turns off. You don’t need any remote controls, and everyone has a phone (even homeless people). Actually, in this article I will consider exactly this option for using the GSM900 module.

1. Firmware

As fate would have it, I ended up with the GSM900A module in my hands. After reading the first forum I came across about the revival of this thing, it turned out that the letter A in the name means that the module belongs to the Asian region. And therefore, he will not work with our operators. Despondency 🙁

Fortunately, the following posts on the same forum contained reassuring information :) It turned out that not everything is so bad, and in order for the module to work in our region, it simply needs to be reflashed. This process is well described in the blog of our colleague Alex-EXE: “all in one” sim900 firmware
I'll try to do the same thing, but in even more detail, and taking into account the features of my module.

If you have correct module and no firmware is required, you can immediately jump to section No. 2.

Tools

So, let's get everything ready first. necessary tools. Firstly, directly for the firmware you will need the SIM900 Series download Tools Develop application, which can be easily found on the Internet ().

Secondly, the firmware file itself 1137B02SIM900M64_ST_ENHANCE will also be useful, which is also easy to obtain ().

Finally, thirdly, we will need a good terminal to experiment with the module. I usually use TeraTerm, but this time its capabilities were not enough (or I didn’t understand it). I had to install a monster with a brilliant name.

Connection to USB-UART bridge

Now we connect the RX and TX lines to the bridge. For the latter I used CP2102. In my case, contrary to logic, the RX and TX of the bridge were connected to the RX and TX of the GSM module symmetrically (and not crosswise, as is customary).

You should also power the module from a stable and powerful source, since the peak current on the module can reach 2A (allegedly). Suitable for 4 AA size batteries. The complete connection diagram looks like this:

SIM900
CP2102 Gnd Gnd
CP2102 +5V VCC_MCU
CP2102 RX SIMR
CP2102TX SIMT
External source+5V VCC5
External source Gnd Gnd
RST

This model does not have a reset button, so to flash the firmware we will need to throw the RST pin to ground for a couple of seconds. To do this, we will leave it hanging in the air for now.

Module pre-configuration

Before we start flashing the firmware, we will connect to the module and change its UART speed. To do this, launch the Terminal terminal, select the correct port, and set the exchange rate to 9600. After that, click “Connect”.

All communication with the module occurs via AT commands.

The first thing we tell the module will be the most primitive AT command: “AT”. This is a kind of ping to which the module must respond with the word “OK”.

If everything went well and the module really answered us “OK”, we send the speed setting command:

AT+IPR=115200

At the end of the command there must be a carriage return character - CR. In the ASCII table it has code 13 (or 0x0D in hexadecimal system). The symbol will be inserted automatically if you check the “+CR” checkbox next to the input line in our terminal. Other terminals also have similar settings.

In response to the entered command we will again receive “OK”.

We will need this setting to speed up the firmware procedure. Otherwise, as Alex-EXE pointed out in his blog, the firmware will take about an hour.

Setting up the program

After all the wires are plugged into the right places and the module is prepared for firmware, launch the SIM900 Series download Tools Develop application. Setting up the program consists of just a few points:

  • In the Target field we indicate the target chip. For some reason I couldn’t upload the firmware to SIM900A, so I chose “SIM900”;
  • select the correct port in the Port field;
  • Set the Baud Rate to 115200;
  • finally, specify the firmware file in the Core File field (file with the cla extension).

That's it with the settings.

Firmware

Now we strictly and consistently carry out six important steps.

  • We connect power to the module (our 4 batteries). The red power light should turn on and the status light should start flashing.
  • We connect USB-UART to the computer.
  • We close the RST wire to ground (remember that all this time it was hanging in the air).
  • Click the Start Download button in the program.
  • We count to three in our heads and lift the RST off the ground.

We wait 6 minutes until the firmware is completed.

What do we have after the firmware?

Firstly, the module can now work with our operators. Secondly, we installed extended firmware, among the features of which, for example, is obtaining module coordinates by cell towers, work with by email and access to an additional 2.5 MB of memory.

2. Experiments with GSM module

Let's now try to perform various useful operations with the module. First, enter your PIN code (if you have one):

AT+CPIN=8899

The module's response will be:

CPIN: READY.

After this we will receive some information from the module.

AT+GMR - firmware identifier. AT+GSN - IMEI. AT+CPAS - state (0 – ready for operation, 2 – unknown, 3 – incoming call, 4 – voice connection). AT+COPS? - information about the operator.

Phone calls

Now let's dial some number. This is done using the command:

ATD+790XXXXXXXX;

The semicolon at the end of the command is very important, don't forget about it!

If someone calls the device during a UART session, the following message will be returned:

You can answer the call (pick up) with the command:

If headphones and a microphone are connected to the module, you can communicate with remote subscriber just like a regular cell phone.

The command ends the call:

Sending SMS

First, let's enable text message mode:

AT+CMGF=1

and set the encoding:

AT+CSCS= "GSM"

The module also supports other encodings that are more convenient for automatic systems. But for our experiments, it is most convenient to use the GSM mode, in which the phone is specified in numbers, and the text of messages is written in ASCII encoding. Now let's send someone a message:

AT+CMGS="+79123456789"

And at the end of the command you need to add two service characters at once: CR and LF. In Terminal, this can be done by checking CR=CR+LF, or manually adding at the end of the line: AT+CMGS=»+79123456789″&0D&0A

After entering this command, the “>” symbol will be received in response, indicating the beginning of entering a message. We write some text:

Hello World!

At the end of the message we will need to send one of two special characters. To send a message, enter the character from ASCII tables with number 26. To cancel sending - symbol with number 27.

In the terminal we use, to send a character by code, you can use one of two expressions: in hexadecimal: $1A, and in decimal: #026

Receiving SMS

If an SMS is sent to the device during a session, a message in the following format will be returned:

CMTI: "SM",4

here 4 is the number of the incoming unread message.

AT+CMGR=4

In response we get:

CMGR: "REC READ","+790XXXXXXXX","","13/09/21,11:57:46+24" Hello World! OK

In general, everything is simple. This is quite enough for us to realize our plans. For a deeper study of the capabilities of GFM900, I recommend reading another article by Alex-EXE: at-commands gsm modem sim900

3. Interaction with microcontrollers

In general, to manage external devices It is not at all necessary to pair the GSM900 module with another microcontroller. You can embed your own program into this module, which will do whatever you want with free GPIO pins. However, in most ready-made boards the GPIOs are not routed, so to create a prototype of the intended device we will use the most simple Arduino Uno/Nano.

Arduino and GSM900 will communicate via the same UART interface. To do this, connect these two devices according to the following scheme:

GSM900 GND VCC_MCU SIMT SIMR
Arduino Uno GND +5V RX TX

Now let’s create a program that will catch SMS messages and light up the LED on leg No. 13 for a couple of seconds. With this we simulate control of some external device.

Const String spin = "1234"; const int rel_pin = 13; String ss = ""; // Send a PIN code void sendPin())( String cmd = "AT+CPIN="+spin+char(0x0D); Serial.print(cmd); ) // Turn on the LED for 2 seconds void receiveSMS(String s)( digitalWrite(rel_pin, HIGH); delay(2000); digitalWrite(rel_pin, LOW); ) // Parsing a string that came from the module void parseString(String src)( bool collect = false; String s = ""; for(byte i =0;i

We load the program onto the Arduino and test the system. If everything is done correctly, sending an SMS message to the device will turn on the LED for 2 seconds. Of course, instead of an LED, you can turn on/off a powerful relay to which the heating boiler in a country house is connected.

The GSM and GPRS module in Arduino projects allows you to connect to remote autonomous devices via regular cellular communications. We can send commands to the device and receive information from it using SMS commands or through an Internet connection opened via GPRS. In this article we will look at the most popular modules for Arduino, understand the connection and look at programming examples.

GSM GPRS modules

The GSM module is used to expand the capabilities of regular Arduino boards - sending SMS, making calls, exchanging data via GPRS. There are different types of modules, the most commonly used are SIM900, SIM800L, A6, A7.

Description of the SIM900 module

The SIM900 module is used in various automated systems. Using the UART interface, data is exchanged with other devices. The module provides the ability to make calls and exchange text messages. The module is implemented on the SIM900 component, created by SIMCom Wireless Solution.

Specifications:

  • Voltage range 4.8-5.2V;
  • In normal mode, the current reaches 450 mA, the maximum current in pulse mode is 2 A;
  • 2G support;
  • Transmission power: 1 W 1800 and 1900 MHz, 2 W 850 and 900 MHz;
  • There are built-in TCP and UDP protocols;
  • GPRS multi-slot class 10/8;
  • Operating temperature from -30C to 75C.

Using the device, you can track the route of a vehicle together with GLONASS or GPS device. The ability to send SMS messages is used in wireless alarms and various security systems.

Description of the SIM800L module

The module is based on the SIM800L component and is used for sending SMS, making calls and exchanging data via GPRS. A micro SIM card is installed in the module. The device has a built-in antenna and a connector to which you can connect an external antenna. Power to the module is supplied from an external source or through a DC-DC converter. Control is carried out using a computer via UART, Arduino, Raspberry Pi or similar devices.

Specifications:

  • Voltage range 3.7V – 4.2V;
  • Support for 4-band network 900/1800/1900 MHz;
  • GPRS class 12 (85.6 kB/s);
  • Maximum current 500 mA;
  • 2G support;
  • Automatic search in four frequency ranges;
  • Operating temperature from –30C to 75C.

Description of module A6

The A6 module was developed by AI-THINKER in 2016. The device is used for exchanging SMS messages and exchanging data via GPRS. The board is characterized by low power consumption and small size. The device is fully compatible with Russian mobile operators.

Specifications:

  • Voltage range 4.5 – 5.5V;
  • Power supply 5V;
  • Operating temperature range from -30C to 80C;
  • Maximum current consumption 900mA;
  • GPRS Class 10;
  • Supports PPP, TCP, UDP, MUX protocols.

The module supports microsim cards.

Description of module A7

A7 is the latest module from AI-THINKER. Compared to its predecessor, the A6 has built-in GPS, allowing for a simplified design of the device.

Specifications:

  • Operating voltage range 3.3V-4.6V;
  • Supply voltage 5V;
  • Frequencies 850/900/1800/1900 MHz;
  • GPRS Class 10: Max. 85.6 kbit;
  • Echo and noise suppression.

The device supports microSIM cards. The module supports exchanging calls, exchanging SMS messages, transmitting data via GPRS, receiving signals via GPS.

Where to buy GSM modules for Arduino

As usual, before you start, here are some tips and useful links to Aliexpress sellers.

Very high quality KEYES SIM900 GSM GPRS module SIM800C module for Arduino from a trusted supplier
Shield for development, compatible with Arduino, based on the SIM900 GPRS/GSM module Inexpensive mini A6 GPRS GSM module

Connecting GSM GPRS shield to Arduino

In this section we will look at the issues of connecting GSM modules to the Aduino board. Almost all examples are based on the Arduino Uno, but most examples will also be used for Mega, Nano, etc. boards.

Connecting the SIM800 module

To connect, you need an Arduino board, a SIM800L module, a step-down voltage converter, connection wires and a 12V battery. The SIM800L module requires a non-standard Arduino voltage of 3.7V; this requires a step-down voltage converter.

The pinout of the SIM800 module is shown in the figure.

The Arduino board must be connected to the computer via a USB cable. Connect a 12V battery through a converter: -12V to Arduino ground, from ground to negative converter, +12V to positive converter. The outputs from the TX and RX module must be connected to pins 2 and 3 on the Arduino. Multiple modules can be connected to any digital pins.

Connecting module A6

The A6 module is cheaper than SIM900 and is very easy to connect to Arduino. The module is powered by a voltage of 5V, so the connection does not require additional voltage-reducing elements.

To connect you will need an Arduino board (in in this case reviewed Arduino UNO), GSM module A6, connecting wires. The connection diagram is shown in the figure.

The RX pin from the GSM module must be connected to TX on the Arduino board, the TX pin must be connected to the RX pin on the Arduino. The ground from the module is connected to the ground on the microcontroller. The Vcc pin on the GSM module must be connected to PWR_KEY.

Connection using GSM-GPRS shield

Before connecting, it is important to pay attention to the shield's supply voltage. The current at the time of a call or sending data can reach values ​​of 15-2 A, so you should not power the shield directly from the Arduino.

Before connecting to Arduino, you need to install a SIM card on the GSM-GPRS shield. You also need to install the TX and RX jumpers, as shown in the figure.

The connection is made as follows - the first contact (yellow wire in the figure) from the shield must be connected to TX on the Arduino. The second pin (green wire) connects to RX on the Arduino. The land from the shield is connected to the land from the aruino. Power is supplied to the microcontroller via a USB cable.

The layout of the connection between the shield and the Arduino board is shown in the figure.

To work, you will need to install the GPRS_Shield_Arduino library.

To check the correctness of the assembled circuit, you need to do the following: connect RESET and GND on the Arduino (this will lead to data being transferred directly from the shield to the computer), insert the SIM card into the shield and turn on the power of the shield. The Arduino board needs to be connected to the computer and the power button pressed. If everything is connected correctly, the red LED will light up and the green LED will blink.

Brief description of interaction via AT commands

AT commands are a set of special commands for the modem, consisting of short text strings. In order for the modem to recognize the command given to it, the lines must begin with the letters at. The string will be accepted when the modem is in command mode. AT commands can be sent either using communications software or manually using the keyboard. Almost all commands can be divided into 3 modes - test, in which the module answers whether it supports the command; read – output current command parameters; write – new values ​​will be written.

List of most used AT commands:

  • AT – to check whether the module is connected correctly. If everything is OK, OK is returned.
  • A/ – repeat the previous command.
  • AT+IPR? – obtaining information about the port speed. The answer will be +IPR: 0 OK (0 in this case is automatic).
  • AT+ICF? – transmission setting. The response will be +ICF: bit, parity.
  • AT+IFC? – transmission control. The answer will be +IFC: terminal from module, module from terminal (0 – no control, 1 – software control, 2 – hardware control).
  • AT+GCAP – shows the capabilities of the module. An example answer is +GCAP:+FCLASS,+CGSM.
  • AT+GSN – obtaining module IMEI. Example answer 01322600XXXXXXXX.
  • AT+COPS? – shows available operators.
  • AT+CPAS – module status. Response +CPAS: 0. 0 – ready for work, 3 – incoming call, 4 – voice connection, 2 – unknown.
  • AT+CCLK? – information about the current time and date.
  • AT+CLIP=1 – enable/disable Caller ID. 1 – enabled, 0 – disabled.
  • AT+CSCB=0 – receiving special SMS messages. 0 – allowed, 1 – disabled.
  • AT+CSCS= “GSM” – SMS message encoding. You can select one of the following encodings: IRA, GSM, UCS2, HEX, PCCP, PCDN, 8859-1.
  • AT+CMEE=0 – receiving error information.
  • AT+CPIN=XXXX – enter the SIM card PIN code.
  • AT&F – reset to factory settings.
  • AT+CPOWD=1 – urgent (0) or normal (1) shutdown of the module.
  • ATD+790XXXXXXXX – call to number +790XXXXXXXX.
  • ATA – answer to the call.
  • AT+CMGS=”+790XXXXXXXX”>Test sms – sending an SMS message to the number +790XXXXXXXX.

In this case, we considered basic commands for SIM900 module. Commands may vary slightly for different modules. Data for the module will be supplied via special program"terminal" that needs to be installed on your computer. You can also send commands to the module through the port monitor in the Arduino IDE.

Sketches for working with the GSM module

Sending SMS using SIM900 as an example

Before sending a message, you need to configure the module. First of all, you need to convert to text format transmitted message. There is a command AT+CMGF=1 for this. You need to convert the encoding to GSM using the AT+CSCS="GSM" command. This encoding is the most convenient, since the characters are represented in ASCII code, which is easily understood by the compiler.

Then you need to dial an SMS message. To do this, a command is sent with the subscriber number AT+CMGS=»+79XXXXXXXXXX» r, in response you are asked to type an SMS text. You need to send a message. Upon completion, you need to send the combination code Ctrl+Z, the module will allow sending text to the recipient. When the message is sent, OK will be returned.

Interaction with the module is based on indices that are assigned to each new message. Using this index, you can specify which message to delete or read.

Receiving SMS. To read an SMS message, use the command AT + CNMI = 2,2,0,0,0. When will the module arrive? text message, it will send to the serial port +CMTI: “SM”,2 (in this case 2 is serial number messages). To read it, you need to send the command AT+CMGR=2.

Receiving a voice call. First of all, to have a conversation, you need to connect a speaker and microphone to the module. When a call is received, the number from which it was made will be shown. To work, you need to enable the GSM library:

#include

If the SIM card is blocked, you need to enter its PIN code. If a PIN code is not required, this field should be left blank.

#define PINNUMBER “”

In setup(), data transfer to the computer must be initialized. The next step is to create a local variable to track the network connection status. The sketch will not run until the SIM card is connected to the network.

boolean notConnected = true;

The gsmAccess.begin() function is used to connect to the network. When the connection is established, the value GSM_READY will be returned.

vcs.hangCall(); – a function indicating that the modem is ready to receive calls.

getvoiceCallStatus() – determines the status of the sketch. If someone calls, it returns RECEIVINGCALL. To record a number, you need to use the retrieveCallingNumber() function. When the call is answered, TALKING will return. The sketch will then wait for the character new line to interrupt the conversation.

Establish a GPRS connection and send data to a remote server

First you need to install the SoftwareSerial library, which allows you to provide serial information transfer and connect the GSM module and the Arduino microcontroller.

To send data to the server, you need to send the following commands:

AT+SAPBR=1,1 – opening Carrier.

The next three commands are related to setting network connection settings.

AT+SAPBR=3,1,\”APN\”,\”internet.mts.ru\” – select mts operator, access point name.

AT+SAPBR=3,1,\”USER\”,\” mts \” – select the mts user.

AT+SAPBR=3,1,\”PWD\”,\” mts\”

AT+SAPBR=1,1 – connection establishment.

AT+HTTPINIT – http initialization.

AT+HTTPPARA=”URL”, – URL address.

AT+HTTPREAD – waiting for a response.

AT+HTTPTERM – stop http.

If everything is done correctly, lines with AT commands will appear in the port monitor. If there is no connection with the modem, it will show one line at a time. When the GPRS connection is successfully established, the LED on the module will start blinking.

Shield GPRS/GSM SIM900 with antenna
SIM900 GPRS/GSM Shield Development Board Quad-Band Kit For Arduino Compatible

Module for operation of Arduino and similar microcontroller devices in cellular networks using GSM and GPRS standards. Focused on use in automation and control systems. Data exchange with other modules occurs via the UART interface. Shield GPRS/GSM SIM900 with antenna can interface directly with a microcontroller via a UART interface or work in conjunction with a personal computer using a portPC-UART interface converter. This is possible thanks to software compatibility at the level of the class of commands used to control modems - AT commands.
Objects are monitored and controlled through data exchange within the reach of mobile communications. Provides voice communication, sending SMS, MMS and many other functions and services. The operation of the module is based on the SIM900 component.

Article in Russian from a magazine about the SIM900 component. The component was developed by SIMCom Wireless Solutions. The SIMCom website has a Russian version. The GSM module board on the component side contains connectors for connecting an antenna, headphones and a microphone. On the solder side of the board there is a CR1220 3 volt battery holder that supports the operation of the module clock and a container for installing a SIM card.
One of the applications of the device is a vehicle movement tracking system in conjunction with GLONASS or GPS device. Sending SMS messages allows you to use the module in dispatching, wireless alarms and security systems. As a result of ongoing events, various SMS can be sent: “Emergency stop of elevator 2 of building No. 34”, “Car door is open”, “Basement is open”, “220 V voltage is turned off”, “The front door of the cottage is open”, “Lighting is on”, “ The temperature in the greenhouse is below critical.” The module is indispensable for monitoring and controlling moving objects moving over long distances. Or in the case of the operator moving a long distance from a stationary object.

Shield GPRS/GSM SIM900 with antenna provides ample opportunities to study the operation of the SIM900 component. The installation of the SIM900 component is carried out using the most modern technologies, which makes it very difficult to solder the SIM900 to the printed circuit board under laboratory conditions. Having a module with installed SIM900, you can conduct experiments on the use of the SIM900 component. When using the SIM900 component in your own developments, it becomes possible to debug software and check circuit designs.

Characteristics

Nutrition
voltage, V
nominal 5
range 4.8-5.2
current
normal mode 50-450 mA
in sleep mode 1.5 mA
maximum pulse 2 A
Supports SIM cards powered by 1.8 and 3 V
Communication bands 850, 900, 1800, 1900 MHz
Supports 2G network
Transmission power in different bands
1 W 1800 and 1900 MHz
2 W 850 and 900 MHz
Complies with GSM phase 2/2+ standard
Built-in TCP and UDP protocols
Data transfer class GPRS multi-slot class 10/8
Audio codecs HR, FR, EFR, AMR, echo cancellation
CSD up to 14.4 kbit/s
PPP stack
MUX (07.10)
HTTP and FTP protocols
It is possible to send DTMF signals and play recordings like on an answering machine
RTC real time clock support
Temperature, ℃
air during operation -30...75
storage -45...90
dimensions 86 x 58 x 19 mm

Control components

The Power select switch sets the power source: external, connected to a coaxial connector, or the power source of the Arduino microcontroller module.

The Power key turns the power on or off when pressed and held for 2 seconds.

Indication

The status of the module is indicated by 3 LEDs:
PWR (green) - module power indicator,
Status (red) - SIM900 component power indicator,
Net Light (green) - connection to the network.
Net Light LED Messages.
Off - SIM900 does not work.
Flashes at intervals, indicated in seconds:
0.064 on and 0.8 off - network not detected,
0.064 on and 0.3 off - network detected,
0.064 on, 0.03 off - GPRS connected.

Contacts

The SIM900 component contains a UART port, its signals are output to the component pins and connected to jumpers that determine which pins of the Shield GPRS/GSM SIM900 module will be connected to the UART port of the SIM900 component with D0, D1 or D7, D8.
UART Shield GPRS/GSM can be connected: to the hardware interface of the MK via contacts TXD and RXD of the Shield GPRS/GSM module, D0, D1 are used for this. Or to a software emulated Arduino, for this, contacts D7 and D8 of the Shield GPRS/GSM module are used. The full UART interface has 10 signals output to pins in the corner of the board: R1, DCD, DSR, CTS, RTS, GND, 2V8, TX, RX, DTR.
12 signed digital GPIO pins are located in the corner of the board. There are 2 output signal contacts with pulse width modulation PWM1, PWM2. ADC input ADC pin. The built-in time counter interface has 4 contacts. Pin designations: DISP_CLK, DISP_DATA, DISP_D/C, DISP_CS.
Pin D9 is used to programmatically control whether SIM900 is turned on or off.
The board has a connector for connecting an antenna.

Pin assignment of the SIM900 component.

External power on and off

You can turn the module's power on or off using the signal at control input D9. To change the state, a pulse lasting 1 s is sent to D9. The state change occurs 3.2 s after the start of the pulse.

Enabling the module. Graphs of the module supply voltage, external control pulse and STATUS power indicator.

When controlling the module with a control device, switching on should occur without using the Power key button, i.e. immediately after power is applied. To do this, several commands should be added to the MK program.

Void powerUpOrDown()
{
pinMode(9, OUTPUT);
digitalWrite(9,LOW);
delay(1000);
digitalWrite(9,HIGH);
delay(2000);
digitalWrite(9,LOW);
delay(3000);
}

This group of commands in the program can also be used to turn off the module. You can also turn off the GSM module by sending an AT command.

Arduino is a hardware platform used for quick creation various electronic devices, including security ones. Thanks to the simple design, simplicity of the programming language, as well as the use of open codes, even a non-professional can independently make a multifunctional alarm system to protect their home, cottage, apartment or garage. The Arduino GSM module will be the best option for creating a budget security system that can be optimally configured for a specific object.

Application area

The Arduino hardware platform is widely used in the process of creating various electronic systems and devices that can receive and process signals from differently functional analog or digital sensors and sensors. The results of processing the received signals can be controlled by external actuators and systems connected to Arduino.

An example of using these modules in the video:

Purpose

The Arduino hardware platform makes it possible to effectively interact with the controlled environment through a wide range of functional sensors that can control various parameters. Thanks to this, on the basis of such platforms it is possible to form security systems who will monitor movements around the protected perimeter, opening of windows and doors, and damage to glass. In addition to security type sensors, you can also use temperature sensors, sensors for monitoring water or gas leaks.

Using the Arduino GSM module with the platform, information about a danger or emergency situation at a facility can be provided to the owner as quickly as possible. For this purpose, one of the networks of mobile operators is used.

A distinctive feature of Arduino devices is that their microcontroller can be programmed by the user himself using Arduino language, based on Wiring. Thanks to this, everyone can program the operating algorithm of the created burglar alarm as required for a specific protected object and the specifics of its application.

Benefits of use

Today, there are many hardware platforms and microcontrollers that can receive information from external sensors, process it and send control signals to executive systems. The Arduino platform simplifies the implementation of the listed processes as much as possible and has a wide range of advantages over other devices of this kind.

  1. Low cost. The platforms are quite cheap devices compared to their analogues, which in no way affects their functionality.
  2. Cross-platform. Arduino software works effectively under such operating platforms, like Windows, Linux, Macintosh-OSX.
  3. Ease of programming. To configure microcontrollers, the Processing programming environment is used. It is ideal for both professional and inexperienced users who work with Arduino devices.
  4. Possibility of improvement. Specialized software Arduino is different open source, which allows experienced users to adapt it to specific requirements.

High reliability of the hardware platform. Arduino boards are available with ATMEGA8 and ATMEGA168 microcontrollers (earlier models) and with ATmega32u4, Atmel ATmega328 controllers (newer models), which are characterized by high functionality and reliability.

Principle of operation

To ensure fully functional operation of security systems or other devices built using Arduino platforms, you need to have a GSM module for Arduino. It can be used to access the Internet, make voice calls or send SMS messages.

The GSM board uses a special M10 radio modem, interaction with which is ensured through special AT commands. Information exchange with the modem is implemented using software serial interface, owning digital codes.

The GSM modem used in Arduino is a 4-band modem that can operate at the following frequencies: GSM 850MHz and 900MHz, PCS1900MHz and DCS1800MHz. The modem supports protocols such as TCP/UDP and HTTP, providing connections via GPRS. The transmission speed of information packets in this mode will be about 90 kbit/sec.

Sending SMS via Arduino and GSM module is implemented if available installed SIM card one of the mobile operators."

In addition, it will be possible to transfer voice messages, make calls - for this you additionally need a microphone and an external speaker. Installing a SIM card will allow you to use Arduino in cellular or GPRS mode.

How to connect modules to Arduino

Before connecting the GSM module to the Arduino in its slot, you should install a suitable SIM card from one of the cellular operators. After this, the module is connected to the Arduino hardware platform in accordance with the instructions and its firmware is flashed. For this purpose, a PC is used, which is connected to the device using a USB cable. After loading the Arduino environment, press the Upload button, which will start the software download process. Once this process is complete, the platform can be disconnected from the computer and powered from external system nutrition.

Comparative characteristics of GSM modules

Presented on the consumer market wide choose various GSM modules for Arduino. Below are the main characteristics of the most popular ones.

Neoway M590

Arduino GSM module M590 is a wireless communication device used to receive and transmit information in mobile communication networks. The module of this series is created on a board with minimal wiring and is positioned as a GSM module for the Arduino hardware platform.

With this device you can establish mobile communications with external telephone, send SMS messages, exchange information using the GPRS Class-10 standard. The module of this design does not have a microphone input, which limits the possibility of receiving voice communications - a connection can be established, but sound will not be transmitted.

To control the M590, AT commands are used, which are sent via serial communication. Frequencies from 900 MHz to 1800 MHz are used as operating radio frequencies. The supply voltage is within 3.3...5 V. Therefore, the Neoway M590 GSM module connects to Arduino through a special voltage converter 5 V to 3.3 V.

GSM module SIM800L

The compact Sim800l GPRS GSM module is a device that is used to support mobile communications. The module is built on the SIM-800L meringue, created by SIMCom Wireless Solutions and is designed to provide services to services information networks GPRS\GSM, using frequencies from 850 MHz to 1900 MHz. It can be used to send SMS messages, make calls, and exchange information via GPRS channels.

The GSM module is equipped with an antenna; if you need to improve the signal level, you can use additional antennas. To control the module, a PC can be used, connected via a special USB-UART interface conversion board or directly via the UART itself. If Sim800l GPRS GSM module is used , connection to Arduino must be implemented through a logic level converter. This is due to the fact that the SIM800L has a voltage value on the logical high level is 2.8 V, and in Arduino - 3.3...5 V.

GPRS Shield by Seeed Studio

Connecting the GSM module to Arduino will provide the ability to use GSM/GPRS data exchange technologies, as well as make calls and send SMS messages. Devices of this type are built using the SIMCom SIM900 module. They have a slot for installing a SIM card, a connector for connecting external antenna, a set of 3.5 mm jacks for audio input and output. Control and work with Arduino GSM Shield is carried out through Serial connections and a set of specialized AT commands.

This module is a special board used to control digital devices remotely, as well as for information exchange. The use of SIM900 allows Arduino to work using GSM/GPRS technologies, providing voice communication, sending SMS and exchanging data using cellular and mobile networks.

To operate this module, a control controller, a power supply, an antenna are connected to it, and a SIM card is also installed mobile operator. Using special jumpers, you configure the method of data exchange with the controller. If necessary, you can connect a speaker and microphone.







2024 gtavrl.ru.