IR Transmitter Auto-Mapping

IR Transmitter Auto-Mapping © GPL3+

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

  • 1,652 views
  • 2 comments
  • 15 respects

Components and supplies

About this project

I recently started my journey with Arduino and stumbled on a problem with mapping my IR remote transmitter buttons to easily use them in projects. With my basic C++ knowleadge I discovered a way to make header files that we can include to project and freely use custom named buttons - Then I made a simple program to make it easier for everybody. Hope it helps beginners to enjoy IR based Arduino Projects

Code

IR_codes_scanningArduino
#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

Schematics

IR_scanning_schematic
Ir reciever scheme waqjan2nvn

Comments

Similar projects you might like

How to Hack IR Remotes

Project tutorial by TATCO

  • 13,499 views
  • 4 comments
  • 81 respects

Simple IR Reciver

by Treebug842

  • 907 views
  • 0 comments
  • 7 respects

Blaster with AWS Alexa Voice Control & IR Firing Power

Project tutorial by Tom

  • 3,615 views
  • 1 comment
  • 28 respects

IR Home Automation With Intelligent Lighting

Project showcase by Adersh B

  • 2,548 views
  • 0 comments
  • 5 respects

Arduino: Switching ON/OFF Appliances Using IR Remote

Project showcase by Naman Chauhan

  • 8,929 views
  • 0 comments
  • 120 respects
Add projectSign up / Login