4272 views|6 replies

5303

Posts

454

Resources
The OP
 

Home environment intelligent control system [Copy link]

Introduction
It can realize the intelligent control system of home environment. It can drive TFT LCD display through GD32F350 and touch control to centralize the lighting equipment in the home, fresh air (exhaust), dehumidification, lighting and other various needs of our family life for the environment. It can also join the WIFI network to realize the remote monitoring of the operation status and parameters of the control system.
I. System structure diagram
Design document source code


兆易创新GD32F350设计大赛_eeworld_蓝雨夜.pdf

1.01 MB, downloads: 21

设计文档

lanyuye.rar

13.88 MB, downloads: 167

源码

This post is from GD32 MCU

Latest reply

nmg
Attached to the judges' supplementary materials: Blue Rainy NightThe first step to get the GD350 development boardClick to viewBlue Rainy NightGD350 Development Board Connected to the Cloud PlatformClick to viewBlue Rainy NightGD32F350 development board adds HMI (TFT touch LCD)Click to viewBlue Rainy NightGD32F350 development board adds PWM dimmingClick to view   Details Published on 2018-10-25 09:16
 

5303

Posts

454

Resources
2
 
System Description: GD32F350 is used to implement this project. GD32F350 reads the temperature and humidity sensor HDC1080 on the bus through the I2C bus, and then uses SPI+ADC to realize the TFT display touch human-machine interface and display environmental parameters. At the same time, the WIFI network and parameters, real-time clock, control mode, and environmental temperature and humidity control and adjustment functions are set through the USART serial port.
I.Functional Description and Analysis
1.Human-machine interface description:
Power-on main interface:
0)]
A. Press Control view to enter the temperature, humidity, and acquisition control functions.
0)]
The upper picture is automatic mode, the lower picture is manual mode
B. Press Network settings on the main interface to enter the WIFI network settings. Touch the corresponding parameter to enter the parameter input window.
Modify router SSID;
Modify router password;
Modify cloud platform IP;
C. Press Peripheral Demo on the main interface to enter GD32F350 peripheral control
0)]
D. Remote login to OneNet cloud platform
You can see the current sensor temperature and humidity values, and display the set values and dynamic trend charts


1.jpg (100.23 KB, downloads: 0)

1.jpg

1.jpg (54.06 KB, downloads: 0)

1.jpg
This post is from GD32 MCU
 
 
 

5303

Posts

454

Resources
3
 
1. Hardware Design
A. Front view: All the devices are connected to the GD32F350 board by using the experimental board + pins. The peripherals need 3.3V and 5V to 3.3V (LDO) converted.
B. The reverse side
3.Functional analysis
ADisplay part
In order to have a friendly human-machine interface design, color LCD module is resolutely adopted. Parallel TFTLCD will occupy the function pins of other peripherals. Therefore, TFT LCD with SPI serial port and 2-way ADC can be selected to realize human-machine interface with different touch interfaces.
LCD only occupies the clock and data pins of SPI, and the other pins of SPI are used as ordinary GPIO in conjunction with SPI.
LCD bottom-level driverInitialization
Then send the data
See the source code for details
B.Touch part
Schematic diagram
383173[/attach]
Working principle:
When collecting the X-axis, the two feet of the Y-axis are brought up and down. When there is a touch, the X-axis is connected to the resistance of the Y-axis. Different positions collect different voltages.
When collecting the Y-axis, the two feet of the X-axis are brought up and down. When there is a touch, the Y-axis is connected to the resistance of the X-axis. Different positions collect different voltages.
ADC initialization program
C.Environmental parameter collection
In life, temperature is the easiest thing for the human body to feel, and humidity is very important to human health
So here we use an integrated temperature and humidity sensor HDC1080, and the simple I2C interface can realize the reading of environmental parameters.
Initialize the I2C0 interface of GD32F350
D. WIFI module connects to the network
In order to send environmental parameters to the remote cloud platform, the existing E103-W01 with ESP8266 is used here. 0]GD32F350 sends AT commands through USART1 to configure E103-W01
Set up the router
With the cloudData exchange between platforms
D.GUIDesign
I transplanted grlib to realize the human-computer interface I need
E.LEDLight control
Use the PWM function of TIMER2 of GD32F350 to realize 4-channel PWM output
III.Summary
After so many days of learning and using GD32F350, I feel that it is quite good. It has rich resources and high main frequency. It is good for making small-sized color touch HMI.
GD32F350 has rich resources and sufficient peripherals, and can be easily used through official examples. Convenient and easy to use
Fourth,Demonstration video
See attachment for details
Five,Source code
For details, please see the attachment on the first floor
Fourth, Demonstration video
See attachment for details
Five, Source code
See attachment on the first floor for details
Fourth, Demonstration video
See attachment for details
Five, Source code
See attachment on the first floor for details

1.jpg (30.65 KB, downloads: 0)

1.jpg
This post is from GD32 MCU
 
 
 

785

Posts

0

Resources
4
 
This post is from GD32 MCU
 
Personal signature我从不担心我努力了不优秀,只担心优秀的人都比我更努力。如果你无法忍受孤独,就不要追逐梦想。每一个优秀的人,都有一段沉默的时光。在那一段时光,你付出了很多努力,忍受孤独和寂寞,不抱怨不诉苦,最后渡过了这
 
 

5303

Posts

454

Resources
5
 
This post was last edited by Lan Yuye on 2018-10-17 21:46Demo video, no commentary
This post is from GD32 MCU
 
 
 

2

Posts

0

Resources
6
 
study
This post is from GD32 MCU
 
 
 

5216

Posts

239

Resources
7
 
Attached to the judges' supplementary materials:
Blue Rainy Night
The first step to get the GD350 development board
Blue Rainy Night
GD350 Development Board Connected to the Cloud Platform
Blue Rainy Night
GD32F350 development board adds HMI (TFT touch LCD)
Blue Rainy Night
GD32F350 development board adds PWM dimming


This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list