下載手機(jī)汽配人

基于51單片機(jī)的溫度控制器

提問者:網(wǎng)友 2018-07-23
最佳回答
圖片為溫度控制電路圖。溫度到達(dá)上限時(shí)led燈亮,并停止對(duì)RT的加熱,溫度達(dá)到下限時(shí)led燈滅并開始對(duì)RT進(jìn)行加熱。A1和A2為uA741運(yùn)算放大器。引腳號(hào)在圖上已經(jīng)標(biāo)出。再給你一個(gè)單片機(jī)采集DS18B20溫度的程序,用四位數(shù)碼管顯示的。你把DS18B20接在RT附近就可以測(cè)試出RT的溫度,調(diào)節(jié)圖中的滑動(dòng)變阻器可改變溫度的上下限。這樣就能做到溫度控制了。 //安裝目錄下的EXE文件打開后可在電腦上顯示當(dāng)前溫度值 #include? #define?uchar?unsigned?char #define?uint?unsigned?int sbit?DS=P1^0;???????????//define?interface uint?temp;?????????????//?variable?of?temperature uchar?flag1;????????????//?sign?of?the?result?positive?or?negative //sbit?dula=P2^6; //sbit?wela=P2^7; //unsigned?char?code?table2[]={0x3f,0x30,0x5b,0x4f,0x66,0x6d,0x7d, //???????????????????????0x07,0x7f,0x67/*,0x77,0x7c,0x39,0x5e,0x79,0x71*/}; //unsigned?char?code?table1[]={0xbf,0xb0,0xdb,0xcf,0xe6,0xed,0xfd, //????????????????????????0x87,0xff,0xe7};?? //unsigned?char?code?table2[]={0x40,0x5e,0x24,0x21,0x13,0x09,0x08, ??//??????????????????????0x63,0x00,0x03/*,0x77,0x7c,0x39,0x5e,0x79,0x71*/}; //unsigned?char?code?table1[]={0xc0,0xde,0xa4,0xa1,0x93,0x89,0x88, ?//???????????????????????0xe7,0x8f,0x87}; unsigned?char?code?table5[]={0x77,0x22,
回答者:網(wǎng)友
產(chǎn)品精選
在移動(dòng)端查看: 基于51單片機(jī)的溫度控制器
搜索問答
還沒有汽配人賬號(hào)?立即注冊(cè)

我要提問

汽配限時(shí)折扣

本頁是網(wǎng)友提供的關(guān)于“基于51單片機(jī)的溫度控制器”的解答,僅供您參考,汽配人網(wǎng)不保證該解答的準(zhǔn)確性。