The Adafruit FONA is a compact cellular GSM breakout board designed to bring wireless network connectivity to your projects. It supports GSM/GPRS on 850/900/1800/1900MHz bands, enabling voice calls, SMS messages, and data connections in a tiny package. This breakout is perfect for IoT devices, remote sensors, wearables, and any application where cellular communication is needed.
Pin Number | Name | Description |
---|---|---|
1 | Vio | Power supply for logic (3.3V-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 control pin |
7 | PS | Power status pin |
8 | NS | Network status indicator |
9 | RI | Ring indicator |
10 | GPIO | General purpose I/O |
11 | ADC | Analog to digital converter input |
12 | PWM | Pulse width modulation output |
13 | SPI | Serial Peripheral Interface bus |
14 | SDA | I2C data line |
15 | SCL | I2C clock line |
AT+CSQ
to check signal quality.Q: Can I use the Adafruit FONA with an Arduino UNO? A: Yes, you can connect the FONA to an Arduino UNO using the UART interface.
Q: What is the default baud rate for the FONA? A: The default baud rate is 9600 bps.
Q: How do I send an SMS using the FONA?
A: You can send an SMS using the AT command AT+CMGS
.
#include <SoftwareSerial.h>
// Define the serial connection to the FONA
SoftwareSerial fonaSerial(2, 3); // RX, TX
int FONA_PWR = 4; // FONA Key pin connected to digital pin 4
void setup() {
pinMode(FONA_PWR, OUTPUT);
digitalWrite(FONA_PWR, LOW);
delay(1000); // Hold the key low for 1 second
digitalWrite(FONA_PWR, HIGH);
// Start serial communication with FONA
fonaSerial.begin(9600);
Serial.begin(9600); // Start serial communication with PC
}
void loop() {
// Check if data has been received from the FONA
if (fonaSerial.available()) {
Serial.write(fonaSerial.read());
}
// Check if data has been received from the PC's serial monitor
if (Serial.available()) {
fonaSerial.write(Serial.read());
}
}
This example demonstrates how to establish a basic serial communication between an Arduino UNO and the Adafruit FONA. The SoftwareSerial
library is used to create a secondary serial connection on digital pins 2 and 3, while the FONA's Key pin is toggled to power on the module. Data received from the FONA is sent to the PC's serial monitor, and vice versa.