quqa123
Published © GPL3+

IR Transmitter Auto-Mapping

A program to automatically create header file with mapped custom named IR buttons that we can easily call with Arduino IDE.

IntermediateProtip6,087
IR Transmitter Auto-Mapping

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
5 mm LED: Red
5 mm LED: Red
×1
Resistor 220 ohm
Resistor 220 ohm
×1
IR receiver (generic)
×1
IR transmitter (generic)
×1

Story

Read more

Schematics

IR_scanning_schematic

Code

IR_codes_scanning

Arduino
#include <IRremote.h>
/*if there is an error with library
 you have to download it */

//red led will light up when transmitter recieves data
const int IR = 3;
const int led = 6;

IRrecv irrecv(IR);
decode_results results;

    

void setup(){

    Serial.begin(9600);
    irrecv.enableIRIn();
    pinMode(led, OUTPUT);
     
}


void loop(){

    
    if(irrecv.decode(&results)){
   
       Serial.println(results.value);
       digitalWrite(led, HIGH);
       delay(200);
       digitalWrite(led, LOW);
       delay(1800);
       irrecv.resume();             
       }
        
}

Link to ready-to-use program [whole folder needed]

Arduino
https://drive.google.com/open?id=1EFyfFbl8evzU6YjzkfRrhqDHUqhPthkh

C++ Program to automatically map your IR transmitter

Credits

quqa123
1 project • 1 follower
Contact

Comments

Please log in or sign up to comment.