-
DS18B20数字温度传感器实验
实验器材:
探索者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来指示程序正在运行。(Experimental equipment:
Explorer STM32F4 development board
Objective:
Learn the use of DS18B20 digital temperature sensor.
Hardware resources:
1, DS0 (connected to PF9)
2, serial port 1 (baud rate: 115200, PA9/PA10 connection on board USB to serial port chip CH340).
3 inch TFTLCD ALIENTEK, 2.8/3.5/4.3/7 module (via FSMC driver, FSMC_NE4 LCD chip select /A6 RS)
4, one of the DS18B20 sensors (attached to PG9).
Experimental phenomena:
This experiment first detects whether there is DS18B20 when starting up. If not, it prompts errors. Only after the detection of DS18B20 did it begin
Read the temperature and display it on LCD. If DS18B20 is found, the program reads data once every 100ms or so and displays the temperature at LCD.
On. Similarly, we also use DS0 to indicate that the program is running.)
- 2018-04-06 15:54:39下载
- 积分:1
-
matlab求解不等式方程组
说明: 关于用matlab求解不等式方程组的一个简单的例子(A simple example of solving inequalities with matlab)
- 2020-12-06 14:19:21下载
- 积分:1
-
mathematica
中国科学院研究生院老师的PPT,对于初学mathematica的人来说,可以借鉴下,了解mathematica的主要功能(Chinese Academy of Sciences, Graduate School of the teacher s PPT, beginner mathematica for people who can draw on, the understanding of the main functions of mathematica)
- 2008-12-14 15:11:06下载
- 积分:1
-
community-3.2
说明: 思想用户登录注册帖子发布功能
redis优化性能
数据库表设计(Thought user login registration post publishing function
Redis optimizes performance
Database table design)
- 2020-11-03 16:52:43下载
- 积分:1
-
coreincwfwfw
说明: #include "Rect2.hpp"
#include "String.hpp"
#include "Transform2D.hpp"
#include "Vector2.hpp"
#include
namespace godot {
#ifndef MAX
- 2020-06-19 15:00:01下载
- 积分:1
-
PSO算法
说明: 粒子群算法,也称粒子群优化算法或鸟群觅食算法(Particle Swarm Optimization),缩写为 PSO, 是由J. Kennedy和R. C. Eberhart等开发的一种新的进化算法(Evolutionary Algorithm - EA)。PSO 算法属于进化算法的一种,和模拟退火算法相似,它也是从随机解出发,通过迭代寻找最优解,它也是通过适应度来评价解的品质,但它比遗传算法规则更为简单,它没有遗传算法的“交叉”(Crossover) 和“变异”(Mutation) 操作,它通过追随当前搜索到的最优值来寻找全局最优。这种算法以其实现容易、精度高、收敛快等优点引起了学术界的重视,并且在解决实际问题中展示了其优越性。粒子群算法是一种并行算法(Particle Swarm Optimization (PSO), also known as Particle Swarm Optimization (PSO), is a new evolutionary algorithm developed by J. Kennedy and R. C. Eberhart. PSO is a kind of evolutionary algorithm, which is similar to simulated annealing algorithm. It starts from random solution and searches for the best solution by iteration. It also evaluates the quality of solution by fitness. But it is simpler than genetic algorithm rules. It has no Crossover and Mutation operation of genetic algorithm. As a result, it searches for global optimum by following the optimal value currently searched. This algorithm has attracted the attention of academia for its advantages of easy implementation, high accuracy and fast convergence, and has shown its superiority in solving practical problems. Particle swarm optimization is a parallel algorithm)
- 2020-06-25 13:20:01下载
- 积分:1
-
1104032024-王银章 -多关键字排序
这是一个对于多关键字排序的程序源码。本程序主要从一下入手
1、 伪随机生成的数据包含语文、数学、英语三科成绩。总成绩为语文、数学、英语三科成绩的和。学号按成绩数组的下标赋值,生成学生成绩记录,将该记录保存到txt文档中
2、 从上面的txt文档中读取数据到一个二维数组中,以便对学生信息进行处理
3、 在总分排序好的情况下,给出排序的优先关系,根据优先关系由低位向高位逐个关键字进行排序。
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2023-05-16 13:50:02下载
- 积分:1
-
对数字设计工程师的要求,与考核。是一个简要的说明
对数字设计工程师的要求,与考核。是一个简要的说明-of digital design engineers, and assessment. A summary of the note
- 2022-03-12 15:51:04下载
- 积分:1
-
ERP SAP ABAP 通用增强查找方法,正常增强都可以找到。
ERP SAP ABAP 通用增强查找方法,正常增强都可以找到。-SAP ABAP common to find ways to enhance
- 2022-07-15 09:52:24下载
- 积分:1
-
Information content, if something wrong, please help to correct, a message to me...
资料内容中,如果有不妥之处,请帮忙更正,留言给我,谢谢合作-Information content, if something wrong, please help to correct, a message to me, thank co-operation
- 2022-01-26 05:32:29下载
- 积分:1