Go Down

Topic: Help needed transmitting IR remote codes (Read 146 times) previous topic - next topic

Rahmat_Zuliansyah

Hello Arduino experts, I am from Indonesia and I want to ask. I have a project on television communication with Arduino, why does the Arduino program sketch not support my television panasonic branch? the sketch program that I got was only for Sony, NEC, RC5, and RC6 televisions. help me because this project has a deadline, I need a library that supports panasonic television, so that the remote code received by infrared is not "unknown".
thank you

here I attach the sketch program
#include <IRremote.h>
#include <LiquidCrystal.h>

// Define sensor pin
const int RECV_PIN = 3;
 
// Define IR Receiver and Results Objects
IRrecv irrecv(RECV_PIN);
decode_results results;
 
void setup(){
  // Serial Monitor @ 115200 baud
  Serial.begin(115200);
  // Enable the IR Receiver
  irrecv.enableIRIn();
}
 
void loop(){
  if (irrecv.decode(&results)){
        Serial.println(results.value, HEX);
        switch (results.decode_type){
            case NEC:
              Serial.println("NEC");
              break;
            case SONY:
              Serial.println("SONY");
              break;
            case RC5:
              Serial.println("RC5");
              break;
            case RC6:
              Serial.println("RC6");
              break;
            case DISH:
              Serial.println("DISH");
              break;
            case SHARP:
              Serial.println("SHARP");
              break;
            case JVC:
              Serial.println("JVC");
              break;
            case SANYO:
              Serial.println("SANYO");
              break;
            case MITSUBISHI:
              Serial.println("MITSUBISHI");
              break;
            case SAMSUNG:
              Serial.println("SAMSUNG");
              break;
            case LG:
              Serial.println("LG");
              break;
            case WHYNTER:
              Serial.println("WHYNTER");
              break;
            case AIWA_RC_T501:
              Serial.println("AIWA_RC_T501");
              break;
            case PANASONIC:
              Serial.println("PANASONIC");
              break;
            case DENON:
              Serial.println("DENON");
              break;
          default:
            case UNKNOWN:
              Serial.println("UNKNOWN");
              break;
          }
        irrecv.resume();
 }
}
       

Go Up