SensMonitor integration

Makerfabs ESP32-S3 4G LTE CAT1 A7670X

Connect an ESP32-S3, A7670E or A7670SA LTE Cat-1 modem and optional BME280 sensor to the SensMonitor platform using the open-source smonitor-iot firmware.

  • ESP32-S3-WROOM-1Wi-Fi, Bluetooth LE, 16 MB flash, 8 MB PSRAM
  • A7670E / A7670SALTE Cat-1 with 2G fallback
  • BME280Temperature, humidity and pressure
Makerfabs ESP32-S3 4G LTE CAT1 A7670X development board
Photo: Makerfabs ESP32-S3 4G LTE CAT1 A7670X

01 / Overview

An affordable regional LTE Cat-1 monitoring node

The Makerfabs ESP32-S3 4G LTE CAT1 A7670X combines an ESP32-S3-WROOM-1-N16R8 module with a SIMCom A7670 LTE Cat-1 modem, a lithium battery charger, a microSD slot and an audio jack. It has three USB-C ports: native ESP32-S3 USB, a USB-TTL port for the ESP32-S3 and a separate modem USB port. The modem is sold in two regional versions: choose A7670E for Europe, Asia and Africa, or A7670SA for Latin America and Australia. Makerfabs notes that the A7670 is not certified for networks in the USA.

01

Controller

ESP32-S3-WROOM-1-N16R8 with Wi-Fi, Bluetooth LE 5, 16 MB flash and 8 MB octal PSRAM.

02

Cellular network

A7670 provides LTE Cat-1 connectivity, up to 10 Mbps down and 5 Mbps up, with 2G fallback, connected to the ESP32-S3 over UART.

03

Battery power

Runs from 5 V USB-C or a 3.7 V lithium battery. The onboard charger supplies up to 1 A and protects the battery against overcharge and deep discharge.

04

Sensor telemetry

A BME280 sensor can be connected to free header GPIOs and read over I2C.

What does the firmware do? On startup, it derives a unique serial number from the ESP32-S3 eFuse MAC address, powers on the A7670 with a PWRKEY pulse, starts the modem using the SIM7670 compatibility profile, establishes PPP data connectivity, synchronizes time, downloads device configuration and sends measurements to SensMonitor.

02 / Preparation

What you need

✓

Makerfabs ESP32-S3 4G LTE CAT1 A7670X board

✓

SIM card with an active LTE data plan and correct APN

✓

LTE antenna connected to the 4G LTE connector before powering the modem

✓

BME280 I2C module and jumper wires

✓

USB-C data cable connected to the ESP32-S3 USB-TTL port

✓

Optional 3.7 V lithium battery for operation without USB power

✓

Linux, macOS or Windows computer with Git

✓

VS Code with PlatformIO, or ESP-IDF 5.5

Before powering the board Insert the SIM card while the board is powered off and connect the LTE antenna. Use the USB TTL port for flashing and the serial monitor. The port labelled for the A7670 is the modem’s own USB interface and is not used by the firmware. Confirm LTE Cat-1 data service and APN settings with your mobile operator.

03 / Hardware

Connect the BME280

This board has no dedicated sensor connector. Connect the BME280 to two free GPIOs on the pin header. Avoid the pins used by the modem (GPIO 4, 5, 47, 48), the microSD card, native USB (GPIO 19, 20) and the USB-TTL serial port (GPIO 43, 44). The default I2C address is 0x76. If your module uses 0x77, change the address later in configuration.

BME280MakerfabsFunction
VIN / VCC3.3VPower
GNDGNDGround
SDAFree GPIOI2C data
SCLFree GPIOI2C clock
Makerfabs ESP32-S3 4G LTE CAT1 A7670X board
The board photo is provided for reference. Use the Makerfabs wiki and your board revision markings when connecting sensors.
Modem and board pins used by the firmware
TX GPIO 48RX GPIO 47PWRKEY GPIO 4Modem reset GPIO 5Baud rate 115200

The modem UART and control lines are routed on the board and do not need to be wired manually. The firmware does not have a dedicated Makerfabs profile yet, so these pins are set in sdkconfig.defaults.local in step 3 of the firmware section. The firmware does not use the modem reset line.

04 / Firmware

Install and configure smonitor-iot

Build the firmware with PlatformIO in VS Code or with ESP-IDF 5.5. This board uses the generic ESP32-S3 UART modem profile, so you add the modem pins, your APN and the sensor wiring. Internet access is required during the first build so the SensMonitor components can be downloaded.

  1. 1

    Install PlatformIO or ESP-IDF

    PlatformIO (easiest): install Visual Studio Code and the PlatformIO IDE extension. PlatformIO downloads ESP-IDF and the toolchain on the first build, so no separate ESP-IDF installation is needed.

    PlatformIO IDE for VS Code ↗

    ESP-IDF: install ESP-IDF 5.5 using the official Espressif instructions, then open a terminal with the ESP-IDF environment activated.

    ESP-IDF installation guide ↗

  2. 2

    Download the firmware

    git clone https://github.com/sensmonitor/smonitor-iot.git
    cd smonitor-iot
    cp sdkconfig.defaults.local.example sdkconfig.defaults.local

    In VS Code, open the smonitor-iot folder. PlatformIO detects the project automatically.

  3. 3

    Set the modem pins, APN and sensor wiring

    The ESP32-S3 target, PSRAM and SIM7670 modem profile come from the generic profile examples/generic_esp32s3_uart_modem/sdkconfig.defaults. In sdkconfig.defaults.local, set the Makerfabs modem pins, your operator APN and the GPIOs you wired the BME280 to:

    CONFIG_SMONITOR_MODEM_APN="your-apn"
    CONFIG_SMONITOR_BOARD_MODEM_UART_TX_PIN=48
    CONFIG_SMONITOR_BOARD_MODEM_UART_RX_PIN=47
    CONFIG_SMONITOR_BOARD_MODEM_PWRKEY_PIN=4
    CONFIG_SMONITOR_BOARD_MODEM_PWRKEY_PULSE_MS=1000
    CONFIG_SMONITOR_I2C_SENSOR_BME280=y
    CONFIG_SMONITOR_I2C_SDA_PIN=<SDA GPIO>
    CONFIG_SMONITOR_I2C_SCL_PIN=<SCL GPIO>

    Remove the board selection line copied from the example file. The generic profile selects the board type. If you built the generic-esp32s3-uart-modem environment before, delete sdkconfig.generic-esp32s3-uart-modem so the new values are applied.

  4. 4

    Check the configuration

    Optionally review everything in the configuration menu. Under SensMonitor IoT you will find APN and PPP authentication and the modem UART and PWRKEY pins, and under SensMonitor IoT → I2C sensor the sensor, its SDA and SCL pins and the address. Keep 0x76 unless your module uses 0x77.

    # PlatformIO
    pio run -e generic-esp32s3-uart-modem -t menuconfig
    
    # ESP-IDF
    idf.py -B build/makerfabs -D IDF_TARGET=esp32s3 \
      -D SDKCONFIG=build/makerfabs/sdkconfig \
      -D SMONITOR_BOARD_DEFAULTS=examples/generic_esp32s3_uart_modem/sdkconfig.defaults \
      menuconfig
  5. 5

    Build and flash

    PlatformIO: select the generic-esp32s3-uart-modem environment in the PlatformIO status bar and run Upload and Monitor, or use the terminal:

    pio run -e generic-esp32s3-uart-modem -t upload -t monitor

    ESP-IDF: use the same build directory as in step 4:

    idf.py -B build/makerfabs -D IDF_TARGET=esp32s3 \
      -D SDKCONFIG=build/makerfabs/sdkconfig \
      -D SMONITOR_BOARD_DEFAULTS=examples/generic_esp32s3_uart_modem/sdkconfig.defaults \
      -p /dev/ttyUSB0 flash monitor

    Replace /dev/ttyUSB0 with the serial port of the USB-TTL connection, such as COM5 on Windows. With PlatformIO, add --upload-port if the port is not detected automatically. If flashing does not start, hold BOOT, press RESET, then release BOOT.

05 / SensMonitor

Register the device

The firmware automatically derives a serial number from the factory ESP32-S3 MAC address. The serial number identifies the device and is not a secret.

smonitor_iot: Device serial:
SM-ESP32-A1B2C3D4E5F6

DEVICE_NOT_REGISTERED:
Register SM-ESP32-A1B2C3D4E5F6
in the SensMonitor application.
  1. 1

    Sign in at app.sensmonitor.com.

  2. 2

    Open the Devices section and add a new device.

  3. 3

    Select Makerfabs ESP32-S3 4G LTE CAT1 A7670X as the device type.

  4. 4

    Enter the serial number exactly as shown in the monitor.

  5. 5

    Create a station, assign the device and configure BME280 sensors if used.

  6. 6

    Restart the board so the firmware can request configuration again.

06 / Verification

What a successful connection looks like

Initializing esp_modem for SIM7670
BME280 initialized successfully
Network registration: registered
Modem connected to PPP server
Received device-sample-ack
Compatibility profile The A7670 runs on the firmware’s SIM7670 compatibility profile, so the log shows SIM7670. LTE data is supported. 2G fallback and GNSS are not yet validated with this profile. If the modem does not respond, check the PWRKEY pin in the configuration and that the LTE antenna is connected.

Ready to measure?

Monitor field data in real time.

Technical sources: SensMonitor firmware, Makerfabs product page, Makerfabs wiki and Makerfabs examples.

Photos belong to their original owner and should be served from the official Makerfabs website or your uploaded media copy.

Makerfabs ESP32-S3 4G LTE CAT1 A7670X