Arduino IR Home Automation V1.0

by Hey Dave in Circuits > Sensors

10969 Views, 164 Favorites, 0 Comments

Arduino IR Home Automation V1.0

13285810_1014853801926834_1345414942_n.jpg

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 :)

COMPONENTS

10pcs-Lot-Universal-font-b-IR-b-font-Infrared-font-b-Receiver-b-font-Sensor-font.jpg
edited_IMG_20160527_073545.jpg
IMG_20160524_182432.jpg
IMG_20160525_142447_HDR.jpg
IMG_20160526_071037.jpg
IMG_20160526_071055.jpg
IMG_20160526_071123.jpg
IMG_20160526_071146.jpg
IMG_20160526_071201.jpg
IMG_20160526_081135.jpg
IMG_20160526_143757.jpg
IMG_20160527_072941.jpg

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

DECODING

IMG_20160525_142744.jpg
decode.PNG
IMG_20160525_142858.jpg

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

Downloads

SCHEMATIC

Button.PNG
recive.PNG
relay.PNG

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

CODING

change.PNG

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.

Downloads

CONNECTING ALL THE COMPONENTS TOGETHER

IMG_20160527_100332.jpg
IMG_20160527_092716.jpg
IMG_20160526_164824.jpg
IMG_20160527_095726.jpg
IMG_20160527_090439.jpg

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

CONTROLLING BRIGHT LED WITH RELAY

03_63.jpg

FINAL TEST!!!

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

you can also use any appliances with project :)