The Adafruit FONA 800 Shield is an invaluable addition to the Arduino ecosystem, providing GSM/GPRS functionality to your projects. This shield allows for cellular communication, enabling devices to make calls, send texts, and connect to the internet over a mobile network. It's perfect for remote monitoring, asset tracking, and any application where wireless communication is required.
Pin Number | Function | Description |
---|---|---|
1 | Vio | Power supply for logic level (3.3V to 5V) |
2 | GND | Ground |
3 | Key | Active low to turn on the module |
4 | PS | Power status indicator |
5 | Reset | Active low to reset the module |
6 | RX | UART receive pin |
7 | TX | UART transmit pin |
8 | RI | Ring indicator, active low when incoming call |
9 | Netlight | Network status indicator |
10 | Speaker+ | Positive terminal for external speaker |
11 | Speaker- | Negative terminal for external speaker |
12 | Microphone+ | Positive terminal for external microphone |
13 | Microphone- | Negative terminal for external microphone |
#include <SoftwareSerial.h>
SoftwareSerial fonaSerial(2, 3); // RX, TX
// Use pin 2 to communicate with the FONA
void setup() {
fonaSerial.begin(4800); // Set the baud rate for the FONA
Serial.begin(115200); // Set the baud rate for Serial monitor
Serial.println(F("FONA basic test"));
Serial.println(F("Initializing....(May take a few seconds)"));
// Make sure the FONA is turned on. It should be an active low signal.
pinMode(4, OUTPUT);
digitalWrite(4, LOW);
delay(1000);
digitalWrite(4, HIGH);
}
void loop() {
// Check for any incoming calls
if (fonaSerial.available()) {
Serial.write(fonaSerial.read());
}
// Send any characters from the Serial Monitor to the FONA
if (Serial.available()) {
fonaSerial.write(Serial.read());
}
}
Q: Can I use the FONA 800 Shield with a 3.3V microcontroller?
Q: How do I know if the FONA 800 Shield is connected to the network?
Q: What should I do if I can't send or receive SMS?
This documentation provides a comprehensive guide to using the Adafruit FONA 800 Shield with your Arduino projects. For further assistance, consult the Adafruit forums and support channels.