本設計
基于?STM32大棚DHT11溫濕度監測protues仿真設計
資料包含:程序+仿真+原理圖+PCB+講解視頻(具體看下文資料清單)
原理圖:Altium Designer
仿真圖:protues 8.9
程序編譯器:keil 5
設計編號:C0032
主要功能:
1.LCD1602液晶實時顯示DHT11溫度和濕度值;
2.具有溫濕度超上限閾值報警功能;
3.溫濕度上限值閾值可通過按鍵調節。
仿真圖(提供源文件):
電路圖(提供源文件):
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); //初始化延時函數 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
+關注
關注
2283文章
10986瀏覽量
361139 -
仿真設計
+關注
關注
3文章
97瀏覽量
17007 -
Protues
+關注
關注
41文章
183瀏覽量
71826 -
溫濕度監測
+關注
關注
0文章
47瀏覽量
8615
原文標題:STM32大棚DHT11溫濕度監測報警仿真設計(程序+仿真+原理圖+PCB+講解視頻)
文章出處:【微信號:嘉盛單片機,微信公眾號:嘉盛單片機】歡迎添加關注!文章轉載請注明出處。
發布評論請先 登錄
相關推薦
基于arduino的dht11溫濕度傳感器的使用

【原創】DHT11傳感器溫濕度監測系統畢設,論文、代碼、原理圖和仿真介紹
DHT11數字式溫濕度傳感器的應用性研究
基于STM32開發板實現傳感數據采集-DHT11溫濕度采集
DHT11溫濕度傳感器
如何去實現一種基于STM32和DHT11的溫濕度測量和報警系統
如何通過NodeMCU和DHT11收集溫濕度
Stm32 DHT11

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

評論