Get started with Base HAT

Fit a Quectel or Telit mini PCIe module to the Base HAT, mount the HAT on a Raspberry Pi, check that the module is detected and choose how to connect to the internet.

Works with

Base HATProduct overviewonRaspberry Pi 4 or 5

Before you begin

Required

Hardware

  • Raspberry PiModel 4 or 5 recommended, with a 5 V power supply of at least 2 A.
  • Mini PCIe cellular moduleQuectel EC25, EG25 or UC20-G, or Telit LE910C1, LE910C4 or ME910C1-WW. Other modules: compatible modules.
  • Antennasu.FL: an LTE full-band PCB antenna and an LTE and GNSS dual antenna, a triple-port antenna, or another combination of LTE and GNSS antennas.
  • SIM cardA Sixfab SIM, registered and activated in Sixfab Connect, or another SIM that the module supports.
In the box6 parts
  • 1×Sixfab 3G-4G/LTE Base HAT for Raspberry Pi
  • 1×Extra-tall 40-pin GPIO stacking header
  • 1×Short 40-pin GPIO stacking header
  • 1×Right-angle micro USB cable
  • 4×M2.5 × 11 mm spacer
  • 4×M2.5 × 5 mm screw

The 4G/LTE Cellular Modem Kit adds a module, the antennas and a Sixfab SIM.

Assemble hardware

Assemble the hardware with the Raspberry Pi powered off. The drawings show a Raspberry Pi 5; on a Raspberry Pi 4 the steps are the same.

  1. Insert module into Base HAT

    Insert the mini PCIe module into the mini PCIe socket of the Base HAT at an angle, then press it down until its far end clicks under the latch.

    • 1× Mini PCIe cellular module
  2. Connect antennas

    Connect the LTE antennas to the main and diversity connectors of the module and the GNSS antenna to the GNSS connector. The tabs show where these connectors are on the Quectel and the Telit modules. The Telit ME910C1-WW has no diversity connector: it takes one LTE antenna on the main connector.

    • 1× LTE and GNSS dual antenna
    • 1× LTE full-band PCB antenna
  3. Fit header under board

    Fit one of the 40-pin stacking headers to the underside of the Base HAT, its long pins up through the GPIO holes.

    • 1× 40-pin stacking header
  4. Insert SIM card

    Slide the micro SIM card into the SIM socket, contacts down, until it shows through the socket cover’s window.

    • 1× Micro SIM card
  5. Mount HAT on Raspberry Pi

    Press the Base HAT onto the 40-pin header of the Raspberry Pi and fasten it with the four M2.5 spacers and four M2.5 screws.

    • 1× Raspberry Pi 4 or 5
    • 4× M2.5 spacer
    • 4× M2.5 screw
  6. Connect micro USB cable

    Connect the micro USB port of the Base HAT to a USB port of the Raspberry Pi.

    • 1× Right-angle micro USB cable
  7. Connect power supply

    Connect the power supply to the Raspberry Pi. The Base HAT and the module take their power from it, and the red PWR LED of the Base HAT turns on.

    • 1× Raspberry Pi USB-C power supply

Check that the module is detected

Open a terminal on the Raspberry Pi. The module appears as a USB device:

lsusb
Bus 001 Device 009: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

A Telit module shows as ID 1bc7:… Telit Wireless Solutions. The module also adds its serial ports:

dmesg | grep ttyUSB
[  154.014341] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB0
[  154.015183] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB1
[  154.015632] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB2
[  154.015994] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB3

The number of ports depends on the module: four with the Quectel EC25, five with the Telit LE910Cx. If the module is missing, see Troubleshooting: USB connection.

Connect to internet

All three methods give a cellular internet connection; they differ in setup effort and in the control they give over the modem. One is enough:

The installation scripts in these guides are tested with the mini PCIe modules sold by Sixfab. With another module, follow the module manufacturer’s documentation.

Next steps