This post was last edited by dql2016 on 2021-1-10 10:55
Now the concepts of the Internet of Things and smart homes are gradually entering our daily lives. Various development platforms are becoming more and more convenient, and the graphical development method makes the development of the Internet of Things more and more fool-proof. Here, we use the NUCLEO-L552ZE development board, an esp8266 wifi module, and a DHT22 temperature and humidity sensor to build an application for monitoring through a mobile phone app. The temperature and humidity data collected by the sensor can be reported to the app for display, and the app can control the on and off of the three LEDs on the development board. The graphical development method is used throughout the process, and the entire development and debugging process can be completed in tens of minutes.
First use stm32cubemx to configure 3 gpio to control LED, 1 gpio as a button, 1 serial port 1 for debug log, 1 serial port 2 for communication with wifi module, and a timer for system.
Then configure the data point on the Gizwits Cloud platform:
Then generate the code package:
The actual wiring is quite simple:
Mobile app control interface:
Serial port debugging information:
Project source code: