Electro BOY
Published © GPL3+

IR Transmitter Remote using Arduino

A made a simple remote control which can be programmed to control any device that has IR. Basically it is the additional to the last project

IntermediateFull instructions provided1 hour15,096
IR Transmitter Remote using Arduino

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
IR transmitter (generic)
×1

Software apps and online services

EasyEDA
JLCPCB EasyEDA
Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free

Story

Read more

Custom parts and enclosures

Gerber files

Schematics

Circuit diagram

Code

Transmitter remote control

Arduino
#include <IRremote.h>

IRsend irsend;

void setup()
{
  Serial.begin(9600);
  pinMode(5,INPUT_PULLUP); // button 1
  pinMode(6,INPUT_PULLUP); // button 2
  pinMode(7,INPUT_PULLUP); // button 3
  pinMode(8,INPUT_PULLUP); // button 4
  // add more number of lines in code utilise more pins
}

void loop() {
  
	if (digitalRead(5) == LOW){
      irsend.sendNEC(0x34895725, 32);  // change these unique code to yours but in decimal 
      delay(30);
      } 

  else if (digitalRead(6) == LOW){
      irsend.sendNEC(0x56874159, 32);
      delay(30);
      } 

  else if (digitalRead(7) == LOW){
      irsend.sendNEC(0x15467823, 32); 
      delay(30);
      } 
      
  else if (digitalRead(8) == LOW){
      irsend.sendNEC(0x25467823, 32);
      delay(30);
      } 
  else{
      Serial.println("Nothing to send");
      delay(30);
      } 

   delay(100);
  
	}

Credits

Electro BOY

Electro BOY

57 projects • 52 followers
Electronics is my passion. I am not professional, Always learning something new. I am good at soldering, designing pcb, Arduino programing.

Comments