Rohan Barnwal
Published

This Device Can Help Us In Stop Spreading Of COVID 19

Hi, my name is Rohan Barnwal welcome back in this project I teach you how you can create a device which help us in stop spreading of Corona

BeginnerFull instructions provided35
This Device Can Help Us In Stop Spreading Of COVID 19

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
mlx90614
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Blynk
Blynk

Story

Read more

Schematics

Connection

Code

Code

Arduino
#include <Wire.h>
#include <Adafruit_MLX90614.h>
//Created By Rohan Barnwal                                                                                                                                                                                                                                                                                                                    //Created By Rohan Barnwal
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
char auth[] = ""; //Auth code sent via Email
char ssid[] = ""; //Wifi name
char pass[] = "";  //Wifi Password
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void notifyOnThings(){
  if(mlx.readObjectTempC()< 37 && mlx.readObjectTempC()>33)
  { 
    digitalWrite(D4,HIGH);
    digitalWrite(D3,LOW);
     Blynk.notify( "कोई दिक्कत नहीं है" );
  
      
  }

 
  else if(mlx.readObjectTempC()>38) {
       digitalWrite(D3,HIGH);
       digitalWrite(D4,LOW);
    Blynk.notify("सतर्कता बनाए रखे");
        
  
  }
  else{
    digitalWrite(D4,LOW);
    digitalWrite(D3,LOW);
  }
 

}

void setup() {
  Serial.begin(9600);
Serial.begin(9600);
Blynk.begin(auth, ssid, pass); 
pinMode(D4,OUTPUT);
pinMode(D3,OUTPUT);
timer.setInterval(50L,notifyOnThings); 
  Serial.println("Adafruit MLX90614 test");  

  mlx.begin();  
}

void loop() {
  Serial.print("Ambient = "); 
  Serial.print(mlx.readAmbientTempC()); 
  Serial.print("*C\tObject = "); 
  Serial.print(mlx.readObjectTempC()); Serial.println("*C");


  Serial.println();
  
   Blynk.run();
  timer.run();
}

//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal
//Created By Rohan Barnwal

  

Credits

Rohan Barnwal

Rohan Barnwal

8 projects • 7 followers

Comments