登录
首页 » Windows开发 » DS18B20数字温度传感器实验

DS18B20数字温度传感器实验

于 2022-04-10 发布 文件大小:3.93 MB
0 188
下载积分: 2 下载次数: 1

代码说明:

实验器材:探索者STM32F4开发板实验目的:学习DS18B20数字温度传感器的使用.硬件资源: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,DS18B20传感器一个(接在PG9上). 实验现象:本实验开机的时候先检测是否有DS18B20存在,如果没有,则提示错误。只有在检测到DS18B20之后才开始读取温度并显示在LCD上,如果发现了DS18B20,则程序每隔100ms左右读取一次数据,并把温度显示在LCD上。同样我们也是用DS0来指示程序正在运行。 注意事项: 1,4.3寸和7寸屏需要比较大电流,USB供电可能不足,请用外部电源适配器(推荐外接12V 1A电源).2,本例程在LCD_Init函数里面(在ILI93xx.c),用到了printf,如果不初始化串口1,将导致液晶无法显示!!  3,需自备DS18B20数字温度传感器一个,并插在开发板的U12位置(根据丝印插,平面朝内)  

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

发表评论

0 个回复

  • 一个小游戏
    请开发一个小游戏,要满足一下要求: 1.       在本游戏中用户会受到小动物的问候。 2.       2.游戏中的动物有猫和狗2种,每个动物都有名字和体重,同种类型的动物问候语一样,猫为“喵喵喵”,狗的问候语为“汪汪汪”。动物的名字随机生成。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-02-13 20:47:14下载
    积分:1
  • 内码转换,字符串处理以及格式化
        //TestUsageSetLocaleInC();    TestUsageSetLocaleInCPP();    //TestNSIAPIUsage();    //TestLocale();    //TestTimePut();    TestNarrowAndWide();字符串处理以及格式化
    2022-03-06 06:46:14下载
    积分:1
  • 汇编语言MASM输入一个二进制数转化十进制数输出
    汇编语言MASM输入一个二进制数转化十进制数输出-assembly language Multiple input into a binary decimal output
    2022-01-26 04:00:33下载
    积分:1
  • procedures have only mean of 0 and variance for a random number to produce the m...
    程序只产生均值为0,方差为1的随机数,要产生均值为E,方差为D的随机数,只要随机数*D+E就可以了。 高斯随机数程序还是带参数的,参数是用来描述正态分布的一个浮点数表。在执行程序时 ,先生成这个表(只做一次),而后就可以任意多次地执行高斯随机数产生程序了。 使用C是为了保证通用性,如果有人觉得麻烦,可以用C++做个类,把这些东西都封装进去 。 另外,如果有人有兴趣,也可以把它修改成任意形式分布的连续随机数产生程序,修改非 常简单,这里就不提示了。-procedures have only mean of 0 and variance for a random number to produce the mean E, D variance for the random number, as long as a few random E* D on it. Gaussian random process parameters or with the parameter is used to describe a normal distribution of the float table. In the implementation process, Mr. into the table (one-off), and you can repeatedly arbitrary implementation Gaussian random number generator proceedings. The use of C is to ensure commonality, if someone finds trouble, can be used to be a Class C, all these things into account Packaging. Also, if someone is interested, can you change the form of arbitrary distribution of continuous random number generator procedure is very simple changes, I will not be sacrificed as a result.
    2022-10-24 11:05:03下载
    积分:1
  • Very nice online bookstore system, to see themselves know. . . .
    很不错的网上书店系统,自己去看看就知道了-Very nice online bookstore system, to see themselves know. . . .
    2023-03-07 12:15:03下载
    积分:1
  • a print prepared by the labeling of procedures, simple and practical, active cod...
    一个DELPHI编写的打印标签的小程序,简单实用,有源代码,大家可以下载看看!-a print prepared by the labeling of procedures, simple and practical, active code, we can look at the download!
    2022-10-13 23:20:03下载
    积分:1
  • 实现文件上传到sql哦 看着是文件哦 这还是比较少见了拉
    实现文件上传到sql哦 看着是文件哦 这还是比较少见了拉 -achieve sql file uploads to be looked at the documents oh, oh this is relatively rare in the Rafah
    2022-01-26 03:46:58下载
    积分:1
  • 用VB编写的记事本,程序精简易懂,对VB练习文本框控件以及相关方法非常有用...
    用VB编写的记事本,程序精简易懂,对VB练习文本框控件以及相关方法非常有用-Written in Notepad using VB, procedures streamlined and understandable, to VB text box control, exercise and related method is very useful for
    2022-03-19 02:53:12下载
    积分:1
  • This specification defines the ARM
    This specification defines the ARM-specific features of Executable and Linking Format (ELF).
    2023-05-21 15:55:03下载
    积分:1
  • 这是计算CPU速度的小程序,很有意思的。
    这是计算CPU速度的小程序,很有意思的。-This the calculation speed of the CPU small program very interesting.
    2023-01-17 13:45:03下载
    积分:1
  • 696516资源总数
  • 106605会员总数
  • 12今日下载