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

How to Use Adafruit FONA - Mini Cellular GSM SMA Breakout: Examples, Pinouts, and Specs

Image of Adafruit FONA - Mini Cellular GSM SMA BreakoutDesign with Adafruit FONA - Mini Cellular GSM SMA Breakout in Cirkit Designer

Introduction

The Adafruit FONA - Mini Cellular GSM SMA Breakout is a versatile and compact breakout board designed to integrate cellular communication into your microcontroller projects. It allows for voice calls, SMS messages, and GPRS data connectivity, making it ideal for a wide range of applications such as remote monitoring, IoT devices, and mobile communication projects.

Explore Projects Built with Adafruit FONA - Mini Cellular GSM SMA Breakout

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Raspberry Pi 4B-Based GPS and GSM Tracking System with Audio Feedback: A project utilizing Adafruit FONA - Mini Cellular GSM SMA Breakout in a practical application
Raspberry Pi 4B-Based GPS and GSM Tracking System with Audio Feedback

This circuit features a Raspberry Pi 4B as the central processing unit, interfaced with a GPS NEO-6M V2 module for location tracking and an Adafruit FONA 808 Shield for cellular communication. It includes a PAM8406 5V Digital Audio Amplifier connected to an Adafruit STEMMA Speaker for audio output, and a Condenser Microphone connected to the FONA 808 for audio input. Power management is handled by a 12V battery connected to a voltage regulator that steps down the voltage to 5V and 3V required by the various components.

Open Project in Cirkit Designer
Image of Arduino UNO and SIM900A GSM Module Interface: A project utilizing Adafruit FONA - Mini Cellular GSM SMA Breakout in a practical application
Arduino UNO and SIM900A GSM Module Interface

This circuit connects an Arduino UNO microcontroller with a SIM900A GSM/GPRS module, enabling cellular communication capabilities. The Arduino's digital pins D7 and D8 are connected to the SIM900A's 5VT and 5VR pins, likely for serial communication. A separate 5V connector provides power to the SIM900A, with common ground connections established between all components.

Open Project in Cirkit Designer
Image of Arduino Mega 2560 Based Security System with Fingerprint Authentication and SMS Alerts: A project utilizing Adafruit FONA - Mini Cellular GSM SMA Breakout in a practical application
Arduino Mega 2560 Based Security System with Fingerprint Authentication and SMS Alerts

This circuit features an Arduino Mega 2560 microcontroller interfaced with a SIM800L GSM module, two fingerprint scanners, an I2C LCD display, an IR sensor, and a piezo buzzer. Power management is handled by a PowerBoost 1000 Basic Pad USB, a TP4056 charging module, and a Li-ion 18650 battery, with an option to use a Mini AC-DC 110V-230V to 5V 700mA module for direct power supply. The primary functionality appears to be a security system with GSM communication capabilities, biometric access control, and visual/audible feedback.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Name Description
1 Vio Power supply for logic level (2.8V to 5V)
2 GND Ground connection
3 RST Reset pin (active low)
4 RX UART receive pin
5 TX UART transmit pin
6 Key Power on/off status pin
7 PS Power status pin
8 NS Network status indicator
9 RI Ring indicator for incoming calls and SMS
10 NC No connection

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect a 3.4-4.4VDC power source to the Vio and GND pins.
  2. Antenna: Attach an SMA antenna to the SMA connector to ensure proper GSM signal reception.
  3. SIM Card: Insert a 2FF SIM card into the SIM card slot.
  4. Microcontroller Connection: Connect the RX and TX pins to the corresponding TX and RX pins on your microcontroller, ensuring proper logic level matching.
  5. Power On: To power on the module, pull the Key pin to ground for a brief moment.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <SoftwareSerial.h>

SoftwareSerial fonaSerial(2, 3); // RX, TX
uint8_t readline(char *buff, uint8_t maxbuff, uint16_t timeout = 0);

void setup() {
  fonaSerial.begin(4800);
  if (!fona.begin(fonaSerial)) {
    Serial.println(F("Couldn't find FONA"));
    while (1);
  }
  Serial.println(F("FONA is OK"));
  // Make a voice call
  fona.callPhone("1234567890");
}

void loop() {
  // Check for incoming calls
  char callerIDbuffer[32];  // we'll store the SMS sender number in here
  if (fona.incomingCallNumber(callerIDbuffer)) {
    Serial.print(F("Incoming call from "));
    Serial.println(callerIDbuffer);
  }
}

// Read a line from the FONA's UART
uint8_t readline(char *buff, uint8_t maxbuff, uint16_t timeout) {
  uint16_t buffidx = 0;
  boolean timeoutvalid = true;
  if (timeout == 0) timeoutvalid = false;

  while (true) {
    if (buffidx > maxbuff) {
      // Buffer full
      break;
    }

    while (fonaSerial.available()) {
      char c = fonaSerial.read();

      // End of line character or newline
      if (c == '\r' || c == '\n') {
        if (buffidx == 0) {  // a newline with no data?
          continue;           // just ignore it
        }
        timeout = 0;         // the end of the line
        break;
      }
      buff[buffidx] = c;
      buffidx++;
    }

    if (timeoutvalid && timeout > 0) {
      delay(1);
      timeout--;
      if (timeout == 0) {
        break;
      }
    }
  }
  buff[buffidx] = '\0';  // null terminate the string
  return buffidx;
}

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

FAQs

Q: Can I use the Adafruit FONA with a 5V microcontroller? A: Yes, the FONA is 5V tolerant on the UART pins, but ensure that the Vio pin is supplied with a voltage within the specified range.

Q: How do I send an SMS using the FONA? A: You can use the fona.sendSMS(char *number, char *message) function to send an SMS to the specified number.

Q: What should I do if I'm not getting a GSM signal? A: Check the antenna connection, ensure the SIM card is active, and verify that you are in an area with GSM coverage.

Q: How can I reduce power consumption when the module is not in use? A: You can put the FONA into sleep mode by using the appropriate AT command or controlling the power key pin.