The 4G HAT for Raspberry Pi (SIM7600X) is a versatile hardware add-on designed to provide cellular connectivity and GNSS positioning capabilities to Raspberry Pi projects. This HAT supports LTE Cat-4, 3G, and 2G networks, enabling high-speed data communication and reliable location tracking. It is ideal for IoT applications, remote monitoring, vehicle tracking, and other projects requiring mobile connectivity and GPS functionality.
The 4G HAT connects to the Raspberry Pi via the GPIO header. Below is the pin configuration:
Pin | Name | Description |
---|---|---|
2 | 5V | Power supply (5V input) |
6 | GND | Ground |
8 | TXD (UART) | UART Transmit (to Raspberry Pi RXD) |
10 | RXD (UART) | UART Receive (to Raspberry Pi TXD) |
12 | PWRKEY | Power key for module control |
16 | NET_STATUS | Network status indicator |
18 | GNSS_EN | Enable GNSS functionality |
22 | RESET | Reset the module |
Hardware Setup:
Software Setup:
sudo apt update
sudo apt install ppp minicom
GNSS Positioning:
GNSS_EN
pin high.Although this HAT is designed for Raspberry Pi, it can also be used with an Arduino UNO via UART. Below is an example code snippet to send AT commands to the SIM7600X module:
#include <SoftwareSerial.h>
// Define RX and TX pins for SoftwareSerial
SoftwareSerial sim7600x(10, 11); // RX = pin 10, TX = pin 11
void setup() {
Serial.begin(9600); // Initialize Serial Monitor
sim7600x.begin(9600); // Initialize SIM7600X communication
Serial.println("Initializing SIM7600X...");
delay(1000);
// Send an AT command to check communication
sim7600x.println("AT");
}
void loop() {
// Check for data from SIM7600X
if (sim7600x.available()) {
String response = sim7600x.readString();
Serial.println("SIM7600X Response: " + response);
}
// Check for user input from Serial Monitor
if (Serial.available()) {
String command = Serial.readString();
sim7600x.println(command); // Send user command to SIM7600X
}
}
No Cellular Network Detected:
NET_STATUS
pin output for network status.GNSS Not Working:
GNSS_EN
pin is set high to enable GNSS functionality.Module Not Responding to AT Commands:
RESET
pin.High Power Consumption:
Can this HAT be used with other microcontrollers? Yes, the SIM7600X module can communicate via UART or USB, making it compatible with other microcontrollers like Arduino and ESP32.
What is the maximum data rate supported? The HAT supports LTE Cat-4 with a maximum downlink speed of 150 Mbps and uplink speed of 50 Mbps.
Does the HAT support voice calls? Yes, the SIM7600X module supports voice calls, but additional configuration is required.
Can I use this HAT for SMS messaging? Yes, the module supports SMS functionality via AT commands.
Is an external power supply required? The HAT can be powered through the Raspberry Pi GPIO header, but an external power supply is recommended for stable operation during high current usage.