Rafi Fabiodirakit community
Published

Temperature Meter with Sensor Infrared MLX90614 -B24

The "Temperature meter with infrared sensor MLX90614" project is an Internet of Things (IoT) project, which is used to measure temperature.

BeginnerFull instructions provided74
Temperature Meter with Sensor Infrared MLX90614 -B24

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Breadboard (generic)
Breadboard (generic)
×1
sensor infrared mlx90614
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Scematic for Temperatur meter with sensor infrared MLX90614

Code

Temperatur meter with sensor infrared MLX90614

Arduino
if you want to change the delay then go to line 19 and 41, which represent ms or milisecond
#include <Wire.h>
#include <Adafruit_MLX90614.h>
#include <TM1637Display.h>
#define CLK 2
#define DIO 3
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
TM1637Display display = TM1637Display(CLK, DIO);
const uint8_t celcius[] = 
{                                 
  SEG_A | SEG_E | SEG_F | SEG_D
};
#define f mlx.readObjectTempF()
#define c mlx.readObjectTempC()

void setup() {
  Serial.begin(9600);
  mlx.begin();
  display.clear();
  delay(2000);
}

void loop() {
  display.setBrightness(7);
  Serial.println("Temperature from MLX90614:");
  Serial.print("Ambient:      ");
  Serial.print(mlx.readAmbientTempF());
  Serial.println(" °F");
  Serial.print("Contactless: ");
  Serial.print(f);
  Serial.println(" °F");
  Serial.println();
  Serial.print("Ambient:      ");
  Serial.print(mlx.readAmbientTempC());
  Serial.println(" °C");
  Serial.print("Contactless: ");
  Serial.print(c);
  Serial.println(" °C");
  Serial.println();
  display.showNumberDec(c, false, 3, 0);
  display.setSegments(celcius, 1, 3);
  delay(2000);
}

Credits

Rafi Fabio
1 project • 1 follower
dirakit community
23 projects • 109 followers
Indonesia IoT Community by Informatics UIN Sunan Kalijaga Yogyakarta

Comments