SensMonitor integration

Waveshare ESP32-S3-SIM7670G-4G

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

  • ESP32-S3R8Wi-Fi, Bluetooth LE, 16 MB flash, 8 MB PSRAM
  • SIM7670GGlobal LTE Cat-1 and GNSS
  • BME280Temperature, humidity and pressure
Waveshare ESP32-S3-SIM7670G-4G development board
Photo: Waveshare ESP32-S3-SIM7670G-4G

01 / Overview

A battery-ready global LTE Cat-1 monitoring node

The Waveshare ESP32-S3-SIM7670G-4G combines an ESP32-S3R8 microcontroller with a SIMCom SIM7670G LTE Cat-1 modem, an 18650 battery holder, solar charging and battery voltage measurement on one board. The SIM7670G is a global LTE Cat-1 variant, so the same board can be used in most regions with LTE coverage. It has no GSM/GPRS fallback, so the station needs LTE coverage at the installation site.

01

Controller

ESP32-S3R8 with Wi-Fi, Bluetooth LE 5, 16 MB external flash and 8 MB PSRAM.

02

Cellular network

SIM7670G provides global LTE Cat-1 connectivity, connected to the ESP32-S3 over UART, plus an IPEX connector for a GNSS antenna.

03

Field power

Onboard 18650 holder, lithium charging and a solar input. The default setting accepts 5 V to 6 V panels, and a resistor on the back selects 9 V, 12 V or 18 V panels.

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, starts the SIM7670G modem using the SIM7670 profile, establishes PPP data connectivity, synchronizes time, downloads device configuration and sends measurements to SensMonitor.

02 / Preparation

What you need

✓

Waveshare ESP32-S3-SIM7670G-4G board

✓

Nano SIM card with an active LTE data plan and correct APN

✓

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

✓

BME280 I2C module and jumper wires

✓

USB-C data cable

✓

Optional 18650 battery and solar panel for off-grid operation

✓

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, connect the LTE antenna and set the DIP switches on the back to 4G ON and USB OFF. With USB OFF, the USB-C port connects to the ESP32-S3 serial interface for flashing, and the firmware talks to the modem over UART. 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. Waveshare marks them dark green in the board interface definition. Avoid the pins used by the camera and TF card unless those peripherals are disabled. The default I2C address is 0x76. If your module uses 0x77, change the address later in configuration.

BME280WaveshareFunction
VIN / VCC3.3VPower
GNDGNDGround
SDAFree GPIOI2C data
SCLFree GPIOI2C clock
Waveshare ESP32-S3-SIM7670G-4G board
The board photo is provided for reference. Use the Waveshare interface definition and your board revision markings when connecting sensors.
Modem and board pins used by the firmware
TX GPIO 18RX GPIO 17Modem power: 4G DIP switchBaud rate 115200

The modem UART is routed on the board and does not need to be wired manually. The SIM7670G is powered by the 4G DIP switch, so the firmware treats the modem as externally powered and does not toggle a PWRKEY pin. This board shares its layout and pins with the Waveshare ESP32-S3-A7670E-4G, so both boards use the same firmware profile.

04 / Firmware

Install and configure smonitor-iot

Build the firmware with PlatformIO in VS Code or with ESP-IDF 5.5. The Waveshare board profile ships with the firmware, so you only add your APN and 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 APN and sensor wiring

    The Waveshare pins, modem profile, 16 MB flash and PSRAM come from the board profile examples/waveshare_esp32s3_a7670e/sdkconfig.defaults. The profile is named after the A7670E version, but it is the same board, and the SIM7670 modem profile is the native profile for the SIM7670G. In sdkconfig.defaults.local, set your operator APN and the GPIOs you wired the BME280 to:

    CONFIG_SMONITOR_MODEM_APN="your-apn"
    CONFIG_SMONITOR_I2C_SENSOR_BME280=y
    CONFIG_SMONITOR_I2C_SDA_PIN=<SDA GPIO>
    CONFIG_SMONITOR_I2C_SCL_PIN=<SCL GPIO>

    Remove any board, pin or flash settings copied from older instructions from this file. The board profile sets them.

  4. 4

    Check the configuration

    Optionally review everything in the configuration menu. Under SensMonitor IoT you will find APN and PPP authentication, 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 waveshare-esp32s3-a7670e -t menuconfig
    
    # ESP-IDF
    idf.py -B build/waveshare -D IDF_TARGET=esp32s3 \
      -D SDKCONFIG=build/waveshare/sdkconfig \
      -D SMONITOR_BOARD_DEFAULTS=examples/waveshare_esp32s3_a7670e/sdkconfig.defaults \
      menuconfig
  5. 5

    Build and flash

    PlatformIO: select the waveshare-esp32s3-a7670e environment in the PlatformIO status bar and run Upload and Monitor, or use the terminal:

    pio run -e waveshare-esp32s3-a7670e -t upload -t monitor

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

    idf.py -B build/waveshare -D IDF_TARGET=esp32s3 \
      -D SDKCONFIG=build/waveshare/sdkconfig \
      -D SMONITOR_BOARD_DEFAULTS=examples/waveshare_esp32s3_a7670e/sdkconfig.defaults \
      -p /dev/ttyACM0 flash monitor

    Replace /dev/ttyACM0 with your board serial port, such as /dev/ttyUSB0 on Linux or 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 Waveshare ESP32-S3-SIM7670G-4G 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
Network indicator The red network LED on the board flashes at 200 ms intervals once the SIM7670G has registered with the mobile network. If the modem does not respond, check that the 4G DIP switch is ON and that the board was power-cycled after changing switches.

Ready to measure?

Monitor field data in real time.

Technical sources: SensMonitor firmware, Waveshare product page and Waveshare documentation.

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

Waveshare ESP32-S3-SIM7670G-4G