当前位置:网站首页>Arduino D1----Mlx90614红外温度传感器接线和安装包
Arduino D1----Mlx90614红外温度传感器接线和安装包
2022-08-02 03:27:00 【weixin_41779718】
Arduino IDE 安装插件
1.找到项目 -> 加载库 -> 管理库
2. 搜索 MLX90614安装Adafruit MLX90614 Library
3. 检查MLX90614库是否安装上
Mlx90614模块如下图所示广泛用于人体红外测温中,比如常见的额温枪等,具有响应速度快,精度高等特点,通过IIC接口和控制器连接,同一IIC总线上可挂载多个设备。
接线
#include <Wire.h>
#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void setup() {
Serial.begin(9600);
pinMode(D4, OUTPUT);
Serial.println("Adafruit MLX90614 test");
mlx.begin();
}
void loop() {
digitalWrite(D4, HIGH);
delay(1000);
digitalWrite(D4, LOW);
delay(1000);
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());
Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF());
Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");
Serial.println();
}
边栏推荐
- The shooting range that web penetration must play - DVWA shooting range 1 (centos8.2+phpstudy installation environment)
- The learning path of a network security mouse - the basic use of nmap
- Kotlin - 标准函数(with、run和apply)
- ES6 array extension methods map, filter, reduce, fill and array traversal for…in for…of arr.forEach
- 财产清查概述、 全面清查的情况、局部清查的情况、财产清查的方法、财产清查结果的处理
- php中魔术方法详解
- 清理c盘爆满告急,C盘清理
- CTF introductory notes ping
- gradle脚本中groovy语法讲解
- Go Build报错汇总(持续更新)
猜你喜欢
成本会计的概念、产品成本核算的要求、产品成本核算的对象与成本项目、产品成本的归集和分配(可能考判断)、产品成本计算方法 (三种:产品的品种(品种法),批次(分批法),步骤(分步法))
C language uses stack to calculate infix expressions
WeChat applet development video loading: [Rendering layer network layer error] Failed to load media
备战金九银十:Android 高级架构师的学习路线及面试题分享
How to log in to Alibaba Cloud server using the admin account
How to determine the direction based on two coordinate points on the map
重点考:从债劵的角度来看交易性金融资产
v-bind usage: class dynamic binding object array style style and function method
Offensive and defensive world - novice MISC area 1-12
修复APP的BUG,热修复的知识点和大厂的相关资料汇总
随机推荐
PHP hash加密与解密
【泰山众筹】模式为什么一直都这么火热?是有原因的
php laravel框架生成二维码
机器学习1
svg图片实战:自定义view打造中国地图
关于我的数学建模~
政府会计的概念、政府会计标准体系、政府会计的特点(会形成小考点)、政府会计要素及其确认和计量、政府预算会计要素、政府财务会计要素
uniapp | Compilation error after updating with npm update
File upload vulnerability
SQL注入(6)
不懂“赚钱逻辑”,你永远都是社会最底层(广告电商)
php的curl函数模拟post数据提交,速度非常慢
Anaconda报错:An unexpected error has occurred. Conda has prepared the above report 解决办法
ReentrantLock的使用和原理详解
VIKINGS: 1 vulnhub walkthrough
元宇宙是一个炒作的科幻概念,还是互联网发展的下半场?
Kotlin - 静态方法
centos8 安装搭建php环境
解密:链动2+1的商业模式
Eric target penetration test complete tutorial