实验31 DHT11数字温湿度传感器实验

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:4422KB
下载次数:5
上传日期:2018-03-14 23:59:48
上 传 者尘世
说明:  使用STM32F4来读取DHT11数字温湿度传感器,从而得到环境温度和湿度等信息,并把从温湿度值显示在TFTLCD模块上。
(The DHT11 digital temperature and humidity sensor is read by STM32F4, and the information of ambient temperature and humidity is obtained, and the temperature and humidity values are displayed on the TFTLCD module.)

文件列表:
实验31 DHT11数字温湿度传感器实验 (0, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\CORE (0, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\CORE\core_cm4.h (109142, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\CORE\core_cm4_simd.h (22735, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\CORE\core_cmFunc.h (17146, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\CORE\core_cmInstr.h (20513, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\CORE\startup_stm32f40_41xxx.s (29605, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB (0, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc (0, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\misc.h (6924, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_adc.h (32880, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_can.h (27318, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_crc.h (2416, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_cryp.h (14481, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_dac.h (14946, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_dbgmcu.h (4296, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_dcmi.h (12977, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_dma.h (28882, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_dma2d.h (19692, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_exti.h (8012, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_flash.h (24467, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_flash_ramfunc.h (3275, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_fmc.h (44924, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_fsmc.h (27181, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_gpio.h (23548, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_hash.h (10084, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_i2c.h (31939, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_iwdg.h (4323, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_ltdc.h (21191, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_pwr.h (7728, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_rcc.h (30063, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_rng.h (3958, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_rtc.h (40546, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_sai.h (25470, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_sdio.h (22777, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_spi.h (21178, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_syscfg.h (8974, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_tim.h (51689, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_usart.h (17935, 2016-04-15)
实验31 DHT11数字温湿度传感器实验\FWLIB\inc\stm32f4xx_wwdg.h (3542, 2016-04-15)
... ...

实验器材: 探索者STM32F4开发板 实验目的: 学习DHT11数字温湿度传感器的使用. 硬件资源: 1,DS0(连接在PF9) 2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面) 3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过FSMC驱动,FSMC_NE4接LCD片选/A6接RS) 4,DHT11传感器一个(接在PG9上). 实验现象: 本实验开机的时候先检测是否有DHT11存在,如果没有,则提示错误。只有在检测到DHT11之后才开始读取温湿 度值,并显示在LCD上,如果发现了DHT11,则程序每隔100ms左右读取一次数据,并把温湿度显示在LCD上。同 样我们也是用DS0来指示程序正在运行。 注意事项: 1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源). 2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!! 3,需自备DHT11数字温湿度传感器一个,并插在开发板的U12位置(根据丝印插,网面朝外) 正点原子@ALIENTEK 2014-10-25 广州市星翼电子科技有限公司 电话:020-38271790 传真:020-36773971 购买:http://shop62103354.taobao.com http://shop62057469.taobao.com 公司网站:www.alientek.com 技术论坛:www.openedv.com

近期下载者

相关文件


收藏者