本設(shè)計
基于?STM32大棚DHT11溫濕度監(jiān)測protues仿真設(shè)計
資料包含:程序+仿真+原理圖+PCB+講解視頻(具體看下文資料清單)
原理圖:Altium Designer
仿真圖:protues 8.9
程序編譯器:keil 5
設(shè)計編號:C0032
主要功能:
1.LCD1602液晶實時顯示DHT11溫度和濕度值;
2.具有溫濕度超上限閾值報警功能;
3.溫濕度上限值閾值可通過按鍵調(diào)節(jié)。
仿真圖(提供源文件):
電路圖(提供源文件):
PCB(提供源文件):
程序(提供源文件源碼):
以下為部分程序,完整程序可在下載鏈接獲取:
int main(void) { /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* Configure the system clock */ SystemClock_Config(); delay_init(10); //初始化延時函數(shù) TIM3_Init(2400-1, 72-1); // 10ms Key_Init(); Beep_Init(); LCD_Init(); DHT11_Init(); while(1) { if(DHT11_Read_TempAndHumidity(&DHT11_Data) == SUCCESS) { temp_table[3] = DHT11_Data.temp_int / 10 + 0x30; temp_table[4] = DHT11_Data.temp_int % 10 + 0x30; temp_table[5] = 'c'; humi_table[3] = DHT11_Data.humi_int / 10 + 0x30; humi_table[4] = DHT11_Data.humi_int % 10 + 0x30; tMax_table[3] = temp_max / 10 + 0x30; tMax_table[4] = temp_max % 10 + 0x30; tMax_table[5] = 'c'; hMax_table[3] = humi_max / 10 + 0x30; hMax_table[4] = humi_max % 10 + 0x30; LCD_write_string(0, 0, (char*)temp_table); LCD_write_string(8, 0, (char*)humi_table); LCD_write_string(0, 1, (char*)tMax_table); LCD_write_string(8, 1, (char*)hMax_table); } if(DHT11_Data.temp_int >= temp_max || DHT11_Data.humi_int >= humi_max) { LED2_ON(); BEEP_ON(); } else { LED2_OF(); BEEP_OF(); } delay_ms(500); } }
審核編輯:湯梓紅
-
STM32
+關(guān)注
關(guān)注
2289文章
11011瀏覽量
362277 -
仿真設(shè)計
+關(guān)注
關(guān)注
3文章
97瀏覽量
17042 -
Protues
+關(guān)注
關(guān)注
41文章
183瀏覽量
72037 -
溫濕度監(jiān)測
+關(guān)注
關(guān)注
0文章
48瀏覽量
8624
原文標題:STM32大棚DHT11溫濕度監(jiān)測報警仿真設(shè)計(程序+仿真+原理圖+PCB+講解視頻)
文章出處:【微信號:嘉盛單片機,微信公眾號:嘉盛單片機】歡迎添加關(guān)注!文章轉(zhuǎn)載請注明出處。
發(fā)布評論請先 登錄
STM32+DHT11監(jiān)測環(huán)境的溫濕度

基于arduino的dht11溫濕度傳感器的使用

【原創(chuàng)】DHT11傳感器溫濕度監(jiān)測系統(tǒng)畢設(shè),論文、代碼、原理圖和仿真介紹
DHT11數(shù)字式溫濕度傳感器的應(yīng)用性研究
DHT11溫濕度傳感器
如何去實現(xiàn)一種基于STM32和DHT11的溫濕度測量和報警系統(tǒng)
如何通過NodeMCU和DHT11收集溫濕度
溫濕度DHT11資料
stm32獲取DHT11模塊溫濕度數(shù)據(jù)原理解析

STM32實例——基于STM32開發(fā)板實現(xiàn)傳感數(shù)據(jù)采集-DHT11溫濕度采集

Stm32 DHT11

使用STM32F103ZET6采集DHT11溫濕度串口顯示

評論