SensMonitor integration

Waveshare ESP32-S3-A7670E-4G

Connect an ESP32-S3, A7670E 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
  • A7670ELTE Cat-1 with 2G fallback
  • BME280Temperature, humidity and pressure
Waveshare ESP32-S3-A7670E-4G development board
Photo: Waveshare ESP32-S3-A7670E-4G

01 / Overview

A battery-ready LTE Cat-1 monitoring node

The Waveshare ESP32-S3-A7670E-4G combines an ESP32-S3R8 microcontroller with an A7670E LTE Cat-1 modem, an 18650 battery holder, solar charging and a battery fuel gauge on one board. It suits remote monitoring stations in Europe and other regions where LTE FDD bands B1, B3, B5, B7, B8 and B20 are available, with GSM/GPRS as a fallback.

01

Controller

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

02

Cellular network

A7670E provides LTE Cat-1 connectivity, with 2G fallback, connected to the ESP32-S3 over UART.

03

Field power

Onboard 18650 holder, lithium charging and a solar input for 5 V to 18 V panels make it suitable for off-grid stations.

04

Sensor telemetry

A BME280 sensor connects to free header GPIOs, such as GPIO 3 and GPIO 2, and is 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 A7670E 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

✓

Waveshare ESP32-S3-A7670E-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 GPIO 2 and GPIO 3 dark green in the interface definition as free pins, and they are not shared with the camera, TF card or modem. This guide uses GPIO 3 for SDA and GPIO 2 for SCL. The default I2C address is 0x76. If your module uses 0x77, change the address later in configuration.

BME280WaveshareFunction
VIN / VCC3.3VPower
GNDGNDGround
SDAGPIO 3I2C data
SCLGPIO 2I2C clock
Waveshare ESP32-S3-A7670E-4G interface definition
The interface definition shows the header pinout. 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 A7670E is powered by the 4G DIP switch, so the firmware treats the modem as externally powered and does not toggle a PWRKEY pin.

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. In sdkconfig.defaults.local, set your operator APN and the GPIOs you wired the BME280 to, here GPIO 3 and GPIO 2:

    CONFIG_SMONITOR_MODEM_APN="your-apn"
    CONFIG_SMONITOR_I2C_SENSOR_BME280=y
    CONFIG_SMONITOR_I2C_SDA_PIN=3
    CONFIG_SMONITOR_I2C_SCL_PIN=2

    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-A7670E-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 A7670E 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-A7670E-4G