Lithium ION
Published © GPL3+

Non-Contact temperature sensor with display

An Arduino based small project, in which 12C IR non contact sensor and 4 digit display is interfaced together to make a minimal temp. meter.

IntermediateFull instructions provided24 minutes97
Non-Contact temperature sensor with display

Things used in this project

Hardware components

NCIR Unit Contactless Temperature Sensor Module (MLX90614)
M5Stack NCIR Unit Contactless Temperature Sensor Module (MLX90614)
×1
Arduino Nano R3
Arduino Nano R3
×1
SparkFun 7-Segment Serial Display - Red
SparkFun 7-Segment Serial Display - Red
×1

Software apps and online services

PCBWAY
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

library Tm1637

Gerber files

Schematics

circuit pdf

Code

Arduino Code

Arduino
#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(1000);
}

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(1000);
}

Credits

Lithium ION

Lithium ION

24 projects • 7 followers
A passionate electronics DIY boy. Currently improving in Embedded systems, soldering and programming.

Comments