IR Remote Controlled LED Project2
IR Remote Controlled LED Project2
Team members:
1. Harish T (312322107013)
2. Kaushik B (312322107021)
3. Praveen Kumar S
(312322107033)
Department: EIE
Date: 10/11/2023
Content:
1. Introduction . . .
2. Components Required . . .
3. Schematic Diagram . . .
5. Conclusion . . .
6. References . . .
Introduction to the Project:
The IR Remote Controlled LED project is an engaging exploration into the world of
microcontroller-based electronics and communication systems. Leveraging the
power of Arduino technology and Infrared (IR) communication, this project offers a
hands-on experience in creating a functional, remote-controlled lighting system.
At its core, this project combines an Arduino board with an IR receiver module,
allowing it to receive signals from a standard IR remote control. These signals are
then decoded, enabling users to wirelessly control the illumination of an LED. This
seemingly simple interaction embodies a wealth of knowledge and skills, making it
an ideal starting point for both beginners and electronics enthusiasts.
The primary purpose of the IR Remote Controlled LED project is to demonstrate the
practical application of Arduino technology and Infrared (IR) communication. This
project serves as an accessible and engaging introduction to microcontroller-based
projects and remote control systems for both beginners and enthusiasts. The
overarching goals and purposes of this project can be summarized as follows:
1. Educational Exploration
2. Hands-On Learning
3. IR Communication Integration
1. Arduino Board
2. IR Receiver Module
3. IR Remote Control
4. LED Bulbs
5. Breadboard
6. Connecting Wires
SCHEMATIC DIAGRAM:
The Schematic Diagram of the Project of IR Sensor and The
Arduino Uno is Given below
Let's break down the elements of the schematic diagram for this project:
1. Arduino Board:
• This is represented as a rectangular shape with labeled pins. The pins
are labeled with their respective functions (e.g., VCC for power, GND
for ground, digital pins for input and output).
2. IR Receiver Module:
• Represented as a small module with three pins: VCC, OUT, and GND.
The VCC pin is connected to a 5V output on the Arduino, the OUT pin
is connected to a digital input pin (e.g., D2), and the GND pin is
connected to a ground pin on the Arduino.
3. LED Bulbs:
• One end of the LED is connected to a digital output pin on the
Arduino (e.g., D13) Another end is connected to Ground.
Arduino Code:
IR Receiver Code:
#include <IRremote.h>
void setup()
{
Serial.begin(115200);
Serial.println("IR Receive test");
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
}
void loop()
{
if (IrReceiver.decode())
{
String ir_code =
String(IrReceiver.decodedIRData.command, HEX);
Serial.println(ir_code);
IrReceiver.resume();
}
}
IR Remote Code:
#include <IRremote.h>
#define LED1 8
#define LED2 9
#define LED3 10
#define LED4 11
void setup()
{
Serial.begin(115200);
Serial.println("IR Receive test");
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
pinMode(LED4, OUTPUT);
}
void loop()
{
if (IrReceiver.decode())
{
String ir_code =
String(IrReceiver.decodedIRData.command, HEX);
Serial.println(ir_code);
if(ir_code == "4")
digitalWrite(LED1, HIGH);
else if(ir_code == "5")
digitalWrite(LED1, LOW);
if(ir_code == "6")
digitalWrite(LED2, HIGH);
else if(ir_code == "7")
digitalWrite(LED2, LOW);
if(ir_code == "8")
digitalWrite(LED3, HIGH);
else if(ir_code == "a")
digitalWrite(LED3, LOW);
if(ir_code == "c")
digitalWrite(LED4, HIGH);
else if(ir_code == "")
digitalWrite(LED4, LOW);
IrReceiver.resume();
}
}
Conclusion
The IR Remote Controlled LED project exemplifies the seamless
integration of Arduino technology, Infrared (IR) communication, and
practical electronics. Through this endeavor, we have explored the
fundamental principles of microcontroller-based systems and remote
control applications. This project not only serves as an educational
platform but also offers a gateway to a myriad of creative and
innovative possibilities.