登录
首页 » c » source code for DHT22 Digital temperature and humidity sensor.

source code for DHT22 Digital temperature and humidity sensor.

于 2022-05-27 发布 文件大小:2.62 kB
0 131
下载积分: 2 下载次数: 1

代码说明:

此代码属于DHT22数字湿度和温度传感器。用一根电线就可以了接口.库是为stm32编写的,但可以用于任何微控制器。为了使用此传感器,我们使用了1个GPIO引脚和1个16位计时器。第一步是:在DhtConfig和DhtADir函数中配置GPIO和计时器。然后利用DhtReading函数,可以读出16位串行温度和16位串行湿度以及8位校验和。利用TemperatureCalculate函数,读出的数据可以转换为温度和湿度的浮动值。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • STM32奋斗板-LED闪烁
    适用MINI板的基础例程 STM32奋斗板-LED闪烁(Basic routines applicable to MINI boards)
    2020-06-17 08:20:02下载
    积分:1
  • sound_light_ala
    说明:  “滴滴…”声光报警的proteus仿真电路及C语言程序设计,已经通过调试验证,请放心使用(&quot Bit ...&quot sound and light alarm proteus simulation circuit and the C programming language, has been verified through debugging, please be assured use)
    2011-03-25 11:13:13下载
    积分:1
  • LCD屏
    有温湿度,有害气体,光照检测,通过触摸屏显示出来,并且可以切换界面,播放图片(Detection of temperature, humidity, photosensitivity and harmful gases)
    2020-06-21 07:20:01下载
    积分:1
  • Crazyflie飞控源代码
    Crazyflie飞控源代码,crazyflie飞控的源代码,包含m3和m4版的源码,该飞控代码基于freertos实时系统,具有较好的扩展性和可移植性! 文件夹 内容 init 包括main函数,我们也是从这里开始分析 config 配置文件 drivers 硬件驱动层
    2023-07-11 15:45:03下载
    积分:1
  • youxuliebiaocharu
    有序列表的插入,每次添加新数据时,保证整个列表的有序性(Into an ordered list, every time you add new data, to ensure the orderly nature of the entire list)
    2010-09-28 18:30:57下载
    积分:1
  • Thejammingofspreadspectrumcommunicationssystemandt
    西电毕业论文,文章详细的阐述了直扩原理并且进行了仿真。扩展频谱技术有多种基本实现方式,本文主要介绍的是直接序列 扩频技术,特别针对二进制的 PSK调制解调技术,直接序列扩频系统的抗干 扰能力分析与直接序列扩频系统的同步方法,并进行了相关仿真分析。(Spread spectrum communications has many basic manners of implementation, this paper main introduces the direct sequence spread spectrum technology. The technology of digital signals’ modulation and demodulation, aiming at phase shift keying analyzing the capacity of resistance to anti-jamming of direct sequence spread spectrum system(DSSS) and the method of synchronization in direct sequence spread spectrum system base on the DSSS of the matlab’s simulation.)
    2010-08-22 22:30:16下载
    积分:1
  • Description : Let numbered 1, 2, ..., n (NGT; 0) clockwise direction by individu...
    描述:设编号为1,2,…,n(n>0)个人按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报到m时停止报数,抱m的人出列,从他在顺时针方向上的下一个人起重新自1起顺序报数;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。 .算法思想: Jeseph函数是实现问题要求的主要函数,其算法思想是:从1至m对带头结点的单循环链表循环计数,到m时,输出该结点的编号值,,再从该结点的下一个结点起重新自1起循环计数;如此下去,直到单循环链表空时循环过程结束。 -Description : Let numbered 1, 2, ..., n (NGT; 0) clockwise direction by individuals sitting around a circle, each holding a positive integer code. At the beginning of a given arbitrary reported few limits on m, started from the first clockwise direction from the starting sequence reported a few, when they report back m reported few, hold out the m out from the clockwise direction in the next personal re-order starting from a newspaper; This situation continues until all people so far shown up. Asked to design a simulation of this process, and give out the number of people out sequence. . Algorithm thinking : Jeseph function is to seek to achieve the main function of the algorithm is thinking : m f
    2023-04-25 22:10:03下载
    积分:1
  • EEPROM_24C02
    用C语言编写的温度采集程序,可以用于C51单片机的开发(Temperature using C language acquisition program, can be used for C51 MCU development)
    2013-12-17 19:56:26下载
    积分:1
  • fruit-recognition-master
    说明:  运用了OpenCV、C++、水果识别、Qt界面、颜色识别、边缘检测、图像处理 ,能够实现对不同种类水果进行识别分类。(Using OpenCV, C++, fruit recognition, Qt interface, color recognition, edge detection, and image processing, it is possible to identify and classify different types of fruits.)
    2021-04-16 10:58:53下载
    积分:1
  • MTK_LCD_driver_porting
    LCM Driver Porting 􀂄 Hardware Architecture 􀂄 LCDsoftware Architecture 􀂄 Files related to LCD driver 􀂄 LCM driver porting procedure 􀂄 CASE STUDY 􀂄 Reference(􀂄 Hardware Architecture 􀂄 LCDsoftware Architecture 􀂄 Files related to LCD driver 􀂄 LCM driver porting procedure 􀂄 CASE STUDY 􀂄 Reference)
    2009-06-15 02:05:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载