How to Create a Datacake Air Monitor Via 4G

by Lan_Makerfabs in Circuits > Electronics

87 Views, 1 Favorites, 0 Comments

How to Create a Datacake Air Monitor Via 4G

1.jpg

If you are a plant lover, have a well-tended backyard garden, or run a small, self-sufficient farm, an efficient and accurate air monitor is an indispensable companion. While pursuing a green lifestyle, you must also pay attention to energy saving and economic considerations. LoRa technology, with its excellent low power consumption and low cost, fits your needs perfectly. The Makerfabs Senserlora is based on lora technology for small-scale farming. Makerfabs Senserlora currently consists of two monitors (Air monitor and Soil monitor) and two receivers (Receiver and 4G gateway). Now, I will show you the combination of Air monitor and 4G gateway and upload data to Datacake via 4G.

Supplies

1.jpg

Hardware

2.png
2、.jpg
3、4G.png

This project consists of three parts, firstly the lora sender, which is our air monitor, it will monitor the temperature and humidity data sent to the 4G gateway; Secondly the lora receiver, which is our 4G gateway, it will receive the data uploaded to datacake; And finally the data visualisation in datacake. In datacake we can display the data in a variety of forms that can be analysed.

  1. SenseLoRa_Industrial-grade Air Monitor supports the LoRa protocol, which achieves low power consumption, long distance and security. It will monitor the data every hour (of course, you can change the monitoring interval yourself via wifi) and all the sensor data periodically via LoRa P2P, this LoRa signal can be received by SenseLoRa_4G LTE CAT1 Gateway, and thus to display/record/analyze on PC.
  2. The SenseLoRa_4G LTE CAT1 Gateway has an on-board LoRa receiver and a 4G module, so it receives the LoRa data and then transmits the data via 4G to cloud server such as Datacake, or to the monitor's phone via SMS.

Software:Datacake Setting

4、datacake1(1).png
5、Add Device.png
6、select、.png
7、product name.png
8、click next.png
9、add 1 device.png
10、select device.png
11、click configuration.png
12、add feild.png
13.png
14、add widget.png
15.png
16.png
17.png
18.png
19、save.png

Datacake is a versatile low-code IoT platform. It's easy to add some charts to the dashboard to make your data more visual. 

  1. Login datacake or Create Account.
  2. Click “Add Device”.
  3. Select API and click “Next”.
  4. Select a Product based on your needs, take "Create new empty product" as an example.
  5. Leave the default in “Add API Device” and click “Next”.
  6. Choose the type according to your needs, and click “Add 1 device”.
  7. Click to go to the device you just added.
  8. Click “Configuration”, follow the steps to add a field.
  9. To get a better look at the data, we can add widget.Click “Dashboard-->switch-->+ Add Widget”.
  10. Select “Value” and set Title, Field and presentation form as well as the interval color.
  11. Select Chart and set Title, Field, Kind, Line Thickness and click “save”.
  12. Humidity is the same step as temperature.
  13. Click the switch to save. 


Software:Arduino

20、click configuration.png
RadioLib.jpg
ArduinoJson.jpg
21.png
22.png

While the Air monitor is a ready-to-use product and the 4G gateway requires us to program it to work.Please follow the steps below to complete the upload of the 4G gateway code.

  1. Open the send_lora_data_to_datacake by Arduino.

Install "RadioLib" and "ArduinoJson" library.

  1. Select "Tools-->Manage Libraries..."
  2. Search "RadioLib", select Version 4.6.0 and click Install.

Note: It is recommended to use version 4.6.0, using the latest version may cause compilation failure.

  1. Search "ArduinoJson" and click Install.
  2. Go back to datacake, click “Configuration”, copy the “Serial number” and “HTTP endpoint URL” into the code respectively.
  3. Plug the SIM card into the Senselora 4G gateway. Turning on the switch and use Type-C USB cable to connect the board and PC, and select the development board "ESP32S3 Dev Module" and the port and upload the code.


Result

24、datacake ok.png
1.jpg
  1. Power on the SenseLora_Industrial-grade Air Monitor.
  2. Press the Senselora 4G gateway reset button and wait a few minutes to receive a message in Datacake.

As you can see from the image above, following the steps can be a great way to visualise temperature and humidity information using Datacake, so if you are interested, follow our tutorial and try it out for yourself!


Detailed Operation Video

Usage of Air Monitor with 4G LTE CAT1 Gateway

To gain a more comprehensive understanding of the assembly testing process, we invite you to view the accompanying video. We look forward to sharing further projects with you in due course.