유은제gledel
Published

Text LCD Display & receive infrared remote signal code

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

IntermediateProtip3,129
Text LCD Display & receive infrared remote signal code

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1
RGB Backlight LCD - 16x2
Adafruit RGB Backlight LCD - 16x2
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Power MOSFET N-Channel
Power MOSFET N-Channel
×1
JustBoom IR Remote
JustBoom IR Remote
×1
Jumper wires (generic)
Jumper wires (generic)
×19

Software apps and online services

Arduino IDE
Arduino IDE

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 • 6 followers
Hello :-) I'm a high school student in South Korea.
gledel

gledel

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

Comments