教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 小学教育 >

基于USB接口的温度传感器论文

来源:网络收集 时间:2026-09-13
导读: 基于USB接口的温度传感器 摘要 温度是工程领域中主要的被控参数之一,在许多需要对温度进行监控和分析的场合需要一种精度和自动化水平高、应用范围管的温度采集手段。针对这一需求,本文设计了低成本、高可靠性、高速度的基于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字,全部文档内容请下载后查看。喜欢就下载吧 ……

基于USB接口的温度传感器论文.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/1543372.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)