รหัสสินค้า | AS10491 |
หมวดหมู่ | วัดสภาพแวดล้อมและแก๊ส Environmental / Gas |
ราคา | 2,725.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
Pin Outs
Label | Name | Function |
---|---|---|
1 | VCC | Positive Terminal |
2 | GND | Negative Terminal |
3 | SCL | I2C Clock Pin |
4 | SDA | I2C Data Pin |
IR Thermometer Sensor-MLX90614 Interface Instruction
Requirements
Hardware
Connection Diagram
Sample Code -1
Library Files and Examples. About Library installation.
/*!
* @file getData.ino
* @brief this demo demonstrates how to put the sensor enter/exit sleep mode and get temperature data measured by sensor
* @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
* @license The MIT License (MIT)
* @author [qsjhyy](yihuan.huang@dfrobot.com)
* @version V1.0
* @date 2021-08-09
* @url https://github.com/DFRobot/DFRobot_MLX90614
*/
#include <DFRobot_MLX90614.h>
DFRobot_MLX90614_IIC sensor; // instantiate an object to drive our sensor
void setup()
{
Serial.begin(115200);
// initialize the sensor
while( NO_ERR != sensor.begin() ){
Serial.println("Communication with device failed, please check connection");
delay(3000);
}
Serial.println("Begin ok!");
/**
* adjust sensor sleep mode
* mode select to enter or exit sleep mode, it's enter sleep mode by default
* true is to enter sleep mode
* false is to exit sleep mode (automatically exit sleep mode after power down and restart)
*/
sensor.enterSleepMode();
delay(50);
sensor.enterSleepMode(false);
delay(200);
}
void loop()
{
/**
* get ambient temperature, unit is Celsius
* return value range: -40.01 °C ~ 85 °C
*/
float ambientTemp = sensor.getAmbientTempCelsius();
/**
* get temperature of object 1, unit is Celsius
* return value range:
* @n -70.01 °C ~ 270 °C(MLX90614ESF-DCI)
* @n -70.01 °C ~ 380 °C(MLX90614ESF-DCC)
*/
float objectTemp = sensor.getObjectTempCelsius();
// print measured data in Celsius
Serial.print("Ambient celsius : "); Serial.print(ambientTemp); Serial.println(" °C");
Serial.print("Object celsius : "); Serial.print(objectTemp); Serial.println(" °C");
// print measured data in Fahrenheit
Serial.print("Ambient fahrenheit : "); Serial.print(ambientTemp*9/5 + 32); Serial.println(" F");
Serial.print("Object fahrenheit : "); Serial.print(objectTemp*9/5 + 32); Serial.println(" F");
Serial.println();
delay(500);
}
Footer
Sample Code -2
/*!
* @file setSensor.ino
* @brief this demo is to set the emissivity calibration coefficient, and set measurement parameters, including IIR, FIR and measurement objects
* @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
* @license The MIT License (MIT)
* @author [qsjhyy](yihuan.huang@dfrobot.com)
* @version V1.0
* @date 2021-08-09
* @url https://github.com/DFRobot/DFRobot_MLX90614
*/
#include <DFRobot_MLX90614.h>
#define MLX90614_I2C_ADDR 0x5A // mlx9614 default I2C communication address
DFRobot_MLX90614_I2C sensor(MLX90614_I2C_ADDR, &Wire); // instantiate an object to drive the sensor
void setup()
{
Serial.begin(115200);
// initialize the sensor
while( NO_ERR != sensor.begin() ){
Serial.println("Communication with device failed, please check connection");
delay(3000);
}
Serial.println("Begin ok!");
/**
* set the emissivity calibration coefficient, users need to calculate the ratio of the temperature measured before the sensor changes emissivity to the true temperature of the object,
* upload the ratio to the api as a parameter, and the deviation of the object absolute temperature measured by the sensor will be lower
* calibrationValue new calibration coefficient, [0, 1]
*/
sensor.setEmissivityCorrectionCoefficient(1.0);
/**
* set I2C communication address, the setting takes effect after power down and restart
* addr new I2C communication address 7bit(0~127)
*/
sensor.setI2CAddress(0x5A);
/**
* set the measurement parameters, including IIR (Infinite Impulse Response Digital Filter) and FIR (Finite Impulse Response Digital Filter)
* IIRMode: eIIR100, eIIR80, eIIR67, eIIR57;
* FIRMode: eFIR128, eFIR256, eFIR512, eFIR1024;
*/
sensor.setMeasuredParameters(sensor.eIIR100, sensor.eFIR1024);
/**
* control the sensor sleep mode, must enter and exit the sleep mode once after the sensor is configured (equivalent to soft reset) to ensure the normal reading of the measured data
* mode select to enter or exit sleep mode, it's enter sleep mode by default
* true put the sensor to sleep
* false wake up the sensor (automatically exit sleep mode after power down and restart)
*/
sensor.enterSleepMode();
delay(50);
sensor.enterSleepMode(false);
delay(200);
}
void loop()
{
/**
* get ambient temperature, unit is Celsius
* return value range: -40.01 °C ~ 85 °C
*/
float ambientTemp = sensor.getAmbientTempCelsius();
/**
* get temperature of object 1, unit is Celsius
* return value range:
* @n -70.01 °C ~ 270 °C(MLX90614ESF-DCI)
* @n -70.01 °C ~ 380 °C(MLX90614ESF-DCC)
*/
float objectTemp = sensor.getObjectTempCelsius();
// print measured data in Celsius, unit is Celsius (°C)
Serial.print("Ambient celsius : "); Serial.print(ambientTemp); Serial.println(" °C");
Serial.print("Object celsius : "); Serial.print(objectTemp); Serial.println(" °C");
// print measured data in Fahrenheit, unit is Fahrenheit (F)
Serial.print("Ambient fahrenheit : "); Serial.print(ambientTemp*9/5 + 32); Serial.println(" F");
Serial.print("Object fahrenheit : "); Serial.print(objectTemp*9/5 + 32); Serial.println(" F");
Serial.println();
delay(500);
}
Measurement Method
All the measured points must be in the FOV
IR Thermometer Sensor-MLX90614 Test Result
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,375,394 ครั้ง |
ผู้ชมทั้งหมด | 5,878,472 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 5 ก.ย. 2568 |