유은제gledel
Published

Text LCD Display & receive infrared remote signal code

Use the text LCD display and infrared remote to receive the signal code

IntermediateProtip6,585
Text LCD Display & receive infrared remote signal code

Things used in this project

Story

Read more

Schematics

schemetics of text lcd display and IRremote

Code

code of text lcd display and IRremote

EJS
#include <IRremote.h>
#include <LiquidCrystal.h>
 
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
int RECV_PIN = 8;
IRrecv irrecv(RECV_PIN);
decode_results results;
 
 
void setup()
{
  irrecv.enableIRIn(); 
  lcd.begin(16, 2);
}
 
void loop() {
  if (irrecv.decode(&results)) {
  lcd.setCursor(0,0);
  lcd.clear();
  lcd.print("IR remote Code");
  lcd.setCursor(0,1);
  lcd.print("Code : ");
  lcd.print(results.value);
  // lce.println(results.value, HEX); //hex 코드로 출력
  irrecv.resume(); // Receive the next value
  }
  delay(100);
}

Credits

유은제

유은제

15 projects • 13 followers
Hello :-) I'm a high school student in South Korea.
gledel

gledel

100 projects • 115 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"

Comments