1. Project name:
Hydrological monitoring system design based on Lichuang·Liangshan School;
2. Goal:
Be familiar with the development process of embedded projects, and master how to design a monitoring system hardware circuit, software programming and system debugging capabilities.
3. Function introduction:
This system uses Lichuang Liangshan Pai as the core, and uses ESP8266 to connect to the ONENET cloud platform to upload water temperature, water level, TDS, and turbidity data. The buzzer alarm
uses DS18B20, and the water temperature collection
uses the TDS module. Use the turbidity module to achieve TDS collection of water bodies
, use the ultrasonic module to achieve water turbidity
collection, and simulate water level measurement.
4. Skill mastery:
Learn the ability to analyze circuits in embedded projects, learn how to understand schematic diagrams;
initially learn to master component selection and Basic ability to read data sheets;
learn schematic design and PCB design skills, cultivate independent project design thinking;
master the use of soldering iron, hot air gun and other tools, have the ability to solder components and hardware debugging, and
understand the basic functions of GD32 and the use of peripherals , get started with GD32 project development;
understand the ADC acquisition principle and realize ADC multi-module acquisition;
understand the IIC protocol and OLED driving principle to realize screen driver;
master the methods and techniques of embedded software development, code reading and BUG debugging;
5. Encounter Problems and solutions (very important):
When reading and writing iic devices, registers with odd addresses can read values, but registers with even addresses cannot read correct values. This is a timing problem. There is no corresponding pull-down and pull-up operation on the end bit. The odd-numbered register may pull the bus high just because the last bit is an odd number.
The problem of 85℃ will occur when DS18B20 obtains the temperature value for the first time. Conversion takes time. The higher the accuracy, the longer the time. You cannot read the value as soon as the conversion is started. You must initialize the DS18B20 after the temperature conversion is completed.
ESP8266 occasionally fails to connect to WiFi. After initializing the ESP8266, you need to restart it and extend the waiting time.
6. Demonstration video:
Please see the attachment for the demonstration video.