ZKX's LAB

数字温度计的 数字温度计控制系统

2020-10-05知识2

设计一个测试温度范围为0~100℃的数字温度计 你也真不够客气的!让人家给你这完整的设计!我估计谁要是为了你200分给你做了,那就吃饱了没事干!而且你说话也太不客气了!请别人帮忙总得以礼相待吧,人家可是免费帮你做!

数字温度计的 数字温度计控制系统

数字温度计工作原理是什么啊~~ DS18B20本身就是一种数2113字温度5261传感器,他会把温度转换成数字量以后存贮在自身内4102部,和单片机只需要1653连接一个io口,是一种单总线串行接口,你要做的就是把数据读出来,然后在数码管或者液晶屏上显示出来这样就可以了。ds18B20的温度读取程序网上很多。数码管显示的就更多了。

数字温度计的 数字温度计控制系统

基于数字温度传感器的数字温度计的汇编语言程序。 用c很简单,FILE NAME:DS18B20.cCHIP TYPE:ATMEGA16CLOCK FREQUENCY:8MHZIDE:VSMStudioCOMPILER:AVR-GCCTIME:September 2010includeincludedefine uchar unsigned chardefine uint unsigned intdefine BUS PORTCLow level port/pin definitionsdefine sbit(x,PORT)(PORT)|=(1)define cbit(x,PORT)(PORT)&~(1)define pin(x,PIN)(PIN)&(1)Pins definitiondefine s_digit1 sbit(5,PORTC)define c_digit1 cbit(5,PORTC)define s_digit2 sbit(4,PORTC)define c_digit2 cbit(4,PORTC)define out PORTCdefine DQ_IN DDRA&~(1)define DQ_OUT DDRA|=(1)define S_DQ sbit(7,PORTA)define C_DQ cbit(7,PORTA)define DQ pin(7,PINA)Function Prototypesvoid init_ds18b20(void);uchar readbyte(void);void writecommand(uchar);uchar readtemp(void);uchar a,b,tt;Main programint main(void){ uchar i=0,temp;Initialize Stack PointerSPL=0x54;SPH=0x04;Configure port pinsDDRC=0xff;DDRA=0xff;while(1){ temp=readtemp();for(i=0;i;i+)/10 measures{/output the unitsout=(temp/10)&0x0f;s_digit1;c_digit2;delay_ms(5);output the tens。

数字温度计的 数字温度计控制系统

数字温度计的 http://www.docin.com/p-67662762.html看下这个!

数字温度计是怎样测定温度的

随机阅读

qrcode
访问手机版