SensMonitor integration
Makerfabs ESP32-S3 4G LTE CAT1 SIM7670G
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-S3-WROOM-1Wi-Fi, Bluetooth LE, 16 MB flash, 8 MB PSRAM
- SIM7670GGlobal LTE Cat-1 and GNSS
- BME280Temperature, humidity and pressure
01 / Overview
A compact global LTE Cat-1 monitoring node
The Makerfabs ESP32-S3 4G LTE CAT1 SIM7670G combines an ESP32-S3-WROOM-1-N16R8 module with a SIMCom SIM7670G LTE Cat-1 modem, a lithium battery charger and a microSD slot. 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 SIM7670G is a global LTE Cat-1 variant with no GSM/GPRS fallback, so the station needs LTE coverage at the installation site.
Controller
ESP32-S3-WROOM-1-N16R8 with Wi-Fi, Bluetooth LE 5, 16 MB flash and 8 MB octal PSRAM.
Cellular network
SIM7670G provides LTE Cat-1 connectivity, up to 10 Mbps down and 5 Mbps up, connected to the ESP32-S3 over UART. A second antenna connector is provided for GNSS.
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.
Sensor telemetry
A BME280 sensor can be connected to free header GPIOs and read over I2C.
02 / Preparation
What you need
Makerfabs ESP32-S3 4G LTE CAT1 SIM7670G 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
USB TTL port for flashing and the serial monitor. The port labelled for the SIM7670G 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.
| BME280 | Makerfabs | Function |
|---|---|---|
VIN / VCC | 3.3V | Power |
GND | GND | Ground |
SDA | Free GPIO | I2C data |
SCL | Free GPIO | I2C clock |
Modem and board pins used by the firmware
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
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 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. Insdkconfig.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-modemenvironment before, deletesdkconfig.generic-esp32s3-uart-modemso the new values are applied. - 4
Check the configuration
Optionally review everything in the configuration menu. Under
SensMonitor IoTyou will find APN and PPP authentication and the modem UART and PWRKEY pins, and underSensMonitor IoT → I2C sensorthe sensor, its SDA and SCL pins and the address. Keep0x76unless your module uses0x77.# 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
Build and flash
PlatformIO: select the
generic-esp32s3-uart-modemenvironment in the PlatformIO status bar and run Upload and Monitor, or use the terminal:pio run -e generic-esp32s3-uart-modem -t upload -t monitorESP-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 monitorReplace
/dev/ttyUSB0with the serial port of the USB-TTL connection, such asCOM5on 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 Makerfabs ESP32-S3 4G LTE CAT1 SIM7670G 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-ackSTA LED on the back of the board lights once the SIM7670G is powered on. If it stays off and the modem does not respond, check the PWRKEY pin in the configuration, or hold the PWK button for 2 seconds to switch the modem on manually.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.
