TVOC Alarm on Datacake With MaTouch Lite 2.4”

by Lan_Makerfabs in Circuits > Arduino

63 Views, 0 Favorites, 0 Comments

TVOC Alarm on Datacake With MaTouch Lite 2.4”

1.jpg

Today we introduce our finished TVOC monitoring project built around the brand-new 2.4-inch MaTouch development board!

The whole workflow is straightforward: onboard sensor continuously collects real-time TVOC air quality data, measured values get displayed instantly on the 2.4” local screen for onsite checking. The ESP32 will only send an HTTP API request to the Datacake IoT cloud platform over Wi-Fi when the TVOC reading exceeds the preset threshold.

Once data lands on Datacake, the cloud platform immediately triggers pre-configured rules and sends out warning emails right away for remote early warning. No complicated extra wiring or expensive modules needed. Perfect for indoor home air monitoring, workshop environment tracking and beginner-friendly IoT practice.

If you’re into building your own low-cost smart environmental alarm system, this all-in-one board is ideal starting point!

Supplies

1.png

1.MaTouch Lite ESP32-S3 SPI Resistive Touch 2.4" ST7789*1pcs

This integrated mainboard is equipped with premium display performance, fully compatible with LVGL & Squareline Studio for fast GUI design. We design all screen UI via Squareline first, auto-generate UI codes, then finish secondary programming under Arduino framework for data reading and networking logic.

2.Mabee_TVOC and eCO2 SGP30 & Temperature and Humidity SHT31*1pcs

Integrated with gas detection and high-precision temperature/humidity detection functions, it can collect TVOC, eCO₂ and environmental temperature/humidity data. The hardware adopts a slot-type heat insulation structure, which effectively reduces the detection error caused by sensor heating, ensuring the accuracy and stability of environmental monitoring data.

3.USB cable*1pcs

Create New Device on Datacake

1.png
2.png
3.png
4.png
5.png

1.Create a device on the Datacake platform.

2.The communication adopts an API connection scheme, using API interfaces to establish data interaction between Datacake and the MaTouch Lite 2.4-inch.

3.The device named "Air_Quality_Sensor" has been successfully created.

Code Design With Arduino IDE

1.png
2.png
3.png
4.png

1.For the addition of relevant libraries, you can refer to this instructables article:link

2.Open ui.ino.

3.Choose your own WIFI name and WIFI password.

4.Fill in the Webhook, host and TVOC over-limit thresholds. The Webhook should be consistent with the Datacake platform.

5.Select and set the parameters in the Tools menu.

6.Verify it and upload.

Modify Datacake Platform Configuration

1.png
2.png
3.png
4.png
5.png
6.png
7.png
8.png
9.png
10.png
11.png
12.png

1.Check the JSON data format sent by the ui.ino code and configure the corresponding decoder on the Datacake platform.

2.Click on "Add Field" to set the field name for storing TVOC data.

3.Send Json data to test whether the Json data can be parsed correctly.

4.Click on "Rules", then select "Add Rule". Assign a name to this rule, and here it is named "TVOC Exceedance Alert Email".

5.Select “TVOC Exceedance Values” as the variable to monitor.

6.Setting condition:When the value exceeds the set threshold,When its value exceeds the set threshold, it indicates abnormal air quality.

7.Select "Send Email", enter your email address, then fill in the subject line and the email content.

8.Click on "Create Rule". Now, whenever the TVOC value exceeds the limit, we will receive an email.

Result

1.jpg

Follow the steps above, you will be able to set up an environmental alarm system on your Matouch Lite 2.4 board.Try it yourself if you are interested.

Source code can be found on our GitHub page.

Video

Real-Time TVOC Monitoring & Email Alerts with MaTouch Lite + Mabee + Datacake🚀

We've also put together a fantastic video to show you the project in more detail, so be sure to check it out if you're interested!