Get started with Pico LTE

Register the Pico LTE or Pico LTE 2 in Sixfab Connect, install MicroPython and the Pico LTE SDK with Thonny, check the connection and run a first program.

Before you begin

Required

Hardware

  • Sixfab Pico LTE or Pico LTE 2With the micro USB cable in the box.
  • ComputerWindows, macOS or Linux, with a free USB port.

Software

  • ThonnyThe Python IDE used in this guide; installed in a step below.
  • Sixfab Connect accountAt connect.sixfab.com, to activate the embedded SIM.

Register board in Sixfab Connect

  1. Open Register Asset.

    Sign in to connect.sixfab.com, open Assets from the side menu and click Register Asset.

  2. Register board.

    Enter the serial number (S/N) from the back of the board and a name, then click Register. Or click Scan QR and scan the QR code on the back of the board.

  3. Activate asset.

    In the asset details, turn on Active and click Save Preferences. Here you can also rename the asset and choose its network group: when the board exceeds the data limit of the group, its cellular connection is cut.

Install Thonny

Download Thonny for Windows, macOS or Linux from thonny.org and install it, or update an existing installation. Raspberry Pi OS includes Thonny.

Install MicroPython

The board comes without the MicroPython firmware.

  1. Hold BOOTSEL and connect board.

    Disconnect the USB cable if it is connected. Hold the BOOTSEL button on the Pico and connect the micro USB connector of the Pico to the computer. The Pico appears as a USB mass storage device.

  2. Open firmware installer.

    In Thonny, click the interpreter name in the bottom right corner and choose Install MicroPython. If the option is missing, check the USB connection.

  3. Install firmware.

    Select the variant of the board’s Pico: Raspberry Pi Pico W for the Pico LTE, Raspberry Pi Pico 2 W for the Pico LTE 2. Click Install, wait for the installation to finish and click Close.

    This is needed once: afterwards, connect the board without pressing BOOTSEL.

Install Pico LTE SDK

  1. Download SDK.

    Clone the pico_lte_micropython-sdk repository from GitHub, or download it with Code → Download ZIP and extract it.

  2. Upload pico_lte folder to board.

    In Thonny, show the files panel with View → Files. Go to the downloaded repository, right-click the pico_lte folder and choose Upload to /.

Check setup

The SDK’s monitoring script checks the board, the SIM, the network registration and the internet access in one run. It is optional, and the quickest way to confirm that everything works.

  1. Upload script.

    Upload examples/__basic__/monitor_network.py, or the whole examples/__basic__ folder, to the root (/) of the board.

  2. Run it.

    Open the script in Thonny and click Run.

CheckWhat it readsWhat it confirms
Device infoModule identity (Quectel BG95), IMEI, firmware, manufacturer and modelThe Pico communicates with the LTE module
SIM cardICCID and ready statusThe SIM is present, readable and ready
Network typeThe configured RAT scan modeWhich radio access technologies the module scans
Signal qualityRSSI and bit error rateWhether a weak or missing signal can affect the connection
Network statusOperator, LTE registration, serving cell, extended signal values, connection statusThe board is registered and communicates with the network
Packet service and APNAPN, IP address and packet attach statusMobile data is configured and attached
ConnectivityA ping to external serversThe board reaches the internet

If the script reports a problem, ask in the Sixfab Community or contact Sixfab support, with the full output of the script.

With the board connected and the MicroPython (Raspberry Pi Pico) interpreter selected, the Thonny shell runs commands on the board:

A first program toggles the user LED on GP22. Enter it in the editor and click Run:

from machine import Pin
USER_LED = Pin(22, mode=Pin.OUT)

USER_LED.toggle()

With a timer, the LED blinks until you click Stop:

from machine import Pin, Timer
USER_LED = Pin(22, mode=Pin.OUT)

timer = Timer()

def blink(timer):
    USER_LED.toggle()

timer.init(freq=2.5, mode=Timer.PERIODIC, callback=blink)

To run a program at power-up, save it on the board as main.py.

Next steps