基于单片机的电子声音报温温度计设计_毕业设计.doc

基于单片机的电子声音报温温度计设计_毕业设计.doc

  1. 1、本文档共48页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第四届电子设计大赛(论 文) 基于单片机的电子声音报温温度计设计 摘要 环境温度的获取对工业、农业、商业都有很大的影响。传统的测温仪测量费时,准确度也较低,而数字温度计相比于传统温度计,具有读数速度快,测温范围广等优势,其输出温度采用数字显示,便于用户使用。 随着单片机技术的不断发展,单片机在日用电子产品中的应用越来越广泛,本设计数字温度计基于89C51单片机平台,使用数字测温传感器DS18B20,用数码管实现温度显示,利用DS18B20和一片89C51单片机即可构成一个简洁但功能强大的低电压温度测量系统,温度显示稳定,设定了定时语音自动播报温度,手动实时播报温度功能,温度达到预设上限启动继电器,以便驱动外接设备。 关键词:DS18B20;数码管显示;语音播报 Abstract The environment temperature acquisition has great effect on the industrial, agricultural, commercial. Thermometer to measure the traditional time-consuming, the accuracy is low, and compared with the traditional thermometer digital thermometer readings, with fast speed, wide temperature range and other advantages, digital output temperature display, user-friendly. With the continuous development of SCM technology, SCM applications in the field of electronic products is more and more widely, the design of digital thermometer based on 89C51 microcontroller platform, the use of digital temperature sensor DS18B20, with digital temperature display, is a simple but powerful low voltage temperature measurement system using DS18B20 and a 89C51 single chip computer. Stability, temperature display, set to automatically report temperature timing voice, manual real-time broadcast functions of temperature, the temperature reaches the preset limit starting relay, to drive an external equipment. Keywords: DS18B20; digital tube display; voice broadcast 目录 TOC \o 1-3 \h \z \u 1 2 3 4 5 6 7 8 9 不亮 - uchar code scan_con[4]={0x7f,0xbf,0xdf,0xef}; //列扫描控制字 uchar data temp_data[2]={0x00,0x00}; //读出温度暂放 uchar data display[5]={0x00,0x00,0x00,0x00,0x00}; //显示单元数据,共4个数据和一个运算暂用 void delay_ISD1420(unsigned int ms) //延时K*1ms,12.000mhz { int j; while(ms--) {for(j=0; j125; j++); } } void speak_isd1420(unsigned char addr) //语音播报子程序 addr播音地址 { ISD1420IO = addr; //写地址 playe = 1; playe = 0; //开始播音 delay_ISD1420(800); } void speak_temp(unsigned int temp_t) //语音播报温度子程序 { int digit1,digit

文档评论(0)

weidameili + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档