The GSM Module SIM900A is a versatile and widely-used component that enables devices to communicate over a mobile network. It supports sending and receiving SMS, voice, and data, making it an essential component for various IoT (Internet of Things) applications. This module is particularly popular for projects that require remote monitoring, control, and data logging.
Parameter | Value |
---|---|
Operating Voltage | 3.2V - 4.8V |
Operating Current | 1.5A (peak), 20mA (idle) |
Frequency Bands | GSM 900/1800 MHz |
Data Rate | Up to 85.6 kbps (GPRS) |
SMS Support | Text and PDU mode |
Voice Support | Full-duplex, Echo cancellation |
Interface | UART, AT Commands |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.2V - 4.8V) |
2 | GND | Ground |
3 | TXD | Transmit data (UART) |
4 | RXD | Receive data (UART) |
5 | DTR | Data Terminal Ready (for sleep mode control) |
6 | RST | Reset (active low) |
7 | MIC+ | Microphone input positive |
8 | MIC- | Microphone input negative |
9 | SPK+ | Speaker output positive |
10 | SPK- | Speaker output negative |
#include <SoftwareSerial.h>
// Create a software serial object for communication with the GSM module
SoftwareSerial gsm(7, 8); // RX, TX
void setup() {
// Initialize serial communication with the computer
Serial.begin(9600);
// Initialize serial communication with the GSM module
gsm.begin(9600);
// Wait for the GSM module to initialize
delay(1000);
// Send an AT command to check if the module is responding
gsm.println("AT");
// Wait for a response
delay(1000);
// Read and print the response from the GSM module
while (gsm.available()) {
Serial.write(gsm.read());
}
}
void loop() {
// Check if there is any data from the GSM module
if (gsm.available()) {
// Read and print the data from the GSM module
Serial.write(gsm.read());
}
// Check if there is any data from the computer
if (Serial.available()) {
// Read and send the data to the GSM module
gsm.write(Serial.read());
}
}
No Response from the Module:
Poor Signal Reception:
Unable to Send/Receive SMS:
Module Resets Frequently:
By following this documentation, users can effectively integrate the GSM Module SIM900A into their projects, ensuring reliable and efficient communication over mobile networks.