Introduction: Arduino IR Home Automation V1.0

About: IT'S NOT ABOUT THE FINISH LINE. IT'S ABOUT ENJOYING THE PROCESS OF GETTING THERE.

IR Remote is a Controller is a wireless controller in some electronics such as TV, DVD Player and other home appliances.

IR Remote send digitally-coded pulses of infrared radiation to control functions such as power, volume, tuning, temperature set point, fan speed, or other features. but in this project i am going to use IR Remote to control any appliances :)

BTW. this is my first Instructable project :)

Step 1: COMPONENTS

TV Remote = 1

IR Receiver = 1

Arduino Uno = 1

Arduino Nano = 1 (Optional)

Breadboard = 1

Jumper Cables = 20 or more

330 ohms Resistor = 8

10k ohms Resistor = 2

single pin header female = 4

PCB = 1

Relay = 2 or more

Push Button = 2

Step 2: DECODING

In order to decode the signal from the remote you need to connect the IR Receiver to the arduino.

IR Receiver PIN: (check your IR Receiver PIN).

1 Signal = Arduino PIN 11

2 Vcc = Arduino PIN 5v

3 GND = Arduino PIN GND

Arduino Code: (Upload this Code to your Arduino).

_____________________________________________________________

#include

int IRpin = 11;

IRrecv irrecv(IRpin);

decode_results results;

void setup()

{ Serial.begin(9600);

irrecv.enableIRIn(); // Start the receiver

}

void loop()

{

if (irrecv.decode(&results))

{ Serial.println(results.value, DEC);

// Print the Serial 'results.value'

irrecv.resume(); // Receive the next value

}

}

____________________________________________________________________

Serial Monitor: Plug in your Arduino to your Computer then open the Serial Monitor

Then point your TV Remote to the IR Receiver then press any button you want to decode after that you will get some Numbers like this:

Relay 1 = 16779273 = NUM 1

Relay 2 = 16812169 = NUM 2

Relay 3 = 16795721 = NUM 3

Relay 4 = 16828617 = NUM 4

Relay 5 = 16787497 = NUM 5

Relay 6 = 16820393 = NUM 6

Relay 7 = 16803945 = NUM 7

Relay 8 = 16836841 = NUM 8

Step 3: SCHEMATIC

BUTTON: Connect the two button to PIN 10 and 11

Push Button = 2

10K Ohms Resistor = 2

IR Receiver: Connect IR GND to Arduino GND, Vcc to Arduino 5v, and IR Signal to Arduino Pin 12

IR Receiver = 1

Relay and Led: Connect led with 330 ohms resistor to the arduino

LED 1 = PIN 2 LED 5 = PIN 6

LED 2 = PIN 3 LED 6 = PIN 7

LED 3 = PIN 4 LED 7 = PIN 8

LED 4 = PIN 5 LED 8 = PIN 9

RELAY 1 = PIN 2 RELAY 5 = PIN 6

RELAY 2 = PIN 3 RELAY 6 = PIN 7

RELAY 3 = PIN 4 RELAY 7 = PIN 8

RELAY 4 = PIN 5 RELAY 8 = PIN 9

RELAY Vcc = Arduino 5v

Relay GND = Arduino GND

Step 4: CODING

Upload this Code to your Arduino:

IMPORTANT:

//Relay 1

if (results.value == 16779273)

.................................^^^^^^^^................................

Change this value to match your Remote

to get the value you must decode the remote first then copy the result.

Step 5: CONNECTING ALL THE COMPONENTS TOGETHER

connect all the parts together.

make your own case for your project :)

you can use old shoe box or something that can hold all the components.

in my case i use some used plywood.

TEST 1

Step 6: CONTROLLING BRIGHT LED WITH RELAY

Step 7: FINAL TEST!!!

as you can see in the video i use only 12v super bright led

you can also use any appliances with project :)

Sensors Contest 2016

Second Prize in the
Sensors Contest 2016

Automation Contest 2016

Participated in the
Automation Contest 2016

Beyond the Comfort Zone Contest

Participated in the
Beyond the Comfort Zone Contest

First Time Author Contest 2016

Participated in the
First Time Author Contest 2016