The author's personal QQ: 2456640595
Personal blog: Ertongrrrr
Personal B station: Ertongrrrr
If you have any questions about the project, you can directly contact the author's QQ
1. Objective:
To be familiar with the development process of embedded projects, master how to port STM32 code to Liangshanpai and run it smoothly, master how to connect to Alibaba Cloud through ESP8266-01S and report data, and Liangshanpai's data processing.
2. Function introduction:
·Realize the function of collecting environmental temperature, humidity and light intensity
·Realize the function of displaying the collected data on the OLED screen
·Realize the function of switching OLED screen pages by pressing buttons
·Realize the function of adjusting temperature, humidity and light intensity thresholds by pressing buttons
·Realize the function of alarming when environmental parameters exceed the set thresholds (use the lighting of LED lights to simulate alarms)
3. Skills Master
hardware design capabilities
·Learn relevant circuit analysis of embedded projects
·Be familiar with how to use the data sheet of the development board
·Learn schematic design and PCB design
·Learn how to solder PCB circuit boardsSoftware
development capabilities
·Understand the single bus on Liangshan School and the code implementation when simulating IIC
·Learn how to send and receive information through the serial port of Liangshan School·Learn
how to use the MCU serial port to send AT commands of the ESP8266-01S module
·Learn how to debug embedded BUGs and develop embedded systems
·Learn how to establish an Internet of Things platform on the Alibaba Cloud platform
·Learn the development of simple Web visualization pages on the Alibaba Cloud platform4
. Tutorial
materialsProject hardware and software development materials are open source below (including Liangshan School source code)
Teaching guidance video recording>>>
5. About code transplantation
· When transplanting STM32 code to Liangshanpai, pay attention to the main frequency of both, especially when transplanting STM32F1 series MCU.
· It is recommended to transplant the adaptation code of STM32F4 series MCU to Liangshanpai, because the main frequency difference between the two is not big, and they can be transplanted directly, and only the library files and library functions in the code need to be changed.