基于USB接口的温度传感器论文
基于USB接口的温度传感器
摘要
温度是工程领域中主要的被控参数之一,在许多需要对温度进行监控和分析的场合需要一种精度和自动化水平高、应用范围管的温度采集手段。针对这一需求,本文设计了低成本、高可靠性、高速度的基于USB接口的温度采集系统,可以将温度传感器采集来的数据经放大转换处理后,通过USB接口传送到主机系统,使客户应用程序通过驱动程序得到数据,并根据需要对数据进行处理。本文阐述了基于USB接口,利用AT89C52单片机和PDIUSBD12芯片以及DS18B20数字输出型温度传感器实现温度采集系统的设计方案,并给出了具体实现方案,包括基于USB接口的温度传感器的硬件设计和应用程序开发等关键技术硬件设计部分主要介绍了USB控制器的选择和硬件的具体设计方案,给出了主要部分的电路原理图。按照温度传感器的选用原则,选用了低成本,高精度的DS18B20数字输出型温度传感器。应用程序部分分析给出了软件流程、、编程实现及与USB设备的通信方法。本论文完成了基于USB接口的温度传感器的设计,实现了基本的温度数据采集和传输功能。通过本研究,使我对USB技术内核有了更深刻的理解,积累了丰富的经验,为今后系统应用奠定了坚实基础。
关键词:USB;PDIUSBD12芯片;DS18B20温度传感器;AT89C52单片机
Based on the USB interface temperature
sensor
Abstract
Temperature field of the project is one of main parameters are needed in many
temperature monitoring and analysis on the occasion to a precision and high automation level, application range of tube temperature gathering. In this paper the design demand,
low cost, high reliability, high speed and based on the USB interface temperature gathering system, can be collected temperature sensor data processing, the amplification conversion via USB interface to host system, make customer application through the drivers get data, and according to the need of data processing.In this paper, based on the USB interface chip microcontroller and PDIUSBD12 by AT89C52 as temperature sensor DS18B20 digital output type of temperature gathering design scheme of the system is given, and the
concrete implementation scheme based on the USB interface, including the temperature sensor of hardware design, development and key technology.The hardware design part mainly introduces the hardware and choose the USB controller design scheme of concrete is presented, the main part of the circuit principle diagram. According to the principle of selection of the temperature sensor, choose the low cost, high temperature sensor DS18B20 digital output. Application software process part analysis is presented, and the
programming and the communication with USB devices.This paper based on the USB interface of completion of the temperature sensor design, realization of basic data
collection and transmission function of temperature. Through the research on the USB technology, make my kernel a deeper understanding and accumulated a wealth of
experience for future application system, and laid a solid foundation.
Keywords: USB;PDIUSBD12 chip; the temperature sensor DS18B20; AT89C52
目 录
第1章 绪论 .............................................................. 1
1.1 设计理念与背景 ................................................... 2
1.2 目前常用的总线接口 ............................................... 2
1.3 USB .............................................................. 2
1.4 国内外发展现状 ................................................... 3
1.5 课题的目标及意义 ................................................. 4
第2章 硬件设计 .......................................................... 6
2.1 基于USB接口的温度传感器的工作原理 ............................... 6
2.1.1 工作原理图 ................................................. 6
2.1.2 工作原理 ................................................... 6
2.2 温度采集部分 ..................................................... 7
2.2.1 DS18B20数字温度传感器的外形及引脚说明 ...................... 7
2.2.2.DS18B20的性能及特点 ......................................... 8
2.2.3 DS18B20工作过程及时序 ...................................... 9
2.3 USB接口芯片部分 ................................................ 12
2.3.1 PDIUSBD12 USB芯片简单介 ................................... 12
2.3.2 PDIUSBD12的引脚分布及其功能 ................................ 13
2.3.3 PDIUSBD12外围电路及其与AT89C52之间的连线图 ............... 15
第3章 上位机软件编程 ................................................... 17
3.1 使用Visual Studio 2005实现温度数据的显示 ........................ 17
3.1.1 用Visual Studio 2005创建温度显示窗体 ..................... 17
3.1.2 软件编程思路 .............................................. 18
3.2 驱动程序 ........................................................ 18
3.2.1 WDM 驱动程序 .............................................. 19
3.2.2 驱动程序开发工具 .......................................... 19
3.2.3 驱动程序的功能模块 ........................................ 20
3.3 驱动程序的实现 .................................................. 21
3.3.1 驱动程序入口点和回调程序 .................................. 21
3.3.2 即插即用的实现 ............................................ 21
第4章 硬件部分程序代码 ................................................. 22
4.1 驱动程序的安装及 INF 文件 ....................................... 24
4.2 应用程序 ........................................................ 25
结论 .................................................................... 27
致谢 .................................................................... 28
参考文献 ................................................................ 29
第1章 绪论
1.1 设计理念与背景
基于USB接口的温度传感器,就是利用USB接口实现单片机技术的温度传感器与PC机之间通信的温度采集系统,以提高温度采集的准确度于精度。实现低成本、高可靠性、告诉的温度数据采集和传输。
在工业生产、科研及医疗等需要严格进 …… 此处隐藏:11104字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [小学教育]四年级综合实践活动课《衣物的洗涤》教
- [小学教育]2014半年工作总结怎么写
- [小学教育]20世纪外国文学专题综合试题及答案
- [小学教育]TS_1循环使用催化丙烯环氧化反应研究
- [小学教育]最实用的考勤签到表(上下班签到表)
- [小学教育]气候与生态建筑——以新疆民居为例
- [小学教育]二人以上股东有限责任公司章程参考样本
- [小学教育]2014届第一轮复习资料4.1,3美好生活的
- [小学教育]土方开挖、降水方案
- [小学教育]手绘儿童绘本《秋天的图画》(蜡笔)
- [小学教育]2002级硕士研究生卫生统计学考试试题
- [小学教育]环保装备重点发展目录
- [小学教育]金蝶K3合并报表培训教材
- [小学教育]岩浆岩试题及参考答案
- [小学教育]知之深爱之切学习心得
- [小学教育]第十二章 蛋白质的生物合成
- [小学教育]Chapter 2-3 Solid structure and basi
- [小学教育]市政道路雨季专项施工方案
- [小学教育]中国海洋大学2012-2013学年第二学期天
- [小学教育]教育心理学第3章-学习迁移
- 浅谈深化国企改革中加强党管企业
- 2006年中国病理生理学会学术活动安排
- 设计投标工作大纲
- 基于ARP的网络攻击与防御
- 2016届湖北省七市(州)教科研协作体高三
- Google_学术搜索及其检索技巧
- 2019-2020学年七年级地理下册6.3美洲教
- 城市道路可研报告
- 【名师指津】2012高考英语 写作基础技
- 6级知识点培训北京师范大学《幼儿智趣
- 注册会计师会计知识点:金融资产
- 新安装 500 kV 变压器介损分析与判断
- PS2模拟器PCSX2设置及使用教程.
- 医院药事管理与药剂科管理组织机构
- {PPT背景素材}丹巴的醉人美景,免费,一
- NAS网络存储应用解决方案
- 青海省西宁市六年级上学期数学期末考试
- 测量管理体系手册依据ISO10012:2003
- 洞子小学培养骨干教师工作计划
- 浅谈《牛津初中英语》的教材特点及教学




