Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Tharidu Imesh
Published

Contactless Temperature Measure

Contactless temperature measure with arduino and Blynk. io

BeginnerProtip114
Contactless Temperature Measure

Things used in this project

Story

Read more

Schematics

Diagram

Code

Arduino Code

Arduino
No preview (download only).

Contactless_Temp_with_Blynk.ino

Arduino
#define BLYNK_TEMPLATE_ID "TMPL6NT2YQEQD"
#define BLYNK_TEMPLATE_NAME "Temperature"
#define BLYNK_AUTH_TOKEN "mNcqDjfl8ofYsMBr1nsm6FOoVqn_z_74"

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h>
#include <Adafruit_MLX90614.h>

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

char ssid[] = "UdithaL Y5p";
char pass[] = "1994uditha";

double temp_amb;
double temp_obj;
double calibration = 2.36;

void setup(){
  Serial.begin(115200);

  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
  mlx.begin();
  Serial.println("Temperature Sensor MLX90614");
}

void loop(){
  Blynk.run();
  temp_amb = mlx.readAmbientTempC();
  temp_obj = mlx.readObjectTempC();

  Serial.print("Room Temp = ");
  Serial.println(temp_amb);
  Serial.print("Object temp = ");
  Serial.println(temp_obj);
  
  Blynk.virtualWrite(V1, temp_amb);
//  Blynk.virtualWrite(V2, temp_obj);
  Blynk.virtualWrite(V2, (temp_obj + calibration));
  
  delay(1000);
}

Credits

Tharidu Imesh
4 projects • 2 followers
I am a student, aboslutely crazy about electeonics, IOT
Contact

Comments

Please log in or sign up to comment.