Control LEDs with IR Remote control in proteus simulation

Control LEDs with IR Remote control in proteus simulation

In this article we will learn how to interface arduino with LEDs through IR remote control in proteus simulation.
In the last post we will learn how to operate touch switch through touch electrode. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

Components which we use in this project are listed below:

  1. Arduino nano
  2. Virtual terminal
  3. Resistor 100 R
  4. LEDs
  5. IR remote control
  6. IR receiver
  7. Jumper wires

Diagram of this project is below:

Control LEDs with IR Remote control in proteus simulation
Control LEDs with IR Remote control in proteus simulation

Construction of Control LEDs with IR Remote control in proteus simulation:

  • Connect TX point of arduino with the RX point of virtual terminal
  • Connect the RX point of arduino nano with the TX point of virtual terminal
  • Connect D8 point of arduino nano with the +ve point of LED 3
  • Connect D9 point of arduino nano with the +ve point of LED 2
  • Connect the D10 point of arduino with the +ve point of LED 1
  • Connect the –ve side of LED 1 with the one side of resistor 100R 1
  • Connect the other side of resistor with the GND
  • Connect the –ve side of the LED 2 with the one side of resistor 2
  • Connect the other side of resistor 2 with the GND
  • Connect the –ve side of LED 3 with the one side of resistor 3
  • Connect the other side of resistor 3 with the GND
  • Connect the D11 point of arduino with the IR receiver

Working of Control LEDs with IR Remote control in proteus simulation:

Controlling LEDs with an IR (Infrared) remote control involves using an IR receiver module to detect signals from the remote control and a microcontroller or microprocessor to interpret those signals and trigger actions to turn the LEDs on or off.

Applications of Control LEDs with IR Remote control in proteus simulation:

  1. Home Lighting Control
  2. Entertainment Center
  3. Decorative Lighting
  4. Party Lighting

Advantages of Control LEDs with IR Remote control in proteus simulation:

  1. Convenience
  2. Remote Operation
  3. Energy Efficiency
  4. Customization
  5. Accessibility

Program code of this project is below:

#include <IRremote.h>

int IR_Recv = 11; //IR Receiver Pin 3

int bluePin = 10;

int greenPin = 9;

int yellowPin = 8;

IRrecv irrecv(IR_Recv);

decode_results results;

void setup(){

Serial.begin(9600); //starts serial communication

irrecv.enableIRIn(); // Starts the receiver

pinModeFast(IR_Recv, INPUT);

pinMode(bluePin, OUTPUT); // sets the digital pin as output

 

 

pinMode(greenPin, OUTPUT); // sets the digital pin as output

pinMode(yellowPin, OUTPUT); // sets the digital pin as output

}

void loop(){

//decodes the infrared input

if (irrecv.decode(&results)){

long int decCode = results.value;

Serial.println(results.value);

//switch case to use the selected remote control button

switch (results.value){

case 3910598400: //when you press the 1 button

digitalWrite(bluePin, HIGH);

break;

case 3860463360: //when you press the 4 button

digitalWrite(bluePin, LOW);

break;

case 4061003520: //when you press the 2 button

digitalWrite(greenPin, HIGH);

break;

case 4077715200: //when you press the 5 button

digitalWrite(greenPin, LOW);

break;

case 4145610496: //when you press the 3 button

digitalWrite(yellowPin, HIGH);

break;

case 2707357440: //when you press the 6 button

digitalWrite(yellowPin, LOW);

break;

}

irrecv.resume(); // Receives the next value from the button you press

}

delay(10);

}