登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 电子信息工程 > 正文

液位测试与显示装置的设计

 2022-12-16 11:12  

论文总字数:33531字

摘 要

本课题是基于ST公司的STM32F103系列单片机的液位检测及显示装置的设计,使用各种液体作为检测物体在许多行业都有大规模的运用,液位是被检测对象;这个设计是使用tof飞行时间距离检测外设同步实时检测并通过IIC协议发送到STM32进行处理,从而使液位数据自动判断并始终控制在FLASH中指定的范围。其中,该系统使用tof飞行时间距离检测传感器进行检测并将检测到的信号时间与飞行速度进行运算得出飞行距离通过iic协议传输Api传给单片机STM32F103ZET6进行处理,STM32将收集的结果储存到EEPROM同时通过TFTlcd显示出来,并完成对检测模式的选择的控制;在STM32进行同步处理的当时,通过按键电路对MCU进行相应的切换功能。液位控制系统的硬件电路MCU外围电路、tof传感器外围电路、键盘电路、lcd显示电路、存储电路等五大部分;

在完成了硬件的设计,程序的设计后,下一步就应该把硬件电路和软件程序统一起来,从而实现液位控制系统,发现问题,解决问题,修改错误等一系列的步骤;并使用相关的实验进行系统结果的试验,观察其结果是否满足设计的要求,再通过Altium Designer设计电路图进行打板设计,得到产品级别的设计最终达到液位控制系统的课题目标。

关键词:STM32F103ZET6单片机;TOF飞行时间距离传感器;液位控制;

数据储存

Abstract

This topic is based on the ST company STM32F103 series of single-chip microcomputer liquid level detection and display device design, the use of various liquids as detection objects in many industries have a large scale of use, liquid level is the object of detection; This design is to use the TOF time-of-flight distance detection peripheral synchronous real-time detection and through the IIC protocol sent to STM32 for processing, so that the liquid level data automatically judged and always controlled in the FLASH specified range. Among them, the system uses the TOF time-of-flight distance detection sensor for detection and calculates the detected signal time and flight speed to get the flight distance through the IIC protocol transmission API to STM32F103ZET6 for processing. STM32 stores the collected results to EEPROM and displays them through TFTLCD, and controls the selection of detection mode. At the time of STM32 synchronous processing, the MCU can be switched by the key circuit.

gram design, the next step is to unify the hardware circuit and software program to realize the liquid level control system, discover problems, solve problems, modify errors and a series of steps; And make the system results of the experiment, to observe whether the results meet the design requirements, and then through the Altium Designer design circuit diagram to make the board design, product level design to achieve the final level control system of the subject goal.

Key words: STM32F103ZET6 MCU; TOF time of flight distance sensor; Liquid level control;

目录

第1章 绪论 ---------------------------------------------------------- 5

1.1 课题的意义------------------------------------------------- 5

1.2 国内外的研究动态 ------------------------------------------- 5

1.3 课题的目的和预期目标--------------------------------------- 6

第2章 系统整体方案设计----------------------------------------------- 7

2.1 方案选择----------------------------------------------- 7

2.2 方案预期效果------------------------------------------- 7

第3章 硬件电路设计 --------------------------------------------------- 9

3.1 STM32F103单片机 --------------------------------------- 9

3.1.1 单片机的功能和特点 ------------------------------- 10

3.1.2 时钟和复位电路----------------------------------- 10

3.1.3 启动模式设置接口--------------------------------- 13

3.2 TOF水位检测模块--------------------------------------- 14

3.2.1 VL53L0X模块外围硬件电路 ----------------------- 14

3.2.2 VL53L0X模块IIC协议配置及传输------------------ 17

3.3 TLTLCD显示和键盘电路----------------------------------- 20

3.3.1 键盘电路------------------------------------- 22

3.3.2 TLTLCD显示电路------------------------------- 22

3.3.3 系统ui设计---------------------------------- 23

3.4 储存flash电路----------------------------------------- 25

第4章 软件设计 ------------------------------------------------------- 27

4.1 软件语言的选择----------------------------------------- 27

4.2 系统主程序--------------------------------------------- 27

4.2.1 延时处理--------------------------------------- 28

4.2.2 键盘部分的软件设计----------------------------- 31

4.2.3 显示部分的软件设计----------------------------- 33

4.2.4 水位监测软件设计------------------------------- 36

第5章 系统调试仿真与PCB设计------------------------------------------ 38

5.1 系统调试仿真------------------------------------------- 38

5.2 Altium Designer 绘制PCB-------------------------------- 42

5.2.1 原理图绘制----------------------------------- 42

5.2.2 PCB绘制-------------------------------------- 42

第6章 结论与展望------------------------------------------------------ 46

参 考 文 献------------------------------------------------------------ 47

致 谢--------------------------------------------------------------- 48 附 录--------------------------------------------------------------- 49

剩余内容已隐藏,请支付后下载全文,论文总字数:33531字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图