How to Decode IR Remote
Download link for IR Library for anduino
https://drive.google.com/drive/folders/1boJiDt8rNeNv3NiqOCe-mB4wE7X_2Sas?usp=sharing
Blog:
https://electronics4ubymanmohanpal.blogspot.com/p/blog-page_30.html
Manmohan Pal
Mob. 8989811397
Email- mannmohanpal@gmail.com
Blog: http://electronics4ubymanmohanpal.blogspot.in/p/blog-page_5.html
Youtube Channel: https://www.youtube.com/channel/UCDnhARnHOEIPuNIEp5vPdGQ
Remote control for every home appliance
https://www.youtube.com/watch?v=mUuSYWyD7Ic
Remote operated light- by Manmohan Pal
https://www.youtube.com/watch?v=5oP1SCkVJm8
Remote control Fan- IR remote control Circuit using IC 555 Timer by Manmohan Pal
https://www.youtube.com/watch?v=GvAZadfdIAE
Remote control Light Switch
https://manmohanpal.wordpress.com/2018/05/06/remote-control-circuit/
Remote control for every home appliance
Remote control switch
http://electronics4ubymanmohanpal.blogspot.in/p/remote-control-switch.
---------------------------------------------------------------------------------
CODE
______________________________________________________
#include <LiquidCrystal_I2C.h>
#include <IRremote.h>
int RECV_PIN = 11;
LiquidCrystal_I2C lcd(0x27, 16, 2);
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
pinMode(13,OUTPUT); // power supply to ir reciever
pinMode(12,OUTPUT);
pinMode(11,INPUT);
digitalWrite(13, HIGH);
digitalWrite(12, LOW);
lcd.begin();
lcd.backlight();
Serial.begin(9600);
Serial.println("Enabling IRin");
irrecv.enableIRIn(); // Start the receiver
Serial.println("Enabled IRin");
lcd.setCursor(0,0);
lcd.print("IR Remote Decode");
lcd.setCursor(1,1);
lcd.print("by Manmohan Pal");
}
void loop() {
if (irrecv.decode(&results)) {
lcd.clear();
Serial.println(results.value, HEX);
Serial.println(results.value, DEC);
lcd.setCursor(0,0);
lcd.print(results.value, HEX);
lcd.setCursor(12,0);
lcd.print("HEX");
lcd.setCursor(0,1);
lcd.print(results.value, DEC);
lcd.setCursor(12,1);
lcd.print("DEC");
irrecv.resume(); // Receive the next value
}
delay(100);
}
---------------------------------------------------------------------------------
______________________________________________________
what about ir pin 3.. where r u define in pin 3
ReplyDeleteits mapped to pin 11 of arduino
ReplyDeleteThe code doesn't work. I tried too much. Wasted a lot time.
ReplyDeleteVery great post.Thanks for sharing this post.
ReplyDeleteBest online wholesale electronicsTomson Electronics is among the top electronics components distributors globally. Our extensive selection of high-quality components and exceptional service sets us apart. Trusted by businesses and innovators worldwide, we provide reliable solutions for your electronics needs. Partner with Tomson Electronics for excellence in sourcing electronic components.