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
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.
Controller
ESP32-S3R8 with Wi-Fi, Bluetooth LE 5, 16 MB external flash and 8 MB PSRAM.
Cellular network
A7670E provides LTE Cat-1 connectivity, with 2G fallback, connected to the ESP32-S3 over UART.
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.
Sensor telemetry
A BME280 sensor connects to free header GPIOs, such as GPIO 3 and GPIO 2, and is read over I2C.
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
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.
| BME280 | Waveshare | Function |
|---|---|---|
VIN / VCC | 3.3V | Power |
GND | GND | Ground |
SDA | GPIO 3 | I2C data |
SCL | GPIO 2 | I2C clock |
Modem and board pins used by the firmware
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
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.
ESP-IDF: install ESP-IDF 5.5 using the official Espressif instructions, then open a terminal with the ESP-IDF environment activated.
- 2
Download the firmware
git clone https://github.com/sensmonitor/smonitor-iot.git cd smonitor-iot cp sdkconfig.defaults.local.example sdkconfig.defaults.localIn VS Code, open the
smonitor-iotfolder. PlatformIO detects the project automatically. - 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. Insdkconfig.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=2Remove any board, pin or flash settings copied from older instructions from this file. The board profile sets them.
- 4
Check the configuration
Optionally review everything in the configuration menu. Under
SensMonitor IoTyou will find APN and PPP authentication, and underSensMonitor IoT → I2C sensorthe sensor, its SDA and SCL pins and the address. Keep0x76unless your module uses0x77.# 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
Build and flash
PlatformIO: select the
waveshare-esp32s3-a7670eenvironment in the PlatformIO status bar and run Upload and Monitor, or use the terminal:pio run -e waveshare-esp32s3-a7670e -t upload -t monitorESP-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 monitorReplace
/dev/ttyACM0with your board serial port, such as/dev/ttyUSB0on Linux orCOM5on Windows. With PlatformIO, add--upload-portif the port is not detected automatically. If flashing does not start, holdBOOT, pressRESET, then releaseBOOT.
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
Sign in at app.sensmonitor.com.
- 2
Open the Devices section and add a new device.
- 3
Select Waveshare ESP32-S3-A7670E-4G as the device type.
- 4
Enter the serial number exactly as shown in the monitor.
- 5
Create a station, assign the device and configure BME280 sensors if used.
- 6
Restart the board so the firmware can request configuration again.
06 / Verification
What a successful connection looks like
Initializing esp_modem for SIM7670BME280 initialized successfullyNetwork registration: registeredModem connected to PPP serverReceived device-sample-ack4G 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.
