武汉理工大学毕业设计(论文)基于STM32的温度测量系统学院(系):信息工程学院专业班级:学生姓名:指导老师:武汉理工大学毕业设计(论文)学位论文原创性声明本人郑重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。除了文中特别加以标注引用的内容外,本论文不包括任何其他个人或集体已经发表或撰写的成果作品。本人完全意识到本声明的法律后果由本人承担。作者签名:年月日学位论文版权使用授权书本学位论文作者完全了解学校有关保障、使用学位论文的规定,同意学校保留并向有关学位论文管理部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权省级优秀学士论文评选机构将本学位论文的全部或部分内容编入有关数据进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。本学位论文属于1、保密囗,在年解密后适用本授权书2、不保密囗。(请在以上相应方框内打“√”)作者签名:年月日导师签名:年月日武汉理工大学毕业设计(论文)目录摘要..............................................................................................................................................IAbstract..........................................................................................................................................II1绪论.............................................................................................................................................12系统分析.....................................................................................................................................32.1STM32芯片......................................................................................................................32.2DS18B20...........................................................................................................................52.3TFTLCD............................................................................................................................62.4ATK-HC05蓝牙串口.......................................................................................................73硬件设计.....................................................................................................................................83.1MCU..................................................................................................................................83.2JTAG设计........................................................................................................................93.3TFTLCD电路设计...........................................................................................................94软件设计...................................................................................................................................104.1系统初始化....................................................................................................................104.1.1时钟的初始化.....................................................................................................104.1.2I/O初始化............................................................................................................114.1.3串口初始化.........................................................................................................134.1.4DMA初始化........................................................................................................154.1.5中断初始化.........................................................................................................174.2模块功能设计................................................................................................................184.2.1DS18B20温度模块.............................................................................................184.2.2TFTLCD模块设计..............................................................................................214.2.3ATK-HC05蓝牙模块..........................................................................................245结果与总结...............................................................................................................................26参考文献.......................................................................................................................................30致谢...............................................................................................................................................31武汉理工大学毕业设计(论文)I摘要温度是日常生活和农业生产中的一个重要参数,传统的温度计有反应缓慢,测量精度不高的和读数不方便等缺点,此外,通常需要人工去观测温度,比较繁琐,因而采用电子技术的温度测量就显得很有意义了。随着电子技术的发展,出现各种基于芯片的温度测量系统。本文设计了一个基于STM32的温度测量与无线传送的系统,温度采集使用数字化温度传感器DS18B20,无线传输使用ATK-HC05蓝牙模块。STM32的内核基于cortex-m3,该内核拥有意法半导体独有的130nm专用低泄漏电流制造工艺和优化的节能架构,处于行业领先的节能性能,其高性能、低功耗、低成本的优势正符合本次设计的要求。温度芯片DS18B20采用单总线协议,仅占一个I/O口就能将环境温度转化成数字信号,具有微型化、低功耗、高性能、抗干扰能力强、易配微处理器等优点。无线的传输采用蓝牙技术,成本低,兼容的设备较多,可以降低传统工程的工程量,同时可以节省大量由排线、线路维修、检测上的一些不必要的障碍和消耗,同时,在实时运行阶段也可以明显体现它的便携性,高效性和节能性。关键词:STM32;蓝牙;DS18B20;温度;TFTLCD武汉理工大学毕业设计(论文)IIAbstractTemperatureisanimportantparameterinthedailylifeandagriculturalproduction,thetraditionalthermometerhasslowresponseandreadinginconvenientshortcomings,themeasurementaccuracyisnothigh,inaddition,usuallyrequiringlabortoobservethetemperature,morecumbersome,andthusthetemperatureoftheuseofelectronictechnologyitmakessensetomeasureit.Withthedevelopmentofelectronictechnology,theemergenceofvariouschip-basedtemperaturemeasurementsystem.ThispaperpresentsanSTM32-basedtemperaturemeasurementandwirelesstransmissionsystems,thetemperatureacquisitionusingdigitaltemperaturesensorDS18B20,wirelesstransmissionusingATK-HC05Bluetoothmodule.TheSTM32kernelisbasedoncortex-m3,thekernelhasaunique130nmSTMicroelectronicsspeciall