--> Project V - 17. Reads the value data from IR Remote (Arduino Based) | basic arduino tutorial

Thursday, August 10, 2017

Project V - 17. Reads the value data from IR Remote (Arduino Based)

| Thursday, August 10, 2017
Reads the value data from IR Remote




The IR remote control works by sending infrared waves to electronic devices. The ir remote control used in this project is with Xinda IR Remote type. You can also use with another type. The result of reading the data will be displayed on the LCD in the form of Hexa data, and each button input on the remote has different Hexa values.

Hardware Requirement
  • Xinda IR Remoe
  • Arduino Uno
  • 16 x 2 LCD Module
  • Power supply +5 Volt
  • Jumper

Xinda IR Remote | Source


Block Diagram



Schematic

Arduino - LCD Wiring



Arduino - Xinda IR Remote Wiring



Source Code/Sketch

#include <IRremote.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
int IR_PIN = 8;
IRrecv irrecv(IR_PIN);
decode_results results;
void setup(){
lcd.begin(16, 2);
irrecv.enableIRIn();
}
void loop(){
lcd.setCursor(0,0);
lcd.print("BacaData IRremot");
lcd.setCursor(0,1);
lcd.print("Data:");
if (irrecv.decode(&results)) {
irrecv.resume();
if(results.value != 0xFFFFFFFF){
lcd.print(results.value,HEX);
lcd.print(" ");
}
}
}

How it Works

1. Connect the Arduino with Peripherals needed
2. Plug in the Power Source on the device
3. Compile and upload the script program above to your arduino

4. First initial LCD display 



Reads IR Remote
Data : FFA25D

5. Press the button on the remote, Power button is pressed then on the LCD displays


6. Results of reading data on the remote




Video for Project V - 17. Reads the value data from IR Remote (Arduino Based)







Required File


Related Posts

No comments:

Post a Comment