45mm
45mm
30mm
13mm
Conclusion
The SIM800 GSM Modem Module Board with SMA Antenna is a reliable and compact solution for adding wireless communication capabilities to IoT devices. Its quad-band frequency support, GPRS connectivity, and compact design make it an ideal choice for various applications requiring mobile communication.
SIM800 GSM Modem Module Board with SMA Antenna Documentation
Overview
The SIM800 GSM Modem module board with SMA Antenna is a compact and versatile module designed for IoT applications, allowing developers to integrate cellular communication capabilities into their projects. This module supports quad-band GSM/GPRS connectivity, making it suitable for use in various regions worldwide.
Technical Specifications
Module: SIM800
Antenna: SMA
Frequency: Quad-band GSM/GPRS (850/900/1800/1900 MHz)
Data Transfer Rate: Up to 85.6 kbps
Power Supply: 3.4-4.5 V
Interface: Serial UART (Rx, Tx, GND, VCC)
Code Examples
### Example 1:Sending SMS using Arduino
This example demonstrates how to use the SIM800 GSM Modem module to send an SMS using an Arduino board.
Hardware Requirements
Arduino Board (e.g., Arduino Uno)
SIM800 GSM Modem module board with SMA Antenna
Breadboard and jumper wires
Software Requirements
Arduino IDE (version 1.8.x or later)
Code
```c++
#include <SoftwareSerial.h>
#define RX_PIN 10
#define TX_PIN 11
SoftwareSerial sim800Serial(RX_PIN, TX_PIN);
void setup() {
sim800Serial.begin(9600);
delay(1000);
}
void loop() {
sendSMS();
delay(5000);
}
void sendSMS() {
sim800Serial.println("AT");
delay(100);
sim800Serial.println("AT+CMGF=1");
delay(100);
sim800Serial.println("AT+CMGS:""+1234567890""");
delay(100);
sim800Serial.println("Hello from SIM800!");
delay(100);
sim800Serial.println((char)26);
delay(100);
}
```
In this example, we use the `SoftwareSerial` library to communicate with the SIM800 module via the Arduino's digital pins 10 and 11. The `sendSMS()` function sends an SMS to the specified phone number using the `AT` command set.
### Example 2:HTTP GET Request using Python
This example demonstrates how to use the SIM800 GSM Modem module to perform an HTTP GET request using a Python script.
Hardware Requirements
Raspberry Pi or other Linux-based single-board computer
SIM800 GSM Modem module board with SMA Antenna
Breadboard and jumper wires
Software Requirements
Python 3.x
`pyserial` library
Code
```python
import serial
import urllib.request
# Initialize serial communication with SIM800
ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=1)
# Define the HTTP GET request
url = "http://example.com"
# Send the HTTP GET request using SIM800
ser.write(b"AT
")
response = ser.readline()
print(response.decode())
ser.write(b"AT+SAPBR=3,1,""CONTYPE"