Rohan Barnwal
Published

Cheap Infrared Gun Using Arduino Uno

Hi, my name is Rohan Barnwal and in this project, I taught you how you can create your own Cheap Infrared Gun Using Arduino Uno

BeginnerFull instructions provided4,439
Cheap Infrared Gun Using Arduino Uno

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Mlx90614
×1
Standard LCD - 16x2 White on Blue
Adafruit Standard LCD - 16x2 White on Blue
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Single Turn Potentiometer- 10k ohms
Single Turn Potentiometer- 10k ohms
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

cad

Schematics

Connection

Connection of MLX90614:-
VCC- +5v
GND- Gnd
SCL - A4
SDA- A5
or either you can connect it to SCL pin and Sda pin

Code

Code

Arduino
Ambient means your temp include the temp. of surrounding.
#include <Wire.h>
#include <Adafruit_MLX90614.h>
#include <LiquidCrystal.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
LiquidCrystal lcd(12,11,5,4,3,2);
void setup() {
  Serial.begin(9600);
lcd.begin(16,2);
  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.print("Ambient = "); Serial.print(mlx.readAmbientTempF()); 
  Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");
lcd.setCursor(0,0);
lcd.print("TempA:- ");
lcd.print(mlx.readAmbientTempC());lcd.print("*C");
lcd.setCursor(0,1);
lcd.print("TempO:- ");
lcd.print(mlx.readObjectTempC());lcd.print("*C");

  Serial.println();
  
}

Credits

Rohan Barnwal
22 projects • 32 followers
Rohan Barnwal - maker, hacker, tech enthusiast. I explore new tech & find innovative solutions. See my projects on hackster.io!
Contact

Comments

Please log in or sign up to comment.