The SIM800c GSM Module is a versatile and compact electronic component that provides GSM/GPRS communication capabilities to embedded systems. It enables devices to make phone calls, send and receive SMS messages, and connect to the internet through GPRS. This module is widely used in various applications such as remote data logging, security systems, automotive and mobile applications.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply input (3.4V - 4.4V) |
2 | RST | Module reset (active low) |
3 | RXD | Serial data receive pin |
4 | TXD | Serial data transmit pin |
5 | GND | Ground connection |
6 | RI | Ring indicator (active low) |
7 | DTR | Data Terminal Ready control pin (active low) |
8 | CTS | Clear to Send, flow control pin (active low) |
9 | RTS | Request to Send, flow control pin (active high) |
10 | MIC+ | Positive microphone input for voice calls |
11 | MIC- | Negative microphone input for voice calls |
12 | SPK+ | Positive speaker output for voice calls |
13 | SPK- | Negative speaker output for voice calls |
#include <SoftwareSerial.h>
SoftwareSerial sim800c(7, 8); // RX, TX
void setup() {
// Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
// Begin serial communication with SIM800c and set baud rate
sim800c.begin(9600);
// Set module to SMS mode
sim800c.println("AT+CMGF=1\r");
delay(1000);
// Set module to receive SMS in text mode
sim800c.println("AT+CNMI=1,2,0,0,0\r");
delay(1000);
}
void loop() {
// Check if the SIM800c module is sending a message
if (sim800c.available()) {
Serial.write(sim800c.read());
}
// Check if the Serial Monitor is sending a message
if (Serial.available()) {
sim800c.write(Serial.read());
}
}
AT+CSQ
to check the signal quality.AT+CPIN
to enter the PIN.Q: Can the SIM800c module connect to a 5V logic microcontroller directly? A: No, a level shifter is recommended to convert the 5V logic level to the 3.3V level required by the SIM800c module.
Q: How can I send an SMS using the SIM800c module?
A: Use the AT command AT+CMGS="phone_number"
followed by the message and a Ctrl+Z character to send an SMS.
Q: What is the baud rate for communication with the SIM800c module?
A: The default baud rate is 9600 bps, but it can be configured with the AT command AT+IPR
.
Q: How do I reset the SIM800c module? A: The module can be reset by pulling the RST pin low for a short period.