1. Introduction
The Waveshare RM502Q-AE 5G HAT is an expansion board designed for Raspberry Pi and other host boards, enabling 5G/4G/3G cellular communication. It features an M.2 B KEY slot for compatible 5G modules, multiple antenna interfaces, and various control pins for flexible integration. This manual provides essential information for setting up, operating, and maintaining your 5G HAT.
An assembled view of the Waveshare RM502Q-AE 5G HAT connected to a Raspberry Pi (not included), showcasing the module with four antennas attached. This image illustrates the compact form factor and connectivity options.
2. Package Contents
Please verify that all items listed below are included in your package. Note: The 5G module (e.g., RM502Q-AE) is typically sold separately and is not included in the standard HAT package.
This image displays all components typically included in the package: 1. M.2 TO 4G/5G HAT, 2. 5G Module (for reference only, not included), 3. Antennas (4 pcs), 4. IPEX adapter cables (4 pcs), 5. GNSS antenna, 6. 2*20PIN pin header, 7. 5V 3A Type-C power adapter, 8. Dual plug USB3.0 cable, 9. USB3.0 adapter, 10. USB2.0 adapter, 11. SMA protective caps (4 pcs), and 12. Screws pack.
- 1x M.2 TO 4G/5G HAT
- 4x Antennas
- 4x IPEX adapter cables
- 1x GNSS antenna
- 1x 2*20PIN pin header
- 1x 5V 3A Type-C power adapter
- 1x Dual plug USB3.0 cable
- 1x USB3.0 adapter
- 1x USB2.0 adapter
- 4x SMA protective caps
- 1x Screws pack
3. Product Overview and Features
The RM502Q-AE 5G HAT is designed for robust and high-speed cellular connectivity. Key features include:
- Extensive Protocol Support: Integrates various network protocols with multi-driver and software support, compatible with Windows, Linux, and Android operating systems.
- High-Speed USB Connectivity: Features a USB 3.1 port (USB 2.0 compatible) for connecting to PCs, Raspberry Pi, or Jetson Nano host boards, enabling high-speed 5G communication.
- Standard M.2 B KEY Slot: Compatible with different 5G modules such as RM500U-CN, RM500Q-GL, RM500Q-AE, and RM502Q-AE series.
- Flexible Control Pins: Onboard UART, PWR, and RST control pins with a built-in voltage level translator, enabled via DIP switch, for use with hosts like Raspberry Pi or Arduino.
- Dedicated Power Supply: An onboard USB-C connector, enabled via switch, allows for a standalone power supply to the module, ensuring stable and flexible power delivery for higher loads.
- User-Friendly Controls: Includes an onboard power supply on/off switch, reset button, and LED indicator for easy module management and status monitoring.
- Dual SIM Card Support: Two SIM card slots offer dual card single standby functionality, switchable via AT command.
- Efficient Power Management: High-efficiency power supply circuit provides up to 3A output current.
A comprehensive diagram labeling all key components on the Waveshare RM502Q-AE 5G HAT board, including the Raspberry Pi GPIO header, DIP switches, M.2 slot, SIM card slots, USB3.1 port, USB Type-C port, audio jack, antenna connectors, reset button, power supply switch, LED indicator, cooling fan, USB2.0 interface pads, NAUB810X Audio Chip, and fan header.
4. Specifications
Below are the general specifications for the Waveshare RM502Q-AE 5G HAT and compatible modules. Specific performance may vary based on the installed 5G module and network conditions.
| Feature | Description |
|---|---|
| Model | RM502Q-AE 5G HAT |
| Connectivity | 5G/4G/3G (via M.2 module), USB 3.1 (compatible with USB 2.0) |
| M.2 Slot | Standard M.2 B KEY, compatible with RM500U-CN / RM500Q-GL / RM500Q-AE / RM502Q-AE series |
| Host Compatibility | Raspberry Pi, PC, Jetson Nano, Arduino |
| Operating System Support | Windows, Linux, Android |
| SIM Card Slots | 2 (dual card single standby, switchable via AT command) |
| Power Supply | USB-C (5V 3A recommended), USB 3.1 port |
| GNSS Support | GPS, BeiDou, Glonass, Galileo (module dependent) |
This table provides a comparison of various compatible M.2 B KEY 5G modules (RM500U-CN, RM500Q-GL, RM500Q-AE, RM502Q-AE, RM520N-GL series), including their region/provider, operating temperature, extension temperature, dimensions, weight, power supply, power consumption, frequency bands (5G NR NSA/SA, LTE-FDD/TDD, UMTS, GNSS), and data rates. Refer to this table for detailed module specifications.
This image includes a detailed technical drawing showing the outline dimensions of the HAT in millimeters (85.00 mm x 56.70 mm).
5. Setup Guide
5.1 Hardware Installation
- Install 5G Module: Carefully insert your compatible M.2 5G module into the M.2 B KEY slot on the HAT. Secure it with the provided screw.
- Attach Antennas: Connect the four cellular antennas to the SMA connectors on the HAT. Connect the GNSS antenna to its dedicated connector. Ensure all connections are finger-tight.
- Insert SIM Card: Open the SIM card slot cover and insert your activated Nano-SIM card(s). The HAT supports two SIM cards for dual standby.
- Connect to Host Board:
- For Raspberry Pi: Align the 40-pin GPIO header of the HAT with the Raspberry Pi's GPIO pins and gently press down to connect. Ensure proper alignment to avoid damage.
- For PC/Jetson Nano: Use the provided USB 3.0 cable to connect the HAT's USB 3.1 port to your host device.
- For CM4-IO Base: Use the purpose-made USB adapter for connection.
- Power Connection:
- If using with Raspberry Pi, the HAT can draw power from the Pi's GPIO.
- For standalone operation or if additional power is required, connect the 5V 3A Type-C power adapter to the HAT's USB-C port. Ensure the power switch on the HAT is set to the appropriate source (USB or external Type-C).
This image shows various connection examples: the HAT connected to a laptop via USB, a Raspberry Pi 4B, a Raspberry Pi 3B+, and a CM4-IO Base.
5.2 Software Configuration
The RM502Q-AE 5G HAT supports various operating systems including Windows, Linux, and Android. Drivers and software support are typically provided by the 5G module manufacturer (e.g., Quectel). Refer to the module's documentation for specific driver installation and configuration steps.
- Driver Installation: Install the necessary drivers for your 5G module on your chosen operating system. These are usually available from the module manufacturer's website.
- Network Configuration: Configure your operating system's network settings to recognize and utilize the 5G modem. This may involve setting up APN (Access Point Name) settings.
- AT Commands: The module can be controlled and configured using AT commands via a serial interface (UART or USB virtual COM port). Refer to the 5G module's AT command manual for detailed instructions.
6. Operating Instructions
Once the hardware is installed and software configured, you can begin operating the 5G HAT.
- Power On: Ensure the power supply is connected and the power switch on the HAT is in the 'ON' position. The LED indicator will show the operating status.
- Network Connection: The 5G module will attempt to connect to the cellular network. Monitor the LED indicator for network status (e.g., blinking for searching, solid for connected).
- Data Communication: Once connected, your host device (Raspberry Pi, PC, etc.) should be able to access the internet via the 5G connection.
- SIM Card Switching: If using two SIM cards, you can switch between them using specific AT commands. Consult your 5G module's documentation for the relevant commands.
7. Maintenance
Proper maintenance ensures the longevity and reliable operation of your 5G HAT.
- Keep Clean: Regularly clean the HAT and its components with a soft, dry cloth. Avoid using liquids or abrasive cleaners.
- Environmental Conditions: Operate the HAT within its specified temperature and humidity ranges. Avoid extreme temperatures, direct sunlight, and high moisture environments.
- Antenna Care: Ensure antennas are securely connected and not bent or damaged. Proper antenna placement is crucial for optimal signal reception.
- Firmware Updates: Periodically check the 5G module manufacturer's website for firmware updates. Keeping the module firmware up-to-date can improve performance and stability.
- Cooling Fan: The HAT includes a high-speed cooling fan. Ensure it is free from obstructions to maintain effective heat dissipation for both the Raspberry Pi and the 5G module.
This image shows a close-up of the high-speed cooling fan on the HAT, designed for better heat dissipation.
8. Troubleshooting
If you encounter issues with your RM502Q-AE 5G HAT, refer to the following common troubleshooting steps:
- No Power/LED Off:
- Check power connections. Ensure the USB-C power adapter is correctly plugged in or the HAT is properly seated on the Raspberry Pi.
- Verify the power switch on the HAT is in the 'ON' position and set to the correct power source.
- Module Not Detected:
- Ensure the M.2 5G module is correctly inserted and secured in its slot.
- Verify the USB cable connection to the host device. Try a different USB port or cable.
- Check if the necessary drivers for the 5G module are installed on your operating system.
- No Network Connection:
- Confirm that the SIM card is correctly inserted and activated with a data plan.
- Check antenna connections. Ensure all cellular antennas are securely attached.
- Verify APN settings in your operating system's network configuration.
- Ensure you are in an area with 5G/4G/3G network coverage.
- Use AT commands to query the module's network registration status.
- Slow Data Speeds:
- Check antenna placement and orientation for optimal signal strength.
- Ensure the 5G module firmware is up-to-date.
- Verify network congestion in your area.
- Overheating:
- Ensure the cooling fan is operating correctly and not obstructed.
- Provide adequate ventilation around the HAT and host device.
9. Warranty and Support
For warranty information, please refer to the terms and conditions provided by Waveshare at the time of purchase or visit the official Waveshare website. Technical support and additional resources, including detailed documentation and software downloads, can be found on the Waveshare product page for the RM502Q-AE 5G HAT.
Online Resources:
- Waveshare Official Website
- Refer to the specific 5G module manufacturer's website (e.g., Quectel) for module-specific documentation and drivers.





