The GSM SIM808 module is a compact and versatile board that integrates GSM/GPRS, GPS, and Bluetooth functionalities, making it a powerful solution for IoT (Internet of Things) projects. It is widely used in applications such as vehicle tracking, personal tracking, asset tracking, and remote communication systems. The module allows for sending and receiving SMS messages, making and receiving phone calls, and providing real-time GPS location information.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply input (3.4V - 4.4V) |
2 | GND | Ground connection |
3 | TXD | Transmit data (connect to RXD of MCU) |
4 | RXD | Receive data (connect to TXD of MCU) |
5 | RST | Reset pin (active low) |
6 | RI | Ring indicator (active low) |
7 | DTR | Data Terminal Ready (active low) |
8 | CTS | Clear to Send (flow control) |
9 | RTS | Request to Send (flow control) |
10 | MIC+ | Positive microphone input |
11 | MIC- | Negative microphone input |
12 | SPK+ | Positive speaker output |
13 | SPK- | Negative speaker output |
14 | GPS_ANT | GPS antenna input |
15 | BT_ANT | Bluetooth antenna input |
#include <SoftwareSerial.h>
SoftwareSerial sim808(7, 8); // RX, TX
void setup() {
// Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
Serial.begin(9600);
// Begin serial communication with SIM808
sim808.begin(9600);
// Set SIM808 module to SMS mode
sim808.println("AT+CMGF=1");
delay(100);
// Replace with your phone number and message
sim808.println("AT+CMGS=\"+1234567890\"");
delay(100);
sim808.println("Hello from SIM808!");
delay(100);
// End AT command with a ^Z, ASCII code 26
sim808.println((char)26);
delay(100);
sim808.println();
// Give module time to send SMS
delay(5000);
}
void loop() {
// If data is available on SIM808, print it to serial monitor
if(sim808.available()){
Serial.write(sim808.read());
}
// If data is available on Serial, send it to SIM808
if(Serial.available()){
sim808.write(Serial.read());
}
}
Q: Can I use the SIM808 module for making voice calls? A: Yes, the SIM808 module supports voice calls. You will need to connect a microphone and speaker to the respective pins.
Q: How do I update the firmware of the SIM808 module? A: Firmware updates are provided by the manufacturer and can be uploaded to the module via the serial interface using specific tools and software.
Q: What is the accuracy of the GPS in the SIM808 module? A: The GPS accuracy is typically within 2.5 meters CEP (Circular Error Probable) under open-sky conditions.
Q: Can the SIM808 module be used for data transmission over GPRS? A: Yes, the module can transmit data over GPRS. You will need to set up the proper APN settings and establish a network connection.
Q: How do I send an SMS with the SIM808 module? A: You can send an SMS by issuing the appropriate AT commands over the serial interface, as shown in the sample Arduino code above.