The Adafruit FONA 3G Breakout is a compact and reliable cellular module that enables microcontroller projects to access 3G data networks. It's perfect for IoT devices, remote monitoring, and mobile applications where communication over a cellular network is required. The breakout board is designed to work with a standard-sized SIM card and includes an SMA connector for an external antenna to ensure optimal signal reception.
Pin Number | Name | Description |
---|---|---|
1 | Vio | Digital supply voltage (3.3V-5V) |
2 | GND | Ground connection |
3 | Key | Active low to turn on the module |
4 | RX | UART receive pin |
5 | TX | UART transmit pin |
6 | RST | Active low reset pin |
... | ... | ... |
Q: Can I make voice calls with the FONA 3G? A: Yes, the FONA 3G supports voice calls. You will need to connect a speaker and microphone to the appropriate pins.
Q: What is the default baud rate for UART communication? A: The default baud rate is 115200 bps, but it can be adjusted using AT commands.
Q: How do I update the firmware on the FONA 3G? A: Firmware updates can be performed using the USB interface and the provided software tools from Adafruit.
#include <SoftwareSerial.h>
// Pin definitions
const int FONA_RX = 2; // FONA TX
const int FONA_TX = 3; // FONA RX
const int FONA_RST = 4; // FONA RST
// Create a software serial object
SoftwareSerial fonaSerial(FONA_RX, FONA_TX);
void setup() {
pinMode(FONA_RST, OUTPUT);
digitalWrite(FONA_RST, HIGH); // Deactivate reset
fonaSerial.begin(115200); // Match the default baud rate of FONA 3G
Serial.begin(115200); // Start serial communication with the computer
Serial.println("FONA 3G test");
}
void loop() {
// Code to interact with the FONA 3G module
// For example, sending an SMS, making a call, or using data
}
Remember to keep the code comments concise and within the 80 character line length limit. This example demonstrates how to initialize the FONA 3G module with an Arduino UNO using a software serial connection. Additional functionality, such as sending SMS or making calls, can be implemented using the appropriate AT commands sent through the fonaSerial
object.