Sitemap

Intelligent Environment Monitoring System Based on PSoC6

5 min readSep 22, 2025

This article is contributed by CHNT 8350.

This project is developed based on PSoC6, and it has the following features.

Psoc6-evaluationkit-062S2 is a development board jointly launched by RT-Thread and Infineon. It integrates a 32-bit dual-core CPU subsystem (ARM Cortex-M4 and ARM Cortex-M0). It has a 150-MHz Arm Cortex-M4F CPU with single-cycle multiplication (floating point and memory protection unit), a 100-MHz Cortex M0+ CPU with single-cycle multiplication and MPU, which can fully utilize the performance of the PSoC6 dual-core chip.

Basic Overview

The specific functions implemented are: setting and viewing the current time, real-time display of temperature and humidity data, real-time display of indoor light intensity, reminding of the current indoor brightness status, turning on indoor lights, turning off indoor lights. The mini program can view the indoor temperature and humidity in real time, and remotely control the indoor lights.

Hardware Part

It uses the onboard RTC, SLIDER, I2C, ADC, GPIO, serial communication module. SSD1306 display screen, DHT11 temperature and humidity sensor, light sensor, ESP8266 module, MG995 servo, RGB light.

Function Introduction

The first part is a real-time display time interface, including year, month, current time. The upper left corner displays the page number. The upper right corner displays a touch slider value of PSoC, which is used to check the slider value.

Then we can swipe the touch slider to perform page turning operation. The second part is a real-time temperature and humidity monitoring page. On this page, the current indoor temperature and humidity can be viewed, and a threshold is set. When the humidity exceeds 65%, the LED light (white-yellow light) will be turned on. When the humidity is below 65%, the LED light will be turned off.

The third part is our indoor brightness situation. Through the light sensor, the current indoor brightness level is monitored in real time. When the light intensity is lower than the set threshold, the display screen will prompt that the current indoor environment is too dark (DARK) and the light needs to be turned on. We can click the touch slider module to turn on the LED light (green light). If the current light intensity is greater than the threshold, the display screen will prompt that the current brightness state is LIGHT, and at this time the LED light will be automatically turned off.

If in the dark state the LED light is turned on, to turn it off, you need to go to the first part, then lightly touch the middle slider to turn off the LED light. PS: When on the first interface, the blue light will be on.

Detailed Function Introduction

First Part

The first interface: consists of the clock of the current time zone, the page number PART1, and the slider value.

Through the LCD display screen, the current time and year, month, and day elements are displayed in real time. It can perform a function of viewing the current time. And when on the first interface, the LED light will be on in blue as a prompt. The number 111 in the upper right corner represents the current value of the slider.

Press enter or click to view image in full size

Second Part

The second interface consists of the display of temperature data and humidity data, plus the status display of the indicator light.

By collecting data from the DHT11 temperature and humidity sensor, and then transmitting it through serial communication between ESP8266 and PSoC6, PSoC6 processes the transmitted data and displays it on the LCD display screen.

In addition, a humidity threshold is set. When the current indoor humidity reaches above 65%, the LED status light will turn on. When it is below 65, the LED status light will turn off. Thus realizing monitoring of the indoor dry and wet state.

Press enter or click to view image in full size
Press enter or click to view image in full size

Third Part

The third interface consists of the current lighting state and two index data of working intensity.

In this interface, users can view in real time the current light intensity state and the LED light indicator state.

Light sensor: the stronger the light, the lower the value, and vice versa.

Through the light sensor to monitor the external light intensity, a threshold is set. When it exceeds 2030, it means that the external light intensity is relatively dark. Display screen LIGHT: displays DARK. In a dark situation, the user can click the touch slider to turn on the LED light (green light).

If the LED light is on, when the external light intensity is less than 2030, the LED light will automatically turn off. In a dark environment, if the light has been turned on and you want to turn it off, you can also go to the first interface, then lightly touch the slider to turn it off.

Press enter or click to view image in full size
Press enter or click to view image in full size

Fourth Part

Mini program part: Through receiving data from the cloud platform, then uploading to the mini program, the user can control the device in the mini program.

By clicking the light switch slider, a command will be sent to the device, allowing the servo to perform the operation of turning the light on or off.

And in the mini program interface, we can also view the indoor temperature and humidity data in real time.

Interface Switching: By judging the starting touch position of the finger, and then the amount of swiped data within a certain time, a threshold is set. By subtracting the starting position and the ending position, it is judged whether it exceeds the threshold. If within the threshold, the interface switching operation is performed.

--

--

RT-Thread IoT OS
RT-Thread IoT OS

Written by RT-Thread IoT OS

An Open-Source Community-Powered Real-Time Operating System (RTOS) Project! Let’s develop, DIY, create, share, and explore this new IoT World together!

No responses yet