Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use sim800l: Examples, Pinouts, and Specs

Image of sim800lDesign with sim800l in Cirkit Designer

Introduction

The SIM800L is a compact GSM/GPRS module designed for communication over cellular networks. It supports a wide range of functionalities, including SMS, voice calls, and data transmission via GPRS. With its small size and low power consumption, the SIM800L is an excellent choice for IoT applications, remote monitoring, and embedded systems requiring cellular connectivity.

Explore Projects Built with sim800l

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

The SIM800L module typically has 12 pins. Below is the pinout and description:

Pin Name Description
1 NET Network status LED (blinks to indicate GSM status)
2 VCC Power supply input (3.4V to 4.4V, recommended 4.0V)
3 GND Ground connection
4 RXD UART Receive pin (connect to TX of microcontroller)
5 TXD UART Transmit pin (connect to RX of microcontroller)
6 RST Reset pin (active low, pull low for 100ms to reset the module)
7 VDD_EXT External voltage output (not commonly used)
8 SIM_TXD SIM card UART transmit (used internally, not typically connected externally)
9 SIM_RXD SIM card UART receive (used internally, not typically connected externally)
10 SIM_RST SIM card reset (used internally)
11 SIM_CLK SIM card clock (used internally)
12 SIM_DATA SIM card data (used internally)

Usage Instructions

How to Use the SIM800L in a Circuit

  1. Power Supply:

    • The SIM800L requires a stable power supply of 4.0V. Use a step-down regulator (e.g., LM2596) or a LiPo battery to provide the required voltage.
    • Ensure the power supply can handle peak currents of up to 2A during transmission.
  2. Connections:

    • Connect the VCC pin to the 4.0V power supply and GND to ground.
    • Connect the TXD pin of the SIM800L to the RX pin of your microcontroller.
    • Connect the RXD pin of the SIM800L to the TX pin of your microcontroller.
    • Optionally, connect the RST pin to a GPIO pin of your microcontroller for resetting the module.
  3. Antenna:

    • Attach an external antenna to the SIM800L's antenna connector for better signal reception.
  4. SIM Card:

    • Insert a micro SIM card into the SIM card slot. Ensure the SIM card is activated and has sufficient balance for SMS, calls, or data usage.
  5. Communication:

    • Use AT commands to communicate with the SIM800L. These commands can be sent via UART from a microcontroller or a USB-to-TTL adapter connected to a PC.

Important Considerations and Best Practices

Example: Connecting SIM800L to Arduino UNO

Below is an example of how to send an SMS using the SIM800L and Arduino UNO:

Circuit Connections

Arduino Code

#include <SoftwareSerial.h>

// Define RX and TX pins for SoftwareSerial
SoftwareSerial sim800l(10, 11); // RX, TX

void setup() {
  // Initialize serial communication
  Serial.begin(9600); // For debugging
  sim800l.begin(9600); // For SIM800L communication

  // Wait for the module to initialize
  delay(1000);
  Serial.println("Initializing SIM800L...");

  // Send AT command to check communication
  sim800l.println("AT");
  delay(1000);
  while (sim800l.available()) {
    Serial.write(sim800l.read());
  }

  // Send SMS
  sendSMS("+1234567890", "Hello from SIM800L!");
}

void loop() {
  // Nothing to do here
}

void sendSMS(String phoneNumber, String message) {
  sim800l.println("AT+CMGF=1"); // Set SMS mode to text
  delay(1000);

  sim800l.print("AT+CMGS=\"");
  sim800l.print(phoneNumber);
  sim800l.println("\"");
  delay(1000);

  sim800l.print(message); // Message content
  delay(1000);

  sim800l.write(26); // Send Ctrl+Z to send the SMS
  delay(5000);

  Serial.println("SMS sent!");
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Module Not Responding to AT Commands:

    • Ensure the power supply is stable and provides sufficient current (up to 2A).
    • Check the RX and TX connections between the SIM800L and the microcontroller.
    • Verify the baud rate (default is 9600).
  2. Poor Signal Quality:

    • Ensure the antenna is properly connected and positioned in an open area.
    • Check the SIM card for proper activation and network coverage.
  3. Module Keeps Restarting:

    • This is often caused by an insufficient power supply. Use a power source capable of handling peak currents.
  4. SMS Not Sending:

    • Ensure the SIM card has sufficient balance or an active SMS plan.
    • Verify the phone number format (e.g., include the country code).

FAQs