Skip to content

4G LTE Air Monitor

1. Introduction

This air monitor, with the detection of air temperature and humidity, carbon dioxide, air quality TVOC, light intensity and other functions, mainly used in greenhouse environmental detection.

Its built-in 4G module, can transmit temperature, humidity, light intensity, carbon dioxide concentration and TVOC to the Internet to achieve remote wireless communication.

This air monitor is powered by internal 18650 lipo battery charged by solar panel, the power down current lower as 165uA. With the solar panel to charge the battery and low power consumption, the device can operate for extended periods. And then transmit the data via the 4G LTE network, so user can monitor the field status or have them recorded for long-term analyze.

Model:4GLAMESP32S3

image.png

2. Features

  • Controller: ESP32-S3-WROOM-1, PCB Antenna, 16MB Flash, 8MB PSRAM, ESP32-S3-WROOM-1-N16R8
  • Wireless: WiFi, Bluetooth 5.0 & 4G LTE CAT1
  • Global used LTE Cat-1, SIM7670G with uplink rate 5 Mbps and downlink rate 10 Mbps
  • GNSS Positioning
  • MPPT: CN3791 solar maximum power tracking charging management
  • BMS: DW06 over-charge, over-discharge protection
  • Solar Power supply connector: 4.5~28V
  • Humidity: 0~100% RH
  • Temperature: -40~85℃
  • CO2eq signal: 400~60000ppm
  • TVOC signal: 0 to 60000ppb
  • Light intensity: 1 - 65535 lx
  • 18650 battery
  • Arduino support
  • Operation temperature: -40℃ to +85℃

image.png

3. Hardware

  • Plug the SIM card into the board.
  • Plug the 18650 battery into the 18650 Battery Socket.
  • Plug the 4G-GSM antennas into the SMA1 interface.

4. Transmit the detection data to Thingspeak

This demo is to transfer the monitored data to Thingspeak via 4G.To transmit the data to your Thingspeak channel, it has to create a new channel and get the APIKEY information. Then replace the APIKEY in the code with yours.

4.1 Thingspeak

  • sign in or sign up for ThingSpeak

If you already have an account, log in and enter the password, otherwise click Create one to register.

ThingSpeak_sign_in.png

  • Create new channel

Select "Channel --> My Channels".

ThingSpeak_myChannels.png

click "New Channel".

ThingSpeak_newChannel.png

Write the name and field information.

ThingSpeak_newChannel_Name.png

Click Save Channel to create successfully.

ThingSpeak_ok.png

4.2 Arduino IDE

1.Open the Transmit_the_detection_data_to_Thingspeak by Arduino IDE.

2.Install the ESP32 board package.

All projects are based on the ESP32-S3 development board, guaranteeing higher compatibility and stability.If you haven't installed the ESP32 Board SDK yet, follow the steps in this guide to get started quickly.

image.png

3.Install Library.

Select "Sketch > Include Library > Manage Libraries"

  • search "AHT10" and click Install.

AHT10.png

If the following page appears, click"Install all".

Install all.png

  • search "SGP30" and click Install.

SGP30.png

  • search "BH1750" and click Install.

BH1750.png

4.Change the APIKEY.

In order to view the data in your own channel, you need to modify the APIKEY in the code.

  • Click the "API Keys" and copy you Key.

APIKEY.png

  • Modify the APIKEY in the code.

CodeApikey.png

5.Use Type-C USB cable to connect the board and PC, note plug the cable to USB-NATIVE interface, and select the development board "ESP32S3 Dev Module" and the port.

  • Select "Tools > board:"xxx" > ESP32 Arduino > ESP32S3 Dev Module".

Board.png

  • Select "Tools > Port",Select the port number of the board.

Port.png

6.Turn on the toggle switch.

button.jpg

7.Verify the code and upload.

  • Click this icon to upload to the board.

download.png

8.Open the serial monitor to view the monitoring data.

com16.png

9.Press the WIFI button for about 2 seconds.

wifi button.jpg

You'll see the transferred data in ThingSpeak.

thingspeak1.png

thingspeak2.png

5. Transmit the detection data to Datacake

This demo is to transfer the monitored data to Datacake via WIFI. First we have to add the device in Datacake, get the URL and serial number; Then open the code via Arduino IDE, change your WIFI information, URL and serial number on Datacake.

5.1 Datacake

  • Login datacake or Create Account.
  • Click “Add Device”. 1、Add Device.png

  • Select API and click “Next”. 2、select、.png

  • Select a Product based on your needs, take "Create new empty product" as an example. product name.png

  • Leave the default in “Add API Device” and click “Next”. next.png

  • Choose the type according to your needs, and click “Add 1 device”. 5、add 1 device.png

  • Click to go to the device you just added. 4G LTE Air Monitor.png

  • Click “Configuration”, follow the steps to add a field your need.

configuration.png 12、add feild.png add field.png all field.png

  • To get a better look at the data, we can add widget.Click “Dashboard-->switch-->+ Add Widget”. add widget.png

  • Select “Value” and set Title. value all.png

  • Select “Value” and set Title, Field and presentation form as well as the interval color. add1.png add2.png value ok2.png

  • Select Chart and set Title, Field, Color, Axis and click “save”. chart all.png field char temp.png field char humi.png chart ok.png

  • If you still need to observe other data, you can repeat the addition as above.

  • Click the switch to save. all ok.png

5.2 Arduino IDE

1.Open the Transmit_the_detection_data_to_Datacake by Arduino IDE.

2.Install the ESP32 board package.

3.Install Library.

Select "Sketch > Include Library > Manage Libraries"

  • search "AHT10" and click Install.

  • search "SGP30" and click Install.

  • search "BH1750" and click Install.

4.Change the WIFI ssid and password.
wifi.png

5.Go back to datacake, click “Configuration”, copy the “Serial number” and “HTTP endpoint URL” into the code respectively. datacake url.png URL.png device.png

6.Use Type-C USB cable to connect the board and PC, and select the development board "ESP32S3 Dev Module" and the port. board.png

7.Turn on the toggle switch.

button.jpg

8.Verify the code and upload.

9.Open the serial monitor to view the monitoring data.

com16.png

You'll see the transferred data in Datacake. okok.png

6. FAQ

You can list your questions here or contact techsupport@makerfabs.com for technology support. Describing your problem in detail will help solve your problem.

7. Resource